PDA

View Full Version : Displaying Temperature on a DLR2416?



Badger
- 3rd March 2014, 17:24
Hi,

I'm having trouble trying to figure out how to display a temperature reading on 2xDLR2416'.
I can write to the displays just fine (I have BYTE variables set for each segment).
And I can get the temperature value into a WORD variable.

The problem is I cannot get the single digits of the number into (in the WORD variable) into the BYTE variable.
E.G.

I have the Decimal number 12500 in the word variable, I need the:
1 in DIS0 Variable
2 in DIS1 Variable
5 in DIS2 Varibale
etc..

I cannot figure it out.

Regards.

HenrikOlsson
- 3rd March 2014, 18:34
OK, so what have you tried?
Have you looked at the DIG operator?

/Henrik.

Badger
- 4th March 2014, 11:47
Thank you Henrik,

Even after reading through I missed that!
It does seem to be what I'm looking for, I'll try it and reply back.

Regards.