FB_ControllerDiag - Get (Method)
Type: |
Method |
Available as of: |
V1.0.4.0 |
Method used to decode the PacDrive diagnostic data to provide the user with detailed information on the pending diagnostic message and the affected object.
In the template this method of the function block is used to determine whether the DiagCode can be attributed to a drive. Reactions to drive errors must take place in the submodules.
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General, library-independent statement on the diagnostic. A value unequal GD.ET_Diag.Ok equates an error message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.ET_Diag.Ok -> diagnostic message |
|
q_sMsg |
STRING[80] |
Event-triggered message which gives more detailed information on the diagnostic state. |
q_diObjectType |
DINT |
Object type (numerical) |
q_sTypeName |
STRING[80] |
Type name of the object |
q_diObjectInstance |
DINT |
Instance number of the object |
q_sInstanceName |
STRING[80] |
Instance name of the object |
q_diDiagCode |
DINT |
Diagnostic code |
q_diDiagClass |
DINT |
Diagnostic class |
q_diDiagNumber |
DINT |
Diagnostic number |
q_sDiagMsg |
STRING[80] |
Diagnostic message |
q_xHWReset |
BOOL |
TRUE: A hardware reset is required. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
ControllerConditionInvalid |
6 |
The controller is invalid. |
Enumeration name: |
ControllerInvalid |
Enumeration value: |
6 |
Description: |
The controller is invalid. |
Issue |
Cause |
Solution |
---|---|---|
- |
The controller does not provide the required conditions. |
For more details, refer to the q_sMsg output. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
Decoding the PacDrive diagnostic data was successful.