Skip to content
Start free evaluation

pdcomm::respondFormattedProgram

Function

Sends S7F28 Process Program Verification Acknowledge for a received S7F27.

inline void respondFormattedProgram(GemEndpoint &endpoint, GemResult &result)

Declared in: #include <pdcomm_gem_formatted_programs.hpp>

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

NameDescription
endpointHost endpoint in GemCommunication::Communicating.
resultResult with GemOutcome::FormattedProgramReceived from this endpoint.

Notes

  • Throws pdcomm::Error: PDCOMM_INVALID_STATE on equipment, when not communicating or for another result kind; PDCOMM_STALE_TOKEN for a result from another endpoint, connection or selection; PDCOMM_BACKPRESSURE when the reply cannot be queued.
  • This call changes result; do not run it concurrently with getters on it.