Unable to home
- yi2580
- Offline
- Elite Member
Less
More
- Posts: 161
- Thank you received: 3
03 Aug 2021 02:40 #216774
by yi2580
Unable to home was created by yi2580
Hello, this error occurs when I use the home all function of linuxcnc. How can I solve it
"Cannot home while shared home switch is closed j=2
Cannot home while shared home switch is closed j=0
"
Thank you for your reply
"Cannot home while shared home switch is closed j=2
Cannot home while shared home switch is closed j=0
"
Thank you for your reply
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4025
- Thank you received: 1734
03 Aug 2021 05:30 #216784
by Aciera
Replied by Aciera on topic Unable to home
please post your hal and ini files
Please Log in or Create an account to join the conversation.
- yi2580
- Offline
- Elite Member
Less
More
- Posts: 161
- Thank you received: 3
03 Aug 2021 05:42 #216785
by yi2580
Replied by yi2580 on topic Unable to home
I used the interface provided by Linux CNC, and did not modify its INI file and Hal file.
This is my own ini and Hal files, but my own ini and Hal files can no longer jog after all axes return to zero, which makes me wonder. Is there a simpler solution? Thank you for your guidance
This is my own ini and Hal files, but my own ini and Hal files can no longer jog after all axes return to zero, which makes me wonder. Is there a simpler solution? Thank you for your guidance
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 4025
- Thank you received: 1734
03 Aug 2021 05:53 #216786
by Aciera
Replied by Aciera on topic Unable to home
All homing related entries in the ini file need to be in the [JOINT_x] sections not in the [AXIS_x]-sections:
linuxcnc.org/docs/html/config/ini-config...lt_letter_gt_section
linuxcnc.org/docs/html/config/ini-config...lt_letter_gt_section
Please Log in or Create an account to join the conversation.
- bevins
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
03 Aug 2021 14:37 - 03 Aug 2021 14:38 #216835
by bevins
Replied by bevins on topic Unable to home
You have no hal connections for the switches. At least I don't see them.
Rerun the config and select at least home switches.
And what Aciera said....
Rerun the config and select at least home switches.
And what Aciera said....
Last edit: 03 Aug 2021 14:38 by bevins.
Please Log in or Create an account to join the conversation.
- yi2580
- Offline
- Elite Member
Less
More
- Posts: 161
- Thank you received: 3
04 Aug 2021 01:26 #216877
by yi2580
Replied by yi2580 on topic Unable to home
OK, thank you very much for your reply. I will try your solution
Please Log in or Create an account to join the conversation.
- yi2580
- Offline
- Elite Member
Less
More
- Posts: 161
- Thank you received: 3
04 Aug 2021 01:33 #216878
by yi2580
Replied by yi2580 on topic Unable to home
Hello, I'm not sure how to connect the Hal connection with the switch you mentioned. How should I configure it? Can you teach me?
Thank you.
Thank you.
Please Log in or Create an account to join the conversation.
- yi2580
- Offline
- Elite Member
Less
More
- Posts: 161
- Thank you received: 3
04 Aug 2021 02:01 #216879
by yi2580
Replied by yi2580 on topic Unable to home
Hello, I tried your method, but it doesn't seem to solve my problem. Do you have a better solution? This problem has bothered me for a long time
Please Log in or Create an account to join the conversation.
- bevins
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
04 Aug 2021 02:15 - 04 Aug 2021 02:29 #216880
by bevins
Replied by bevins on topic Unable to home
Hello, I tried your method, but it doesn't seem to solve my problem. Do you have a better solution? This problem has bothered me for a long time
There is no better solution. You need to connect the home switches in your hal file.
Rerun pncconf and select the home switches for your inputs and it will connect them in your hal.
Something like this
net both-home-x <= hm2_7i92.0.7i76.0.0.input-01 <== YOUR INPUT HERE
net both-home-x => joint.0.home-sw-in
net both-home-x => joint.0.neg-lim-sw-in
net both-home-x => joint.0.pos-lim-sw-in
Last edit: 04 Aug 2021 02:29 by bevins.
Please Log in or Create an account to join the conversation.
- yi2580
- Offline
- Elite Member
Less
More
- Posts: 161
- Thank you received: 3
04 Aug 2021 02:19 #216881
by yi2580
Replied by yi2580 on topic Unable to home
I haven't tried the method you said. I don't know where to start. How should I establish a connection between Hal and home?
Please Log in or Create an account to join the conversation.
Time to create page: 0.080 seconds