14.03.2023, 05:22
(07.03.2023, 07:59)Fahd Wrote:[*](06.03.2023, 15:16)Daniel Wrote: Try changing [1] in line 10 to[*]
[*] it will be any slave nr.
Thanks, it works.
but there's something strange if the value is over 20 on the logic machine 5 for example 21 the Modbus pool reader will read it as 30, if it's 22 will read it as 31.4, and so on...
please see attached
I also encountered the same problem when using the "user. mbtcp" script. The value of the data address is 3300, but the value of the mapped 2-byte floating point KNX group address is 33.00.
Another problem is that I added "holding registers" to map the address table, but it doesn't work.
This is my address mapping list:
Code:
mb.setmapping({
[7] = {
coils = {
[1] = '0/0/1',
[2] = '0/0/2',
[3] = '0/0/3',
},
registers = {
[1] = '0/1/1',
[2] = '0/1/2',
[3] = '0/1/3',
} ,
holdingregisters = {
[1] = '0/1/4',
[2] = '0/1/5',
}
}
})