I noticed that on the x axis when it hits the homing switch it 'bounces' back a few steps. On the z and y axis it hits the switch and just stops. Is this a setting or does it just happen. using mach 3 btw.
Bruce
Printable View
I noticed that on the x axis when it hits the homing switch it 'bounces' back a few steps. On the z and y axis it hits the switch and just stops. Is this a setting or does it just happen. using mach 3 btw.
Bruce
it should come back on all three axis
I could be off the switch but you haven't seen it move.? . . . easy way to tell is to go into diagnostics screen and check the " input signals current state" the M1,M2,M3 home led should be off after homing.!
Just watch the diagnostics screen while it's homing and you'll see the pin state change then go back to off.
Thanks i2i and dean. I know its working just suprised that the distance was differant. I have a small problem that when the home switch is also a limit switch sometimes the z when it homes does not clear to allow the x and y to home. Have to check that out on wed as I actually have work for tomorrow.
Bruce
Okay got home early and fiddled. When the z homes although the diagnostic says the switch is off the y will not home or it will do a couple of steps and stop. If I move the z down and then home the y its fine. I was curious as to why the x backs off maybe 1/2 a turn but the z and y almost appear to not back off at all although the switch does clear on the diagnostics???
Bruce
Could it be the hysteresis of the switch (the difference between the on and the off threshold positions)? Or even backlash on the x axis?
Russell.
okay I think I have got to the bottom of the problem.....crappy switches.
When a homing switch is triggered then the motor will back off until the switch clears, as was said earlier. You can test this by homing an axis and the pressing the switch manually. If you hold it in the motor will keep backing off until you let go. Because these switches are, cannot think of the right word, flicking off then the motor winds back until it flicks back. Trouble with these switches is that they start to lift off the connection before they fully flick off. Therefore the circuit is broken and the motor only goes back a very small amount to make the switch. This means that the switch is resting on the gantry and any vibration at all will lift it off and so the next homing is reset early. Thats why when I backed off the offending axis the rest homed perfectly. This also explains why one switch, which must flick as it breaks, allows the motors to rewind a small amount before it flicks back.
Hope this makes sense to anyone else and serves as a warning on cheap switches.
All of this is what I think Russell indicated when mentioning hysteresis of the switch. I had to look that up:whistle:
Bruce
Now I have to investigate why when I home the x axis the b axis which is slaved to it does not operate. So near and yet so far....
Industrial Limit Switch TZ Series | eBay
Anyone know if these are any good? I was looking at the tz8104
Bruce
They look exactly like the ones I purchased about 10 years ago for my machine. I only had problems with one of three that I got and it was my fault for not designing a proper mount and interface to the moving parts. I sealed the electrical connections and use flood coolant with no problems.
I got a heap of these recently:
SN04-N DC 10-30V NPN NO 3-wire 4mm Inductive Proximity Sensor Switch Detector | eBay
There's good reviews about them on CNCzone. I'll post when I've tested them, but that may be some time.
Big chunky limit switches do not not necessarily give you good positioning, they are more concerned with reliability than a fine switching tolerance.
The best positioning switch is probably an opto slot with a built in Schmitt trigger. But if the switching point chances to align with a completed step you can still go +- one step.
Perfection is probably a side paddle arm on the screw that winds into an opto slot. That would allow you to adjust the switching point to mid step.
I'm going to give it a go, but that's only because I am totally anal :beer:
Perfect perfection would be to put the opto slot on the stepper motor or ballscrew - the rear shaft on the motor would be pretty convinient. If you put the sensor/slot at say 30mm radius then one step is amplified to just under 1mm movement instead of 0.025mm (or whatever). Trivial to detect 1mm, but you would need two sensors. One standard switch on the axis as normal to get it close, then look for the signal from the 'rotary' sensor to get it spot on.
That's what I'm doing on the next machine anyway - inductive to get it close, then optical on 30mm radius disc for perfection.
As I've no need to machine metals I'm thinking of Hall Effect devices. I'm concerned mechanical switches or slotted opto devices might be affected by dust. No firm decision made yet.
No need to use hall effect... simple magnetic reed switches work well although need debouncing just as a microswitch would. A hall effect device might just be too sensitive. With modern high-strength mini-magnets I found for one application I needed the hall effect device over 5cm away from the magnet before it stopped recognising it. Also the reed switches in burglar alarm sensors are ideal and not expensive £3.99 from maplin or £1.45 on ebay
I think the inductive switches I linked to in post 12 sound a lot easier than using reed switches, unless there's some advantage to using reed switches over them? SN04-N are the same ones DMM-tech use with their servo systems.
With so many ideas to choose from it will probably come down to cost v repeatability.
Hummm. . . . . So many design decisions. . . . . .
I'd vote for Robin's suggestion of opto slot sensors.
I used Buy Photoelectric Sensors U-shaped thru-beam sensor,PMR44P Sunx PMR44P online from RS for next day delivery. for the X-axis on my lathe, and repeatability is good. They come in various mounting styles, so you can normally find one that will fit with minimal effort.
From experience, inductive sensors generally have quite a wide tolerance, both in range and switching time. I've tried using a few different ones to control hydraulics in the past, and I could never get them consistently detecting motion. Good old fashioned mechanical heavy duty limit switches worked far better, even though the occasional one would get wiped out when things moved.