Homing, zero z-axis by button press on joypad.

More
24 Dec 2017 12:29 - 24 Dec 2017 12:30 #103542 by Cnckalle
First thing first, Merry Christmas to all of you.

I am new to LinuxCNC, I have a 3040 router and I bought a joypad.
I got the joypad configured. But I would like to be able to zero/home x,y,z and a Axis by simply pressing a button (or combination of two, but that I can handle). Same functionality like the Home button in the linuxcnc UI on the computer.
I can't really find a HAL function that would do this. Checked the AXIS, halui etc.
Would appreciate some help on this.
Thanks!
Last edit: 24 Dec 2017 12:30 by Cnckalle.

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

More
25 Dec 2017 04:57 #103582 by lamandesigns
Replied by lamandesigns on topic Homing, zero z-axis by button press on joypad.
You can do a net MDI-zerox and connect that to an input from the joypad and then pass it to a halui.mdi-command-00. In the ini file under halui section, the MDI_COMMAND = G10 L20 P0 X0 for zero and G0 X0 to go to zero. Hope that gets you going at least!
The following user(s) said Thank You: Cnckalle

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

More
27 Dec 2017 18:42 #103761 by Cnckalle
Replied by Cnckalle on topic Homing, zero z-axis by button press on joypad.
Hi lamandesigns,

I tried your suggestion, but without luck. Linuxcnc doesn't want to accept gcode before I homed my axis, but homing is what I want to do. Chicken and the egg sort of problem.
But I found a way that works.
It is the halui.joint.2.home that needs to be set to home it.

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

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
28 Dec 2017 04:48 #103772 by rodw
I thought setting halui.home-all to be true homed all axes but I have not actually tried to use it.

linuxcnc.org/docs/html/man/man1/halui.1.html

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

Time to create page: 0.090 seconds
Powered by Kunena Forum