Download Print this page

Converting 32-Bit Signed Binary Data To 16-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 16-bit unsigned binary
data
DINT2UINT(P)
These instructions convert the 32-bit signed binary data in the device specified by (s) to 16-bit unsigned binary data, and store
the converted data in the device specified by (d).
Ladder diagram
(s)
(d)
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 16-bit unsigned binary data, and
store the converted data in the device specified by (d).
SM402
M0
(1): Data before conversion is stored in the lower 16 bits.
Operation error
There is no operation error.
Word
T, ST, C, D, W,
U\G
SD, SW, R
(s)
DMOVP H87654321
D0
D1, D0
(s)
(d)
DINT2UINT
D0
D100
*1
Structured text
ENO:=DINT2UINT(EN,s,d);
ENO:=DINT2UINTP(EN,s,d);
Range
Data type
-2147483648 to +2147483647
32-bit signed binary
16-bit unsigned binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
b31
∙∙∙
b16
b15
∙∙∙
b0
8765H
4321H
(-2023406815)
Data type (label)
ANY32_S
ANY16_U
BOOL
BOOL
Constant
Others
K, H
E
$
(d)
b15
∙∙∙
b0
D100
4321H
(17185)
(1)
7 BASIC INSTRUCTIONS
7.5 Data Conversion Instructions
7
301

Hide quick links:

Advertisement

loading