6.7.7 LN
Input/output Operand
Data type
IN
VD, ID, QD, MD, SMD, SD, LD, AC,constant, *VD, *LD, *AC
Real number
OUT
VD, ID, QD, MD, SMD, SD, LD, AC, *VD, *LD, *AC
Real number
LN: Use the input value to perform natural logarithm
calculation and put the result in OUT.
The output value × 2.302585 ≈ Natural logarithm of 10
SM1.1 is used for indicating overflow errors and illegal values.
error conditions:
SM1.1
Overflow
Special memory bit:
Zero result
SM1.0
Overflow
SM1.1
Negative result
SM1.2
126
Made with FlippingBook - Online magazine maker