SendStopTransaction

SendStopTransaction 1:

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

SendStopTransaction 2:

Syntax

METHOD SendStopTransaction : BOOL
VAR_INPUT
    sIdTag         : T_OCPP1_IdToken := '';
    nTransactionId : UDINT := 0;
    nConnectorId   : UDINT;
    nMeterStop     : UDINT;
    eReason        : E_OCPP1_Reason := E_OCPP1_Reason.None;
END_VAR
VAR_OUTPUT
    eStatus        : E_OCPP1_AuthorizationStatus;
END_VAR

SendStopTransaction 3: Return value

Name

Type

Description

SendStopTransaction

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.

SendStopTransaction 4: Inputs

Name

Type

Description

sIdTag

T_OCPP1_IdToken

ID token for which the transaction is to be stopped.

nTransactionId

UDINT

Alternatively, contains the Transaction ID received at Start Transaction if the Connector ID is 0.

nConnectorId

UDINT

ID of the Connector of a Charge Point if the Transaction ID is 0.

nMeterStop

UDINT

Value in watt-hours at the end of the transaction. This value must be greater than or equal to the nMeterStart value with which the transaction was started.

eReason

E_OCPP1_Reason

Optionally contains the reason for stopping the transaction.

SendStopTransaction 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.