PN Controller Protocol 4.3.6 Cyclic data There are several cyclic process data directly below the PROFINET controller protocol. These data are only exchanged between the PROFINET driver and the system manager. They provide general information about the status of the PROFINET communication. The ‘DevState’ variable contains information about the physical communication status of the controller, such as the link status or whether the transmission resources are still sufficient. The other variables are the collective PROFINET error and the collective PROFINET status. Both indicate the number of devices in which a problem has occurred or in which a diagnosis is available, i.e.
the error variable indicates possible problems with the establishment of a connection or reasons for an abort. The diagnostic variable provides status information about an existing connection. The ‘DevCtrl’ output variable currently has no function. For further information, please also read the chapter entitled ‘ Box States [ } 34] '. 4.3.7 Acyclic data The ADS blocks are used to send acyclic data. These then access the PROFINET record data. So that acyclic data can be read or written, the PROFINET device must be in data exchange mode. An ADSReadWrite is set. ADS settings AMSNetID : The AMSNetID of the Profinet controller PORT :
Port number of the device (take this from the system manager) Index GROUP : 0x0000_F823 Index OFFSET : 0x0000_0000 DATA typedef struct { WORD RW; #define PN_READ 0 #define PN_WRITE 1 WORD NrOfAR; DWORD API; WORD Slot; WORD SubSlot; PNIO_RECORD RecordData; } PNIO_CONFIGRECORD Example: Send a read request for I&M function 0 TS6271 38 Version: 1.2 nRW nNr nAPI InSlot SubSlot nIndex nLen nTrans nLenA 2 bytes 2 bytes 4 bytes 2 bytes 2 bytes 2 bytes 2 bytes 2 bytes 2 bytes