Add SYNC virt MRs

This commit is contained in:
2024-09-16 15:38:38 +02:00
parent 04cfa81ab9
commit 50b42284c5
5 changed files with 7 additions and 5 deletions
+7 -1
View File
@@ -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:
-1
View File
@@ -12,7 +12,6 @@ epics:
precision: 4
unit: mm
motorRecord:
enable: false
description: "Low"
drive:
-1
View File
@@ -12,7 +12,6 @@ epics:
precision: 4
unit: mm
motorRecord:
enable: false
description: "Hi"
drive:
-1
View File
@@ -8,7 +8,6 @@ epics:
precision: 4
unit: mm
motorRecord:
enable: false
description: "Center (Virtual)"
encoder:
-1
View File
@@ -8,7 +8,6 @@ epics:
precision: 4
unit: mm
motorRecord:
enable: false
description: "Gap (Virtual)"
encoder: