MLAxisReadGenStatus
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 internal generator 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. See Pipe Network - General Rules for more information. |
Default (.Q) |
DINT |
|
|
Shows the status of the internal generator based on the Internal Generator Status table. See Pipe Network - General Rules for more information. |
Remarks
-
-
This function or function block returns cached data.
See Program a Multi-Core Controller for more information.
Internal Generator Status
0 |
RUN mode (acceleration). |
1 |
RUNNING or STOPPED. |
2 |
MOVE: Changing move destination. |
3 |
MOVE: Changing move destination. |
4 |
MOVE: Acceleration. |
5 |
MOVE: Constant speed (travel speed). |
6 |
MOVE: Deceleration. |
7 |
MOVE: Single step (micro movement). |
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
MLAxisReadGenStatus(PipeNetwork.Axis1 ) ;
See Also