pdcomm::respondFormattedProgramTransfer
Function
Sends S7F24 Formatted Process Program Acknowledge without storing the program.
inline void respondFormattedProgramTransfer(GemEndpoint &endpoint, GemResult &result, uint8_t acknowledgement)Repeating the call with the same ACKC7 after success does nothing and succeeds; a different code fails. To store the program as well, use respondFormattedProgramTransferAndStore().
Parameters
| Name | Description |
|---|---|
endpoint | Equipment endpoint in GemCommunication::Communicating. |
result | Result with GemOutcome::FormattedProgramTransferReceived from this endpoint. |
acknowledgement | ACKC7, 0 to 7 (0 means accepted). |
Notes
- Throws
pdcomm::Error:PDCOMM_INVALID_ARGUMENTfor a code above 7;PDCOMM_INVALID_STATEon a host, when not communicating or for another result;PDCOMM_STALE_TOKENfor a stale result or a different repeated code;PDCOMM_BACKPRESSUREwhen the reply cannot be queued (retry later). - This call changes
result; do not run it concurrently with getters on it.