Converting 16-Bit Signed Binary Data To 16-Bit Unsigned Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Converting 16-bit signed binary data to 16-bit unsigned binary
data
INT2UINT(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions convert the specified 16-bit signed binary data to 16-bit unsigned binary data.
Ladder
(s)
FBD/LD
EN
ENO
s
d
*1 The engineering tool with version "1.035M" or later supports the ST.
■Execution condition
Instruction
INT2UINT
INT2UINTP
Setting data
■Description, range, data type
Operand
Description
(s)
Binary data or the label where the binary data is stored
(d)
Label for storing the converted binary data
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s)
(d)
The INT2UINT(P) instruction is used in programming using labels. The purpose of using this instruction is to
match the data type of the specified label with the data type that can be specified by the instruction operand.
In programming using devices, use of the INT2UINT(P) instruction is not required.
6 BASIC INSTRUCTIONS
402
6.6 Data Conversion Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(d)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
*1
ST
ENO:=INT2UINT(EN,s,d);
ENO:=INT2UINTP(EN,s,d);
Range
-32768 to 32767
Double word
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
Data type
Data type (label)
16-bit signed binary
ANY16_S
16-bit unsigned binary
ANY16_U
Bit
BOOL
Bit
BOOL
Indirect
Constant
specification
LZ
K, H E
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents