6 - 55 6 - 55
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.2.14 Incrementing and decrementing 32-bit BIN data
(DINC, DINCP, DDEC, DDECP)
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
K, H
Other
D
[Instruction Symbol] [Execution Condition]
indicates DINC/DDEC
Command
Command
P
D
DINC, DDEC
DINCP, DDECP
D
[Set Data]
Set Data Meaning Data Type
D
Head number of device what will execute the DINC (+1) or DDEC (-1)
operation
BIN 32 bits
[Functions]
DINC
(1) Adds 1 to the device designated by
D
(32-bit data).
+1
73500 (BIN)
73501 (BIN)
+1
D D
+1
D D
b31- -b16
b15- -b0
b31- -b16
b15- -b0
(2) If the contents of the device designated by
D
are 2147483647, and the DINC or DINCP
instruction is executed, the value -2147483648 will be stored at the device designated by
D
.
DDEC
(1) Subtracts 1 from the device designated by
D
(32-bit data).
+1
73500 (BIN)
73499 (BIN)
-1
D D
+1
D D
b31- -b16
b15- -b0
b31- -b16
b15- -b0
(2) If the contents of the device designated by
D
are 0, and the DINC or DINCP instruction is
executed, the value -1 will be stored at the device designated by
D
.
[Operation Errors]
(1) There are no operation errors associated with DINC(P) or DDEC(P).
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com