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

From SoftMC-Wiki
Jump to: navigation, search
m
m
Line 11: Line 11:
 
|DESCRIPTION=
 
|DESCRIPTION=
 
This read-only property queries the motion status of an element. The element status is returned every SERCOS communication cycle and comprises 32 bits:
 
This read-only property queries the motion status of an element. The element status is returned every SERCOS communication cycle and comprises 32 bits:
short int prf_stop:1; // 0
+
Bit [0]    prf_stop
short int prf_start:1; // 1
+
Bit [1]    prf_start
short int prf_oper:2; // 2..3
+
Bit [2-3]  prf_oper
short int prf_mode:2; // 4..5
+
Bit [4-5]  prf_mode
short int prf_type:2; // 6..7
+
Bit [6-7]  prf_type
short int acc_phase:4; // 8..11
+
Bit [8-11]  acc_phase
short int mot_type:3; // 12..14
+
Bit [12-14] mot_type
short int doub_mod:1; // 15
+
Bit [15]    doub_mod
short int sinprg:1; // 16
+
Bit [16]    sinprg
short int group_axes:1; // 17
+
Bit [17]    group_axes
short int allow_proceed:3; // 18-19-20
+
Bit [18-20] allow_proceed
short int unusedH:2; // 21..22
+
Bit [21-22] unusedH
short int imm_exp:1; // 23
+
Bit [23]    imm_exp
short int imm_chng:1; // 24
+
Bit [24]    imm_chng
short int stopped:1; // 25
+
Bit [25]    stopped
short int interrupted:1; // 26
+
Bit [26]    interrupted
short int pending:1; // 27
+
Bit [27]    pending
short int broken_counter:3; // 28..30
+
Bit [28-30] broken_counter
short int sign:1; // 31
+
Bit [31]    sing
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
This flag indicates the state of the acceleration.
 
This flag indicates the state of the acceleration.

Revision as of 06:09, 17 July 2011

This read-only property queries the motion status of an element. The element status is returned every SERCOS communication cycle and comprises 32 bits: Bit [0] prf_stop Bit [1] prf_start Bit [2-3] prf_oper Bit [4-5] prf_mode Bit [6-7] prf_type Bit [8-11] acc_phase 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] sing

This flag indicates the state of the acceleration. Accstatus = (Ax.motionstatus shr 8) band 0b1111

       0 = element acceleration is increasing

      1 = In position
      2 = acceleration decrease
      3 = zero acceleration
      4 = Trapez Linear acceleration is increasing
      5 = Trapez acceleration satruration
      6 = Trapez acceleration decreasing
      7 = Trapez zero acceleration

Syntax

none

Availability

All versions

Type

Long

Range

TBD

Scope

Configuration, Task or Terminal

Limitations

Read-Only

Examples

?(Ax.motionstatus shr 8) band 0b1111

See Also