![Omron CVM1D Operation Manual Download Page 306](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532306.webp)
(090)
INC
D00010
0000
00
301
5-22 Increment/Decrement Instructions
The Increment/Decrement Instructions all either increment or decrement a num-
ber by one.
The content of the source word is overwritten with the instruction result for all
increment/decrement instructions.
5-22-1 INCREMENT BCD: INC(090)
(090)
INC
Wd
Wd: Word
CIO, G, A, DM, DR, IR
Operand Data Area
Ladder Symbol
Variations
j
INC(090)
When the execution condition is OFF, INC(090) is not executed. When the ex-
ecution condition is ON, INC(090) increments Wd, without affecting carry (CY).
Wd must be BCD.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Wd is not BCD
Content of
*
DM word is not BCD when set for BCD.
EQ (A50006):
The result is 0.
Example
When CIO 000000 is ON in the following example, the content of D00010 is in-
cremented by 1 as a BCD value.
Address
Instruction
Operands
00000
LD
000000
00001
INC(090)
D00010
1
2
3
4
D00010
1
2
3
5
D00010
+ 1
5-22-2 DECREMENT BCD: DEC(091)
(091)
DEC
Wd
Wd: Word
CIO, G, A, DM, DR, IR
Operand Data Area
Ladder Symbol
Variations
j
DEC(091)
When the execution condition is OFF, DEC(091) is not executed. When the ex-
ecution condition is ON, DEC(091) decrements Wd, without affecting CY.
Wd must be BCD.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Wd 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...