FX Series Programmable Controlers Applied Instructions 5
5-219
5.17.2 AND compare
(FNC 232 to 238)
Operation:
The value of S
1 and S2 are tested according to the comparison of 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.
Points to note:
The AND comparison functions can be placed anywhere in a program that a standard AND
instruction can be placed. i.e., it is a serial connection contact.
(See page 2-6 for AND instruction)
Mnemonic Function
Operands
Program steps
SD
ANDr
(AND
compare)
where r
is =, >, <,
<>, ≤, ≥
Serial comparison
contact.
Active when the
comparison
S1 r S2 is true.
K,H, KnX, KnY, KnM,
KnS, T, C, D, V, Z
K,H, KnX, KnY, KnM,
KnS, T, C, D, V, Z
ANDr:
5steps
DANDr:
9steps
FNC No.
Mnemonic
Active
when
Inactive
when
16 bit 32 bit
232 AND = DAND = S
1 =S2 S1 ≠S2
233 AND > DAND > S1 >S2 S1 ≤ S2
234 AND < DAND < S1 <S2 S1 ≥ S2
236 AND <> DAND <> S1 ≠S2 S1 =S2
237 AND ≤ DAND ≤ S1 ≤ S2 S1 >S2
238 AND ≥ DAND ≥ S1 ≥ S2 S1 <S2
FX
1S
FX1N FX2N
FX2NC
K200 C10AND =
K-10 D0AND >
M3
M50
Y011SET
Y010
[ S
1
] [ S
2
]
X000
X001
X002
K678493
D10
DAND>
PULSE-P
16 BIT OPERATION
32 BIT OPERATION