Beckhoff Automation GmbH & Co. KG TX1200 — 7.2.7.2 LT

Reference programming IN0, ...,INn and OUT can be any type of variable. K must be BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT or UDINT. MUX selects the Kth value from among a group of values. Example in IL: LD 0 MUX 30,40,50,60,70,80 ST Var1 (* Result is 30 *) Note that an expression occurring ahead of an input other than INK will not be processed to save run time! 7.2.7 Comparison Operators 7.2.7.1 GT Greater than A Boolean operator which returns the value TRUE when the value of the first operand is greater than that of the second. The operands can be BOOL, BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT, REAL, LREAL, TIME, DATE, TIME_OF_DAY, DATE_AND_TIME and STRING.

Example in IL: LD 20 GT 30 ST Var1 (* Result is FALSE *) Example in ST: VAR1 := 20 > 30 > 40 > 50 > 60 > 70; Example in FBD: 7.2.7.2 LT Less than A Boolean operator that returns the value TRUE when the value of the first operand is less than that of the second. The operands can be BOOL, BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT, REAL, LREAL, TIME, DATE, TIME_OF_DAY, DATE_AND_TIME and STRING. Example in IL: LD 20 LT 30 ST Var1 (* Result is TRUE *) Example in ST: VAR1 := 20 Example in FBD: TX1200 206 Version: 1.3