Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: Len-Tikular on November 03, 2012, 09:54:23 AM
-
I've just added a laser cross hair to my router table.
The center of the cross image offset from the center of my spindle is -52.79mm in X and -0.375 in Y.
So I must add a Button and as assign a script to it.
Any guidance would be appreciated, I use the standard Mach3 screen and have not messed with it yet.
Thanks
George
-
Do you need to know how to add a button? There are screen designer tutorials here. Screen 4, at the bottom of the list http://www.machsupport.com/videos/
Here's the code I use in my screen.
XOffset = -52.79 'X offset from laser crosshair to spindle
YOffset = -0.375 'Y offset from laser crosshair to spindle
SetOEMDRO(800,XOffset)
SetOEMDRO(801,YOffset)
Message "X and Y Axis Zeroed to Laser Crosshair"
-
Gerry, that looks good. I have watched the tutorial. Is Scree4 part of Mach3 or do I need to download it ?
Cant find it in my Mach3 directory.
George
-
Thanks Gerry, I have downloaded Scree4 and will go lookie see.
George
-
Thanks Gerry, all done now.
Works a treat.
George