![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532309.webp)
(094)
INCL D01000
0000
00
0000
00
(095)
DECL D01000
304
Example
When CIO 000000 is ON in the following example, the content of D0100 and
D01001 is incremented by 1 as a BCD value.
Address
Instruction
Operands
00000
LD
000000
00001
INCL(094)
D01000
+ 1
Wd+1: D01001
Wd: D01000
0 0 0 0
9 9 9 9
Wd+1: D01001
Wd: D01000
0 0 0 1
0 0 0 0
5-22-6 DOUBLE DECREMENT BCD: DECL(095)
(095)
DECL Wd
Wd: Word
CIO, G, A, DM
Operand Data Area
Ladder Symbol
Variations
j
DECL(095)
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
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.
Example
When CIO 000000 is ON in the following example, the content of D0100 and
D01001 is decremented by 1 as a BCD value.
Address
Instruction
Operands
00000
LD
000000
00001
DECL(095)
D01000
– 1
Wd+1: D01001
Wd: D01000
0 0 0 1
0 0 0 0
Wd+1: D01001
Wd: D01000
0 0 0 0
9 9 9 9
5-22-7 DOUBLE INCREMENT BINARY: INBL(096)
(096)
INBL
Wd
Wd: Word
CIO, G, A, DM
Operand Data Area
Ladder Symbol
Variations
j
INBL(096)
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
4
,
16
5
, 16
6
, and 16
7
digits.
Refer to page 101 for general precautions on operand data areas.
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...