Applied Instructions
The value of S1 and S2 are tested according to the comparison of the instruction. If the comparison is
true then the LD contact is active. If the comparison is false then the LD contact is not active.
16
bits
¾ 32
bi
ts
¾ Active
condit
ion
¾ Inactive
conditi
on
AND
=
DAND= (S1)=(S2) (S1)≠(S2)
AND
>
DAND> (S1)>(S2) (S1)≤(S2)
AND
<
DAND< (S1)<(S2) (S1)≥(S2)
AND
<>
DAND<> (S1)≠(S2) (S1)=(S2)
AND
<=
DAND<= (S1)≤(S2) (S1)>(S2)
AND
>=
DAND>= (S1)≥(S2) (S1)<(S2)
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 use 32 bits instruction.
If assigned as 16 bits instruction, it will lead the program error or
operation error.
Note Items
Instruction & Function
Program
Serial Refer Below AND □
16 bits instruction:Refer Below 32 bits instruction:Refer Below
Suitable Models:
XC1、XC3、XC5
Word
Device
Bit
Device
X
Y
M
S
T
C
Dn.m
D
FD
DM
DX
DY
DS
S1·
S2·
TD
CD
K/H
79