AXY:MC-Basic:axis.ISMOVING
This flag indicates the state of the motion profiler.
-1 = Element is a slave (gear or cam) unless an incremental move is issued, in which case the following values are valid:
0 = Element is not moving.
1 = Element is at the first motion phase (reaching cruise velocity ).If cruise velocity is greater than initial velocity, it indicates that the axis is accelerating.
2 = Element is at the second motion phase, constant velocity.
3 = Element is at the third motion phase (reaching final velocity ). If final velocity is less than cruise velocity, it indicates that the axis is decelerating.
In case of geared element this values is returned unless an incremental move is issued.
For a geared element, this value is returned unless an incremental move is issued.
| NOTE | |
| The isMoving flag is actually a state variable of an internal state machine, when sample din events (or recording) it will always indicate state of the next sample. Therefore a one-sample difference between time measurements using accelecmd and ismoving can occur.
See: Issue 5375 |
Syntax
?<axis>.IsMoving
Availability
All versions
Type
Long
Range
-1 to 3
Scope
Configuration, Task or Terminal
Limitations
Read-Only
Examples
While a1.IsMoving >0
- wait for profiler to finish
- wait for profiler to finish
End While