Incrementing And Decrementing 16-Bit Bin Data (Inc, Incp, Dec, Decp) - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
6.2.13 Incrementing and decrementing 16-bit BIN data
(INC, INCP, DEC, DECP)
Internal Devices
Set
(System, User)
Data
Bit
Word
D
[Instruction Symbol] [Execution Condition]
INC, DEC
INCP, DECP
[Set Data]
Set Data
D
[Functions]
INC
(1) Adds 1 to device designated by
(2) If the contents of the device designated by
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
(2) If the contents of the device designated by
executed on that device, the value -1 would be stored in the device designated by
[Operation Errors]
(1) There are no operation errors associated with the INC, INCP, DEC or DECP instructions.
6 - 53
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
MELSECNET/10(H)
File
Direct J \
Register
Bit
Command
Command
Head number of device conducting INC (add 1) or DEC (subtract 1)
operation
(16-bit data).
D
D
b15- - - - - - - - - b0
5678 (BIN)
+1
D
b15- - - - - - - - - b0
5678 (BIN)
QCPU
PLC CPU
Basic
High Performance
Usable Devices
Special
Function
Module
Word
U \G
indicates INC or DEC
Meaning
D
b15- - - - - - - - - b0
5679 (BIN)
were 32767, and the INC or INCP instruction
D
(16-bit data).
D
D
b15- - - - - - - - - b0
-1
5677 (BIN)
were 0, and the DEC or DECP instruction were
D
MELSEC-Q/QnA
QnA
Process CPU
Index
Constant
Register
Other
K, H
Zn
D
P
D
Data Type
BIN 16 bits
.
D
6 - 53
Q4AR

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents