P9003

Code

P9003

Message

POU body language is not supported

This error occurs when a PLCopen XML file contains a POU (Program Organization Unit) with a body language that is not yet supported by the compiler.

Example

The following XML uses Ladder Diagram (LD), which is not supported:

<pou name="MyProgram" pouType="program">
  <body>
    <LD>
      <!-- Ladder Diagram content -->
    </LD>
  </body>
</pou>

Supported Languages

Fully Supported:

  • Structured Text (ST) - Text-based programming language

Checked but Not Yet Compiled:

  • Sequential Function Chart (SFC) - State-machine based programming with ST action bodies. ironplcc check parses and checks SFC bodies, but compiling one reports P9999.

Not Supported:

  • Function Block Diagram (FBD) - Graphical language

  • Ladder Diagram (LD) - Graphical language

  • Instruction List (IL) - Deprecated text-based language

To fix this error, convert the POU body to Structured Text (ST) or use a different tool that supports the graphical languages.

Think IronPLC is wrong about this?

If you believe this diagnostic is incorrect, open an issue on GitHub with a small sample that demonstrates the problem.