EXPERTGetDiag: Provides Detail of Error Detected on a Principal EXPERT I/O Function
This administrative function block returns the details of a detected HSC error.
To see the general representation in IL or ST language, refer to Function and Function Block Representation.
This table describes the input variables:
Inputs |
Type |
Comment |
---|---|---|
EXPERT_REF_IN |
Reference to the EXPERT function block. Must not be changed during block execution. |
|
Execute |
BOOL |
On rising edge, starts the function block execution. On falling edge, resets the outputs of the function block when its execution terminates. |
This table describes the output variables:
Outputs |
Type |
Comment |
---|---|---|
EXPERT_REF_OUT |
Reference to the EXPERT function block. |
|
Done |
BOOL |
TRUE = indicates that HSCDiag is valid. Function block execution is finished. |
Busy |
BOOL |
TRUE = indicates that the function block execution is in progress. |
Error |
BOOL |
TRUE = indicates that an error was detected. Function block execution is finished. |
ErrID |
When Error is TRUE: type of the detected error. |
|
EXPERTDiag |
DWORD |
When Done is TRUE: diagnostic value is valid, refer to the table below. |
NOTE: For more information about Done, Busy and Execution pins, refer to General Information on Function Block Management.
This table indicates the diagnostic values:
Bit |
HSC |
Standard Encoder |
---|---|---|
0 |
Error detected on physical inputs |
|
1 |
– |
Error detected on physical outputs |
2 |
– |
– |
3 |
– |
– |
4 |
– |
Encoder power distribution feedback |
5(1) |
– |
Error detected on the transmission of the absolute SSI encoder frame |
6(1) |
– |
Indicates a parity error detected of the absolute SSI encoder frame |
7 |
Invalid configuration detected |
|
8 |
Invalid adjustment parameters detected |
|
9 |
– |
Encoder configuration in progress |
10 |
– |
– |
11(1) |
– |
Absolute SSI encoder status bit 0. Refer to your encoder user guide. |
12(1) |
– |
Absolute SSI encoder status bit 1. Refer to your encoder user guide. |
13(1) |
– |
Absolute SSI encoder status bit 2. Refer to your encoder user guide. |
14(1) |
– |
Absolute SSI encoder status bit 3. Refer to your encoder user guide. |
15(1) |
– |
– |
(1) In case of a detected SSI error set the Enable condition to 0 to acknowledge the error condition. |
Adding the EXPERTGetDiag Function Block
Step |
Description |
---|---|
1 |
Select the Libraries tab in the Software Catalog and click Libraries. Select Controller > LMC058 > LMC058 Expert IO > Administrative > EXPERTGetDiag in the list, drag-and-drop the item onto the POU window. |
2 |
Link the EXPERT_REF_IN input to the HSC_REF output of the HSC. |