Homing direction problem
- robertjenkins
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 0
14 May 2021 13:56 - 14 May 2021 13:56 #208805
by robertjenkins
Since I changed the configuration to make the homing speeds negative I am posting the files again.
Now, however, the Z axis has chosen to try to home in the wrong direction ...
I tried changing from (eg) X home to X max limit
but then I get "Joint 0 on limit switch error" (even when inverted)
It ought to be possible to get the machine to home at the limits and indeed it did for months before I had to replace the electronics. It would go to the end of the axis, hit the switch and back off a bit. The hal and ini files were pretty much as they are now
Replied by robertjenkins on topic Homing direction problem
Since I changed the configuration to make the homing speeds negative I am posting the files again.
Now, however, the Z axis has chosen to try to home in the wrong direction ...
I tried changing from (eg) X home to X max limit
but then I get "Joint 0 on limit switch error" (even when inverted)
It ought to be possible to get the machine to home at the limits and indeed it did for months before I had to replace the electronics. It would go to the end of the axis, hit the switch and back off a bit. The hal and ini files were pretty much as they are now
Attachments:
Last edit: 14 May 2021 13:56 by robertjenkins.
Please Log in or Create an account to join the conversation.
15 May 2021 22:56 #208995
by andypugh
Replied by andypugh on topic Homing direction problem
You might learn something by watching the joint.N.home-state pins:
linuxcnc.org/docs/2.8/html/man/man9/motion.9.html#JOINT%20PINS
The meaning of each state is here:
github.com/LinuxCNC/linuxcnc/blob/master.../motion/homing.c#L48
This will tell you if, for example, the machine is not responding to the home switch, or is chaning from search to latch, but trying to latch in the same direction as search.
linuxcnc.org/docs/2.8/html/man/man9/motion.9.html#JOINT%20PINS
The meaning of each state is here:
github.com/LinuxCNC/linuxcnc/blob/master.../motion/homing.c#L48
This will tell you if, for example, the machine is not responding to the home switch, or is chaning from search to latch, but trying to latch in the same direction as search.
Please Log in or Create an account to join the conversation.
Time to create page: 0.071 seconds