Applied Instructions
The tested according to the instruction. If the comparison is true then the AND
contact is active. If the comparison is false then the AND contact is not active.
16 bits 32 bits Active condition Inactive condition
value of S1 and S2 are
AND= DAND= (S1)=(S2) (S1)≠(S2)
AND> DAND> (S1)>(S2) (S1)≤(S2)
AND< DAND< (S1)<(S2) (S1)≥(S2)
AND 2) (S1)=(S2) <> DAND<> (S1)≠(S
AND<= DAND<= (S1)≤(S2) (S1)>(S2)
AND>= DAND>= (S1)≥(S2) (S1)<(S2)
OR=
K100 C0
Y0
DOR>
K68899D10
M50
M4
X0
X2
S1·
S2·
Instruction & Function
Program
z When the source data’s highest bit (16 bits:b15,32 bits:b31) is 1,
use the data as a negative.
z The comparison of 32 bits counter (C300~) must be 32 bits instruction.
If assigned as a 16 bits instruction, it will lead the program error or
operation error.
Note Items
Parallel Comparision OR □
16 bits instruction:Refer Below 32 bits instruction:Refer Below
Suitable Models:
XC1、XC3、XC5
D
FD
DM
DX
DY
DS
S1·
S2·
TD
CD
K/H
Word
Device
Bit
Device
X
Y
M
S
T
C
Dn.m
152