Mitsubishi Electric MELSEC-Q/L Programming Manual page 572

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• In a case where the ASCII code "30H (0) " exists between the character "E" and a number in an exponent format character
string, the "30H" would be ignored when the conversion is performed.
b15
b8b7
20
(space)
H
2E
(.)
H
34
(4)
H
33
(3)
H
2B
(+)
H
33
(3)
H
00
H
. 0 4 5 3 E + 0 3
-
1
• If the "20H" (space) code is contained in the character string, the code is ignored in the conversion.
• Up to 24 characters can be set for a character string. The codes "20H" (space) and "30H" (0) contained in the character
string are also counted as a character.
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
Error details
code
4100
The improper data as shown below, which cannot be converted into (S),
have been set.
• The characters other than "30H"(0) to "39H"(9) exist in the integral part or
decimal part.
• Two or more "2EH"(.) exist in the character string.
• The characters other than "45H"(E), "65H" (e), "2BH" (+), "2DH" (-) exist in
the character string.
• The multiple exponents of "45H" (E), "65H" (e) exist in the character string.
• Three digits or more numeric values are described on the exponents in the
character string.
• Multiple codes exist on the exponent of "2BH"(+), "2DH(-)" in the character
string.
• Multiple codes of "2BH"(+), "2DH(-)" exist in the positive number part of
the character string in a decimal point format; in the mantissa part of the
character string in an exponential format.
The number of character at (S) or later exceeds 0 or 24 characters.
4101
There is no NULL code "00H" within the range of the corresponding devices
starting from the device number specified by (S).
4141
The operation result exceeds the following range.
(when an overflow occurs)
| Data after conversion | < 2
7 APPLICATION INSTRUCTIONS
570
7.11 Character String Processing Instructions
b0
2D
(-)
H
31
(1)
H
D
30
(0)
H
-1 . 0 4 5 3 E + 3
35
(5)
H
45
(E)
H
30
(0)
H
Ignored
128
+1
D
Q00J/
Q00/
Q01
QnH
QnPH
QnPRH
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents