Novice Help - Same Song, Different Dance - Homing
3 years 2 months ago - 3 years 2 months ago #278980
by rodw
Replied by rodw on topic Novice Help - Same Song, Different Dance - Homing
You need to read homing configuration about 6 times before it becomes clear
linuxcnc.org/docs/2.9/html/config/ini-ho...tml#_homing_sequence
You need HOME_SEARCH_VEL and HOME_LATCH_VEL
There are four possible homing sequences defined by the sign of HOME_SEARCH_VEL and HOME_LATCH_VEL, along with the associated configuration parameters as shown in the following table. Two basic conditions exist, HOME_SEARCH_VEL and HOME_LATCH_VEL are the same sign or they are opposite signs. For a more detailed description of what each configuration parameter does, see the following section.
linuxcnc.org/docs/2.9/html/config/ini-ho...tml#_homing_sequence
You need HOME_SEARCH_VEL and HOME_LATCH_VEL
There are four possible homing sequences defined by the sign of HOME_SEARCH_VEL and HOME_LATCH_VEL, along with the associated configuration parameters as shown in the following table. Two basic conditions exist, HOME_SEARCH_VEL and HOME_LATCH_VEL are the same sign or they are opposite signs. For a more detailed description of what each configuration parameter does, see the following section.
Last edit: 3 years 2 months ago by rodw.
Please Log in or Create an account to join the conversation.
- Lethal69GTO
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 29
- Thank you received: 4
3 years 2 months ago - 3 years 2 months ago #279005
by Lethal69GTO
Replied by Lethal69GTO on topic Novice Help - Same Song, Different Dance - Homing
Got it! Thanks @rodw, @spumco, and @cmorley. Revisted it this morning. Amazing what a decent night's rest will do. It was just a matter of getting the wiring correct in HAL as shown below (X-axis shown, others are similar, pin number is different). Simple as it turns out, but not so obvious initially. @spumco you were correct with the -not, I had the incorrect pin in the watch window of HAL. @rodw, I know exactly what you mean regarding the homing documentation, I understood content and once I got the correct wiring and it all worked it became an a-ha moment and it made all the sense in the world. Now that it is working, I can tweak the settings a bit and dial in each axis.
# ---setup home / limit switch signals X-Axis---
#net x-home-sw => joint.0.home-sw-in
net x-home-sw => joint.0.home-sw-in <= [HMOT](CARD0).7i76.0.0.input-04-not
net x-neg-limit => joint.0.neg-lim-sw-in
net x-pos-limit => joint.0.pos-lim-sw-in
And the INI file home settings, each axis is the same. I started with rather small (very slow, -0.5) HOME_SEARCH_VEL and once it worked without stepper slippage/grind/crash it became the value seen here.
HOME_SEARCH_VEL = -5.0
HOME_LATCH_VEL = 0.3
HOME_FINAL_VEL = 10
HOME_IGNORE_LIMITS = YES
HOME_OFFSET = 0
HOME = 10
HOME_IS_SHARED = 0
HOME_SEQUENCE = -2 <--- Except here. X is 1, Y1 and Y2 is -2, and Z is 0
Thank you to the respondents. image missing /media/kunena/emoticons/smile.png
# ---setup home / limit switch signals X-Axis---
#net x-home-sw => joint.0.home-sw-in
net x-home-sw => joint.0.home-sw-in <= [HMOT](CARD0).7i76.0.0.input-04-not
net x-neg-limit => joint.0.neg-lim-sw-in
net x-pos-limit => joint.0.pos-lim-sw-in
And the INI file home settings, each axis is the same. I started with rather small (very slow, -0.5) HOME_SEARCH_VEL and once it worked without stepper slippage/grind/crash it became the value seen here.
HOME_SEARCH_VEL = -5.0
HOME_LATCH_VEL = 0.3
HOME_FINAL_VEL = 10
HOME_IGNORE_LIMITS = YES
HOME_OFFSET = 0
HOME = 10
HOME_IS_SHARED = 0
HOME_SEQUENCE = -2 <--- Except here. X is 1, Y1 and Y2 is -2, and Z is 0
Thank you to the respondents. image missing /media/kunena/emoticons/smile.png
Last edit: 3 years 2 months ago by Lethal69GTO. Reason: Corrected HOME_SEARCH_VEL to negative value.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.043 seconds