Attention

IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.

P9001

Code

P9001

Message

Referenced type is valid but not implemented

The referenced type is declared by the IEC 61131-3 specification, however this compiler does not provide an implementation.

This error occurs when a standard library type is used that is not yet implemented in this compiler.

Example

The following code will generate error P9001:

FUNCTION_BLOCK DUMMY
VAR_INPUT
    name : TON;  (* Error: TON type not implemented *)
END_VAR
END_FUNCTION_BLOCK

The TON (Timer On Delay) type is part of the IEC 61131-3 standard library but is not yet implemented in this compiler.

To fix this error, use an alternative approach or wait for the type to be implemented:

FUNCTION_BLOCK DUMMY
VAR_INPUT
    name : BOOL;  (* Use a basic type instead *)
END_VAR
END_FUNCTION_BLOCK