Basic instructions
7.5 Math functions
S7-1200 Programmable controller
228 System Manual, 03/2014, A5E02486680-AG
OK (Check validity) and NOT_OK (Check invalidity) instructions
Table 7- 33 OK (check validity) and Not OK (check invalidity) instructions
Not available Tests whether an input data reference is a valid real
number according to IEEE specification 754.
Not available
For LAD and FBD: When the LAD contact is TRUE, the contact is activated and passes power flow. When the FBD box
is TRUE, then the box output is TRUE.
Table 7- 34 Data types for the parameter
Table 7- 35 Operation
The Real number test is TRUE if:
The input value is a valid real number
1
The input value is not a valid real number
1
A Real or LReal value is invalid if it is +/- INF (infinity), NaN (Not a Number), or if it is a denormalized value. A
denormalized value is a number very close to zero. The CPU substitutes a zero for a denormalized value in calculations.