Mitsubishi Electric MELSEC-Q/L Programming Manual page 63

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.
-1022
1024
|(s)|<2
0, 2
4141
The operation result exceeds the following range. (An overflow occurs.)
128
 | operation result |
2
Program example
■LREAL_TO_REAL(_E)
The program which converts double-precision real type data input to (s) into single-precision real type data, and outputs the
operation result from (d).
• Function without EN/ENO (LREAL_TO_REAL)
[Structured ladder/FBD]
[ST]
g_real1 := LREAL_TO_REAL(g_lreal1);
• Function with EN/ENO (LREAL_TO_REAL_E)
[Structured ladder/FBD]
[ST]
g_bool3 := LREAL_TO_REAL_E(g_bool1, g_lreal1, g_real1);
(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
61

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents