Machsupport Forum
G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: woodguy7777 on April 11, 2010, 05:17:17 PM
-
i have fitted a laser pointer on my cnc so that it makes it easy to centre my bit.
using MDI alt2 i enter this offset g0x-0.3709y7.0013 this brings my router bit to where the laser point was.
what i am trying to do is to put this in a file form.
instead of having to keep typing it in the MDI box.
just bring up the file and hit cycle start
paul
-
You can add a button that calls a macro to do that
If you only want to go to the laser position the macro can be
Code ("g0x-0.3709y7.0013 ")
If what you want to do is zero the work coordinates in the laser position, you can do it without even moving
SetOEMDRO (800,0.3709)
SetOEMDRO (801,-7.0013)
Regards
-
Hi Paul,
The system I use is shown on this page http://www.cooperman.talktalk.net/files/17.htm
The scripts for the screen buttons are at the bottom of the page, obviously you need to modify the second one with your offset dimensions.
Hope this helps,
Tweakie.
-
thanks Elpablito and Tweakie.
tweakie, the link you sent was very helpfull.
thanks paul