diff --git a/axis_sm.plc_inc b/axis_sm.plc_inc index 2e23688..736c8dd 100755 --- a/axis_sm.plc_inc +++ b/axis_sm.plc_inc @@ -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: diff --git a/example/slit/cfg/axis_ax5_LO.yaml b/example/slit/cfg/axis_ax5_LO.yaml index 3a15875..7f72890 100644 --- a/example/slit/cfg/axis_ax5_LO.yaml +++ b/example/slit/cfg/axis_ax5_LO.yaml @@ -12,7 +12,6 @@ epics: precision: 4 unit: mm motorRecord: - enable: false description: "Low" drive: diff --git a/example/slit/cfg/axis_ax6_HI.yaml b/example/slit/cfg/axis_ax6_HI.yaml index a675760..646c14a 100644 --- a/example/slit/cfg/axis_ax6_HI.yaml +++ b/example/slit/cfg/axis_ax6_HI.yaml @@ -12,7 +12,6 @@ epics: precision: 4 unit: mm motorRecord: - enable: false description: "Hi" drive: diff --git a/example/slit/cfg/axis_vax5_YCEN.yaml b/example/slit/cfg/axis_vax5_YCEN.yaml index 900b843..7ce4052 100644 --- a/example/slit/cfg/axis_vax5_YCEN.yaml +++ b/example/slit/cfg/axis_vax5_YCEN.yaml @@ -8,7 +8,6 @@ epics: precision: 4 unit: mm motorRecord: - enable: false description: "Center (Virtual)" encoder: diff --git a/example/slit/cfg/axis_vax6_YGAP.yaml b/example/slit/cfg/axis_vax6_YGAP.yaml index 11fc3ee..918052f 100644 --- a/example/slit/cfg/axis_vax6_YGAP.yaml +++ b/example/slit/cfg/axis_vax6_YGAP.yaml @@ -8,7 +8,6 @@ epics: precision: 4 unit: mm motorRecord: - enable: false description: "Gap (Virtual)" encoder: