Welcome! Log In Create A New Profile

Advanced

X-axis Micro Switch

Posted by KimBrown 
X-axis Micro Switch
May 05, 2014 03:22PM
Hi, does any body know how to get the DC42's 57y firmware to reconise a X-axis Limit micro switch.
I've wired one in now, but the Firmware is ignoring it at the moment....

Thanks,
Kim


Please send me a PM if you have suggestions, or problems with Big Blue 360.
I won't see comments in threads, as I move around to much.
Working Link to Big Blue 360 Complete
Re: X-axis Micro Switch
May 05, 2014 04:02PM
How I added the Microswitch:-



Please send me a PM if you have suggestions, or problems with Big Blue 360.
I won't see comments in threads, as I move around to much.
Working Link to Big Blue 360 Complete
Re: X-axis Micro Switch
May 05, 2014 04:04PM
As I understand things, it does recognize the X endstop (as a "normally closed" switch) on X minimum, but you have to disable the IR sensor (M558 P0) with to make it use the endstop.
Re: X-axis Micro Switch
May 05, 2014 05:15PM
Yep, I just took a look at the firmware and you'll have to disable the IR probe to get the microswitch to work properly. Your wiring looks okay, but ensure you're using the right switch type.

[edit]Remove lines 917-918 from Platform.cpp, recompile the firmware and the microswitch should be recognized, even with the IR probe turned on[/edit]

Edited 2 time(s). Last edit at 05/05/2014 05:20PM by zombiepantslol.
Re: X-axis Micro Switch
May 05, 2014 05:20PM
I think there needs to be some settings change somewhere for it to work properly. If you do not have an endstop switch connected, it will be "open" which means "triggered", and if the firmware were to care about that the endstop would be triggering constantly.

Edit: zombie, you beat me to it with your edit. winking smiley

Edited 1 time(s). Last edit at 05/05/2014 05:21PM by jstck.
Re: X-axis Micro Switch
May 05, 2014 06:47PM
How about changing the firmware so you can define the axes that use the probe? Something along the lines of 'M558 P1 X0 Y0 Z1', so keep P0/1/2 for off and whatever probe type, then define axes on and off. Default off uses the microswitch. Just a crazy, late night idea!

If this sounds like a good idea, I'll add it to the firmware issues page as a feature request, which is the official way of asking for it: [github.com]

Ian
RepRapPro tech support

Edited 1 time(s). Last edit at 05/05/2014 06:49PM by droftarts.
Re: X-axis Micro Switch
May 05, 2014 06:47PM
M558 P0
Worked perfectly.... Many thanks...


Please send me a PM if you have suggestions, or problems with Big Blue 360.
I won't see comments in threads, as I move around to much.
Working Link to Big Blue 360 Complete
Re: X-axis Micro Switch
May 06, 2014 06:08AM
I've raised this as an issue on the official firmware page: [github.com]

Ian
RepRapPro tech support
Re: X-axis Micro Switch
May 07, 2014 12:47PM
Many thanks for the help guys...

Ok, I mounted the switch, got it working, then found that the original design must have been triggered by the original Fan-Duct...

I use my Big Blue 360.... So it missed the switch.....

So I've designed a MicroSwitch mounting for people that want to mount a switch, so that the switch is triggered by the X-axis carriage it's self...
It works perfectly.... Thanks again for the help with the M code.

If you want the MicroSwitch mounting it is available here..... X-axis Microswitch Mounting


Please send me a PM if you have suggestions, or problems with Big Blue 360.
I won't see comments in threads, as I move around to much.
Working Link to Big Blue 360 Complete
Sorry, only registered users may post in this forum.

Click here to login