pdcomm::configureFormattedProgramTransfers
Function
Enables S7F23/F24 formatted process program transfer on an endpoint.
inline void configureFormattedProgramTransfers(GemEndpoint &endpoint, const PdcommGemFormattedProgramTransferOptions &options)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
| Name | Description |
|---|---|
endpoint | Host or equipment endpoint. |
options | Limits built with gemFormattedProgramTransferOptions(). |
Notes
- Throws
pdcomm::Error:PDCOMM_INVALID_STATEwhen the endpoint is not stopped, has no role or is already configured;PDCOMM_INVALID_ARGUMENTfor invalid options.