Reading the current state of the mxA interface
Description
The function block KRC_ReadMXAStatus reads the current state of the mxA interface.
Inputs
|
Parameter |
Type |
Description |
|---|---|---|
|
AxisGroupIdx |
INT |
Index of axis group
|
Outputs
|
Parameter |
Type |
Description |
|---|---|---|
|
Status |
INT |
Current state of the mxA interface (>>> Status) |
|
Error |
BOOL |
TRUE = error in function block |
|
ErrorID |
DINT |
Error number |
Status
Current state of the mxA interface (function block KRC_ReadMXAStatus)
|
Value |
Name |
Description |
|---|---|---|
|
0 |
Invalid |
No function blocks can be processed. Frequent causes:
|
|
1 |
Error |
An mxA error message is active. The error message must be reset with the function block KRC_MessageReset. |
|
2 |
ProgramStopped |
Robot interpreter is not active (main program has been stopped or deselected). |
|
3 |
StandBy |
Robot interpreter is active and waiting for statements, e.g. waiting for an input. |
|
4 |
Executing |
Robot interpreter is active (main program is being executed). |
|
5 |
Aborting |
Robot stopped and all statements aborted. |