LTIME

64-bit duration value representing an interval of time.

Note

This feature requires IEC 61131-3 Edition 3. Use --dialect iec61131-3-ed3 or the rusty dialect to enable it. See Enabling Dialects and Features for details.

Size

64 bits (millisecond resolution)

Default

LTIME#0s

IEC 61131-3

Section 2.3.1 (Edition 3)

Support

Supported (Edition 3)

Example

a := LTIME#1h;
b := LTIME#30m;
c := a + b;  (* c = LTIME#1h30m *)

Literals

LTIME#100ms
LTIME#5s
LTIME#2h
ltime#-500ms

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

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