- Posts: 10
- Thank you received: 0
NEED HELP for configuring a XYYZ (2 motors on Y gantry) with linuxcnc 2.9
Clive s wrote: Change this:-
TRAJ]
COORDINATES = X Y Z
To
TRAJ]
COORDINATES = X Y Y Z
Thanks Clive s.
I tried this, it gives an error as bellow, linuxcnc won't start.
Please Log in to join the conversation.
Is it possible that you have a somehow corrupted hal file so some net
connections are not made?
Can you post the file all.txt generated by this command
halcmd show all >all.txt
(execute command when linuxCNC is running)
Please Log in to join the conversation.
PCW wrote: If the joint 1 and joint 2 commanded positions move this suggests that the stepgens are working (or you would get a following error)
Is it possible that you have a somehow corrupted hal file so some net
connections are not made?
Can you post the file all.txt generated by this command
halcmd show all >all.txt
(execute command when linuxCNC is running)
Here it is:
Please Log in to join the conversation.
(that is I suspect you have never got out of telop mode due to homing issues)
Please Log in to join the conversation.
I finally find out where I went wrong.
I start from the beginning, checking my wiring, find out that my Y1 and Y2 's motor connectors using different configuration.
My Y1's connector looks like B+ B- A- A+, but my Y2's A+ A- B- B+.
In the first place, I thought their wiring arrangement should be the same.
So, In the Stepconfig, I invert Y1 pulse and Y1 dir, but leave Y2 as default (unchecked)
That's the main reason why my Y2 get no go.
The second mistake I made in Stepconfig, is that I select my limit switch as:
"X pos+neg", "Y pos+neg", "Z pos" .
Since my machine has no separate home switch, I should have selected:
"X home+pos+neg", "Y home+pos+neg", "Z home+pos" .
I think that's why my ini missing several settings for homing in the first place, such as:
HOME_IGNORE_LIMITS
HOME_SEARCH_VEL
HOME_LATCH_VEL
HOME_FINAL_VEL
Finally, I change Y2 section of my hal:
Besides that, I did some minor changes to other config values.
Right now my machine works like a charm.
well, I haven't actually put some real work for it to run, but at least it "jogs" like a charm.
Many thanks to PCW, tommylight, Todd Zuercher, Clive s.
Your suggestions gave me good clues to start debugging my hal and ini.
Saving me form overwhelmed by hundreds pages of documents.
There's more to discover in linuxcnc.
But right now, I am very happy that my machine finally start operating.
Please Log in to join the conversation.
Hope that will help someone like me.
My system info:
Software: linuxcnc 2.9 (upgrade from linuxcnc 2.7.0 with Debian wheezy)
Controller: Mainly TB6560 with X Y Z A B , and various pings for limit switch.
X: 1 nema 23 step motor with 2 limit switch.
Y: 2 nema 23 step motors with 2 limit switch, forming a Y gantry.
Z: 1 nema 23 step motor with 1 limit switch.
Note that my Y1 and Y2 motor's should rotate in reverse way( Y1 go clockwise, Y2 must go counterclockwise)
to correctly move Y gantry.
And, by factory default, my Y1 and Y2 motors' connectors wiring are different.
Y1 looks like B+ B- A- A+, Y2 looks like A+ A- B- B+
In this case, the setting in Stepconfig for Y1 and Y2 should be THE SAME.
I.E. if Y1 check invert, Y2 should check invert, vise versa.
Last but not least, my X and Y both have 2 limit switches for pos and neg, but have no separate home switch.
So, when selecting switch mode for limit switch in Stepconfig,
one should choose something like "X +home+both".
By using the following hal and ini, my linuxcnc can be up and running.
The X and Y can jog at full speed.
There might be some other issue in these configs,
but it's a good start point for me.
my working hal
Please Log in to join the conversation.
PCW wrote: Have you ever homed the gantry?
(that is I suspect you have never got out of telop mode due to homing issues)
I got my system working.
Thank you for continuing follow my problem.
I do learned a lot from your suggestions.
Please Log in to join the conversation.
Where does the diffrence in Max Jog Velocity come from? Any ideas?
PS. The machine is based on stepper motors.
Please Log in to join the conversation.
- captain chaos
- Offline
- Junior Member
-
- Posts: 38
- Thank you received: 0
cheers
Paul
Please Log in to join the conversation.
