RecvStartTransaction

RecvStartTransaction 1:

With this method, an OCPP server receives a Start Transaction request from an OCPP client. To respond to the request, the method RespStartTransaction must be called.

RecvStartTransaction 2:

Syntax

METHOD RecvStartTransaction : BOOL
VAR_INPUT
    hStationId     : UDINT;
END_VAR
VAR_OUTPUT
    hMessageId     : T_OCPP_MessageId;
    sIdTag         : T_OCPP1_IdToken;
    nConnectorId   : UDINT;
    nMeterStart    : UDINT;
    nReservationId : UDINT;
    nTimestamp     : ULINT;
END_VAR

RecvStartTransaction 3: Return value

Name

Type

Description

RecvStartTransaction

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.

RecvStartTransaction 4: Inputs

Name

Type

Description

hStationId

UDINT

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

RecvStartTransaction 5: Outputs

Name

Type

Description

hMessageId

T_OCPP_MessageId

MessageId of the received message.

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.

nReservationId

UDINT

Optional reservation ID.

nTimestamp

ULINT

Date and time at the start of the transaction.

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