Skip to main content

PNIO Status (Error Code)

The PNIOStatus is an 8-place hexadecimal code which is not part of the PROFINET diagnosis in the actual sense. The PNIOStatus is an error/abort code of failed services and is issued for example in the case of log errors or failed connection attempts. The user usually comes in contact with it only in the case of an acyclic read/write service (RDREC / WRREC) or establishing a connection with 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-PDU)

0xDC

IODReleaseRes

(RPC-PDU)

0xDD

IODControlRes

IOXControlRes (RPC-PDU)

0xDE

IODReadRes

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

0xDF

IODWriteRes

Errors in acyclic writing (RPC, 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 RPC errors.

ErrorCode1

Value of ErrorCode1 (see table)

ErrorCode2

Value of ErrorCode2 (see table)

Table 1. 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 2. 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

DCP, reset to factory or factory reset

0x28

Remote application ready timeout expired



Tip

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

Table 3. 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.