Increment/Decrement Instructions; Increment Bcd: Inc(090); Decrement Bcd: Dec(091) - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Increment/Decrement Instructions

5-22 Increment/Decrement Instructions

5-22-1 INCREMENT BCD: INC(090)

Ladder Symbol
Variations
j INC(090)
Description
Precautions
Flags
Example
0000
00

5-22-2 DECREMENT BCD: DEC(091)

Ladder Symbol
Variations
j DEC(091)
Description
Precautions
Flags
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.
(090)
INC
Wd
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.
ER (A50003):
Wd is not BCD
Content of *DM word is not BCD when set for BCD.
EQ (A50006):
The result is 0.
When CIO 000000 is ON in the following example, the content of D00010 is in-
cremented by 1 as a BCD value.
(090)
INC
1
(091)
DEC
Wd
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.
ER (A50003):
Wd is not BCD
Content of *DM word is not BCD when set for BCD.
EQ (A50006):
The result is 0.
Operand Data Area
Wd: Word
CIO, G, A, DM, DR, IR
D00010
D00010
+ 1
2
3
4
Operand Data Area
Wd: Word
CIO, G, A, DM, DR, IR
Section 5-22
Address Instruction
Operands
00000
LD
00001
INC(090)
D00010
1
2
3
5
000000
D00010
301

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents