Hello Guest it is March 28, 2024, 06:13:07 PM

Author Topic: G code help  (Read 2717 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

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
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.
PEACE
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