Download Print this page

Converting 16-Bit Signed Binary Data To 32-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 16-bit signed binary data to 32-bit signed binary data

INT2DINT(P)
These instructions convert the 16-bit signed binary data in the device specified by (s) to 32-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 16-bit signed binary data in the device specified by (s) to 32-bit signed binary data, and store
the converted data in the device specified by (d).
SM402
M0
(1): The most significant bit of data before conversion is stored.
(2): 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)
MOVP
H0B000
D0
D0
(s)
(d)
INT2DINT
D0
D100
*1
Structured text
ENO:=INT2DINT(EN,s,d);
ENO:=INT2DINTP(EN,s,d);
Range
Data type
-32768 to +32767
16-bit signed binary
32-bit signed binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
b15
∙∙∙
b0
B000H
D101, D100
(-20480)
Data type (label)
ANY16_S
ANY32_S
BOOL
BOOL
Constant
K, H
E
$
(d)
b31
∙∙∙
b16
b15
∙∙∙
b0
FFFFH
B000H
(-20480)
(1)
(2)
7 BASIC INSTRUCTIONS
7.5 Data Conversion Instructions
7
Others
295

Hide quick links:

Advertisement

loading