Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 545
Chapter
15
Advanced Math Instructions
(LN, LOG, XPY)
The advanced math instructions include these instructions.
You can mix data types, but loss of accuracy and rounding error might occur and
the instruction takes more time to execute. Check the S:V bit to see whether the
result was truncated.
For relay ladder instructions, bold data types indicate optimal data types. An
instruction executes faster and requires less memory if all the operands of the
instruction use the same optimal data type, typically DINT or REAL.
Topic Page
Natural Log (LN) 546
Log Base 10 (LOG) 549
X to the Power of Y (XPY) 552
If you want to Use this instruction Available in these languages Page
Take the natural log of a value LN Relay ladder
Structured text
Function block
546
Take the log base 10 of a value LOG Relay ladder
Structured text
Function block
549
Raise a value to the power of another value XPY Relay ladder
Structured text
(1)
Function block
552
(1) There is no equivalent structured text instruction. Use the operator in an expression.