![Omron CVM1D Operation Manual Download Page 308](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532308.webp)
(093)
DECB D00020
0000
02
303
5-22-4 DECREMENT BINARY: DECB(093)
(093)
DECB Wd
Wd: Word
CIO, G, A, DM, DR, IR
Operand Data Area
Ladder Symbol
Variations
j
DECB(093)
When the execution condition is OFF, DECB(093) is not executed. When the ex-
ecution condition is ON, DECB(093) decrements Wd, without affecting carry
(CY). DECB(093) works the same way as DEC(091) except that it decrements a
binary value instead of a BCD value.
Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of
*
DM word is not BCD when set for BCD.
EQ (A50006):
The result is 0.
N (A50008):
Shows the status of bit 15 of Wd after execution.
Example
When CIO 000000 is ON in the following example, the content of D00020 is
decremented by 1 as a binary value.
Address
Instruction
Operands
00000
LD
000002
00001
DECB(093)
D00020
2
C
5
A
D00020
2
C
5
9
D00020
– 1
0
5-22-5 DOUBLE INCREMENT BCD: INCL(094)
(094)
INCL
Wd
Wd: Word
CIO, G, A, DM
Operand Data Area
Ladder Symbol
Variations
j
INCL(094)
When the execution condition is OFF, INCL(094) is not executed. When the ex-
ecution condition is ON, INCL(094) increments the 8-digit BCD number con-
tained in Wd+1 and Wd, without affecting carry (CY). Wd+1 contains the 10
4
,
10
5
, 10
6
, and 10
7
digits.
Wd and Wd+1 must be BCD.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Wd or Wd+1 is not BCD
Content of
*
DM word is not BCD when set for BCD.
EQ (A50006):
The result is 0.
Description
Precautions
Description
Precautions
Increment/Decrement Instructions
Section 5-22
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...