Converting 16-Bit Signed Binary Data To 32-Bit Signed Binary Data - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

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)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Data before conversion
(d)
Data after conversion
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(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
Operation error
There is no operation error.
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
(s)
MOVP
H0B000
D0
D0
(s)
(d)
INT2DINT
D0
D100
Structured text
Not supported
Range
Data type
16-bit signed binary
32-bit signed binary
Double word Indirect
specification
Z
LC
LZ
Before conversion
∙∙∙
b15
b0
B000H
D101, D100
(-20480)
Stores in lower 16 bits
Data type (label)
ANY16_S
ANY32_S
Constant
K, H
E
$
(d)
After conversion
∙∙∙
∙∙∙
b31
b16
b15
b0
FFFFH
B000H
(-20480)
Fills with the most significant
bit value prior to conversion.
6 BASIC INSTRUCTIONS
6.5 Data Conversion Instructions
6
Others
255

Advertisement

Table of Contents
loading

Table of Contents