Skip to content
Start free evaluation

pdcomm::configureFormattedPrograms

Function

Enables S7F27/F28 process program verification on an endpoint.

inline void configureFormattedPrograms(GemEndpoint &endpoint, const PdcommGemFormattedProgramOptions &options)

Declared in: #include <pdcomm_gem_formatted_programs.hpp>

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

NameDescription
endpointHost or equipment endpoint.
optionsLimits built with gemFormattedProgramOptions().

Notes

  • Throws pdcomm::Error: PDCOMM_INVALID_STATE when the endpoint is not stopped, has no role or is already configured; PDCOMM_INVALID_ARGUMENT for invalid options.