Download Print this page

Converting 32-Bit Unsigned Binary Data To 16-Bit Signed 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 unsigned binary data to 16-bit signed binary
data
UDINT2INT(P)
These instructions convert the 32-bit unsigned binary data in the device specified by (s) to 16-bit signed 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 unsigned binary data in the device specified by (s) to 16-bit signed 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 H56789ABC
D0
D1, D0
(s)
(d)
UDINT2INT
D0
D100
*1
Structured text
ENO:=UDINT2INT(EN,s,d);
ENO:=UDINT2INTP(EN,s,d);
Range
Data type
0 to 4294967295
32-bit unsigned binary
16-bit signed binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
b31
∙∙∙
b16
b15
∙∙∙
b0
5678H
9ABCH
(1450744508)
Data type (label)
ANY32_U
ANY16_S
BOOL
BOOL
Constant
Others
K, H
E
$
(d)
b15
∙∙∙
b0
D100
9ABCH
(-25924)
(1)
7 BASIC INSTRUCTIONS
7.5 Data Conversion Instructions
7
303

Hide quick links:

Advertisement

loading