Mitsubishi Electric MELSEC-Q/L Programming Manual page 135

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 value to be input to (s2) is 0. (Division by 0)
Program example
■DIV_E
The program which performs division ((s1)  (s2)) on double word (signed) type data input to (s1) and (s2), and outputs the
quotient of the operation result from (d) in the same data type as that of (s1) and (s2).
[Structured ladder/FBD]
[ST]
g_bool3 := DIV_E(g_bool1, g_dint1, g_dint2, g_dint3);
(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.3 Standard Arithmetic Functions
5
QnU
LCPU
133

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents