Mitsubishi Electric MELSEC-Q/L Programming Manual page 66

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

Advertisement

■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
The input value is outside the range of -3.40282
-38
1.17549
to 3.40282
Program example
■REAL_TO_STR(_E)
The program which converts single-precision real type data input to (s) into string type (exponential form) data, and outputs
the operation result from (d).
• Function without EN/ENO (REAL_TO_STR)
[Structured ladder/FBD]
[ST]
g_string1 := REAL_TO_STR(g_real1);
• Function with EN/ENO (REAL_TO_STR_E)
[Structured ladder/FBD]
[ST]
g_bool3 := REAL_TO_STR_E(g_bool1, g_real1, g_string1);
5 APPLICATION FUNCTIONS
64
5.1 Type Conversion Functions
ENO
TRUE (No operation error)
*1
FALSE
+38
to -1.17549
+38
(d)
Operation output value
Undefined value
Q00J/
QnH
Q00/
Q01
-38
, 0 or
(d)
Operation output value
Undefined value
QnPH
QnPRH
QnU
LCPU

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents