Converting 16-Bit Binary Data To String 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 binary data to string data

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents