11.01.2014 Views

PROFIBUS DP-Master

PROFIBUS DP-Master

PROFIBUS DP-Master

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Application Interface 245/315<br />

6.3.5 <strong>PROFIBUS</strong>_DL_CMD_DATA_ACK_IND - Receive SDA Service<br />

This indication is transferred from the remote FDL controller to the local host, when an SDA (Send<br />

Data with Acknowledge) frame has been received from an initiator on the Profibus network. The<br />

reception of the indication message needs no acknowledgment message to the local FDL.<br />

The data of the message is contained in the Service Data Unit, represented by the field abSDU[]. The<br />

length of the Service Data Unit is limited to at most 246 bytes<br />

Packet Structure Reference<br />

typedef struct <strong>PROFIBUS</strong>_DL_DATA_ACK_IND_Ttag {<br />

TLR_UINT8 bSrvCls; /* Service Class */<br />

TLR_UINT8 bDstAddr; /* Destination address */<br />

TLR_UINT8 bDstSAPIdx; /* Destination Service Access Point */<br />

TLR_UINT8 bSrcAddr; /* Source address */<br />

TLR_UINT8 bSrcSAPIdx; /* Source Service Access Point */<br />

TLR_UINT8 abPad[3]; /* Padding needed to bring SDU to a DWORD boundary and to<br />

right position */<br />

TLR_UINT8 abSDU[<strong>PROFIBUS</strong>_DL_MAX_DLPDU_SIZE]; /* Service Data Unit */<br />

} <strong>PROFIBUS</strong>_DL_DATA_ACK_IND_T;<br />

#define <strong>PROFIBUS</strong>_DL_DATA_ACK_IND_SIZE (sizeof(<strong>PROFIBUS</strong>_DL_DATA_ACK_IND_T)-<br />

<strong>PROFIBUS</strong>_DL_MAX_DLPDU_SIZE)<br />

/* Indication Packet for acknowledged connectionless data transfer */<br />

typedef struct <strong>PROFIBUS</strong>_DL_PACKET_DATA_ACK_IND_Ttag {<br />

TLR_PACKET_HEADER_T tHead;<br />

<strong>PROFIBUS</strong>_DL_DATA_ACK_IND_T tData;<br />

} <strong>PROFIBUS</strong>_DL_PACKET_DATA_ACK_IND_T;<br />

<strong>PROFIBUS</strong> <strong>DP</strong>-<strong>Master</strong> |<br />

DOC061001API12EN | Revision 12 | English | 2010-12 | Released | Public © Hilscher, 2006-2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!