State- and Ctrl flags
PROFINET Status
The status of the PROFINET communication can be monitored by means of PnIoBoxState.
PnIoBoxState | Comment | Meaning |
---|---|---|
0x0001 (Bit 0) | Device is in I/O exchange | PROFINET device is exchanging data |
0x0002 (Bit 1) | Device is blinking | PROFINET device is being searched for by identification |
0x0004 (Bit 2) | Provider State 0=STOP, 1=RUN | The PROFINET controller is stopped |
0x0008 (Bit 3) | Problem Indicator 0=OK, 1=Error | The PROFINET device has encountered problems |
In the absence of an error, the value of PnIoBoxState is "5" - in other words, bits 0 and 2 are set.
PROFINET Control
PnIoBoxCtrl can be used for assigning names; only the low byte is to be used for this. The high byte must be 0x00.