5.1 Type Conversion Functions
5.1.35 Time type 
→
 bit type conversion
5-109
5
APPLICATION 
FUNCTIONS
TIME_TO_BOOL(_E)
TIME_TO_BOOL(_E)
Operation Error
No operation error occurs in the execution of the TIME_TO_BOOL(_E) function.
Program Example
The program which converts time type data input to   into bit type data, and outputs the 
operation result from  .
(a) Function without EN/ENO (TIME_TO_BOOL)
[Structured ladder]
[ST]
g_bool1 := TIME_TO_BOOL (g_time1);
(b) Function with EN/ENO (TIME_TO_BOOL_E)
[Structured ladder]
[ST]
g_bool3 := TIME_TO_BOOL_E (g_bool1, g_time1, g_bool2);
s
d