RecvStopTransaction

RecvStopTransaction 1:

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

RecvStopTransaction 2:

Syntax

METHOD RecvStopTransaction : BOOL
VAR_INPUT
    hStationId     : UDINT;
END_VAR
VAR_OUTPUT
    hMessageId     : T_OCPP_MessageId;
    sIdTag         : T_OCPP1_IdToken;
    nTransactionId : UDINT;
    nConnectorId   : UDINT;
    nMeterStop     : UDINT;
    nTimestamp     : ULINT;
    eReason        : E_OCPP1_Reason;
END_VAR

RecvStopTransaction 3: Return value

Name

Type

Description

RecvStopTransaction

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.

RecvStopTransaction 4: Inputs

Name

Type

Description

hStationId

UDINT

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

RecvStopTransaction 5: Outputs

Name

Type

Description

hMessageId

T_OCPP_MessageId

MessageId of the received message.

sIdTag

T_OCPP1_IdToken

ID token for which the transaction is to be stopped.

nTransactionId

UDINT

ID of the transaction to be stopped. This ID is contained in the Central System's response to a Start Transaction request.

nConnectorId

UDINT

ID of the Connector of a Charge Point.

nMeterStop

UDINT

Value in watt-hours at the end of the transaction.

nTimestamp

ULINT

Date and time when the transaction is stopped.

eReason

E_OCPP1_Reason

Can optionally contain the reason for stopping the transaction.

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