Skip to content
Start free evaluation

pdcomm::respondFormattedProgramQuery

Function

Answers a received S7F25 with S7F26 from the formatted program store.

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

Declared in: #include <pdcomm_gem_formatted_program_queries.hpp>

The answer is fixed when it is first prepared: the stored program, or an empty list when the PPID is unknown. Repeating the call after a successful response does nothing and succeeds.

Parameters

NameDescription
endpointEquipment endpoint in GemCommunication::Communicating.
resultResult with GemOutcome::FormattedProgramQueryReceived.

Notes

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