Skip to content
Start free evaluation

pdcomm::respondFormattedProgramTransfer

Function

Sends S7F24 Formatted Process Program Acknowledge without storing the program.

inline void respondFormattedProgramTransfer(GemEndpoint &endpoint, GemResult &result, uint8_t acknowledgement)

Declared in: #include <pdcomm_gem_formatted_program_transfers.hpp>

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

NameDescription
endpointEquipment endpoint in GemCommunication::Communicating.
resultResult with GemOutcome::FormattedProgramTransferReceived from this endpoint.
acknowledgementACKC7, 0 to 7 (0 means accepted).

Notes

  • Throws pdcomm::Error: PDCOMM_INVALID_ARGUMENT for a code above 7; PDCOMM_INVALID_STATE on a host, when not communicating or for another result; PDCOMM_STALE_TOKEN for a stale result or a different repeated code; PDCOMM_BACKPRESSURE when the reply cannot be queued (retry later).
  • This call changes result; do not run it concurrently with getters on it.