RecvStopTransaction
With this method, an OCPP server receives a Stop Transaction request from the connected OCPP client. To respond to the request, the RespStopTransaction method must be called.
Syntax
METHOD RecvStopTransaction : BOOL
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. |
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. 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.