5.8 Functions of Time Data Type
(4) Rounding error may occur when specifying single-precision real or double-precision real
type data to by programming tool.
For the precautions on setting the input value by the programming tool, refer to
MELSEC-Q/L/F Structured Programming Manual (Fundamentals).
(1) Function without EN/ENO
An operation is executed and the operation value is output from .
(2) Function with EN/ENO
The following table shows the executing conditions and operation results.
*1: When FALSE is output from ENO, the data output from is undefined.
In this case, create a program so that the data output from is not used.
An operation error occurs in the following cases.
• The value input to is 0. (Division by zero) (Error code: 4100)
The program which performs division ( ) on time type data input to and the word
(signed) type data input to , and outputs the quotient of the operation result from in time
(a) Function without EN/ENO (DIV_TIME)
g_time2:= DIV_TIME(g_time1, g_int1);
(b) Function with EN/ENO (DIV_TIME_E)
g_bool3 := DIV_TIME_E(g_bool1, g_time1, g_int1, g_time2);
TRUE (Operation execution)
Operation output value
FALSE (Operation stop)