Machsupport Forum

Mach Discussion => FAQs => Topic started by: Rich Moller on January 26, 2014, 01:15:10 AM

Title: laser crosshair setup?
Post by: Rich Moller on January 26, 2014, 01:15:10 AM
I've seen a number of chrosshair lasers mounted on the CNC and seen them jog to the edge of there work piece. But what I'm looking for is the code and the button that once jogged to target I press and I get a GO X <some offset> Y <some offset> ADD tool Radius and auto zero the DRO's.
Title: Re: laser crosshair setup?
Post by: ger21 on January 26, 2014, 08:27:41 AM
Just change the values to the offsets from the crosshair to the center of your spindle.

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)