View Single Post
  #3   Spotlight this post!  
Unread 10-02-2015, 20:48
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,112
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: Basic Limit Switch

Take a look at Team 358's Limit Switch example.

The "In Range and Coerce" function will limit the motor output so that it can't drive forward if the "forward limit" switch is active, and it can't drive backward if the "backward limit" switch is active. If you don't have both switches, replace the DIO Get and associated select with a constant 1 or -1 into the In Range and Coerce input.
Reply With Quote