Basic instructions
7.7 Conversion operations
S7-1200 Programmable controller
250 System Manual, 03/2014, A5E02486680-AG
CEIL and FLOOR (Generate next higher and lower integer from floating-point
number) instructions
Table 7- 86 CEIL and FLOOR instructions
Converts a real number (Real or LReal) to the closest integer
greater than or equal to the selected real number (IEEE "round
to +infinity").
Converts a real number (Real or LReal) to the closest integer
smaller than or equal to the selected real number (IEEE "round
to -infinity").
1
For LAD and FBD: Click the "???" (by the instruction name) and select a data type from the drop-down menu.
Table 7- 87 Data types for the parameters
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal
Table 7- 88 ENO status
0 IN is +/- INF or +/- NaN +/- INF or +/- NaN