beckhoff TS6271 — 4.3.4 Analysis of the box states

PN Controller Protocol As opposed to the state, more than one status can be displayed in the “BoxPnIoDiag”, i.e. the whole thing is bit-coded and up to 16 pieces of information can be displayed. The following statuses are currently displayed.

0x0000 = No diagnosis 0xXXX1 = IOC-AR is not established 0xXXX2 = IOC-AR is established 0xXXX4 = IOC-AR is established but no ApplReady 0xXXX8 = IOC-AR is established but module difference 0xXX1X = At least one AlarmCR get diagnosis alarm 0xX1XX = At least one InputCR is invalid 0xX2XX = At least one InputCR Provider is in stop 0xX4XX = At least one InputCR Problemindicator is set 0x1XXX = At least one OutputCR is invalid 0x2XXX = At least one OutputCR Provider is in stop 0x4XXX = At least one OutputCR Problemindicator is set On the one hand information about the status of the IO Controller Single AR is displayed here.

In addition, collective statuses are formed from the Frame Data statuses of the individual CRs. This applies to the input and output CRs (currently only one CR is possible, in future several). Furthermore a PROFINET alarm is also displayed in “PnIoDiag” Readout via ADS The Box Status can be read out via an ADS Read. ADS Read: NetId = AMSNETID of the PROFINET controller Port = BoxPort (0x1000 + BoxId) Indexgroup = 0xF829 IndexOffset = 0 Length = sizeof(TPnIoDeviceDiagData); where: typedef struct { WORD pnioState; WORD pnioDiag; TS6271 36 Version:

1.2 Num- ber Text Description Remedial action / reason 10 PROFINET Controller has a link error The PROFINET controller has no link Check cable and connection. 11 The aliasname is not unique The alias name is not unique There are two or more devices in the network with the same alias name. This is made up of the neighborhood information (PortId.ChassisId). A correct identification cannot take place. 12 The automatic name assignment isn't possible - wrong device type The automatic name assignment is not possible The expected PROFINET device is not in the projected position (VendorId or DeviceId does not correspond). Hence, no automatic naming and thus no device start is possible.

31 only for EtherCAT gateways: WC-State of cyclic EtherCAT frame is 1 For EL6631 only: EtherCAT WC State is 1 Check the mode on the EtherCAT master & slave (OP?).