In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Matthias09 wrote: @ PJMonthy Thanks for the advice! As I got the encoder now run with minimal adjustment of my existing code (see above), I will stick to that. I checked if negative values can be assigned though. Other than stated before it is possible in SX/B. Setting a variable = -1 is stored as 255. Using the example below returns: CurrentPosition = 100; CurrentPosition = CurrentPosition + EncoderTable(2) CurrentPosition = 100+255 = 99 Sincerely! Matthias ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=375331#m376365 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)