View Single Post
  #3   Spotlight this post!  
Unread 18-01-2008, 15:00
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: IEC Limit Switch from KoP

Limit switches are typically connected between the ground and signal pins of a digital input on the Robot Controller. On a standard PWM cable, that's the black and white wires; the red wire is not used. Use the two contacts on the limit switch that are an open circuit when the switch is not active, and a short circuit when the switch is active. The switch I have handy to look at labels those contacts COM (for "common") and NO (for "normally open"). The software will see a logic 1 on the input change to a logic 0 as the switch is activated.

You can also use the COM and NC ("normally closed") contacts instead. That will result in a logic 0 when inactive and a logic 1 when active. It will also give a logic 1 if the wires to the switch come loose, which might be either a good or a bad thing depending on what the software does with it.