TIME_OF_DAY ConstantsΒΆ
You use this constant to define the time of day.
Syntax:
tod# <time of data declaration>
As an alternative, you can use the following styles of syntax instead of tod#: TOD#, time_of_day, TIME_OF_DAY.
You must define the time of day declaration in the format <hour:minute:second>.
You can define seconds as real numbers or define fractions of a second.
CODESYS treats TIME_OF_DAY (TOD) values internally just like DWORD. The time is given in milliseconds, beginning at 00:00.
Examples:
TIME_OF_DAY#15:36:30.123 tod#00:00:00
See also