6 - 53 6 - 53
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.2.13 Incrementing and decrementing 16-bit BIN data
(INC, INCP, DEC, DECP)
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 INC or DEC
Command
Command
P
D
D
INC, DEC
INCP, DECP
[Set Data]
Set Data Meaning Data Type
D
Head number of device conducting INC (add 1) or DEC (subtract 1)
operation
BIN 16 bits
[Functions]
INC
(1) Adds 1 to device designated by
D
(16-bit data).
+1 5679 (BIN)5678 (BIN)
b15- - - - - - - - - b0
D D
b15- - - - - - - - - b0
(2) If the contents of the device designated by
D
were 32767, and the INC or INCP instruction
were executed on that device, the value -32768 would be stored in the device designated by
D
.
DEC
(1) Subtracts 1 from device designated by
D
(16-bit data).
-1 5677 (BIN)5678 (BIN)
b15- - - - - - - - - b0
D D
b15- - - - - - - - - b0
(2) If the contents of the device designated by
D
were 0, and the DEC or DECP instruction were
executed on that device, the value -1 would be stored in the device designated by
D
.
[Operation Errors]
(1) There are no operation errors associated with the INC, INCP, DEC or DECP instructions.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com