SendStatusNotification
With this method, an OCPP client sends a Status Notification to the corresponding OCPP server. The response from the OCPP server is processed directly within the method, but in this case it does not contain any separate variables anyway. The timestamp is set internally when the request is sent and cannot be set manually when the method is called.
Syntax
METHOD SendStatusNotification : BOOL
VAR_INPUT
nConnectorId : UDINT;
eError : E_OCPP1_ChargePointError;
eStatus : E_OCPP1_ChargePointStatus;
sInfo : STRING(50) := '';
sVendorError : STRING(50) := '';
sVendorId : STRING(255) := '';
END_VAR
Return value
Name | Type | Description |
---|---|---|
SendStatusNotificationEx | 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 |
---|---|---|
nConnectorId | UDINT | ID of the Connector of a Charge Point. |
eError | Error code to be sent in the Status Notification. | |
eStatus | Status to be sent in the Status Notification. | |
sInfo | STRING(50) | Contains optional, freely definable additional information on the error. |
sVendorError | STRING(50) | Optionally contains the vendor-specific error code. |
sVendorId | STRING(255) | Optionally contains the identifier for the vendor-specific implementation. |
Possible errors are output at the outputs bError and hrErrorCode of the function block instance.