I try to read many registers from my modbus meter via modbus TCP, i don´t know what i forgot to write in the code ro what i do wrong, i hope anybody can help me
my .items
Number Input1500Float32 "Input registers 1500-1501 as float32 [%.1f]" { channel="modbus:data:localhostTCP:inputRegisters:input1500:number" }
Number Input1502Float32 "Input registers 1502-1503 as float32 [%.1f]" { channel="modbus:data:localhostTCP:inputRegisters:input1502:number" }
Things and channels works with modbus binding version 2
They are not compatible at all, and are configured differently. Choose only one, install only one and remove the other. I’d recommend v2 for new development.
Your poller Thing looks right to read the data in one go. the data Things just define how to interpret the registers - float32 here.
Note that you’ve defined modbus id as 255 in one config and 2 in the other. Only one is correct, 255 usually isn’t allowed in modbus.
thanks for the information, you are right i use the modbus binding V1, but how i can install the modbus V2 at the paperUI addons i only find the Modbus V1 version.
and put them into the addon folder. Restart OH and wait a little bit. Then they should be seen in bundle:list at console. Maybe you must install the serial binding too.