Add Z-Axis to my machine

More
08 Feb 2019 18:21 #126015 by hatch789
Replied by hatch789 on topic Add Z-Axis to my machine
Here you go...

You would think if it was a HAL issue that I wouldn't get accurate reporting of my movements on X & Y.

File Attachment:

File Name: Tree_with_...ders.hal
File Size:11 KB
Attachments:

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

More
08 Feb 2019 19:12 #126016 by Todd Zuercher
Not sure this will make any difference but try commenting out these lines in your hal.
net x-vel-cmd       =>  pid.x.command-deriv
net y-vel-cmd       =>  pid.y.command-deriv
net z-vel-cmd       =>  pid.z.command-deriv

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

More
08 Feb 2019 22:22 #126020 by hatch789
Replied by hatch789 on topic Add Z-Axis to my machine
Damn I forgot about that ...PNCConfig does that automatically so we should submit a but request to fix that. I was using stock PNCConfig files.

That solved my issue. I was able to tune my servos now. Thank you!

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

More
08 Feb 2019 23:49 #126025 by hatch789
Replied by hatch789 on topic Add Z-Axis to my machine
Todd I saw you helped someone else with a toggle button issue but mine was slightly different from their request. I would like to add a toggle button option on my gamepad to turn my amp ON/OFF for my Z axis.

So here's the entry in my hal:
# --- Z-ENABLE ---
setp hm2_7i43.0.gpio.040.is_output true
net z-enable hm2_7i43.0.gpio.040.out

Then I saw the help file for wiki.linuxcnc.org/cgi-bin/wiki.pl?One_Button_Toggle
I am thinking that I need to do something like this in my posgui.hal file:

loadrt toggle count=1
addf toggle.0 servo-thread
net toggle.0.out => z-enable
net z-enable toggle.0.out <= input.0.btn-base4 #Button on joystick

I think the physical connection I need to put my 2 wires on are it's I/O 18 on TB1 bus. This is just to open and close the switch for that amplifier.

Can you tell me if I'm off in outer space or pretty close with what I think I need to do?

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

Time to create page: 0.377 seconds
Powered by Kunena Forum