6.4.2 Integer comparison
Operand
Input / output
Data type
Input
IW, QW, MW, SW, SMW, T, C, VW, LW, AIW, AC, constant, *VD, *LD,*AC Integer
Comparison instructions are used for comparing two values : IN1
and IN2.
Comparison includes : IN1 = IN2 、 IN1 >= IN2 、 IN1 <= IN2 、 IN1 >
IN2 、 IN1 < IN2 or IN1 <> IN2.
Integer comparison with symbol (16#7FFF > 16#8000).
In LAD, when the comparison result is true, the contact
will be open.
Attention : The following conditions are serious errors .
These errors will cause the PLC to immediately stop the
execution of the program:
1.Enter illegal indirect address.
2.Enter the illegal real number.
Example:
87
Made with FlippingBook - Online magazine maker