Chapter 16 PLC Function Applications│CP2000
16-115
API
LD※
S1 S2
Contact form compare LD*
224–
230
D
Bit device Word device
16-bit command (5 STEP)
LD※
Continuous
execution type
- -
32-bit command (9 STEP)
DLD※
Continuous
execution type
- -
Flag signal: none
X Y M K H KnX KnY KnM T C D
S1
* * * * * * * *
S2
* * * * * * * *
Notes on operand usage: ※:=、>、<、<>、≦、≧
Please refer to the function specifications table for each device in
series for the scope of device usage
S
1
: data source device 1. S
2
: data source device 2.
This command compares the content of S
1
and S
2
. Taking API 224 (LD=) as an
example, this command will be activated when the result of comparison is
"equal," and will not be activated when the result is "unequal."
The LD* can be used while directly connected with the busbar
API No. 16-bit commands 32-bit commands
Conditions for
activation
Conditions for
inactivation
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
When the content of C10 is equal to K200, Y10=On.
When the content of D200 is greater than K-30, and X1=On, Y11=On and remains
in that state.
LD=
K200 C10
DLD>
K678493 C20
M3
Y10
LD>
D200 K-30
SET Y11
M50
X1