SendDataTransfer

SendDataTransfer 1:

With this method, an OCPP server sends a Data Transfer request to the corresponding OCPP client. The response from the OCPP client is processed directly within the method.

SendDataTransfer 2:

Syntax

METHOD SendDataTransfer : BOOL
VAR_INPUT
    hStationId : UDINT;
    sVendorId  : STRING(255);
    sMessageId : STRING(63) := '';
END_VAR
VAR_IN_OUT CONSTANT
    sData      : T_OCPP1_DataTransferData;
END_VAR
VAR_OUTPUT
    eStatus    : E_OCPP1_DataTransferStatus;
END_VAR

SendDataTransfer 3: Return value

Name

Type

Description

SendDataTransfer

BOOL

The method returns the return value TRUE if the call was successful. A method call is also considered successfully completed in the event of an error.

SendDataTransfer 4: Inputs

Name

Type

Description

hStationId

UDINT

Identifier of the OCPP client in the instance of the OCPP server.

sVendorId

STRING(255)

Identifier for the vendor, which identifies the vendor-specific implementation.

sMessageId

STRING(63)

Additional identification field for a single message.

SendDataTransfer 5:SendDataTransfer 6: Inputs/outputs

Name

Type

Description

sData

T_OCPP1_DataTransferData

Text without specified length and format.

SendDataTransfer 7: Outputs

Name

Type

Description

eStatus

E_OCPP1_DataTransferStatus

Status of the Data Transfer.

Possible errors are output at the outputs bError and hrErrorCode of the function block instance.