Hello Guest it is October 21, 2019, 04:26:44 AM

Author Topic: Adding buttons for Scripts  (Read 1712 times)

0 Members and 1 Guest are viewing this topic.

Adding buttons for Scripts
« 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
One step at a time!

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: Adding buttons for Scripts
« Reply #1 on: November 03, 2012, 10:00:22 AM »
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

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Adding buttons for Scripts
« Reply #2 on: November 03, 2012, 10:29:02 AM »
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
One step at a time!
Re: Adding buttons for Scripts
« Reply #3 on: November 03, 2012, 10:51:43 AM »
Thanks Gerry, I have downloaded Scree4 and will go lookie see.

George
One step at a time!
Re: Adding buttons for Scripts
« Reply #4 on: November 03, 2012, 12:38:04 PM »
Thanks Gerry, all done now.
Works a treat.

George
One step at a time!