MLAxisStatus
Function - Returns the status of the axis.
This includes information on the:
- Enabled/disabled state.
- Bus connection.
- Pipe Network connection.
- Drive executing an axis stop function.
- Other status information.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
ID |
DINT |
No range |
N/A |
No default |
ID Name of the Axis block. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
OK |
BOOL |
FALSE, TRUE |
N/A |
Returns TRUE when the function successfully executes. |
Default (.Q) |
DINT |
No range |
N/A |
Returns the status of the axis. See Bit Descriptions. |
Remarks
-
-
This function or function block returns cached data.
See Program a Multi-Core Controller.
Bit Descriptions
Bit |
Description |
0 |
Initialized (1 if initialized). |
1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
Error (1 if in error). |
7 |
Simulated (1 if working with a simulated axis). |
8 |
Connected (1 if a pipe is connected). |
9 |
Warning (1 if the drive signals a warning). |
10 |
Stopping (1 if the drive is performing a Stop). |
11 |
Stopped (1 if the drive has finished the Stop). |
12 |
Axis is turning and has not reached target location. |
13 |
Drive Internal limit active rising edge.
|
14 to 31 |
Reserved. |
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
AxisStatus := MLAxisStatus(PipeNetwork.AXI_A1_Axis) ;
IF AxisStatus.11 THEN
MLAxisStop(PipeNetwork.AXI_A1_Axis,FALSE,DEF_A1_StopDec) ;
END_IF;
AxisStatus := MLAxisStatus(PipeNetwork.AXIS1);
If AxisStatus.0 Then
(*Axis is initialized*)
ElsIf AxisStatus.1 Then
(*Axis' power is ON*)
ElsIf AxisStatus.2 Then
(*Axis is READY to be enabled*)
End_If;