MC-Basic:element.ISMOVING

From SoftMC-Wiki
Jump to: navigation, search
Language: English  • 中文(简体)‎

This property indicates whether the motion profiler is active. This flag indicates the motion profiler phase.

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 axes are accelerating.

2 – element is at constant velocity phase (cruise)

3 – element is at the third motion phase (reaching final velocity ). If final velocity is less than cruise velocity, it indicates that the axes are decelerating.

Special modes:

  • -1 – When element is a slave (gear or cam) relevant for axis only.
  • -2 – In drive procedure command (homing, tuning ,...)


  • -4 – Moving Frame tracking mode (the 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 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.

Syntax

?<element>.IsMoving

Availability

All versions

Type

Long

Range

-4, -2 to 3

Scope

Configuration, Task or Terminal

Limitations

Read only

Examples

Axis
While A1.IsMoving >0 
End While

waits for profiler to finish

Group
?G1.IsMoving