SendClearChargingProfile
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.
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
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. |
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 | Specifies the purpose of the Charging Profiles to be cleared. | |
nStackLevel | UDINT | Specifies the StackLevel for which Charging Profiles are cleared. |
Outputs
Name | Type | Description |
---|---|---|
eStatus | 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.