Quote Originally Posted by Ramius View Post
Thank you and I am feeling incredibly stupid right now, even after 4 Excedrin's! I think I understand part of this, "RPM" is the variable where the RPM reading is stored? "DIG" is the number of digits to be displayed? So RPM DIG 4 would display 4 digits? Where do you inset the "ASCCHAR = RPM DIG 4? I think this line goes after "GOSUB SETLINE"? Then how do you display "RPM" in front of the reading? Please excuse what seems to be basic, simple questions and once I stop having brain craps things should get better!

Ed
If I asked you what the 2nd digit was of 2400 (normal reading left to right) you would immediately tell me 4 - congratulations you have just done a DIG 2,

RPM is a variable name suggested where you would store the reading from whatever interface you have on the motors.


DIG X just gives you the value of the single digit starting from the left hand side.

so if as I said above your RPM was 2400

DIG 4 would return 0 ie the last digit of 2400.

DIG 2 would return 4 ie the second digit


You set the line where you want the data to be shown
set the cursor where you want the first character of your data to start



For "RPM" in front

ASCCHAR="R"
GOSUB GETSTVCHAR 'CONVERT ASCII TO STV
GOSUB DISPLAYCHAR

repeat the above 3 lines for "P", "M" and " "


now use the RPM word variable where you have stored your reading (RPM for instance)

ASCCHAR = RPM DIG 1
This gives a value of 2, and as it happens the character matrix in the chip will display 2 as if you look at the table the numbers come first

then
GOSUB DISPLAYCHAR

then

ASCCHAR = RPM DIG 2
This gives a value of 4
GOSUB DISPLAYCHAR


ASCCHAR = RPM DIG 3
This gives a value of 0
GOSUB DISPLAYCHAR

ASCCHAR = RPM DIG 4
This gives a value of 0
GOSUB DISPLAYCHAR


so on the screen at the line you have selected starting at the position you have selected, you would have RPM 2400