Incrementing And Decrementing 32-Bit Bin Data (Dinc(P), Ddec(P)) - Mitsubishi MELSEC QS Series Programming Manual

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

DINC(P), DDEC(P)
6.2.6
Incrementing and decrementing 32-bit BIN data
(DINC(P), DDEC(P))
DINC(P), DDEC(P)
DINC, DDEC
DINCP, DDECP
Function
DINC
(1) Adds 1 to the device designated by
(2) When DINC/DINCP operation is executed for the device designated by
2147483647, the value
DDEC
(1) Subtracts 1 from the device designated by
(2) When DDEC/DDECP operation is executed for the device designated by
is 0, the value
Operation Error
(1) There are no operation errors associated with DINC(P) or DDEC(P).
6-20
6.2 Arithmetic Operation Instructions

6.2.6 Incrementing and decrementing 32-bit BIN data (DINC(P), DDEC(P))

Command
Command
: Start number of devices for DINC(+1) or DDEC(–1) operation (BIN 32 bits)
D
Internal Devices
Set
Data
Bit
Word
D
D
D
+1
D
b31
b16 b15
b0
73500 (BIN)
+1
2147483648 is stored at the device designated by
D
+1
D
b31
b16 b15
b0
73500 (BIN)
1 is stored at the device designated by
Constants
Others
––
(32-bit data).
D
+1
D
b31
b16 b15
b0
73501 (BIN)
(32-bit data).
D
D
+1
D
b31
b16 b15
b0
73499 (BIN)
1
.
D
indicates "DINC / DDEC".
D
P
D
, whose content is
D
.
D
, whose content
D

Advertisement

Table of Contents
loading

Table of Contents