xLadder user manual-V2.0.0.6

6.4 Compare

6.4.1 Byte compare

Operand

Input / output

Data type

Input

IB, QB, MB, SMB, VB, SB, LB, AC, constant, *VD, *LD, *AC

byte

Byte comparison instructions are used for comparing two

values : IN1 and IN2.

Comparison includes : IN2 、 IN1 >= IN2 、 IN1 <= IN2 、 IN1 > IN2 、 IN1

< IN2 or IN1 <> IN2. Byte comparison without symbol.

In LAD, the contact is open when the result is 1.

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

85

Made with FlippingBook - Online magazine maker