AXY:MC-Basic:axis.ISMOVING

From SoftMC-Wiki
Revision as of 09:58, 27 April 2014 by Lisa (talk | contribs)
Jump to: navigation, search

{{MC-Basic |SHORT FORM=

|SYNTAX=?<axis>.IsMoving

|AVAILABILITY=All versions

|DESCRIPTION=

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-Info.svgNOTE
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.