You're reading EEPROM values into your word vars in reverse.
data @0, 0, 100
read 0, MinPosit.byte0 ' low byte now = 0
read 1, minposit.byte1 ' high byte now = 100
Then if Posit < MinPosit then Posit = MinPosit will always = true
since MinPosit starts out at 25,600 or 6400h.
Bookmarks