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 |
|---|---|---|
Data type |
64-bit duration |
|
Data type |
64-bit calendar date |
|
Data type |
64-bit time of day |
|
Data type |
64-bit date and time of day |
|
Data type |
Reference (pointer) to a variable |
|
Operator |
Create a reference to a variable |
|
Operator |
Dereference a reference |
|
Literal |
Null reference value |
|
Partial access |
Select a bit (equivalent to the |
|
Object orientation |
Derive a function block type or interface from a base type |
|
Object orientation |
Declare that a function block type provides one or more interfaces |
|
Object orientation |
Mark a function block type as not directly instantiable |
|
Object orientation |
Declare an interface — a named set of method signatures |
|
Object orientation |
Declare a method on a function block type |
|
Object orientation |
Name the instance a method runs on, or that instance seen as its base type |
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.