SendStartTransaction

SendStartTransaction 1:

With this method, an OCPP client sends a Start Transaction request to the corresponding OCPP server. The response from the OCPP server is processed directly within the method. The Transaction ID is managed internally so that the user does not have to pay attention to the administration.

SendStartTransaction 2:

Syntax

METHOD SendStartTransaction : BOOL
VAR_INPUT
    sIdTag         : T_OCPP1_IdToken;
    nConnectorId   : UDINT;
    nMeterStart    : UDINT;
    nReservationId : UDINT := 0;
END_VAR
VAR_OUTPUT
    eStatus        : E_OCPP1_AuthorizationStatus;
END_VAR

SendStartTransaction 3: Return value

Name

Type

Description

SendStartTransaction

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.

SendStartTransaction 4: Inputs

Name

Type

Description

sIdTag

T_OCPP1_IdToken

ID token with which the transaction is to be started.

nConnectorId

UDINT

ID of the Connector of a Charge Point.

nMeterStart

UDINT

Value in watt-hours at the start of the transaction. If the value is 0, the value is not checked. For all values greater than 0, this value must be greater than or equal to the last nMeterStop value.

nReservationId

UDINT

Optional reservation ID.

SendStartTransaction 5: Outputs

Name

Type

Description

eStatus

E_OCPP1_AuthorizationStatus

Status of the authorization in response from the OCPP server.

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