PLC

Time Data Types

Internally, TwinCAT treats the time data types like DWORD. For TIME and TOD you specify the time in milliseconds, for DATE and DT in seconds.

Data type
Lower bound
Upper bound
Memory space
TIME
0
4294967295
32 bit
TIME_OF_DAY (TOD)
0 (00:00:00:000)
4294967295 (23:59:59:999)
32 bit
DATE
0 (01.01.1970)
4294967295 (7 February 2106)
32 bit
DATE_AND_TIME (DT)
0 (01.01.1970, 00:00)
4294967295 (7 February 2106, 6:28:15)
32 bit

See also:

LTIME
TIME constants
DATE constants
DATE_AND_TIME constants
TIME_OF_DAY constants