no option to home just Y axis on gantry with 2 Y motors

More
4 years 8 months ago - 4 years 8 months ago #234540 by dbotos
That sounds like a PITA.  Could a "Home Y" button be added with GladeVCP?  It would need to (1) zero the G53 Y position and (2) mark that axis as homed.  Which doesn't seem impossible since Axis does that to the Y axis (along with the X and Z axes) when you press Home All.
Last edit: 4 years 8 months ago by dbotos.
More
4 years 8 months ago - 4 years 8 months ago #234572 by Todd Zuercher
Yes, to home a gantry axis by itself you can use the Halui pins "halui.joint.N.home" for all of the joints involved in the gantry axis. Simply net those together with the hal output pin from a VCP button or a real button. For example:
Code:
net HOME-Y <= gladevcp.button1 => halui.joint.1.home => halui.joint.3.home

 
Last edit: 4 years 8 months ago by Todd Zuercher.
More
4 years 8 months ago #234596 by dbotos
Cool - I will give that a try.
More
4 years 8 months ago - 4 years 8 months ago #234739 by dbotos
I created a UI in Glade 3.8.6-1 and saved it as "dbotos_laser_2_8_vcp.ui".  It has a button is there for homing Y and I also threw in a meter for percent full power of the laser.

I created an associated HAL file named "dbotos_laser_2_8_vcp.hal" and put the line in there suggested by Todd (with a modification for the button id).  I didn't put anything in there for the meter yet.

And, I modified my INI file as follows:

In the [DISPLAY] section, added:
Code:
GLADEVCP = -u ./dbotos_laser_2_8_vcp.ui

In the [HAL] section, added:
Code:
POSTGUI_HALFILE = ./dbotos_laser_2_8_vcp.hal

When I tried to run LinuxCNC with my dbotos_laser_2_8 config, it gave the following error:
Code:
Warning: Forward kinematics must handle duplicate coordinate letters:yy Note: Individual axis homing is not currently supported for KINEMATICS_IDENTITY with duplicate axis letter Embeded tab command "halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -x 44040335 -u ./dbotos_laser_2_8_vcp.ui" exited with error: 1
Attachments:
Last edit: 4 years 8 months ago by dbotos.
More
4 years 8 months ago - 4 years 8 months ago #234742 by dbotos
Thinking out loud:

What if I made two home buttons - one for Y1 and one for Y2 and then called them out in the vcp HAL file like this?
Code:
net HOME-Y1 <= gladevcp.home_y1_button => halui.joint.1.home

and
Code:
net HOME-Y2 <= gladevcp.home_y2_button => halui.joint.3.home

Or is that just wishful thinking?
Last edit: 4 years 8 months ago by dbotos.
More
4 years 8 months ago - 4 years 8 months ago #234786 by Todd Zuercher
I think the halui.joint.N.home pins for y1 and y2 should be connected to the same button so that it's not possible to activate them independently. I had tested it in a simulation and it was working there. I didn't look through your configuration files to see if I could find your error.
Last edit: 4 years 8 months ago by Todd Zuercher. Reason: Edited to be more specific.
Time to create page: 0.418 seconds
Powered by Kunena Forum