Difference between revisions of "MC-Basic:element.MOTIONSTATUS"

From SoftMC-Wiki
Jump to: navigation, search
(try)
(AXY: new links)
 
(69 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:element.MOTIONSTATUS}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 4: Line 5:
  
 
|SYNTAX=
 
|SYNTAX=
none
+
None
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Line 10: Line 11:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
This flag indicates whether the actual axis position is within the specified settling range. The settling range is defined by the PESETTLE property and is further qualified by the TIMESETTLE and TIMESETTLEMAX properties. When the motion profiler has completed, the absolute value of the position error (Position - Actual Position) is compared to the PESETTLE property. When the result is less than or equal to this property, for a time given by TIMESETTLE, the ISSETTLED flag is set. The TIMESETTLEMAX property sets a limit on the time to settle from the time the profiler has completed.<br>
+
This read-only property queries the motion status of an element. The element status is returned at every SERCOS communication cycle and comprises 32 bits:
       0 = Not In position<br>
+
 
       1 = In position
+
Bit [0] motion reached (position or velocity) target (1), target not yet reached (0)
 +
 
 +
Bit [1] in motion (0), standing still (1) 
 +
 
 +
Bit [2-3]  (internal flag)=1 if element is braking
 +
 
 +
Bit [4-5]  profile mode (internal flag)=1 if final velocity reached
 +
 
 +
Bit [6-7]  type of profile, see [[MC-Basic:axis.profileType|axis.profileType]]
 +
 
 +
Bit [8-11]  acc_phase
 +
:(<''element''>.motionstatus shr 8) band 0b1111
 +
:[0000] = element acceleration is increasing
 +
:[0001] = constant acceleration (acc saturation or max jerk)
 +
:[0010] = acceleration decrease
 +
:[0011] = zero acceleration
 +
:[0100] =
 +
:[0101] = Trapeze acceleration
 +
:[0110] = Trapeze deceleration
 +
:[0111] =  
 +
 
 +
Bit [12-14] mot_type
 +
 
 +
Bit [15]    doub_mod
 +
 
 +
Bit [16]    sinprg
 +
 
 +
Bit [17]    group_axes
 +
 
 +
Bit [18-20] allow_proceed
 +
 
 +
Bit [21-22] unusedH
 +
 
 +
Bit [23]    imm_exp
 +
 
 +
Bit [24]    imm_chng
 +
 
 +
Bit [25]    stopped
 +
 
 +
Bit [26]    interrupted
 +
 
 +
Bit [27]    pending
 +
 
 +
Bit [28-30] broken_counter
 +
 
 +
Bit [31]    sign
 +
 
 +
 
  
This flag indicates the state of the acceleration.
 
  
Accstatus = (Ax.motionstatus shr 8) band 0b1111
 
  -0 - element acceleration is increasing
 
  -1 - element in acceleration satruration phase
 
  -2 - acceleration decrease
 
  -3 - zero acceleration
 
  -4 - Trapez Linear acceleration is increasing
 
  -5 - Trapez acceleration satruration
 
  -6 - Trapez acceleration decreasing
 
  -7 - Trapez zero acceleration
 
  
  
 
|TYPE=
 
|TYPE=
 
Long
 
Long
 
|RANGE=
 
TBD
 
  
 
|UNITS=
 
|UNITS=
Line 43: Line 78:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Read-Only
+
Read only
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 50: Line 85:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:axis.ISSETTLED|axis.ISSETTLED]]
+
* [[MC-Basic:element.ISSETTLED|ISSETTLED]]
* [[Axystems:MC-Basic:axis.ISMOVING|axis.ISMOVING]]
+
* [[MC-Basic:element.ISMOVING|ISMOVING]]
  
  
 
}}
 
}}

Latest revision as of 11:08, 13 September 2017

Language: English  • 中文(简体)‎

This read-only property queries the motion status of an element. The element status is returned at every SERCOS communication cycle and comprises 32 bits:

Bit [0] motion reached (position or velocity) target (1), target not yet reached (0)

Bit [1] in motion (0), standing still (1)

Bit [2-3] (internal flag)=1 if element is braking

Bit [4-5] profile mode (internal flag)=1 if final velocity reached

Bit [6-7] type of profile, see axis.profileType

Bit [8-11] acc_phase

(<element>.motionstatus shr 8) band 0b1111
[0000] = element acceleration is increasing
[0001] = constant acceleration (acc saturation or max jerk)
[0010] = acceleration decrease
[0011] = zero acceleration
[0100] =
[0101] = Trapeze acceleration
[0110] = Trapeze deceleration
[0111] =

Bit [12-14] mot_type

Bit [15] doub_mod

Bit [16] sinprg

Bit [17] group_axes

Bit [18-20] allow_proceed

Bit [21-22] unusedH

Bit [23] imm_exp

Bit [24] imm_chng

Bit [25] stopped

Bit [26] interrupted

Bit [27] pending

Bit [28-30] broken_counter

Bit [31] sign

Syntax

None

Availability

All versions

Type

Long

Scope

Configuration, Task or Terminal

Limitations

Read only

Examples

?(Ax.motionstatus shr 8) band 0b1111

See Also