Beckhoff Automation GmbH & Co. KG TX1200 — 7.2.1 Overview IEC Operators

Reference programming TX1200 191 Version: 1.3 Operator ST Operator AWL Mod. AWL Signification ' String delimiters (e.g. 'string1') [..] Size of Array range (e.g. ARRAY[0..3] OF INT) : Delimiter between Operand and Typ in a declaration (e.g. var1 : INT;) ; Termination of instruction (e.g. a:=var1;) ^ Derefereced Pointer (e.g.

pointer1^) LD var1 N Load value of var1 in buffer := ST var1 N Store actual result to var1 S boolvar Set boolean operand boolvar exactly then to TRUE, when the actual result is TRUE R boolvar Set boolean operand boolvar exactly then to FALSE, when the actual result is TRUE JMP marke CN Jump to label CAL prog1 CN Call program prog1 CAL inst1 CN Call function block instance inst1 (vx,vy,..) vx,vy,.. CN Call function fctname and transmit variables vx, vy RETURN RET CN Leave POU and go back to caller ( The value following the bracket is handled as operand, the operation before the bracket is not executed before the expression in the brackets.

) Now execute the operation which has been set back AND AND N, ( Bitwise AND OR OR N, ( Bitwise OR XOR XOR N, ( Bitwise exclusive OR NOT NOT Bitwise NOT + ADD ( Addition - SUB ( Subtraction * MUL ( Multiplication / DIV ( Division > GT ( Greater than >= GE ( Greater or equal = EQ ( Equal LT ( Less than NE ( Not equal