5 comparison operators – NORD Drivesystems BU0550 User Manual
Page 37
3 AWL (Instruction List, IL)
BU 0550 GB-0813
37
3.2.5
Comparison operators
Operator
Explanation
EQ
Equal to
GE
Greater or equal to
GT
Greater
LE
Less than or equal to
LT
Smaller
NE
Not equal to
Table 40 Overview of comparison operators
3.2.5.1
EQ
Compares the content of the accumulator with a variable or constant. If the values are equal, the AE is set
to TRUE.
BOOL
BYTE
INT
DINT
Possible data types
X
X
X
Commands
Explanation
LD Value1
Value1 = 5
EQ 10
AE = Is 5 equal to 10 ?
JMPC NextStep
AE = FALSE
Program does not jump
ADD 1
NextStep:
ST Value1
Table 41 EQ
3.2.5.2
GE
Compares the content of the accumulator with a variable or constant. If the value in the accumulator is
greater than or equal to the variable or constant, then the AE is set to TRUE.
BOOL
BYTE
INT
DINT
Possible data types
X
X
X
Commands
Explanation
LD Value1
Value1 = 5
GE 10
Is 5 greater than or equal to 10?
JMPC NextStep
AE = FALSE
Program does not jump
ADD 1
NextStep:
ST Value1
Table 42 GE