SendChangeAvailability

SendChangeAvailability 1:

With this method, an OCPP server sends a Change Availability request to the corresponding OCPP client. The response from the OCPP client is processed directly within the method.

SendChangeAvailability 2:

Syntax

METHOD SendChangeAvailability : BOOL
VAR_INPUT
    hStationId   : UDINT;
    nConnectorId : UDINT;
    eType        : E_OCPP1_AvailabilityType;
END_VAR
VAR_OUTPUT
    eStatus      : E_OCPP1_AvailabilityStatus;
END_VAR

SendChangeAvailability 3: Return value

Name

Type

Description

SendChangeAvailability

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.

SendChangeAvailability 4: 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.

eType

E_OCPP1_AvailabilityType

Type of availability change that the Charge Point is to carry out.

SendChangeAvailability 5: Outputs

Name

Type

Description

eStatus

E_OCPP1_AvailabilityStatus

Response whether the Charge Point was able to implement the requested availability change.

Possible errors are output at the outputs bError and hrErrorCode of the function block instance.