Modify the diagnostic configuration.
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.
Input |
Data type |
Description |
---|---|---|
i_diDiagCode |
DINT |
Diagnostic number |
i_diDiagClass |
DINT |
Diagnostic class |
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. |