Problem with changing softlimit for the Y axis in a macro.

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

Problem with changing softlimit for the Y axis in a macro.

Postby kim@moltved.dk » Wed Aug 17, 2022 8:37 pm

Hi

I try to change Y softlimit in my M6 macro to accerss the tools, but some time it change back, so the machine stop as it enter the softlimit.

Enter the macro:
AS3.Setfield(763, 27);
exec.Callbutton(168);
exec.Wait(2000);

Exit the macro:
AS3.Setfield(592, 27);
exec.Callbutton(168);
Attachments
Slow.pro
(44.59 KiB) Downloaded 290 times
M6.txt
(11.35 KiB) Downloaded 280 times
kim@moltved.dk
 
Posts: 50
Joined: Sat Nov 25, 2017 12:25 pm

Re: Problem with changing softlimit for the Y axis in a macr

Postby ger21 » Thu Aug 18, 2022 1:08 am

Make sure you use ValidateField after changing it.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Problem with changing softlimit for the Y axis in a macr

Postby dezsoe » Thu Aug 18, 2022 7:22 am

You may turn the softlimits function on and off in a macro while cycle is started, but do not apply and/or save settings.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Problem with changing softlimit for the Y axis in a macr

Postby kim@moltved.dk » Thu Aug 18, 2022 6:24 pm

?? when turn softlimit off it have no effect!
Who to?? Example!
kim@moltved.dk
 
Posts: 50
Joined: Sat Nov 25, 2017 12:25 pm

Re: Problem with changing softlimit for the Y axis in a macr

Postby dezsoe » Thu Aug 18, 2022 6:30 pm

Button codes from the manual:

518: Softlimitson
519: Softlimitsoff

You just have to call exec.Callbutton(519) to turn off the soft limits and after you finished call exec.Callbutton(518) to turn it back on.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Problem with changing softlimit for the Y axis in a macr

Postby kim@moltved.dk » Thu Aug 18, 2022 6:39 pm

Thangs :-)
kim@moltved.dk
 
Posts: 50
Joined: Sat Nov 25, 2017 12:25 pm


Return to Macros

Who is online

Users browsing this forum: No registered users and 12 guests