Quote Originally Posted by Atom058 View Post
Skimask - Thanks for the reply. I tried your code but am getting the same result. If the Set Limit Enable switch is on, I can control the servo movement with the pot (I had to change the scaling back to what I originally had, first). When it is at this point, it is not applying the limits (100 & 250). As soon as I turn off the switch (applying the limits), the servo does not move from the current position. It is acting like the minposit and maxposit variables are the same number. And the memory stuff still doesn't work either. This is such a simple design, I am truly baffled... Any other thoughts?
The data statement is wrong-ish...
data @0,100,250
The original would put: 0,100,250 into eeprom, this way puts 100,250 starting at location 0.

And you might want to try 'unrolling' your code, put it all in-line, get rid of the gosub. I believe if you 'unroll' your code, you may find your logic problem. Then you can put it back into a more modular format.