SendGetDiagnostics

SendGetDiagnostics 1:

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.

SendGetDiagnostics 2:

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

SendGetDiagnostics 3: 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.

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

SendGetDiagnostics 5: 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.