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)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
| Name | Description |
|---|---|
endpoint | Equipment endpoint in GemCommunication::Communicating. |
id | PPID: a non-empty ASCII or Binary item. |
issues | Verification entries; may be empty. |
Returns
Token of the submitted request.
Notes
- Throws
pdcomm::Error:PDCOMM_INVALID_STATEon a host, without configuration or when not communicating;PDCOMM_INVALID_ARGUMENTfor an invalid PPID or entry;PDCOMM_LIMIT_EXCEEDEDwhen limits ormaxPendingare exceeded;PDCOMM_BACKPRESSUREwhen no pending slot is free.