Difference between revisions of "AXY:MC-Basic:axis.ISMOVING"

From SoftMC-Wiki
Jump to: navigation, search
(added: see also=axis.MOTIONSTATUS)
 
(27 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
__NOINDEX__
 +
<!-- {{Languages|MC-Basic:axis.ISMOVING}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
 
  
 
|SYNTAX=
 
|SYNTAX=
?''<axis>''.IsMoving
+
?<''axis''>.IsMoving
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Line 10: Line 11:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
 +
 
This flag indicates the state of the motion profiler.
 
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:
+
-1 = Element is a slave (gear or cam) unless an incremental move is issued, in which case the following values are valid:
 
+
<br>
0 – element is not moving.
+
0 = Element is not moving.
 
+
<br>
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.
+
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.
 
+
<br>
2 – element is at the second motion phase, constant velocity.
+
2 = Element is at the second motion phase, constant velocity.
 
+
<br>
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.
+
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.
+
In case of geared element this value is returned unless an incremental move is issued.<br>
 +
For a geared element, this value is returned unless an incremental move is issued.
  
-2 - In drive procedure command (homing, tuning ,...)
 
  
In case of geared element this values 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 [[MC-Basic:axis.ACCELERATIONCOMMAND|accelecmd]] and IsMoving can occur.  
 +
<!-- <br> See: {{Bugzilla|5375}} --> <!--}}
  
  
 
+
|TYPE=  
|TYPE=
 
 
Long
 
Long
  
|RANGE=
+
|RANGE=  
 
-1 to 3
 
-1 to 3
  
|UNITS=
+
|UNITS=  
  
 +
|DEFAULT=
  
|DEFAULT=
+
|SCOPE=Configuration, Task or Terminal
  
 
+
|LIMITATIONS=
|SCOPE=
+
Read only
Configuration, Task or Terminal
 
 
 
|LIMITATIONS=
 
Read-Only
 
  
 
|EXAMPLE=
 
|EXAMPLE=
While a1.ismoving >0                                   ‘wait for profiler to finish<br>
+
While a1.IsMoving ><br>
 
 
 
End While
 
End While
 +
:::waits for profiler to finish
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:axis.ISSETTLED|axis.ISSETTLED]]
+
* [[MC-Basic:axis.ISSETTLED|axis.ISSETTLED]]
* [[Axystems:MC-Basic:axis.ISSETTLED|axis.MOTIONSTATUS]]
+
* [[MC-Basic:axis.MOTIONSTATUS|axis.MOTIONSTATUS]]
  
  
 
}}
 
}}
 +
-->

Latest revision as of 14:14, 13 August 2017