SendReserveNow
With this method, an OCPP server sends a Reserve Now request to the corresponding OCPP client. The response from the OCPP client is processed directly within the method.
Syntax
METHOD SendReserveNow : BOOL
VAR_INPUT
hStationId : UDINT;
nConnectorId : UDINT;
nExpiryDate : ULINT;
sIdTag : T_OCPP1_IdToken := '';
sParentIdTag : T_OCPP1_IdToken;
nReservationId : UDINT;
END_VAR
VAR_OUTPUT
eStatus : E_OCPP1_ReservationStatus;
END_VAR
Return value
Name | Type | Description |
---|---|---|
SendReserveNow | 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. |
nConnectorId | UDINT | ID of the Connector of a Charge Point. |
nExpiryDate | ULINT | Date and time of the end of the reservation. |
sIdTag | Identifier for which the Charge Point should reserve a Connector. | |
sParentIdTag | The parent of the identifier for which the Charge Point is to reserve a Connector. | |
nReservationId | UDINT | Unique ID of the reservation. |
Outputs
Name | Type | Description |
---|---|---|
eStatus | The status indicates whether the reservation was successful. |
Possible errors are output at the outputs bError and hrErrorCode of the function block instance.