Mitsubishi MELSEC Q Series Programming Manual page 580

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

Advertisement

STR(P),DSTR(P)
(2) The total number of digits that can be designated by
(3) The number of digits that can be designated by
0 to 5.
However, the number of digits following the decimal point must be smaller than or equal to
the total number of digits minus 3.
(4) BIN data in the range between
(5) After conversion, character string data is stored at the device number
number as indicated below:
(a) The sign "20
(minus sign) will be stored if it is negative.
(b) If the setting for the number of digits after the decimal fraction is anything other than "0",
"2E
number of digits.
If the number of digits in the decimal fraction part of the number is "0", the ASCII code
"2E
(c) If the total number of digits following the decimal fraction is greater than the number of
BIN data digits, a zero will be added automatically and the number converted by shifting
to the right, so that it would become "0.
(d) If the total number of digits excluding the sign and the decimal point is greater than the
number of BIN data digits, "20
numeric value.
If the number of BIN digits is greater, an error will be returned.
(e) The value "00
7-206
32768 and 32767 can be designated at
" (space) will be stored if the BIN data is positive, and the sign "2D
H
" (.) will automatically be stored at the position before the first of the specified
H
Total number of digits
Number of digits
in decimal fraction
BIN data
" (.) will not be stored.
H
Total number of digits
Number of digits
in decimal fraction
BIN data
Total number of digits
Number of digits
in decimal fraction
BIN data
" is automatically stored at the end of the converted character string.
H
is from 2 to 8.
S1
+1 as a part of the decimal fraction is from
S1
6
2
1 2 3 4
1 2 3 4
".
6
3
0 .
1 2
Automatically added
" (space) will be stored between the sign and the
H
8
1
1 2 3
.
S2
or later device
D
"
H
.
Number of digits in decimal fraction
Automatically added
0
1 2
1 2
. 3
Filled with 20
(space)
H

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents