Hello Guest it is April 16, 2021, 07:25:13 PM

Author Topic: Assigning single axis homing on a gamepad  (Read 1540 times)

0 Members and 1 Guest are viewing this topic.

Assigning single axis homing on a gamepad
« on: August 04, 2010, 12:23:11 PM »
I need to assign four buttons on my gamepad so that they execute the following commands independently:
POV E -> G0 X0
POV S -> G0 Y0
POV N -> G0 Z0
POV W -> G0 A0

First, let me explain why I need this. There are times when I have to set the Z zero plane, halfway the height of the part. If GOTO HOME is executed, during travel to x0,y0,z0, the tool has been lowered so that it might hit the part. My way to avoid this is to jog the Z axis up; then type g0 x0 y0. Also I might need to verify the Z0 height. For this I have to jog the X and Y axis outside the part and then type g0 z0. For all of these cases I have to type on the keyboard.

I want to do this on my gamepad. Namely on POV buttons while button 7 is pressed. Please refer to thread  http://www.machsupport.com/forum/index.php/topic,15127 . There is a limitation that area51's macros (thread http://www.machsupport.com/forum/index.php/topic,12325.0.html ) do not use the button 7 for further options and I have to assign these by the keygrabber.

For now I have only defined OEMCode 138, which moves all the axes to part's home and could not find any specific codes for this purpose, therefore I have to resort to using "Code:" in some kind of scripts and assigning the abovementioned tasks.

How could I write and assign these macros? Your help will be greatly appreciated.