FC_DiagConfigSet - General Information

Overview

Type:

Function

Available as of:

SystemInterface_1.32.6.0

Versions:

Current version

NOTICE
MODIFICATION OF THE VERIFIED STANDARD ERROR HANDLING
Make sure that only authorized and qualified programmers use this function after consulting Schneider Electric.
Failure to follow these instructions can result in equipment damage.

Task

Modify the diagnostic configuration.

NOTE: If the axis is reset (restart) or if the Sercos phase state is reset to communication phase 0, the diagnostic configuration is also reset.

Description

The diagnostic reaction of the diagnostic message with the number i_diDiagCode is set to the diagnostic class i_diDiagClass.

To certain internal diagnostic codes (servo amplifiers with the reaction AD, BD1, BD2, and CD) only the class 1, 2 or 3 can be assigned. Otherwise an error is returned in Result.

Interface

Input

Data type

Description

i_diDiagCode

DINT

Diagnostic number

i_diDiagClass

DINT

Diagnostic class

Return Value

Data type

Description

DINT

0: OK

-1: Invalid diagnostic number.

-2: Invalid diagnostic class.

-4: Invalid diagnostic class (only the class 1, 2 or 3 can be assigned to the diagnostic codes of the drive with the reaction AD, BD1, BD2, and CD).

-6: Invalid diagnostic number (this is a diagnostic of a Sercos III device). Reconfiguring with the help of the function FC_DiagConfigSet2.