Download Print this page

Converting 32-Bit Signed Binary Data To 32-Bit Unsigned 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

Converting 32-bit signed binary data to 32-bit unsigned binary
data
DINT2UDINT(P)
These instructions convert the 32-bit signed binary data in the device specified by (s) to 32-bit unsigned binary data, and store
the converted data in the device specified by (d).
Ladder diagram
(s)
FBD/LD
EN
ENO
s
d
*1 Supported by engineering tool version "1.035M" and later.
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Data before conversion
(d)
Data after conversion
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
Processing details
• These instructions convert the 32-bit signed binary data in the device specified by (s) to 32-bit unsigned binary data, and
store the converted data in the device specified by (d).
SM402
M0
(1): The value is stored as is.
Operation error
There is no operation error.
7 BASIC INSTRUCTIONS
302
7.5 Data Conversion Instructions
(d)
Word
T, ST, C, D, W,
SD, SW, R
DMOVP H76543210
D0
(s)
(d)
DINT2UDINT
D0
D100
Structured text
ENO:=DINT2UDINT(EN,s,d);
ENO:=DINT2UDINTP(EN,s,d);
Range
-2147483648 to +2147483647
Double word Indirect
U\G
Z
LC
(s)
b31
∙∙∙
b16
b15
∙∙∙
D1, D0
7654H
3210H
(-2309737968)
*1
Data type
32-bit signed binary
32-bit unsigned binary
Bit
Bit
Constant
specification
LZ
K, H
b0
(d)
b31
D101, D100
7654H
(1)
Data type (label)
ANY32_S
ANY32_U
BOOL
BOOL
Others
E
$
∙∙∙
b16
b15
∙∙∙
b0
3210H
(1985229328)

Hide quick links:

Advertisement

loading