Double Decrement Bcd: Decl(095); Double Increment Binary: Inbl(096) - Omron CVM1D Operation Manual

Hide thumbs Also See for CVM1D:
Table of Contents

Advertisement

Increment/Decrement Instructions
Example
0000
00

5-22-6 DOUBLE DECREMENT BCD: DECL(095)

Ladder Symbol
Variations
j DECL(095)
Description
Precautions
Flags
Example
0000
00

5-22-7 DOUBLE INCREMENT BINARY: INBL(096)

Ladder Symbol
Variations
j INBL(096)
Description
Precautions
304
When CIO 000000 is ON in the following example, the content of D0100 and
D01001 is incremented by 1 as a BCD value.
(094)
INCL D01000
Wd+1: D01001
0 0 0 0
(095)
DECL Wd
When the execution condition is OFF, DECL(095) is not executed. When the ex-
ecution condition is ON, DECL(095) decrements the 8-digit BCD number con-
tained in Wd+1 and Wd, without affecting carry (CY). Wd+1 contains the 10
5
6
7
10
, 10
, and 10
Wd and Wd+1 must be BCD.
Note Refer to page 101 for general precautions on operand data areas.
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.
When CIO 000000 is ON in the following example, the content of D0100 and
D01001 is decremented by 1 as a BCD value.
(095)
DECL D01000
Wd+1: D01001
0 0 0 1
(096)
INBL
Wd
When the execution condition is OFF, INBL(096) is not executed. When the ex-
ecution condition is ON, INBL(096) increments the 8-digit binary number con-
tained in Wd+1 and Wd, without affecting carry (CY). Wd+1 contains the 16
5
6
7
16
, 16
, and 16
Refer to page 101 for general precautions on operand data areas.
Wd: D01000
Wd+1: D01001
+ 1
9 9 9 9
Operand Data Area
Wd: Word
CIO, G, A, DM
digits.
Wd: D01000
0 0 0 0
– 1
Operand Data Area
Wd: Word
CIO, G, A, DM
digits.
Section 5-22
Address Instruction
00000
LD
00001
INCL(094)
Wd: D01000
0 0 0 1
0 0 0 0
Address Instruction
00000
LD
00001
DECL(095)
Wd+1: D01001
Wd: D01000
0 0 0 0
9 9 9 9
Operands
000000
D01000
4
,
Operands
000000
D01000
4
,

Advertisement

Table of Contents
loading

Table of Contents