EasyManua.ls Logo

Siemens SIMATIC S7-1200

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Basic instructions
8.7 Conversion operations
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
295
Table 8- 114 ENO status
ENO
Description
Result OUT
1
No error
Valid result
0 IN is +/- INF or +/- NaN +/- INF or +/- NaN
8.7.4
CEIL and FLOOR (Generate next higher and lower integer from floating-point
number)
Table 8- 115 CEIL and FLOOR instructions
LAD / FBD
SCL
Description
out := CEIL(in);
Converts a real number (Real or LReal) to the closest integer
greater than or equal to the selected real number (IEEE "round
to +infinity").
out := FLOOR(in);
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 8- 116 Data types for the parameters
Parameter
Data type
Description
IN
Real, LReal
Floating point input
OUT
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal
Converted output
Table 8- 117 ENO status
ENO
Description
Result OUT
1
No error
Valid result
0
IN is +/- INF or +/- NaN
+/- INF or +/- NaN

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals