How to read real data with endian sign from Compact HMI Modbus TCP
I want to read real data with endian sign from Compact HMI Modbus TCP. The real data consist of two register. The register must to combine two register to become one real data but compact HMI cannot convert from two register. How to convert this two register to real?
If you are talking about using CHMI modbus tcp driver, you can change big endian and little endian by changing the word order.
If the data is of float type then use HRA<Register No>REAL in signal configuration to read the 2 word data directly, else read independent registers and use property translation to combine them.
Real Val = Reg1 * 65536 +Reg 2