Machsupport Forum

Mach Discussion => Mach Screens => Topic started by: Ben on September 27, 2007, 08:56:13 PM

Title: Setting softlimits
Post by: Ben on September 27, 2007, 08:56:13 PM
I have a Bridgemill, lathe and Mill combo, and my configuration changes quite often. I would like to change my softlimits to accommodate the changes by moving the X and Y-axis to where the new limit will be and press a button to store that position as the new softlimit and display them on screen.
    Has anyone written code to do this or any suggestions? Thanks
Title: Re: Setting softlimits
Post by: Ben on October 01, 2007, 07:22:46 PM
I figured it out. Put on screen  a DRO for X softlimit Max (DRO150) and one for X softlimit Min (DRO156). Place a button for each and have the button run VB
Dim Val
Val = GetOemDro(83) ' current X coordinate
Call SetOemDro(150,Val) ' Writes current X position into X max softlimit.
Use 83, 156 for X Min
Use 84, 151 For Y Max and 84, 157 for Y Min