6-62
6.2 Arithmetic Operation Instructions
6.2.16 32-bit BIN data increment and decrement
DINC, DDEC
6.2.16
32-bit BIN data increment and decrement
DINC, DDEC
F
unct
i
on
DINC(P)
(1) Adds 1 to the variable (32-bit data) specified for
.
(2) When the instruction is executed with the variable specified for
, which value is
2147483647, the value 2147483648 is stored to the variable specified for
.
DDEC(P)
(1) Subtracts 1 from the variable (32-bit data) specified for
.
(2) When the instruction is executed with the variable specified for
, which value is 0, the
value 1 is stored to the variable specified for
.
DINC(P)
DDEC(P)
P: Executing condition
:
indicates any of the following
instructions.
DINC
DINCP
DDEC
DDECP
Input argument,
EN:
Executing condition
: Bit
Output argument,
ENO:
Execution result
: Bit
d:
Variable (32-bit data) to be incremented or decremented by 1 : ANY32
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
−
U
n
i
versa
l
UD
Hi
g
h
Per
f
ormance
Structured ladder
ST
DINC
EN
ENO
d
DINC
(EN, d);
ENO:=
d
d
b
0
b16 b15
73
5
00
(B
IN
)
b
3
1
73
5
0
1
(B
IN
)
+1
d
d
b
0
b16 b15
b
3
1
d
d
d
b
0
b16 b15
73
5
00
(B
IN
)
b
3
1
73
4
99
(B
IN
)
1
b
0
b16 b15
b
3
1
d
d
d
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......