1
Mach4 General Discussion / Automatically Activate Soft Limits (The same way the button does)
« on: February 20, 2018, 06:37:59 AM »
Hello All,
I have been trying to find an elegant way of activating the soft limits after the ref all button has been pressed.
I have read through: http://www.machsupport.com/forum/index.php?PHPSESSID=upo39p5fi37e018ldiefmlbds1&topic=30192.0;wap2
That's a nice solution, but it's getting a bit too custom for my liking. I don't want to re-write the function that already works.
What I would like to do, is leave the SoftLimit button Up Action and Down Action alone. Then just call the "Soft Limit On" action from the end of the RefAllHome() function.
Failing that, is there a way to "click" a toggle button from a script?
Regards,
Owen.
I have been trying to find an elegant way of activating the soft limits after the ref all button has been pressed.
I have read through: http://www.machsupport.com/forum/index.php?PHPSESSID=upo39p5fi37e018ldiefmlbds1&topic=30192.0;wap2
That's a nice solution, but it's getting a bit too custom for my liking. I don't want to re-write the function that already works.
What I would like to do, is leave the SoftLimit button Up Action and Down Action alone. Then just call the "Soft Limit On" action from the end of the RefAllHome() function.
Failing that, is there a way to "click" a toggle button from a script?
Regards,
Owen.