Add SYNC virt MRs
This commit is contained in:
+7
-1
@@ -24,6 +24,9 @@ if ( static.counter<0.105 ) {
|
||||
|
||||
#- State -1
|
||||
if(static.VMState==-1) {
|
||||
|
||||
#- Trigg MR sync for all virt axes
|
||||
mc_grp_set_mr_sync_next_poll(${GRP_ID_VA},1);
|
||||
|
||||
#- RM are no longer in motion
|
||||
#- -1 -> 0
|
||||
@@ -41,7 +44,7 @@ if(static.VMState==-1) {
|
||||
println('-1 -> 0');
|
||||
static.VMState:=0;
|
||||
};
|
||||
|
||||
|
||||
#- If RM Motion is occuring, and user commands VM motion: simply disable the VMs to void the command.
|
||||
if( mc_grp_get_any_enabled(${GRP_ID_VA})==1 and mc_grp_get_any_enable(${GRP_ID_VA})==1 ) {
|
||||
mc_grp_set_enable(${GRP_ID_VA},0);
|
||||
@@ -50,6 +53,9 @@ if(static.VMState==-1) {
|
||||
|
||||
#- State 0
|
||||
else if(static.VMState==0) {
|
||||
|
||||
#- Trigg MR sync for all virt axes
|
||||
mc_grp_set_mr_sync_next_poll(${GRP_ID_VA},1);
|
||||
|
||||
#- 0 -> -1
|
||||
#- Trigger Condition:
|
||||
|
||||
@@ -12,7 +12,6 @@ epics:
|
||||
precision: 4
|
||||
unit: mm
|
||||
motorRecord:
|
||||
enable: false
|
||||
description: "Low"
|
||||
|
||||
drive:
|
||||
|
||||
@@ -12,7 +12,6 @@ epics:
|
||||
precision: 4
|
||||
unit: mm
|
||||
motorRecord:
|
||||
enable: false
|
||||
description: "Hi"
|
||||
|
||||
drive:
|
||||
|
||||
@@ -8,7 +8,6 @@ epics:
|
||||
precision: 4
|
||||
unit: mm
|
||||
motorRecord:
|
||||
enable: false
|
||||
description: "Center (Virtual)"
|
||||
|
||||
encoder:
|
||||
|
||||
@@ -8,7 +8,6 @@ epics:
|
||||
precision: 4
|
||||
unit: mm
|
||||
motorRecord:
|
||||
enable: false
|
||||
description: "Gap (Virtual)"
|
||||
|
||||
encoder:
|
||||
|
||||
Reference in New Issue
Block a user