Homing direction problem
- robertjenkins
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 0
13 May 2021 19:25 #208750
by robertjenkins
Homing direction problem was created by robertjenkins
With my Denford Micromill the end switches are at the furthest extent of travel. There are no zero switches, so the homing has to be done at the max point. For some reason, both X and Y axes regularly go off in the wrong direction so never reach these switches, and pressing the end switch does not stop the steppers, even though the switches are connected correctly. I say regularly, but I can't point to anything that's different when they do this. They seem to be wired correctly, because jogging sends them in the right direction. The Z axis homes itself fine. I attach the hal and ini files although it feels like a hardware issue.
Please Log in or Create an account to join the conversation.
- robertjenkins
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 0
13 May 2021 19:59 #208753
by robertjenkins
Replied by robertjenkins on topic Homing direction problem
Update: I did a bit of reading here (original approach, I know) and discovered that changing the homing speed to negative sometimes fixes things. So I did this, and now the Z and X axes go in the right direction. But the X doesn't recognise the stop switch, so I never get to Y. Normally the stop switch is connected to ground, except when it it is pressed. Do I need a pullup resistor to tell the the Bob that the switch has been pressed?
Please Log in or Create an account to join the conversation.
- robertjenkins
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 0
13 May 2021 22:39 #208766
by robertjenkins
Replied by robertjenkins on topic Homing direction problem
Further update.
The X stop switch still has no effect. But I have measured the voltage on that pin on the bob, and when the switch is pressed, the voltage goes from 0 to 9V. (This surprised me - I was expecting 5V).
I've tried swapping round the input pins (and stepconf), but whichever one the X switch is connected to, it has no effect on stopping the stepper then moving.
I am baffled
The X stop switch still has no effect. But I have measured the voltage on that pin on the bob, and when the switch is pressed, the voltage goes from 0 to 9V. (This surprised me - I was expecting 5V).
I've tried swapping round the input pins (and stepconf), but whichever one the X switch is connected to, it has no effect on stopping the stepper then moving.
I am baffled
Please Log in or Create an account to join the conversation.
13 May 2021 23:28 #208768
by PCW
Replied by PCW on topic Homing direction problem
Does the hal pin parport.0.pin-12-in change when you activate the switch?
Please Log in or Create an account to join the conversation.
- robertjenkins
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 0
13 May 2021 23:31 #208769
by robertjenkins
Replied by robertjenkins on topic Homing direction problem
Yes, although i have not traced it as far as the pc, only to the Bob. Is there a way of seeing what the pc is getting?
Please Log in or Create an account to join the conversation.
14 May 2021 00:02 - 14 May 2021 00:07 #208770
by PCW
Replied by PCW on topic Homing direction problem
Yes, when LinuxCNC is running select machine --> show hal configuration and
select parport.0.pin-12-in from the list of pins, then select the "Watch" tab
Alternatively, in a terminal window when LinuxCNC is running, type:
halmeter pin parport.0.pin-12-in
select parport.0.pin-12-in from the list of pins, then select the "Watch" tab
Alternatively, in a terminal window when LinuxCNC is running, type:
halmeter pin parport.0.pin-12-in
Last edit: 14 May 2021 00:07 by PCW.
Please Log in or Create an account to join the conversation.
- robertjenkins
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 0
14 May 2021 11:11 #208791
by robertjenkins
Replied by robertjenkins on topic Homing direction problem
So I have used Hal meter which shows all three switches go from false to true when pressed but don’t cause the steppers to stop
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
14 May 2021 11:44 #208796
by tommylight
Replied by tommylight on topic Homing direction problem
Post your actual hal and ini files here.
Please Log in or Create an account to join the conversation.
- robertjenkins
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 0
14 May 2021 11:48 #208797
by robertjenkins
Replied by robertjenkins on topic Homing direction problem
They are attached to my original post
Please Log in or Create an account to join the conversation.
14 May 2021 13:33 #208803
by bevins
Replied by bevins on topic Homing direction problem
I dont see no limit switches. Just home switches and they are not shared in the ini. So to me it looks like you have no limit switches.
Please Log in or Create an account to join the conversation.
Time to create page: 0.086 seconds