Function extension:
In structured text, the following operators can be used in an IF statement:
AND_THEN
AND_THEN corresponds to the functionality of an AND operator with the difference that the second operand is only evaluated if the first operand is TRUE.
Example: The contents of the pointer is only checked if the pointer is a zero pointer.
IF (pVar <> 0 AND_THEN pVar^ > 100) THEN...
OR_ELSE
OR_ELSE corresponds to the functionality of an OR operator with the difference that the second operand is only evaluated if the first operand is FALSE.
Example: The assignment in the IF statement is only executed if the first operand is FALSE.
IF (xVar1 OR_ELSE (xVar2:=iVar>10)) THEN…
Contained in which products?
PLC Designer V3.9