touch-off in joypad

More
27 Apr 2017 17:56 #92226 by caio
touch-off in joypad was created by caio
hi there,
i need to grab the "touch off" button (in axis gui) on my joypad.
i'm a bit confused, because i can't find any hal pin connected.
how can i do it?

Please Log in or Create an account to join the conversation.

More
28 Apr 2017 12:40 #92261 by andypugh
Replied by andypugh on topic touch-off in joypad
I don't think that you can, unfortunately.

What do you want to happen when you press the button? There might be another way to achieve the same result.

Please Log in or Create an account to join the conversation.

More
28 Apr 2017 13:05 - 28 Apr 2017 13:06 #92265 by caio
Replied by caio on topic touch-off in joypad
thanks for answer.
i would like the same function the touchoff button do: move the zero point of the loaded gcode on the XY plane, based on the tool position, and adapting the gcode position.
i also tried the G10 command in MDI mode, but it seems to move the zero point only. it don't move the tracks position.
after all, it's the same as the Z-probe do.
alternatively, could i grab the the keyboard's END key?

PS: sorry for my poor english
Last edit: 28 Apr 2017 13:06 by caio.

Please Log in or Create an account to join the conversation.

More
28 Apr 2017 13:23 - 28 Apr 2017 13:23 #92267 by andypugh
Replied by andypugh on topic touch-off in joypad
The touch-off button allows you to enter an offset, and that would be a more difficult thing to arrange.

If all you need is to set the current position to zero in X and Y then add this to the [HALUI] section
MDI_COMMAND = G10 P0 L20 X0 Y0
Then connect the joypad pin to halui.mdi-command-00 in HAL.

You might need to force a reload/refresh of the preview screen. That is a different puzzle, and I can't recall if we found an answer.
Last edit: 28 Apr 2017 13:23 by andypugh.

Please Log in or Create an account to join the conversation.

More
01 May 2017 11:36 #92430 by caio
Replied by caio on topic touch-off in joypad
it works. i was using a wrong gcode.
it doesn't refresh preview, but doesn't matter for now, i can do it manually in axis.
thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum