Mitsubishi Electric MELSEC-Q/L Programming Manual page 61

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
4140
The input value is -0 or outside the following range.
-126
128
|(s)|<2
0, 2
4141
The operation result exceeds the following range. (An overflow occurs.)
1024
 | operation result |
2
Program example
■REAL_TO_LREAL(_E)
The program which converts single-precision real type data input to (s) into double-precision real type data, and outputs the
operation result from (d).
• Function without EN/ENO (REAL_TO_LREAL)
[Structured ladder/FBD]
[ST]
g_lreal1 := REAL_TO_LREAL(g_real1);
• Function with EN/ENO (REAL_TO_LREAL_E)
[Structured ladder/FBD]
[ST]
g_bool3 := REAL_TO_LREAL_E(g_bool1, g_real1, g_lreal1);
(d)
Operation output value
Undefined value
ENO
TRUE (No operation error)
*1
FALSE
(d)
Operation output value
Undefined value
Q00J/
QnH
QnPH
QnPRH
Q00/
Q01
5 APPLICATION FUNCTIONS
5.1 Type Conversion Functions
5
QnU
LCPU
59

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents