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.
The status of the Axis generator: acceleration A change in velocity over time. Because velocity is a vector, it can change in two ways: a change in magnitude and/or a change in direction. In one dimension, acceleration is the rate at which something speeds up or slows down. However, more generally, acceleration is a vector quantity expressing the change with time of the velocity both in magnitude and in direction. See these Wikipedia articles for more information: http://en.wikipedia.org/wiki/Velocity http://en.wikipedia.org/wiki/Euclidean_vector http://en.wikipedia.org/wiki/Rate_(mathematics), run, deceleration, change designation point, single step.
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 |
|
|
Shows the status of the internal generator based on the Internal Generator Status table. |
Remarks
-
-
This function or function block A function block groups an algorithm and a set of private data. It has inputs and outputs. returns cached data.
See Program a Multi-Core Controller.
Internal Generator Status
Status |
Description |
---|---|
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 Speed is the absolute value of the velocity without direction. (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