Modbus value from 2 registers - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Modbus value from 2 registers (/showthread.php?tid=4368) |
Modbus value from 2 registers - AlexLV - 09.11.2022 Hi, how create Modbus profile or read info located in 2 registers: 927-928 AHU consumption, Day RO unsigned int 0 - 4294967296 Wh 929-930 AHU consumption, Month RO unsigned int 0 - 4294967296 Wh 931-932 AHU consumption, Total RO unsigned int 0 - 4294967296 Wh I usually used modbus profile generator or created it manually, but from one register. Here I have 2 register's located data. What variant can I use? BR, Alex RE: Modbus value from 2 registers - admin - 10.11.2022 Set datatype/bus_datatype to uint32. RE: Modbus value from 2 registers - AlexLV - 10.11.2022 Thanks, but does it mean in profile I need input just first register? Alex RE: Modbus value from 2 registers - admin - 10.11.2022 Correct, you specify the starting register address. The number of registers to read is based on the datatype. uint32 = 2x 16-bit registers. Use read test to verify that the starting address and read_swap is correct. RE: Modbus value from 2 registers - AlexLV - 10.11.2022 Big thanks for explanation, will do it today. Alex |