Skip to content
Start free evaluation

pdcomm_gem_program_send

Function

Sends an S7F3 process program send.

PdcommStatus pdcomm_gem_program_send(PdcommTcpEndpoint *endpoint, const PdcommSecsItem *id, const PdcommSecsItem *body, PdcommTcpToken *out_token)

Declared in: #include <pdcomm_gem_programs.h>

The S7F4 acknowledgement (ACKC7) arrives as a #PDCOMM_GEM_PROGRAM_ACK_RECEIVED result. Requirements and budgets are as for pdcomm_gem_program_grant().

Parameters

NameDescription
endpointCommunicating GEM endpoint with a program store.
idPPID item: nonempty ASCII or Binary.
bodyPPBODY item in one of the supported program body formats.
out_tokenReceives the request token; zero after every failure. Must not be NULL.

Returns

As pdcomm_gem_program_grant(); additionally #PDCOMM_INVALID_ARGUMENT for an unsupported body format.