5-174
5.8 Functions of Time Data Type
5.8.1 Addition
ADD_TIME(_E)
Operation Error
No operation error occurs in the execution of the ADD_TIME(_E) function.
Program Example
The program which performs addition ( + ) on time type data input to and , and outputs
the operation result from in time type.
(a) Function without EN/ENO (ADD_TIME)
[Structured ladder]
[ST]
g_time3:= ADD_TIME(g_time1, g_time2);
(b) Function with EN/ENO (ADD_TIME_E)
[Structured ladder]
[ST]
g_bool3 := ADD_TIME_E(g_bool1, g_time1, g_time2, g_time3);
s1
s2
s1
s2
d