Go Down

Topic: ASCII character display on LCD (Read 273 times) previous topic - next topic

webscada

I am working in scada system , which collects data from a number of slaves.I need to display ASCII character on LCD whereas the MODBUS gives gex data.

In Decimal I received 19792 20530 14644 13367
This converts to HEX as  0x4d50 0x5032 0x3934 0x3437
The Display (converting HEX to ASCII or DEC to ASCII) should be MPP29447


floresta

Quote
This converts to HEX as  0x4d50 0x5032 0x3934 0x3437
You just have to break this down to:  0x4d 0x50,   0x50 0x32,   0x39 0x34,  and  0x34 0x37 which correspond to the ASCII codes you have to send to your LCD.

Don


webscada


Is not there some readymade function.?

bperrybap

Is not there some readymade function.?
No. Just write it yourself, it is quite trivial.

Go Up