Hello Guest it is December 11, 2019, 10:46:41 PM

Author Topic: Using laser pointer to set x/y origin  (Read 6746 times)

0 Members and 1 Guest are viewing this topic.

Using laser pointer to set x/y origin
« on: April 19, 2013, 11:11:17 AM »
I am sure that this has been covered (probably many times) in the forum, but I can't locate what I need.

I want to use a laser pointer bolted to the carriage to set the x-y origin.

So the steps would be

Manually position the laser dot to the desired point on the part with the jog controls.
Add a button to do the following:
Move the carriage some predetermined amount (distance between the laser dot and the cutter center).
Zero the x and y dro.

I am sure that this is trivial, but I don't have very much expertise in VB.
Thanks
Re: Using laser pointer to set x/y origin
« Reply #1 on: April 19, 2013, 02:06:27 PM »

Offline ger21

*
  • *
  •  6,291 6,291
    • View Profile
    • The CNC Woodworker
Re: Using laser pointer to set x/y origin
« Reply #2 on: April 19, 2013, 10:14:56 PM »
Or do this, which sets the zero position, but doesn't actually move it to zero. Just use the appropriate X and Y offsets.

XOffset = 3.43   'X offset from laser crosshair to spindle
YOffset = 4.322   'Y offset from laser crosshair to spindle


SetOEMDRO(800,XOffset)
SetOEMDRO(801,YOffset)

Sleep(125)
  
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html