AXY:MC-Basic:axis.ISMOVING
| Language: | English • 中文(简体) |
|---|
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 value 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 sampling (or recording) digital input events, it will always indicate the state of the next sample. Therefore a one-sample difference between time measurements using accelecmd and IsMoving can occur. |
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
End While
- waits for profiler to finish