EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Converting 16-Bit Binary Data to String Data

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
659
7
Converting 16-bit binary data to string data
STR(P)(_U)
These instructions convert 16-bit binary data to a string by adding a decimal point to the specified place of the data.
Execution condition
Setting data
Description, range, data type
Applicable devices
Ladder ST
ENO:=STR(EN,s1,s2,d);
ENO:=STRP(EN,s1,s2,d);
ENO:=STR_U(EN,s1,s2,d);
ENO:=STRP_U(EN,s1,s2,d);
FBD/LD
Instruction Execution condition
STR
STR_U
STRP
STRP_U
Operand Description Range Data type Data type (label)
(s1) STR(P) Start device where the number of digits of the
conversion target data is stored
16-bit signed binary ANY16_S_ARRAY
(Number of elements: 2)
STR(P)_U 16-bit unsigned binary ANY16_U_ARRAY
(Number of elements: 2)
(s2) STR(P) Conversion target data -32768 to 32767 16-bit signed binary ANY16_S
STR(P)_U 0 to 65535 16-bit unsigned binary ANY16_U
(d) Start device for storing the converted character
string
String ANYSTRING_SINGLE
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s1) 
(s2) 
(d)  
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
(s1) (s2) (d)
EN ENO
ds1
s2

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals