Attention
IronPLC supports IEC 61131-3 Structured Text excluding I/O mapping.
P0010¶
- Code
P0010
- Message
Feature requires IEC 61131-3:2013 (use –dialect iec61131-3-ed3)
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:
CLI: Pass the
--dialectoption:ironplcc check --dialect iec61131-3-ed3 myprogram.st
VS Code: Set
ironplc.dialecttoiec61131-3-ed3in your extension settings. See Settings Reference for details.
See Enabling Dialects and Features for more about standard editions.