piTest does not show modbus value
Posted: 21 Feb 2024, 12:41
Hi,
I configured a small modbus test reading a holding register called Geraeteklasse with a modbus master.
It looks like the read is done correctly on modbus level but piTest shows the wrong value.
Setup: Extended Config looks like: Modbus log on the slave side:
Register value is FFFF.
But piTest shows 0.
BR
Peter
I configured a small modbus test reading a holding register called Geraeteklasse with a modbus master.
It looks like the read is done correctly on modbus level but piTest shows the wrong value.
Setup: Extended Config looks like: Modbus log on the slave side:
Code: Select all
>12:23:29: RX: 0a 06 00 00 00 06 03 03 75 62 00 02
>12:23:29: Sent data: Function code:3.
>12:23:29: TX: 0a 06 00 00 00 07 03 03 04 00 00 ff ff
But piTest shows 0.
Code: Select all
pi@RevPi106990:/var/log $ piTest -r Geraeteklasse
2 Byte-Value of Geraeteklasse: 0 dez (=0000 hex)
2 Byte-Value of Geraeteklasse: 0 dez (=0000 hex)
2 Byte-Value of Geraeteklasse: 0 dez (=0000 hex)
2 Byte-Value of Geraeteklasse: 0 dez (=0000 hex)
2 Byte-Value of Geraeteklasse: 0 dez (=0000 hex)
Peter