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

Ladder diagrams
Hide thumbs Also See for SYSMAC CV 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
314
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 115 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
D00010
1
2
3
4
(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 115 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
1
2
3
Operand Data Area
Wd: Word
CIO, G, A, DM, DR, IR
Section 5-22
Address Instruction
00000
LD
00001
INC(090)
5
Operands
000000
D00010

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents