MLAxisReadGenStatus
Description
Returns the status of the internal generator of the axis.
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) |
-
- This function or function block returns cached data. See Programming a Dual Core Controller for more information.
Arguments
Input
ID |
Description |
ID Name of the Axis block |
Data type |
DINT |
|
Range |
— |
|
Unit |
n/a |
|
Default |
— |
Output
OK |
Description |
Returns true when function successfully executes See more details here |
Data type |
BOOL |
|
Unit |
n/a |
|
Default (.Q) |
Description |
Shows the status of the internal generator based on the table at the top of this topic See more details here |
Data type |
DINT |
|
Unit |
n/a |
Related Functions
Previous Function Name
Example
Structured Text
MLAxisReadGenStatus(PipeNetwork.Axis1 ) ;
Ladder Diagram
Function Block Diagram