touch-off in joypad

More
9 years 6 months ago #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 to join the conversation.

More
9 years 6 months ago #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 to join the conversation.

More
9 years 6 months ago #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

Please Log in to join the conversation.

More
9 years 6 months ago #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
Code:
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.

Please Log in to join the conversation.

More
9 years 5 months ago #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 to join the conversation.

Time to create page: 0.271 seconds
Powered by Kunena Forum