Incrementing And Decrementing 16-Bit Bin Data: Inc, Dec - Mitsubishi Electric MELSEC Q Series Programming Manual

Motion controller
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU

5.4.7 Incrementing and decrementing 16-bit BIN data: INC, DEC

Setting
data
X
Y
M
(D)
[Setting data]
[Function]
Bit device
SM
F
T
C
D
[Instruction]
Command
INC
Command
DEC
Setting data
(D)
(1) Incrementing 16-bit BIN data (INC)
• Adds 1 to the device designated by (D) (16-bit data).
• When INC operation is executed for the device designated by (D), whose
content is 32767, the value -32768 is stored at the device designated by (D).
(2) Decrementing 16-bit BIN data (DEC)
• Subtracts 1 from the device designated by (16-bit data).
• When DEC operation is executed for the device designated by (D), whose
content is -32768, the value 32767 is stored at the device designated by (D).
Usable device
Word device
W
T
C
SD
Z
Number of devices for INC (+1)/DEC (-1) operation (BIN 16 bits)
5 - 38
Constant
Pointer
Level
K
H
P
N
INC
(D)
DEC
(D)
Description
Digit
desig-
Index
nation
: Usable

Advertisement

Table of Contents
loading

Table of Contents