RecvGetDiagnostics

RecvGetDiagnostics 1:

With this method, an OCPP client receives a Get Diagnostics request from the corresponding OCPP server. To respond to the request, the method RespGetDiagnostics must be called.

RecvGetDiagnostics 2:

Syntax

METHOD RecvGetDiagnostics : BOOL
VAR_OUTPUT
    hMessageId     : T_OCPP_MessageId;
    sLocation      : STRING(255);
    nRetries       : UDINT;
    nRetryInterval : UDINT;
    nStartTime     : ULINT;
    nStopTime      : ULINT;
END_VAR

RecvGetDiagnostics 3: Return value

Name

Type

Description

RecvGetDiagnostics

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.

RecvGetDiagnostics 4: Outputs

Name

Type

Description

hMessageId

T_OCPP_MessageId

MessageId of the received message.

sLocation

STRING(255)

Contains the directory to which the diagnostic file is to be uploaded.

nRetries

UDINT

Optionally contains the number of attempts the Charge Point has made to upload the file.

nRetryInterval

UDINT

Optionally contains the number of seconds after which the upload is retried.

nStartTime

ULINT

Optionally marks the oldest point in time to be integrated into the diagnostic file.

nStopTime

ULINT

Optionally marks the most recent point in time to be integrated into the diagnostic file.

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