3 . I n s t r u c t i o n S e t
M N 0 5 0 0 3 0 0 3 E F o r m o r e i n f o r m a t i o n v i s i t : w w w. e a t o n . c o m
3 - 5 0 5
API Mnemonic
Operands
Function
224~
230
D
L D *
S
1
, S
2
Contact Comparison
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C
D
E
F
S
1
*
*
*
*
*
*
*
*
*
*
*
S
2
*
*
*
*
*
*
*
*
*
*
*
LD*: 5 steps
DLD*: 9 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32
16
P
32
16
P
32
16
P
32 16
P
32
16
P
Operands:
S
1
: Data source value 1
S
2
: Data source value 2
Description:
1.
Compare the S1 and
S
2
. For example, “LD=” compares
S
1
and
S
2, and
if the comparison result
is “=”, the instruction is true. If they are not “=” the instruction is false.
2.
This instruction must be the first instruction of a rung.
API No.
16 -bit
instruction
32 -bit
instruction
Instruction is
true
Instruction is
false
224
LD
=
D
LD
=
S
1
=
S
2
S
1
≠
S
2
225
LD
>
D
LD
>
S
1
>
S
2
S
1
≦
S
2
226
LD
<
D
LD
<
S
1
<
S
2
S
1
≧
S
2
228
LD
<>
D
LD
<>
S
1
≠
S
2
S
1
=
S
2
229
LD
<=
D
LD
<=
S
1
≦
S
2
S
1
>
S
2
230
LD
>=
D
LD
>=
S
1
≧
S
2
S
1
<
S
2
3.
If a 32-bit counter is used with this instruction for comparison, be sure to use the 32-bit
instruction (DLD*). If the 16-bit instruction (LD*) is used with a 32-bit counter, a “Program
Error”, will occur and the red “ERROR” indicator on the ELC panel will blink.
Program Example:
1.
If the accumulated value of counter C10 is equal to K200, Y20=ON.
2.
When the content of D200 is less than or equal to K
–
30, and X1=ON, set Y21=ON.
LD=
K200
C10
Y20
LD<=
D200
K-30
X1
SET
Y21
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...