CNC Homing is not working

More
09 Sep 2021 02:09 #220028 by kedgardov
Good afternoon,
I'm running a  3axis (XXYZ) CNC mill machine that is kind of working so far. Manual homing works good enough run tests and they turn out fine. Now I'm trying to auto home my machine using limit switches (All home+ limit configuration )all connected to a single pin. It should home Y axis first, followed by both motors on X axis and finally Z axis. However from the very beginning, the Y axis keeps moving even after triggering the switch. I tested the switches in the halmeter and they trigger the signal ok. I want to know why the Y motor won't stop and go back after triggering the switch. I'm attaching my INI and HAL files. 
 
Attachments:

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

More
09 Sep 2021 02:29 - 09 Sep 2021 02:44 #220029 by Aaroncnc
Replied by Aaroncnc on topic CNC Homing is not working
Maybe try adjusting the "HOME_SEQUENCE = " to the following
y=0 (it will go first)
x=1 (second)
z=2 (third)
Last edit: 09 Sep 2021 02:44 by Aaroncnc.

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

More
09 Sep 2021 03:10 #220032 by PCW
Replied by PCW on topic CNC Homing is not working
The all limit signal is not connect to any joints as far as I can see:
that is, you have:
# --- ALL-LIMIT-HOME ---
net all-limit-home <= hm2_7i76e.0.7i76.0.0.input-16-not

but all-limit-home is not connected to any joint home or limit pins

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

More
09 Sep 2021 04:12 #220035 by kedgardov
Replied by kedgardov on topic CNC Homing is not working
Thanks for pointing that out.
How can I do that? Is it on the ini or Hal file? Or how can I look for that documentation

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

More
09 Sep 2021 05:23 #220039 by PCW
Replied by PCW on topic CNC Homing is not working
by changing

# ---setup home / limit switch signals---

net x-home-sw => joint.0.home-sw-in
net x-neg-limit => joint.0.neg-lim-sw-in
net x-pos-limit => joint.0.pos-lim-sw-in

to

# ---setup home / limit switch signals---

net all-limit-home => joint.0.home-sw-in
net all-limit-home => joint.0.neg-lim-sw-in
net x-pos-limit => joint.0.pos-lim-sw-in

Assuming that home is also negative limit

You would need to do this for all joints

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

More
09 Sep 2021 18:06 #220075 by kedgardov
Replied by kedgardov on topic CNC Homing is not working
Thank you very much! It is now stopping however, I now get joint errors after the switch is triggered. I'm guessing it has to do with all joints sharing limit switches, but I think that's what the all home + switch setup was solving

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

More
09 Sep 2021 20:19 #220081 by PCW
Replied by PCW on topic CNC Homing is not working
What is the actual error?

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

More
10 Sep 2021 18:52 #220164 by kedgardov
Replied by kedgardov on topic CNC Homing is not working
So the actual error I get is "joint n on limit switch error" on all joints. {I'm attaching a picture of the problem{this picture is of the problem when all other homing lines are commented on the ini file, however I'll get one of those for each joint if uncommented}}. I did some research and found a similar problem in this link: forum.linuxcnc.org/49-basic-configuratio...limits-during-homing
However I don't think they found a solution in terms of software. I ran some tests commenting the homing and limit nets for all other axis but y, It seems to kind of work that way. which is what lead me to think the error had to do with the "To use only one input for all homing and limits you will have to block the limit signals of the joints not homing in HAL and home one joint at a time." line in the homing documentation. I tried using and2 gates to only home when joint.n.homing and ALL-LIMIT-HOME signals where True for the joint.0.home-sw-in. I still get the same error (which may be because it the other joint.n.home-sw-in signals are triggering). What can I do to prevent them for triggering while homing?

Example of the and2 gates created [which seems to work perfect when I monitor signals in the halmeter]:
loadrt and2 count=1

addf and2.0 servo-thread

net and2.0.in0 <= parport.0.pin-11-in

net and2.0.in1 <= joint.0.homing

net
joint.0.home-sw-in
<= and2.0.out
Attachments:

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

More
10 Sep 2021 19:00 #220165 by PCW
Replied by PCW on topic CNC Homing is not working
Ahh yes combined limits and home only work on a per joint basis

Seems like a better solution is to just use 3 inputs
The following user(s) said Thank You: kedgardov

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

More
10 Sep 2021 19:01 #220166 by kedgardov
Replied by kedgardov on topic CNC Homing is not working
I'm attaching my hal and ini files (most changes if not all are on the hal file)
Attachments:

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

Time to create page: 0.088 seconds
Powered by Kunena Forum