70
D320 PLC User's Manual
Comparison Instructions
Mnemonic
Command
Word
Double Word
Description
STR =
AND =
OR =
START =
AND =
OR =
A
= B
D C
= D
On if A(C) value and B(D) value are
the same.
STR <>
AND <>
OR <>
START <>
AND <>
OR <>
A
<> B
D C
<> D
On if A(C) value and B(D) value are
different. <> means the same as
≠
.
STR >
AND >
OR >
START >
AND >
OR >
A
> B
D C
> D
On if A(C) value is greater than B(D)
value.
STR >=
AND >=
OR >=
START >=
AND >=
OR >=
A
>= B
D C
>= D
On if A(C) value is greater than or
equal to B(D) value.
STR <=
AND <=
OR <=
START <=
AND <=
OR <=
A
<= B
D C
<= D
On if A(C) value is less than or equal
to B(D) value.
STR <
AND <
OR <
START <
AND <
OR <
A
< B
D C
< D
On if A(C) value is less than B(D)
value.
Substitution, Increment/Decrement Instructions
Note:
Application instructions that operate on double words (32-bit) are designated with a “D” in
front of the single word instruction. For example, DINC refers to double word decimal
increment, DDEC refers to double word decimal decrement, etc.
Mnemonic
Command
Word
Double Word
Description
LET
(DLET)
Let (Substitution)
LET
D =
S =
DLET
D =
S =
Store value of designated register S
into D.
INC
(DINC)
Decimal increment
INC
D =
DINC
D =
D value increased by 1 whenever
input is On.
DEC
(DDEC)
Decimal decrement
DEC
D =
DDEC
D =
D value decreased by 1 whenever
input is On.
INCB
(DINCB)
BCD increment
INCB
D =
DINCB
D =
D value increased by 1 (BCD)
whenever input is On.
DECB
(DDECB)
BCD decrement
DECB
D =
DDECB
D =
D value decreased by 1 (BCD)
whenever input is On.
Summary of Contents for D320 PLC
Page 1: ...D320 PLC User s Manual...
Page 18: ...6 D320 PLC User s Manual...
Page 28: ...16 D320 PLC User s Manual...
Page 34: ...22 D320 PLC User s Manual...
Page 78: ...66 D320 PLC User s Manual...
Page 176: ...164 D320 PLC User s Manual...
Page 210: ...198 D320 PLC User s Manual...
Page 258: ...246 D320 PLC User s Manual...