Hello Guest it is March 28, 2024, 01:55:57 PM

Author Topic: Auto Tool Zero Keyboard shortcut  (Read 4111 times)

0 Members and 1 Guest are viewing this topic.

Auto Tool Zero Keyboard shortcut
« on: September 01, 2015, 03:10:43 PM »
Hey all,

Any one know how to set up a keyboard shortcut for starting the auto tool zero?  Holding the touch off plate with my right hand and running the mouse to click the auto zero button is a pain.  Would like to just be able to click Alt>L or Alt>Num Pad 1 or pretty much anything similar with my left hand. 

Here is the current script for the button:

Rem   

FeedCurrent = GetOemDRO(818)    'Get the current settings, OEM DROs (818)=Feedrate DRO
ZCurrent = GetOemDro(802)   'OEM DROs (802)=Z DRO
GageH = GetOEMDRO(1001)   'OEMDRO(1001)=Gage Block Height
ZNew = ZCurrent - 20      'probe down 20

Code "G90F10"         'slow feed rate to 10 IN/MIN
Rem Code "G4 P0.5"         'Pause 1 second to give time to position probe plate
Code "G31 Z" &ZNew
While IsMoving()
Sleep(10)
Wend
Call SetDro (2,GageH)      'DRO(2)=Z DRO

FinalMove = GageH + .25
Code  "G0 Z" &FinalMove
Code "F" &FeedCurrent        'restore starting feed rate   

Thanks, for any input.

Re: Auto Tool Zero Keyboard shortcut
« Reply #1 on: September 01, 2015, 03:14:33 PM »
Why not use the joypad plug-in and set a button combo to run the script?
Re: Auto Tool Zero Keyboard shortcut
« Reply #2 on: September 01, 2015, 04:00:32 PM »
Joypad?  Don't want to add more hardware, cables, connections, failure points, etc.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Auto Tool Zero Keyboard shortcut
« Reply #3 on: September 01, 2015, 07:55:44 PM »
Open the screenset with MachScreen and apply a hotkey  {Alt_L} to the button then save and restart .

(;-) TP
Re: Auto Tool Zero Keyboard shortcut
« Reply #4 on: September 14, 2015, 09:46:37 AM »
Using a roller ball mouse, lot faster and accurate with less hand movement needed, plus the buttons are larger.  Will try MachScreen in the near future though.