S7-300
S7-400
S7-1200
S7-1500
Description LAD/FBD
STL
(not S7-1200)
SCL
✔ ✔
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 t
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".
Compare tag structured data types