This function receives the response to an S/IP service from a Sercos device to which a request had been sent via FC_GenericRequest. Allocated memory must be provided to the function via the parameter iq_stData.
The function copies the number of bytes specified in uiLength of ST_Data to the reserved memory of pbyData.
Input |
Data type |
Description |
---|---|---|
i_udiTransactionID |
UDINT |
Transaction ID of corresponding request |
i_diTimeoutMs |
DINT |
Timeout in milliseconds for waiting for the response |
Output |
Data type |
Description |
---|---|---|
q_udiBytesReceived |
UDINT |
Bytes to be received by Sercos device (needs to be equal to or less than the length uiLength in the structure ST_Data). |
Input/Output |
Data type |
Description |
---|---|---|
iq_stData |
ST_Data |
Data to be received by response. See ST_Data for additional information. |