I plan to interrogate some remote instruments via RS485 Modbus RTU to obtain some process data for my program.
The data is available as 2 x 16bit bytes using little-endian convention (ie lower order bytes sent before higher order bytes).
Example: decimal 12345678 (Hex 00BC614E) is sent as 2 bytes: 1st byte - Hex 614E then 2nd byte - Hex 00BC.
To use this data in my program I need to convert it to decimal.
Any suggestions on how can I achieve this?