Conversion From Bin 16-Bit Or 32-Bit To Character String (Str(P),Dstr(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.11.9
Conversion from BIN 16-bit or 32-bit to character string
(STR(P),DSTR(P))
STR(P),DSTR(P)
STR,DSTR
STRP,DSTRP
Setting
Data
S1
S2
D
Function
STR
(1) Adds a decimal point to the BIN 16-bit data designated by
, converts the data to character string data, and stores it in the area starting from the
S1
device number designated by
S1
S1
S2
S1
S1
+1
S2
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.
Command
Command
: Head number of the devices where the digits numbers for the numerical value to be converted are stored
S1
(BIN 16 bits)
: BIN data to be converted (BIN 16/32 bits)
S2
: Head number of the devices where the converted character string will be stored (character string)
D
Internal Devices
R, ZR
Bit
Word
––
D
Total number of digits
Number of digits in decimal fraction
.
Sign
BIN data
5
1
1 2
.
1 2 3
Ver.
High
Basic
performance
indicates an instruction symbol of STR/DSTR.
P
J
\
U
\G
Bit
Word
––
.
b15
ASCII code for the
(total number of digits -1)
D
th digit
ASCII code for the
(total number of digits -3)
D
th digit
ASCII code for the
(total number of digits -5)
D
th digit
ASCII code for the
D
(total number of digits -7)
th digit
D
b15
D
31
(1)
H
D
+1
2E
(.)
3
H
D
+2
00
H
STR(P),DSTR(P)
Process
Redundant Universal
S1
S2
D
D
S1
S2
Constants
Zn
K, H
––
––
at the location designated by
S2
b8b7
b0
ASCII code for the sign
ASCII code for the
(total number of digits -2)
th digit
ASCII code for the
Designated total
(total number of digits -4)
number of digits
th digit
ASCII code for the
(total number of digits -6)
th digit
00
H
Automatically stored at
the end of the character string
b8
b7
b0
2D
( )
32
(2)
H
33
(3)
H
1
2
LCPU
3
4
6
6
7
Other
––
8
––
––
7-205

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents