Mitsubishi Electronics FX2N ユーザーズマニュアル
FX Series Programmable Controlers
Applied Instructions 5
5-147
5.16.1
LD compare
(FNC 224 to 230)
(FNC 224 to 230)
Operation:
The value of S
1
and S
2
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.
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)
instruction can be placed. I.e., it always starts a new block.
(See page 2-3 for LD instruction)
Mnemonic
Function
Operands
Program steps
S
D
LD
(LoaD
compare)
compare)
where
is =, >, <,
<>,
<>,
≤
,
≥
Initial comparison
contact.
Active when the
comparison
contact.
Active when the
comparison
S
1
S
2
is true.
K,H, KnX, KnY, KnM,
KnS, T, C, D, V, Z
KnS, T, C, D, V, Z
K,H, KnX, KnY, KnM,
KnS, T, C, D, V, Z
KnS, T, C, D, V, Z
LD
:
5 steps
DLD
:
9 steps
FNC No.
Mnemonic
Active
when
Inactive
when
16 bit
32 bit
224
LD =
DLD =
S
1
= S
2
S
1
≠
S
2
225
LD >
DLD >
S
1
> S
2
S
1
≤
S
2
226
LD <
DLD <
S
1
< S
2
S
1
≥
S
2
228
LD <>
DLD <>
S
1
≠
S
2
S
1
= S
2
229
LD
≤
DLD
≤
S
1
≤
S
2
S
1
> S
2
230
LD
≥
DLD
≥
S
1
≥
S
2
S
1
< S
2
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
K200
C10
LD =
D200
K-30
LD >
M3
M50
X001
Y011
SET
Y010
[ S1 ]
[ S2 ]
K678493
C200
LD >
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION