Converting 16-Bit Unsigned Binary Data To 16-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 unsigned binary data to 16-bit signed binary
data
UINT2INT(P)
These instructions convert the 16-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)
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 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
Operation error
There is no operation error.
Structured text
Not supported
Range
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
MOVP
H0E000
D0
(s)
(d)
UINT2INT
D0
D100
Data type
16-bit unsigned binary
16-bit signed binary
Double word Indirect
specification
Z
LC
LZ
Before conversion
∙∙∙
(s)
b15
b0
D0
E000H
(57344)
Stores as is
6.5 Data Conversion Instructions
Data type (label)
ANY16_U
ANY16_S
Constant
Others
K, H
E
$
After conversion
∙∙∙
(d)
b15
b0
D100
E000H
(-8192)
6 BASIC INSTRUCTIONS
257
6

Advertisement

Table of Contents
loading

Table of Contents