![Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual Download Page 247](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114247.webp)
7 BASIC INSTRUCTIONS
7.2 Arithmetic Operation Instructions
245
7
Incrementing 16-bit binary data
INC(P)(_U)
These instructions add +1 to the device (16-bit binary data) specified by (d).
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
Processing details
• These instructions add +1 to the device (16-bit binary data) specified by (d).
• If INC(P) instruction is executed when contents of device specified by (d) is 32767, -32768 is stored in the device specified
by (d). (If signed is specified)
• If INC(P)_U instruction is executed when contents of device specified by (d) is 65535, 0 is stored in the device specified by
(d). (If unsigned is specified)
• Flags (zero, carry and borrow) are not activated at this time.
Precautions
Note that data is incremented in every operation cycle in a continuous operation type (INC) instruction.
Operation error
There is no operation error.
Ladder diagram
Structured text
ENO:=INC(EN,d);
ENO:=INCP(EN,d);
ENO:=INC_U(EN,d);
ENO:=INCP_U(EN,d);
FBD/LD
Operand
Description
Range
Data type
Data type (label)
(d)
INC(P)
Device to be incremented by +1
-32768 to +32767
16-bit signed binary
ANY16_S
INC(P)_U
0 to 65535
16-bit unsigned binary
ANY16_U
EN
Execution condition
Bit
BOOL
ENO
Execution result
Bit
BOOL
Operand
Bit
Word
Double word Indirect
specification
Constant
Others
X, Y, M, L, SM,
F, B, SB, S
T, ST, C, D, W,
SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(d)
(d)
EN
ENO
d
(d)
(d)
5678 (BIN)
5679 (BIN)
+1
b15
b0
···
b15
b0
···
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......