Hello Guest it is October 19, 2019, 06:55:51 PM

Author Topic: G code help  (Read 1945 times)

0 Members and 1 Guest are viewing this topic.

G code help
« 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
Re: G code help
« Reply #1 on: April 11, 2010, 06:22:37 PM »
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

Offline Tweakie.CNC

*
  • *
  •  7,950 7,950
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: G code help
« Reply #2 on: April 12, 2010, 04:46:41 AM »
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.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: G code help
« Reply #3 on: April 12, 2010, 07:46:42 AM »
thanks Elpablito and Tweakie.
tweakie, the link you sent was very helpfull.
thanks paul