50 D50 PLC User's Manual
Comparison Instructions
Mnemonic Command Byte Word Description
STR =
AND =
OR =
START =
AND =
OR =
A
=B
DC
=D
On if A(C) value and B(D) value are
the same.
STR <>
AND <>
OR <>
START <>
AND <>
OR <>
A
<>B
DC
<>D
On if A(C) value and B(D) value are
different. <> means the same as ≠.
STR >
AND >
OR >
START >
AND >
OR >
A
>B
DC
>D
On if A(C) value is greater than B(D)
value.
STR >=
AND >=
OR >=
START >=
AND >=
OR >=
A
>=B
DC
>=D
On if A(C) value is greater than or
equal to B(D) value.
STR <=
AND <=
OR <=
START <=
AND <=
OR <=
A
<=B
DC
<=D
On if A(C) value is less than or equal
to B(D) value.
STR <
AND <
OR <
START <
AND <
OR <
A
<B
DC
<D
On if A(C) value is less than B(D)
value.
Substitution, Increment/Decrement Instructions
Note: Application instructions that operate in double mode on whole words (16-bit) are designated
with a “D” in front of the single mode instruction. For example, DINC refers to double mode
word decimal increment, DDEC refers to double mode word decimal decrement, etc.
Mnemonic Command Byte 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.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com