Mitsubishi Electric MELSEC-Q/L Programming Manual page 172

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

Advertisement

Ex.
Underflow
T#-24d20h31m23s648ms
(80000000
)
H
Since the highest-order bit is 0, the result value is positive.
■Operation result
• Function without EN/ENO
An operation is executed and the operation value is output from (d).
• 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
• No operation error occurs.
Program example
■MUL_TIME(_E)
The program which performs multiplication ((s1)  (s2)) on time type data input to (s1) and the word (signed) type data input to
(s2), and outputs the operation result from (d) in time type.
• Function without EN/ENO (MUL_TIME)
[Structured ladder/FBD]
[ST]
g_time2 := MUL_TIME(g_time1, g_int1);
• Function with EN/ENO (MUL_TIME_E)
[Structured ladder/FBD]
[ST]
g_bool3 := MUL_TIME_E(g_bool1, g_time1, g_int1, g_time2);
5 APPLICATION FUNCTIONS
170
5.8 Functions of Time Data Type
2
(00000002
)
H
ENO
TRUE
*1
FALSE
T#0ms
(00000000
)
H
(d)
Operation output value
Undefined value

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents