Mathematical Functions - Siemens SIMATIC S7-1200 Reference Manual

Comparison list for programming languages based on international mnemonics
Hide thumbs Also See for SIMATIC S7-1200:
Table of Contents

Advertisement

Basic instructions
With a tag of TYPE DB_ANY, compare the
data type of an indirectly addressed DB with a
data type for EQUAL.
Check for EQUALS NULL pointer
Check for UNEQUALS NULL pointer
*) Application examples for SCL:
IF TypeOf(...) = INT THEN ... // corresponds to EQ_Type
IF TypeOfElements(...) = INT THEN ... // corresponds to EQ_ElemType
IF TypeOfDB(...) = INT THEN ... // corresponds to EQ_TypeOfDB
IF ... <> NULL THEN ... // corresponds to NOT_NULL
Instead of "=", you can also use other operators, e.g.: "<>".
Instead of "INT", you can also use any other data types or data types that you have defined, e.g.: "REAL", "Recipe".
Check for ARRAY
Compare tag structured data types

Mathematical functions

Calculate
Add
Subtract
Multiply
A5E33284667-AA
Extended instructions
Description
Technology
LAD/FBD
(not S7-1200)
NE_TypeOfDB:
IS_NULL
NOT_NULL
IS_ARRAY
CompType
CALCULATE
(SCL network in
LAD/FBD)
ADD
SUB
MUL
Communication
STL
SCL
*)
*)
*)
nn
nn
nn
+
+
-
-
*
*
Page 16

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1500

Table of Contents