SendClearChargingProfile

SendClearChargingProfile 1:

With this method, an OCPP server sends a Clear Charging Profile request to the connected OCPP client. The response from the OCPP client is processed directly within the method.

SendClearChargingProfile 2:

Syntax

METHOD SendClearChargingProfile : BOOL
VAR_INPUT
    nProfileId              : UDINT := 0;
    nConnectorId            : UDINT := 0;
    eChargingProfilePurpose : E_OCPP1_ChargingProfilePurposeType := E_OCPP_ChargingProfilePurposeType.None;
    nStackLevel             : UDINT := 0;
END_VAR
VAR_OUTPUT
    eStatus                 : E_OCPP1_ClearChargingProfileStatus;
END_VAR

SendClearChargingProfile 3: Return value

Name

Type

Description

SendClearChargingProfile

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.

SendClearChargingProfile 4: Inputs

Name

Type

Description

nProfileId

UDINT

Identifier of the Charging Profile to be cleared.

nConnectorId

UDINT

ID of the Connector of a Charge Point. The value 0 indicates that the clearing relates to the entire Charge Point.

eChargingProfilePurpose

E_OCPP1_ChargingProfilePurposeType

Specifies the purpose of the Charging Profiles to be cleared.

nStackLevel

UDINT

Specifies the StackLevel for which Charging Profiles are cleared.

SendClearChargingProfile 5: Outputs

Name

Type

Description

eStatus

E_OCPP1_ClearChargingProfileStatus

The status indicates whether the Charging Profile could be cleared from the Charge Point.

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