Skip to content
Start free evaluation

pdcomm::submitFormattedProgram

Function

Sends S7F27 Process Program Verification Send from the equipment.

inline PdcommTcpToken submitFormattedProgram(GemEndpoint &endpoint, const SecsItem &id, const std::vector<GemFormattedProgramIssue> &issues)

Declared in: #include <pdcomm_gem_formatted_programs.hpp>

The PPID and entries are copied before the message is queued. The host's S7F28 yields GemOutcome::FormattedProgramAcknowledgement.

auto id = pdcomm::SecsItem::primitive(PDCOMM_SECS_ASCII, std::vector<uint8_t>{'A'}, limits);
auto token = pdcomm::submitFormattedProgram(equipment, id, {{0, 7, ""}, {0, 7, "x"}});

Parameters

NameDescription
endpointEquipment endpoint in GemCommunication::Communicating.
idPPID: a non-empty ASCII or Binary item.
issuesVerification entries; may be empty.

Returns

Token of the submitted request.

Notes

  • Throws pdcomm::Error: PDCOMM_INVALID_STATE on a host, without configuration or when not communicating; PDCOMM_INVALID_ARGUMENT for an invalid PPID or entry; PDCOMM_LIMIT_EXCEEDED when limits or maxPending are exceeded; PDCOMM_BACKPRESSURE when no pending slot is free.