I have a camera that is mounted on an elecrical trolley that hangs on a rail. The trolley moves back and forth on the rail contolled by a switch on each side of the trolley. The switch on each side of the trolley gets depressed as it hits a protuding metal tab on each end of the rail and then reverses direction. The trolley is controlled by a timer with on and off set points. The problem that I am trying to solve is how do I get the trolley to stop at one end of the rail according to the timer on and off times. If the timer shuts off power at a certain time, the trolley may stop moving anywhere on the rail. I need it to only stop at the end of one side of the rail. If I place a switch that can be depressed by the trolley at the end of the rail, how do I make sure that the trolley only stops when it hits that switch when the timer is off and doesn't affect the trolley when the timer is on. And how do I make sure that the trolley continues to the end of the rail to hit that switch if the timer shuts off power before it hits that switch. If you can give me any ideas for a solution on set-up of a switch with the timer, it would be greatly appreciated. Thanks. Gary.