6-71
DINC(P),DDEC(P)
1
2
3
4
4
6
7
8
6.2 Arithmetic Operation Instructions
6.2.17 Incrementing and decrementing 32-bit BIN data (DINC(P),DDEC(P))
6.2.17 Incrementing and decrementing 32-bit BIN data
(DINC(P),DDEC(P))
DINC(P),DDEC(P)
Function
DINC
(1) Adds 1 to the device designated by (32-bit data).
(2) When DINC/DINCP operation is executed for the device designated by , whose content is
2147483647, the value 2147483648 is stored at the device designated by .
DDEC
(1) Subtracts 1 from the device designated by (32-bit data).
(2) When DDEC/DDECP operation is executed for the device designated by , whose content
is 0, the value 1 is stored at the device designated by .
Operation Error
(1) There are no operation errors associated with the DINC(P) or DDEC(P).
: Head number of devices for DINC(+1) or DDEC(-1) operation (BIN 32 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn Constants Other
Bit Word Bit Word
––
Basic
Process
High
performance
Redundant
Universal
Command
Command
P
D
D
DINC, DDEC
DINCP, DDECP
indicates an instruction symbol of DINC/DDEC.
D
D
D
b0b16 b15
+1
73500 (BIN)
b31
73501 (BIN)
D D
+1
D
D
b0b16 b15b31
D
D
D
b0b16 b15
+1
73500 (BIN)
b31
73499 (BIN)
1
D
D
+1
D
D
b0b16 b15b31
D
D