From f47506634ce6c9f5873d490bedd750db3b87828e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Sandstr=C3=B6m?= Date: Mon, 16 Sep 2024 16:01:17 +0200 Subject: [PATCH] Reset MR sync in state 1 --- axis_sm.plc_inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }; }