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.

Edition Support

Some IEC 61131-3 features require enabling a specific edition of the standard. See Enabling Features for how to enable an edition in the compiler or VS Code extension.

Edition 3 (2013) Features

Edition 3 introduced the following features, which require --std-iec-61131-3=2013 (CLI) or ironplc.std61131Version: 2013 (VS Code).

Feature

Category

Description

LTIME

Data type

64-bit duration

LDATE

Data type

64-bit calendar date

LTIME_OF_DAY

Data type

64-bit time of day

LDATE_AND_TIME

Data type

64-bit date and time of day

REF_TO

Data type

Reference (pointer) to a variable

REF()

Operator

Create a reference to a variable

^

Operator

Dereference a reference

NULL

Literal

Null reference value

Edition 2 (2003) Features

All other supported features use the default Edition 2 and require no additional flags. See Language Reference for the complete language reference.