RecvStopTransaction
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.
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
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. |
Inputs
Name | Type | Description |
---|---|---|
hStationId | UDINT | Identifier of the OCPP client in the instance of the OCPP server. |
Outputs
Name | Type | Description |
---|---|---|
hMessageId | MessageId of the received message. | |
sIdTag | 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 | Can optionally contain the reason for stopping the transaction. |
Possible errors are output at the outputs bError and hrErrorCode of the function block instance.