Button for Y-axis speed

  • Muecke
  • Muecke's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
19 Jan 2025 16:56 #319385 by Muecke
Button for Y-axis speed was created by Muecke
Hello everyone,

I have a push button that should move 50% speed on the y-axis.

LinuxCNC: 2.9.1 (is correct)

Hardware:
Mesa 7i95
Push-button => www.amazon.de/dp/B08B5YC29H

I have connected it to input pin 7 (hm2_7i95.inmux.00.input-07-not).
Hal-Meter
Button not pressed => TRUE
Button pressed => FALSE

No matter what I enter in my HAL files, the Linux CNC no longer starts :-(

How do I have to write this into the HAL?
Button pressed == axis Y with 50% speed in positive direction

My current INI & HAL data:

File Attachment:

File Name: demo2023_2...1-19.ini
File Size:8 KB


File Attachment:

File Name: io_2025-01-19.hal
File Size:2 KB


File Attachment:

File Name: joypad_jog...1-19.hal
File Size:1 KB


File Attachment:

File Name: joypad_xyz...1-19.hal
File Size:1 KB


File Attachment:

File Name: main_2025-01-19.hal
File Size:9 KB


File Attachment:

File Name: postgui_ca...1-19.hal
File Size:0 KB



Sorry, I had already opened a post in the German forum, but unfortunately without a response, so this time in the English section. Hoping that someone can help me further.
forum.linuxcnc.org/42-deutsch/55066-tast...nuxcnc-2-8-einbinden


Greetings Mücke


 
Attachments:

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

  • Muecke
  • Muecke's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
20 Jan 2025 07:01 - 20 Jan 2025 10:58 #319445 by Muecke
Replied by Muecke on topic Button for Y-axis speed
If I have understood correctly, I have now installed the input pin (at least there is no longer an error), but when the button is pressed, nothing moves on my machine :-(.

What have I forgotten?
# Datei: io.hal

# ############################################### #
# Fußschalter Y-Achse (Footswitch) #
# #
# Connect button to Mesa input 7 #
# Move foot switch Y-axis #
# Move in positive direction #
# #
# ############################################### #
#
# Joint to Axis
# Joint 0 ==> Axis Z
# Joint 1 ==> Axis Z
# Joint 2 ==> Axis X
# Joint 3 ==> Axis Y
# Joint 4 ==> Axis C
#
# Hal-Meter
# Pin ==> hm2_7i95.0.inmux.00.input-07-not
# Button not pressed => TRUE
# Button pressed => FALSE
#
# Verknüpfe die Taste mit dem Jog-Enable-Signal der Y-Achse
net Footswitch joint.3.jog-enable <= hm2_7i95.0.inmux.00.input-07-not

Gruß Mücke


[EDIT]
I found my error, I included a joystick and there were certain things connected that led to the conflict.

I have temporarily removed the joystick.
My HAL now looks like this.
# Link the button to the jog enable signal of the Y-axis
  net  Footswitch halui.axis.y.plus  <= hm2_7i95.0.inmux.00.input-07
# Set speed
  setp halui.axis.jog-speed 1200
Last edit: 20 Jan 2025 10:58 by Muecke.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum