Converting 32-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 32-bit binary data to string data

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents