Download PROFIBUS-DP Slave Protocol API
Transcript
The Application Interface 162/238 Packet Description structure PROFIBUS_FSPMS_PACKET_C2_INITIATE_IND_T Variable Type Value / Range Type: Indication Description structure TLR_PACKET_HEADER_T ulDest UINT32 Destination Queue-Handle of AP-Task Process Queue ulSrc UINT32 Source Queue-Handle of FSPMS-Task Process Queue ulDestId UINT32 ulAPMS2Id Destination end point identifier, specifying the final receiver of the packet within the Destination Process ulSrcId UINT32 ulFSPMS2Id Source end point identifier, specifying the origin of the packet inside the Source Process ulLen UINT32 10+ n PROFIBUS_FSPMS_INITIATE_IND_DATA_SIZE + n = number of bytes in Source/Destination Data block abSAddrDAddr[…]- Packet Data Length in bytes ulId UINT32 0 ... 232-1 Packet Identification as unique number generated by the Source Process of the Packet ulSta UINT32 ulCmd UINT32 0x04A2 PROFIBUS_FSPMS_CMD_C2_INITIATE_IND - Command ulExt UINT32 0 Extension not in use, set to zero for compatibility reasons ulRout UINT32 × Routing, do not touch See chapter 7.1“Error Codes of the FSPMS-Task”. structure PROFIBUS_FSPMS_C2_INITIATE_IND_T ulReference UINT32 See above. Reference number of DP V1 Class 2 connection tFeaturesSupport ed UINT16 Bit mask Requested features of the DP-Master Class 2 connection tProfileFeatures Supported UINT16 Bit mask Requested profile features of the DP-Master Class 2 connection usProfileIdentNu mber UINT16 Bit mask Corresponding Profile Ident Number. 0 indicates that no profile is in use fSType BOOL8 0,1 Decides on the presence of the optional source Network/MAC address in SAddr in abSAddrDAddr[…] bSLen UINT8 fDType BOOL8 bDLen UINT8 Length of the Destination Address length parameter in abSAddrDAddr[…] abSAddrDAddr[…] UINT8[] Array the contains the description of the source and destination address, reflected due to 2 structures of the type PROFIBUS_FSPMS_INITIATE_ADDR_T Length of the Source Address length parameter in abSAddrDAddr[…] 0,1 Decides on the presence of the optional destination Network/MAC address in DAddr in abSAddrDAddr[…] Table 114: PROFIBUS_FSPMS_CMD_C2_INITIATE_IND – Indication Command of a Request to establish a DP-Master Class 2 Connection This service has to be used by the AP-Task in order to confirm a previously FSPMS-Task issued DP-Master Class 2 initialization indication. The response is required and a must do when having received the indication command declared in Table 114: PROFIBUS_FSPMS_CMD_C2_INITIATE_IND – Indication Command of a Request to establish a DP-Master Class 2 Connection. In order to address the correct AREP, the response command service has to be used in conjunction with the received ulFSPMS2Id value of the confirmation packet referenced in Table 75: PROFIBUS_FSPMS_CMD_INIT_MS2_CNF – Confirmation Command of MS2 Initialization for a DP-Master Class 2 connection. The response is generally distinguished into two types: PROFIBUS-DP Slave | Protocol API DOC050401API15EN | Revision 15 | English | 2013-09 | Released | Public © Hilscher, 2005-2013