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