Attention

IronPLC implements many parts of the IEC 61131-3 standard and is working toward full Structured Text support. Key features still missing include arrays and structures. Try it out in the IronPLC Playground.

LTIME

64-bit duration value representing an interval of time.

Note

LTIME is an IEC 61131-3:2013 (Edition 3) type. You must pass --std-iec-61131-3=2013 to the compiler. See ironplcc for details.

Size

64 bits (millisecond resolution)

Default

LTIME#0s

IEC 61131-3

Section 2.3.1 (Edition 3)

Support

Supported (requires --std-iec-61131-3=2013)

Example

Literals

LTIME#100ms
LTIME#5s
LTIME#1h30m
LTIME#500us

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

See Also

  • TIME — 32-bit duration

  • TON — on-delay timer

  • TOF — off-delay timer

  • TP — pulse timer

  • P0010 — error when Edition 3 flag is missing