Mitsubishi Electric MELSEC-Q/L Programming Manual page 88

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

Advertisement

• When '20H' (space) or '30H' (0) exists before the first 0 in string type data, the conversion is executed ignoring '20H' and
'30H'.
Ex.
Decimal form
-
0
1
.
3
5
0 3 4
Neglected
Ex.
Exponential form
-
0
1
.
3
5
0 3 4 E - 1 0
Neglected
• When '30H (0)' exists between 'E' and a numeric value in string type data (exponential form), the conversion is executed
ignoring '30H'.
-
1
.
3
5
0 3 4 E - 0 2
Ignored.
• When '20H' (space) exists in the character string, the conversion is executed ignoring '20H'.
• String type data can contain up to 24 characters. '20H' (space) and '30H' (0) in the character string are counted as one
character.
• The value to be input to (s) is string type data within the following range. ASCII code: '30H' to '39H', '45H', '2BH', '2DH',
'2EH', '20H', and '00H'
■Operation result
• Function without EN/ENO
The following table shows the operation results.
Operation result
No operation error
Operation error
• Function with EN/ENO
The following table shows the executing conditions and operation results.
EN
TRUE (Operation execution)
FALSE (Operation stop)
*1 When FALSE is output from ENO, the data output from (d) is undefined. In this case, create a program so that the data output from (d) is
not used.
Operation error
• An operation error occurs in the following cases.
Error
Description
code
4100
Any characters other than '30H' to '39H' exist in the integer or fractional part.
Two or more "2EH"(.) exist.
Any characters other than "45H"(E), "2BH"(+), or "2DH"(-) exist in the
exponent part, or more than one exponent parts exist.
The data after conversion is outside the range of -3.40282
-38
0 or 1.17549
The number of characters is 0 or exceeding 24.
5 APPLICATION FUNCTIONS
86
5.1 Type Conversion Functions
-1.35034
Single-precision real type
-1.35034E-10
Single-precision real type
-1.35034E-2
Single-precision real type
ENO
TRUE
FALSE
+38
to 3.40282
(d)
Operation output value
Undefined value
*1
Q00J/
Q00/
Q01
+38
-38
to -1.17549
,
(d)
Operation output value
Undefined value
QnH
QnPH
QnPRH
QnU
LCPU

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents