Alan Condit <[EMAIL PROTECTED]> wrote: > Can anyone help with info on setting up limit switches in EMC2? I > have read what I thought were the relevant sections of the > integrators manual but can't seem to find anything useful. > > I have built a CNC router using stepper motors. I am using a CandCNC > mini-io board which uses xylotex pinout. I have installed a roller > arm micro switch at each end of my X, Y and Z axii. I have wired them > in series NC (normally closed). I am planning to connect them to pin > 15. Then when I install the home switches, I plan to connect X to pin > 11, Y to pin 12 and Z to pin 13. My Estop is connected to pin 10. > (The mini-io bd uses the xylotex pinouts.) > > For example the estop (pin 10) connects to "iocontrol.0.emc-enable- > in" like below instead of pin 0. > linkpp parport.0.pin-10-in iocontrol.0.emc-enable-in > > So if I have it right so far, then the homes would be -- > X home would be -- > linkpp parport.0.pin-11-in axis.0.home-sw-in > Y home would be -- > linkpp parport.0.pin-12-in axis.1.home-sw-in > and Z home would be -- > linkpp parport.0.pin-13-in axis.2.home-sw-in > > What I really need to know is what pin do the limits logically > connect to (since all 6 limits are chained together)? > > linkpp parport.0.pin-15-in ??????
linkpp is leading you astray. "linkpp" is shorthand, convenient for making a signal that connects ONLY two pins. But for limits, you need to connect more than two. If all of your switches are in series, then the incoming signal needs to go to all six of the EMC motion controller's limit inputs. To do that you write: # create a signal for the combined limit switches newsig on-limit bit # connect it to the parport pin linksp on-limit parport.0.pin-15-in # connect it to all of the motion controller limit inputs linksp on-limit axis.0.neg-lim-sw-in linksp on-limit axis.0.pos-lim-sw-in linksp on-limit axis.1.neg-lim-sw-in linksp on-limit axis.1.pos-lim-sw-in linksp on-limit axis.2.neg-lim-sw-in linksp on-limit axis.2.pos-lim-sw-in Depending on whether you have your switch pulling the parport pin up or down, the logic level on signal "on-limit" might be backwards. The easist way to test that is with halmeter. Start EMC in one shell, then start halmeter from another: halmeter sig on-limit You should get a little window that shows the state of the on-limit signal (either true or false). It should be false until you hit the switch, then go true. The display is live - you should be able to hit the switch with your finger and see it change. If it is backwards, just change the first linksp line above to: linksp on-limit parport.0.pin-15-in-not Good luck, let us know how it works out. Regards, John Kasunich ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
