SendGetDiagnostics
With this method, an OCPP server sends a Get Diagnostics request to the connected OCPP client. The response from the OCPP client is processed directly within the method.
Syntax
METHOD SendGetDiagnostics : BOOL
VAR_INPUT
sLocation : STRING(255);
nRetries : UDINT := 0;
nRetryInterval : UDINT := 0;
nStartTime : ULINT := 0;
nStopTime : ULINT := 0;
END_VAR
VAR_OUTPUT
sFileName : STRING(255);
END_VAR
Return value
Name | Type | Description |
---|---|---|
SendGetDiagnostics | 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 |
---|---|---|
sLocation | STRING(255) | Directory to which the diagnostic file is to be uploaded. |
nRetries | UDINT | Number of attempts made by the Charge Point if the upload fails. |
nRetryInterval | UDINT | Interval after which a new upload is attempted. |
nStartTime | ULINT | Start time of the logging information contained in the diagnostics. |
nStopTime | ULINT | End time of the logging information contained in the diagnostics. |
Outputs
Name | Type | Description |
---|---|---|
sFileName | STRING(255) | Contains the name of the diagnostic file that will be uploaded. |
Possible errors are output at the outputs bError and hrErrorCode of the function block instance.