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.

P0010

Code

P0010

Message

Feature requires IEC 61131-3:2013 (use –std-iec-61131-3=2013 flag)

This error occurs when an IEC 61131-3:2013 feature is used without enabling the 2013 standard.

Example

The following code will generate error P0010:

PROGRAM main
VAR
    duration : LTIME;
END_VAR
END_PROGRAM

The code uses LTIME, which is an IEC 61131-3:2013 data type and is not available in the default mode.

To fix this error, enable IEC 61131-3:2013 support with the --std-iec-61131-3 command line option when running the compiler:

ironplcc check --std-iec-61131-3=2013 myprogram.st