TIME

Duration value representing an interval of time.

Size

32 bits (millisecond resolution)

Default

T#0s

IEC 61131-3

Section 2.3.1

Support

Supported

Supported units: days (d), hours (h), minutes (m), seconds (s), milliseconds (ms). Units are case-insensitive, so T#5S and T#5s are equivalent. The prefix T# (or TIME#) is likewise case-insensitive.

Literals

T#100ms
T#2s
T#-500ms
TIME#5S

Example

duration := T#2s;

See Also

  • LTIME — 64-bit duration (Edition 3)

  • TON — on-delay timer

  • TOF — off-delay timer

  • TP — pulse timer

  • DATE — calendar date

  • TIME_OF_DAY — time of day