Basic instructions
8.5 Math functions
S7-1200 Programmable controller
264 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 8- 66 Data types for parameters
IN2 SInt, Int, DInt, USInt, UInt,UDInt, Real, LReal, Constant EXPT exponent input
Table 8- 67 ENO status
1 All No error Valid result
0 SQR
Result exceeds valid Real/LReal range
IN is +/- NaN (not a number)
SQRT
IN is +/- INF (infinity) or +/- NaN
LN
IN is 0.0, negative, -INF, or -NaN
EXP
Result exceeds valid Real/LReal range
ASIN, ACOS
IN is outside valid range of -1.0 to +1.0
EXPT
IN1 is +INF and IN2 is not -INF
IN1 is negative or -INF +NaN if IN2 is Real/LReal,
IN1 is 0.0 and IN2 is Real/LReal (only) +NaN