Ceiling And Floor Instructions - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

Table 7- 84
Data types for the parameters
Parameter
Data type
IN
Real, LReal
OUT
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal
Table 7- 85
ENO status
ENO
Description
1
No error
0
IN is +/- INF or +/- NaN
7.7.4

Ceiling and floor instructions

Table 7- 86
CEIL and FLOOR instructions
LAD / FBD
SCL
out := CEIL(in);
out := FLOOR(in);
For LAD and FBD: Click the "???" (by the instruction name) and select a data type from the drop-down menu.
1
Table 7- 87
Data types for the parameters
Parameter
Data type
IN
Real, LReal
OUT
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal
Table 7- 88
ENO status
ENO
Description
1
No error
0
IN is +/- INF or +/- NaN
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
Description
Floating point input
Rounded or truncated output
Result OUT
Valid result
+/- INF or +/- NaN
Description
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").
100BBasic instructions
7.7 Convert
Description
Floating point input
Converted output
Result OUT
Valid result
+/- INF or +/- NaN
205

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents