FX Series Programmable Controlers Applied Instructions 5
5-218
5.17.1 LD compare
(FNC 224 to 230)
Operation:
The value of S
1 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.
Points to note:
The LD comparison functions can be placed anywhere in a program that a standard LD
instruction can be placed. I.e., it always starts a new block.
(See page 2-3 for LD instruction)
Mnemonic Function
Operands
Program steps
SD
LDr
(LoaD
compare)
where r
is =, >, <,
<>, ≤, ≥
Initial 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
LDr:
5steps
DLDr:
9steps
FNC No.
Mnemonic
Active
when
Inactive
when
16 bit 32 bit
224 LD = DLD = S
1 =S2 S1 ≠S2
225 LD > DLD > S1 >S2 S1 ≤ S2
226 LD < DLD < S1 <S2 S1 ≥ S2
228 LD <> DLD <> S1 ≠S2 S1 =S2
229 LD ≤ DLD ≤ S1 ≤ S2 S1 >S2
230 LD ≥ DLD ≥ S1 ≥ S2 S1 <S2
FX
1S
FX1N FX2N
FX2NC
K200 C10LD =
D200 K-30LD >
M3
M50
X001
Y011SET
Y010
[ S1 ] [ S2 ]
K678493
C200
LD >
PULSE-P
16 BIT OPERATION
32 BIT OPERATION