PNIO Status (Error Code) Permalink

The ‎PNIOStatus‎ is an 8-digit hexadecimal code that is not part of the PROFINET diagnosis in the strict sense. The ‎PNIOStatus‎ is an error/abort code for failed services and is issued, for example, in the case of log errors or failed connection attempts. The user usually encounters it only when using an acyclic read/write service (‎RDREC / WRREC‎) or when establishing a connection to a device.

The value is interpreted as a 4-byte array with the following elements:

‎ErrorCode‎

0x40

CODESYS

CODESYS-specific errors, see: ‎CommFB.ErrorCode‎

0x81

PNIO

Errors which are not otherwise described here.

0xCF

RTA error

Error, connection termination

0xDA

AlarmAck

Error in alarm handling

0xDB

IODConnectRes

RPC-PDU1

0xDC

IODReleaseRes

RPC-PDU1

0xDD

IODControlRes

IOXControlRes (RPC-PDU1)

0xDE

IODReadRes

Errors in acyclic reading (RPC2, only with ErrorDecode=PNIORW).

0xDF

IODWriteRes

Errors in acyclic writing (RPC2, only with ErrorDecode=PNIORW).

‎ErrorDecode‎

0x80

PNIORW

Used in the context of errors in acyclic reading. Equivalent to IEC 61158-6-3 (DPV1).

0x81

PNIO

In the context of remaining services or for internal errors such as RPC2 errors.

‎ErrorCode1‎

Value of ‎ErrorCode1‎ (see table)

‎ErrorCode2‎

Value of ‎ErrorCode2‎ (see table)

1Remote Procedure Call - Protocol Data Units

2Remote Procedure Call

Table 498: ErrorCode1

For ‎ErrorDecode‎ = PNIORW, see ‎CommFB.ErrorCode_RW‎.

For ‎ErrorDecode‎ = PNIO

0x01–0x0D

Connect parameter error.

0x14–0x38

Other PDU related errors.

0x3D

Device protocol machine.

0x3E

Controller protocol machine.

0x3F

Controller protocol machine for discovery, IP, and name assignment.

0x40–0xD3

Other state machine errors.

0xFD

Protocol errors: Abort reason

See table ‎ErrorCode2‎

Table 499: ErrorCode2

For ‎ErrorDecode‎ = PNIO and ‎ErrorCode1‎ = 0xFD

‎0x05‎

AR consumer DHT expired.

‎0x06‎

AR CMI timeout

‎0x0B‎

AR alarm.ind (err)

‎0x0D‎

AR abort.req

‎0x20‎

DCP1, reset to factory or factory reset.

‎0x28‎

Remote application ready timeout expired.

1discovery and configuration protocol.

The lists of ErrorCode1 and ErrorCode2 are incomplete and show only the most important error codes.

Table 500: Examples

0x81813F02

DCP no RealStationname

The device with the specified station name was not found.

0x81813F03

DCP multiple RealStationName

Multiple devices with the same station name were found.

0x81813F06

DCP set error

The DCP set command has failed (for example, IP address or station name).

0x81813F07

ARP multiple IP addresses

The IP address is assigned multiple times: network error.

0xCF81FD05

AR consumer DHT expired

The send clock could not be maintained: connection termination.