pdcomm::configureFormattedPrograms
Function
Enables S7F27/F28 process program verification on an endpoint.
inline void configureFormattedPrograms(GemEndpoint &endpoint, const PdcommGemFormattedProgramOptions &options)Call once while the endpoint is stopped, after the role is configured. Equipment can then submit reports and hosts can receive and acknowledge them.
const auto options = pdcomm::gemFormattedProgramOptions(4, 32, 64, 1, 4, 4, 4);
pdcomm::configureFormattedPrograms(equipment, options);
pdcomm::configureFormattedPrograms(host, options);Parameters
| Name | Description |
|---|---|
endpoint | Host or equipment endpoint. |
options | Limits built with gemFormattedProgramOptions(). |
Notes
- Throws
pdcomm::Error:PDCOMM_INVALID_STATEwhen the endpoint is not stopped, has no role or is already configured;PDCOMM_INVALID_ARGUMENTfor invalid options.