Correct wiring of limit switches

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

digdagdigedag
Posts: 10
Joined: Sat Feb 24, 2018 7:31 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: C8FD19F6D5F0-0206180629
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Correct wiring of limit switches

Post by digdagdigedag »

Finally, the HW of my CNC monster(Acorn with 3 Leadshine Controllers and Nema 34 Servos) is ready and I have started the calibration.
First thing I noticed, I may have got the wiring of the limit switches wrong.
For each axis, I have two limit switches (NC) wired in one loop and connected to one of the Acorn inputs. I was assuming that for any given axis, the Acorn can detect the limit and then based on the last movement keep the reverse direction enabled so that the switch can be cleared.
Unfortunately, I seemed to be wrong and instead both directions are blocked.
It seems I will have to add one more wire to distinguish the plus and minus switch but having home and limit for each axis would require 6 inputs. Acorn only provides 4 inputs.
What would be the best way of wiring 6 switches for a 3 axis machine ?
Thanks
Uwe


cnckeith
Site Admin
Posts: 8935
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: Correct wiring of limit switches

Post by cnckeith »

you can use "homeAll" and "limitAll" and you'll only use up two inputs for 6 switches.
take a look at schematic S14902
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html


digdagdigedag
Posts: 10
Joined: Sat Feb 24, 2018 7:31 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: C8FD19F6D5F0-0206180629
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: Correct wiring of limit switches

Post by digdagdigedag »

Thanks for the advice !
as all cables meet inside teh control box i will have to install one more wire for each axis so that i can distingusih home and limit and recombine them accordingly. is there no simpler way by using some intelligent feature of the acorn ? anyway, I will try and keep you updated.
Thanks.


digdagdigedag
Posts: 10
Joined: Sat Feb 24, 2018 7:31 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: C8FD19F6D5F0-0206180629
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: Correct wiring of limit switches

Post by digdagdigedag »

Just found a video on youtube.
This guy also used the same wiring as I did (i.e. both switches of one axis in one separate series circuit). Seems like his controller (Mach3) is able to handle that for homing and limit detection. As far as I understood one of martyscncgarage video, he also had home and limit in series.
There must be some hidden Acorn function (I hope).


digdagdigedag
Posts: 10
Joined: Sat Feb 24, 2018 7:31 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: C8FD19F6D5F0-0206180629
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: Correct wiring of limit switches

Post by digdagdigedag »

Forgot to paste the link to that Video (https://www.youtube.com/watch?v=mbT9SSVoeZc&t=1284s)
Based on that video, I eventually kept my original wiring (both end switches in series for each axis) and configured limits for both - and + as well as home for one of the direction and luckily, it seems to work just as expected, i.e. controller can find the home position of each axis and then changes the switches to limit mode. :)


markcadcam
Posts: 49
Joined: Thu Sep 28, 2017 2:15 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
Location: Xenia Ohio

Re: Correct wiring of limit switches

Post by markcadcam »

When I try to use Limit All with Home All I get an error message. See attached picture. Why is this?

Report
report_985DAD48D628-0929170130_2018-12-20_09-53-51.zip
(199.75 KiB) Downloaded 167 times
Attachments
Home All Limit All.PNG


cnckeith
Site Admin
Posts: 8935
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: Correct wiring of limit switches

Post by cnckeith »

procedure.

1.) put input 2 to "unused"
2.) leave input one as "HomeAll"
3.) Wire Normally closed HOME switches in series into Input 1
4.) Set the homing direction
5.) Set the Travel limit of each axis (the distance from the home switch to just before the limit switch on the other side of the axis.) be sure to get the positive and or negative values correct.
6.) Set Homing to "Home to Switch"
7.) press "write settings to CNC control" follow instructions.

Now test the homing cycle and report back.
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html


markcadcam
Posts: 49
Joined: Thu Sep 28, 2017 2:15 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
Location: Xenia Ohio

Re: Correct wiring of limit switches

Post by markcadcam »

4) set Homing direction? How.
5) set travel limit of each axis? How?
6) set Homing it Home switch? How?


cnckeith
Site Admin
Posts: 8935
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: Correct wiring of limit switches

Post by cnckeith »

markcadcam wrote: Thu Dec 20, 2018 2:44 pm 4) set Homing direction? How. tab #2 in wizard
5) set travel limit of each axis? How? tab #2 in wizard
6) set Homing it Home switch? How? tab #2 in wizard
viewtopic.php?f=61&t=1449
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html


martyscncgarage
Community Expert
Posts: 9953
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Correct wiring of limit switches

Post by martyscncgarage »

markcadcam wrote: Thu Dec 20, 2018 2:44 pm 4) set Homing direction? How.
5) set travel limit of each axis? How?
6) set Homing it Home switch? How?
Mark, all of the above requires some description of your machine, where your home switches are, what the travels are.
Pictures and or video would be helpful.

Hopefully the videos Keith provided a link to help.
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ


Post Reply