Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 02:20:59 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Setting softlimits
Pages: 1   Go Down
Print
Author Topic: Setting softlimits  (Read 1055 times)
0 Members and 1 Guest are viewing this topic.
Ben
Active Member

Online Online

Posts: 46


View Profile
« on: September 27, 2007, 07: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
Logged
Ben
Active Member

Online Online

Posts: 46


View Profile
« Reply #1 on: October 01, 2007, 06: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
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!