Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: zoxx2446 on April 09, 2018, 09:57:46 AM
-
How to automatically change/update softlimit position according to a tailstock position in lathe? I have a lathe with tailstock witch is moved with support. I need that when I reach desired position and after disengaging the tailstock from the support that soft limit is automatically updated. Basically what I need is that when I press a button on the screen then soft limit for Z axis (Z+) is updated. Thanks.
-
Looks like mcAxisSetSoftlimitMax and mcAxisSetSoftlimitMin will work for what you are trying to do. You can find all of the soft limit functions in the API Help contents in the Lua editor.
Not sure exactly what you are trying to do, but you could create a button with the screen editor that gets whatever info you need and uses it to update the soft limit settings.
Hope that helps!