View Single Post
  #5   Spotlight this post!  
Unread 09-02-2014, 21:58
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: How to wire a digital input device

After you connect the switch terminals from (-) to SIG on the Digital Input, you'll want to make sure your programmer understands what that means for the software. +5 on the SIG pin will read as a True value, and 0 on the pin will read as False. That's going to result in sort of the opposite of what one might expect, since an open switch will leave the pin at +5 and a closed switch will pull it low. Typically when the switch is not active, it'll read True, and when the switch is active it'll read False.

(If you're using a limit switch with Normally Closed contacts, you can use them instead of the Normally Open ones and the software will match the action of the switch.)