MLAxisStatus
Function A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Returns the status of the axis.
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 |
|
|
Returns TRUE when the function successfully executes. |
||||||||||||||||||||||||||||
Default (.Q) |
DINT |
|
|
Returns the status of the axis.
|
Remarks
-
-
This function or function block returns cached data.
See Program a Multi-Core Controller for more information.
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;