SendStopTransaction
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.
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
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. |
Inputs
Name | Type | Description |
---|---|---|
sIdTag | 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 | Optionally contains the reason for stopping the transaction. |
Outputs
Name | Type | Description |
---|---|---|
eStatus | 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.