Incrementing 16-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Incrementing 16-bit binary data

INC(_U)
These instructions increment the specified 16-bit binary data by one.
ST
ENO:=INC(EN,d);
■Execution condition
Instruction
INC
INC_U
Setting data
■Description, range, data type
Operand
Description
(d)
INC
Increment target device
INC_U
EN
Execution condition
ENO
Execution result
■Applicable devices/labels
Operand
Bit
SB
(d)
Processing details
• These instructions increment the 16-bit binary data in the device specified by (d) by one.
(d)
b15
b0
···
5678 (BIN)
+1
• When the INC instruction is executed while the data in the device specified by (d) is 32767, -32768 is stored in the device
specified by (d).
• When the INC_U instruction is executed while the data in the device specified by (d) is 65535, 0 is stored in the device
specified by (d).
Operation error
There is no operation error.
6 BASIC INSTRUCTIONS
72
6.1 Arithmetic Operation Instructions
Execution condition
RX, RY, LB
(d)
b15
b0
···
5679 (BIN)
ENO:=INC_U(EN,d);
Range
-32768 to 32767
0 to 65535
Word
SW
G, RWw, RWr, LW
Data type
ANY16_S
ANY16_U
BOOL
BOOL
Constant
K, H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents