Attention

IronPLC implements many parts of the IEC 61131-3 standard and is working toward full Structured Text support. Key features still missing include ranges, enum and I/O mapping.

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

Example

Literals

T#100ms
T#2s
T#1h30m
T#5d12h30m15s
TIME#500us

Components can be combined: days (d), hours (h), minutes (m), seconds (s), milliseconds (ms), microseconds (us).

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