Use the LTIME_OF_DAY keyword (LTOD) to specify a time.
Syntax
<time keyword>#<time value> <time keyword> : LTIME_OF_DAY | ltime_of_day | LTOD | ltod <time value> : <hour>:<minute>:<second> <hour> : 0-23 <minute> : 0-59 <second> : 0.000-59.999999999
You can also specify fractions of a second. LTIME_OF_DAY literals are treated internally as LWORD and the value is resolved in nanoseconds.
Examples
PROGRAM POU
VAR
ltodClockTime : LTIME_OF_DAY := TIME_OF_DAY#15:36:30.123456789;
todEarliest : TIME_OF_DAY := TIME_OF_DAY#0:0:0;
todLatest : TOD := TOD#23:59:59.999999999;
END_VAR
For more information, see: ⮫ “Data Type: DATE”