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.4 Comparator operations
S7-1200 Programmable controller
254 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 8- 37 Data types for the parameters
Parameter
Data type
Description
Operand1
Variant
First operand
Operand2 Bit strings, integers, floating-point numbers,
timers, date and time, character strings,
ARRAY, PLC data types
Second operand
8.4.4.2
Null comparsion instructions
You can use the instructions IS_NULL and NOT_NULL to determine whether or not the input
actually points to an object or not.
For both instructions, <Operand> must have the Variant data type.
Table 8- 38 IS_NULL (Query for EQUALS ZERO pointer) and NOT_NULL (Query for EQUALS ZERO pointer) instructions
LAD
FBD
SCL
Description
Not avail-
able
Tests whether the tag pointed to by the Variant
at Operand is null and therefore not an object.
Not avail-
able
Tests whether the tag pointed to by the Variant
at Operand is not null and therefore does point
to an object.
Table 8- 39 Data types for the parameters
Parameter
Data type
Description
Operand
Variant
Operand to evaluate for null or not null.
8.4.4.3
IS_ARRAY (Check for ARRAY)
You can use the "Check for ARRAY" instruction to query whether the Variant points to a tag
of the Array data type.
The <Operand> must have the Variant data type.
The instructions returns 1 (true) if the operand is an array.
Table 8- 40 IS_ARRAY (Check for ARRAY)
LAD
FBD
SCL
Description
IS_ARRAY(_variant_in_) Tests whether the tag pointed to by the Variant
at Operand is an array.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals