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.5 Math functions
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
255
Table 8- 41 Data types for the parameters
Parameter
Data type
Description
Operand
Variant
Operand to evaluate for whether it is an array.
8.5
Math functions
8.5.1
CALCULATE (Calculate)
Table 8- 42 CALCULATE instruction
LAD / FBD
SCL
Description
Use the stand-
ard SCL math
expressions to
create the equa-
tion.
The CALCULATE instruction lets you create a math function that oper-
ates on inputs (IN1, IN2, .. INn) and produces the result at OUT, ac-
cording to the equation that you define.
Select a data type first. All inputs and the output must be the same
data type.
To add another input, click the icon at the last input.
Table 8- 43 Data types for the parameters
Parameter
Data type
1
IN1, IN2, ..INn
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word, DWord
OUT
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word, DWord
1
The IN and OUT parameters must be the same data type (with implicit conversions of the input parameters). For exam-
ple: A SINT value for an input would be converted to an INT or a REAL value if OUT is an INT or REAL

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals