diff --git a/axis_sm.plc_inc b/axis_sm.plc_inc index 736c8dd..8cc0f4a 100755 --- a/axis_sm.plc_inc +++ b/axis_sm.plc_inc @@ -53,7 +53,7 @@ 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); @@ -86,6 +86,8 @@ else if(static.VMState==0) { #- state change println('0 -> 1'); static.VMState:=1; + #- Disable MR sync for all virt axes + mc_grp_set_mr_sync_next_poll(${GRP_ID_VA},0); }; }