SendStartTransaction
With this method, an OCPP client sends a Start Transaction request to the corresponding OCPP server. The response from the OCPP server is processed directly within the method. The Transaction ID is managed internally so that the user does not have to pay attention to the administration.
Syntax
METHOD SendStartTransaction : BOOL
VAR_INPUT
sIdTag : T_OCPP1_IdToken;
nConnectorId : UDINT;
nMeterStart : UDINT;
nReservationId : UDINT := 0;
END_VAR
VAR_OUTPUT
eStatus : E_OCPP1_AuthorizationStatus;
END_VAR
Return value
Name | Type | Description |
---|---|---|
SendStartTransaction | 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 with which the transaction is to be started. | |
nConnectorId | UDINT | ID of the Connector of a Charge Point. |
nMeterStart | UDINT | Value in watt-hours at the start of the transaction. If the value is 0, the value is not checked. For all values greater than 0, this value must be greater than or equal to the last nMeterStop value. |
nReservationId | UDINT | Optional reservation ID. |
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.