Edition Support

Some IEC 61131-3 features require enabling a specific edition of the standard. See Enabling Dialects and 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 --dialect iec61131-3-ed3 (CLI) or ironplc.dialect: iec61131-3-ed3 (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

.%Xn

Partial access

Bit access via explicit partial-access syntax (equivalent to the .n short form; byte/word/dword/lword forms are not yet supported)

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.