pdcomm::respondFormattedProgram
Function
Sends S7F28 Process Program Verification Acknowledge for a received S7F27.
inline void respondFormattedProgram(GemEndpoint &endpoint, GemResult &result)The host must own the unanswered request. When sending fails with PDCOMM_BACKPRESSURE, the result stays ready for a retry. Calling it again after a successful response does nothing and succeeds.
Parameters
| Name | Description |
|---|---|
endpoint | Host endpoint in GemCommunication::Communicating. |
result | Result with GemOutcome::FormattedProgramReceived from this endpoint. |
Notes
- Throws
pdcomm::Error:PDCOMM_INVALID_STATEon equipment, when not communicating or for another result kind;PDCOMM_STALE_TOKENfor a result from another endpoint, connection or selection;PDCOMM_BACKPRESSUREwhen the reply cannot be queued. - This call changes
result; do not run it concurrently with getters on it.