Incrementing And Decrementing 16-Bit Bin Data (Inc(P), Dec(P)) - Mitsubishi MELSEC QS Series Programming Manual

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

Advertisement

INC(P), DEC(P)
6.2.5
Incrementing and decrementing 16-bit BIN data
(INC(P), DEC(P))
INC(P), DEC(P)
INC, DEC
INCP, DECP
Function
INC
(1) Adds 1 to the device designated by
(2) When INC/INCP operation is executed for the device designated by
32767, the value
DEC
(1) Subtracts 1 from the device designated by
(2) When DEC/DECP operation is executed for the device designated by
32768, the value 32767 is stored at the device designated by
Operation Error
(1) There are no operation errors associated with the INC(P)/DEC(P) instruction.
6-18
6.2 Arithmetic Operation Instructions

6.2.5 Incrementing and decrementing 16-bit BIN data (INC(P), DEC(P))

Command
Command
: Start number of devices for INC (+1)/DEC (
D
Internal Devices
Set
Data
Bit
Word
D
D
D
b15
b0
5678 (BIN)
+1
32768 is stored at the device designated by
D
b15
b0
5678 (BIN)
1) operation (BIN 16 bits)
Constants
Others
––
(16-bit data).
D
b15
b0
5679 (BIN)
(16-bit data).
D
D
b15
b0
5677 (BIN)
1
indicates "INC / DEC".
D
P
D
, whose content is
D
.
D
, whose content is
D
.
D

Advertisement

Table of Contents
loading

Table of Contents