Converting 16-Bit Signed Binary Data To 16-Bit Unsigned 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 16-bit unsigned binary
data
INT2UINT(P)
These instructions convert the 16-bit signed binary data in the device specified by (s) to 16-bit unsigned binary data, and store
the result in the device specified by (d).
Ladder diagram
(s)
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,
SM, F, B, SB
(s)
(d)
Processing details
• These instructions convert the 16-bit signed binary data in the device specified by (s) to 16-bit unsigned binary data, and
store the result in the device specified by (d).
SM402
M0
Operation error
There is no operation error.
6 BASIC INSTRUCTIONS
254
6.5 Data Conversion Instructions
(d)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
MOVP
HC000
INT2UINT
Structured text
Not supported
Range
Double word Indirect
U\G
Z
LC
Before conversion
(s)
b15
D0
D0
(s)
(d)
(-16384)
D0
D100
Data type
16-bit signed binary
16-bit unsigned binary
Constant
specification
LZ
K, H
∙∙∙
b0
C000H
D100
Stores as is
Data type (label)
ANY16_S
ANY16_U
Others
E
$
After conversion
∙∙∙
(d)
b15
b0
C000H
(49152)

Advertisement

Table of Contents
loading

Table of Contents