Skip to content
Start free evaluation

pdcomm::configureFormattedProgramTransfers

Function

Enables S7F23/F24 formatted process program transfer on an endpoint.

inline void configureFormattedProgramTransfers(GemEndpoint &endpoint, const PdcommGemFormattedProgramTransferOptions &options)

Declared in: #include <pdcomm_gem_formatted_program_transfers.hpp>

Call once while the endpoint is stopped, after the role is configured. Hosts can then send programs and equipment can receive and acknowledge them.

const auto options = pdcomm::gemFormattedProgramTransferOptions(2, 2, 2, 64, 1, 1, 1, 2);
pdcomm::configureFormattedProgramTransfers(host, options);
pdcomm::configureFormattedProgramTransfers(equipment, options);

Parameters

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

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.