How to Home my machine?
How to Home my machine?
(OP)
I have built a machine that is a single axis "car" that rides back and forth on a track 60 feet long. (like a train on tracks but the tracks are only 60 feet long)
The car is powered by a servo motor by way of a festooned cable.
I need someone to give me an idea on how to "home" the machine. When the machine is turned on, it doesnt know where on the 60 ft track it is located. How do I go about homing this thing? I can program the code, but I need sort of a process description to get me going.
Any ideas?
Thanks!





RE: How to Home my machine?
There are many variations on this; but, you could drive @ slow speed toward a limit switch that is fixed in position near one end and when you hit it stop, reserve at much lower speed until you come off limit switch. This will take the lash error off the home position. There are many refinements I could suggest such as two limit switches for fail safety and time-constraints on seeking switches; but, this is this basic routine. When you come off the switch, load a zero or clear your postition value and you will be doing great.
Hope this help a bit.
Randall May
www.principaldynamics.com
RE: How to Home my machine?
I was hoping there was something else to this.
It looks like I will have to tell the machine which direction the home switch is..
Thanks!
RE: How to Home my machine?
Hope this helps more!!
Randall www.principaldynamics.com
RE: How to Home my machine?
Your second reply solved my problem!
I am obviously a newbie at this. Your statements have helped me to see that I was approaching the problem wrong.
During normal run, homing the machine is easy because it knows where its at, and knows where the home switch is. If I store the value on shutdown, it will remember it the next day if homing is needed. My biggest concern was dealing with what happens during a power loss when the position value does not get stored.
It seems that if this should happen, or the value doesnt get stored for whatever reason, some type of human input is going to be required.
I have tried to limit the number of limit switches for various reasons.
Thanks for your help. This forum is very educational.
RE: How to Home my machine?
Upon power up if home switch is not tripped, drive toward it until it is.
Upon tripping the home switch, drive away until the switch untrips.
Now continue to drive slowly until you detect the index pulse from the encoder.
This method ensures the unit will home to precisely the same place every time, and is in fact the precise way that all motion control systems that I have designed work.
RE: How to Home my machine?