Download Print this page

Incrementing 32-Bit Binary Data - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Incrementing 32-bit binary data

DINC(P)(_U)
These instructions add +1 to the device (32-bit binary data) specified by (d).
Ladder diagram
(d)
FBD/LD
EN
ENO
d
Setting data
■Descriptions, ranges, and data types
Operand
Description
(d)
DINC(P)
Head device to be incremented by +1
DINC(P)_U
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(d)
Processing details
• These instructions add +1 to the contents of device (32-bit binary data) specified by (d).
(d)
(d)+1
(d)+1
b31
b16 b15
b31
···
···
b0
73500 (BIN)
+1
• If DINC(P) instruction is executed when contents of device specified by (d) is 2147483647, -2147483648 is stored in the
device specified by (d). (If signed is specified)
• If DINC(P)_U instruction is executed when contents of device specified by (d) is 4294967295, 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 instruction.
Operation error
There is no operation error.
Word
T, ST, C, D, W,
U\G
SD, SW, R
(d)
b16 b15
···
···
b0
73501 (BIN)
Structured text
ENO:=DINC(EN,d);
ENO:=DINCP(EN,d);
Range
Data type
-2147483648 to +2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
7.2 Arithmetic Operation Instructions
ENO:=DINC_U(EN,d);
ENO:=DINCP_U(EN,d);
Data type (label)
ANY32_S
ANY32_U
BOOL
BOOL
Constant
Others
K, H
E
$
7 BASIC INSTRUCTIONS
247
7

Hide quick links:

Advertisement

loading