Hello Guest it is December 26, 2024, 05:30:20 AM

Author Topic: Setting softlimits  (Read 6360 times)

0 Members and 1 Guest are viewing this topic.

Offline Ben

*
  •  79 79
Setting softlimits
« 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

Offline Ben

*
  •  79 79
Re: Setting softlimits
« Reply #1 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