[TIDAY] Time of day functions

Function block TIDAY adds or subtracts a time period to/from a time of day.

Function block TIDAY adds or subtracts a time period to/from a time of day. A time period can also be added while simultaneously subtracting a time period. The resulting time of day is provided on output [Out]. The result is split into values for hour, minute, second, and millisecond.

Pins

Input

Description

Data type

Default value
Value range

In

Input

TimeOfDay

00:00:00.000

TiAdd

Time to add

Time

0 ms

TiSub

Time to subtract

Time

0 ms

 

Output

Description

Data type

Default value
Value range

Out

Output

TimeOfDay

00:00:00.000

Hour

Hour

Integer

0

0…23

Minute

Minute

Integer

0

0…59

Second

Second

Integer

0

0…59

Mscnd

Millisecond

Integer

0

0…999