AXY:MC-Basic:axis.ISMOVING

From SoftMC-Wiki
Revision as of 07:17, 13 July 2011 by EranKo (talk | contribs) (added MOTIONSTATUS to SEE ALSO)
Jump to: navigation, search

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 instance 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.

-1 - When element is a slave (gear or cam.

-2 - In drive procedure command (homing, tuning ,...)

In case of geared element this values is returned unless an incremental move is issued.

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

End While

See Also