FC_DiagConfigSet2 - General Information
Type: |
Function |
Available as of: |
SystemInterface_1.33.1.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. |
Modify the diagnostic configuration of the individual diagnostic messages.
The system reaction (diagnostic class) for i_diDiagCode of the devices is changed to i_diDiagClass identical to FC_DiagConfigSet.
The device reaction is changed to i_diDiagSubClass for the devices selected with i_stLogAddr.
NOTE: The function FC_DiagConfigSet2 is only supported by Schneider Electric drives and power supplies.
With the help of this function, the diagnostic reaction of the diagnostic message with the number i_diDiagCode can be changed. The diagnostic reaction contains the system reaction and the device reaction. The system reaction is set through the diagnostic class which is triggered by a certain diagnostic message. The device reaction is defined by the sub class. Due to the subdivision in sub classes, various device reactions are possible in diagnostic class 3 (for example, on drive objects, it is possible to distinguish between various device reactions within diagnostic class 3). The coding of the diagnostic classes and sub classes can be found in the PacDrive Diagnostic Messages User Guide, chapter Device Reactions.
The diagnostic reaction of a diagnostic message can:
oBe changed in the whole system (for the objects).
The input variable i_stLogAddr has the value Gc_stLogAddrAllTypes.
oCan be changed for a certain object or a group of objects.
The input variable i_stLogAddr contains the logical address of an object or object group. Then the configuration is only performed for a certain object or a group of objects.
i_diDiagSubClass must be specified if i_diDiagClass = 3. Otherwise this input variable is ignored.
For diagnostic messages of drive firmware versions V1.34.x.x or less, which are triggered by drive or power supply objects, additional restrictions apply during the configuration:
oA modification of the diagnostic reaction is only possible if the priority of the new reaction is higher than the priority of the minimum reaction for this diagnostic message. The priorities and the minimum reactions can be found under Reactions and the descriptions of the respective diagnostic messages.
oA diagnostic message of the diagnostic 3 cannot be reconfigured to the diagnostic class 2.
oA diagnostic message of the diagnostic 2 cannot be reconfigured to the diagnostic class 3.
oIf a diagnostic message was configured to the diagnostic class 1 or 0, then afterwards it can only be reconfigured back to its original diagnostic class
(for example, a diagnostic message can be changed first from diagnostic class 2 to 1 and afterwards from 1 to 2 again. A modification from 1 to 3 is not possible).
Input |
Data type |
Description |
---|---|---|
i_diDiagCode |
DINT |
Number of the diagnostic message that has to be changed. |
i_diDiagClass |
DINT |
New diagnostic class for the diagnostic message. |
i_stLogAddr |
ST_LogicalAddress |
Logical address of the device. |
i_diDiagSubClass |
DINT |
New diagnostic sub class for the diagnostic message. |
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 AB, BD1, BD2, and CD). -7: Invalid sub class. -461: In the current phase, writing parameters via the service channel is not supported. -462: Addressed axis does not support this function. |
Deactivate the diagnostic message „Under voltage“ for the LXM 62 axes:
The diagnostic message 8109 DC-Bus under voltage has to be deactivated for the LXM 62 axes. The default reaction of this message is BD2. According to the Drive Reactions table, this corresponds to the diagnostic class 3 and the sub class 4.
The diagnostic message has to be deactivated. To do this, the lowest possible reaction for this diagnostic message is selected. As minimum reaction for this diagnostic message the reaction E is specified. The reaction E equates to a message that is entered in the message logger of the device but no further reaction results from it.
The reaction E corresponds to the Drive Reactions of the diagnostic class 1 and sub class 1. As logical address, the LXM62DxS_TYPE is specified because the axes of the type LXM62DxS have to be reconfigured. The call-up for FC_DiagConfigSet2 would appear in this case as follows:
FC_DiagConfigSet2(
i_diDiagCode := 8109,
i_stLogAddr := LXM62DxS_TYPE,
i_diDiagClass := 1,
i_diDiagSubClass := 1
);
The diagnostic message 8135 "DC-Bus voltage low" can be deactivated the same way.
Coast down when a certain diagnostic message appears
A specific axis is supposed to coast down when the diagnostic message 8111 Shutdown due to tracking deviation is triggered. The default reaction of the diagnostic message 8111 is BD2, this means, standstill according to the user specification. Based on the table of the Drive Reactions it is apparent that this equates the diagnostic class 3 and the sub class 4. The minimum reaction for this diagnostic message is CD.
The desired reaction is AD (coast down). The priority of AD is higher than the minimum reaction CD and therefore a reconfiguration is possible. AD equates the diagnostic class 3 and the sub class 6. To reconfigure the axis DRV_Lexium62, the following call-up is necessary:
FC_DiagConfigSet2(
i_diDiagCode := 8111,
i_stLogAddr := DRV_Lexium62.stLogicalAddress,
i_diDiagClass := 3,
i_diDiagSubClass := 6
);