piTest does not show modbus value

Topics about the Software of Revolution Pi
Post Reply
Peter_Platzer
Posts: 13
Joined: 18 Feb 2024, 12:37

piTest does not show modbus value

Post by Peter_Platzer »

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:
config.jpg
Extended Config looks like:
extended.jpg
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 
Register value is FFFF.
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)
BR
Peter
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: piTest does not show modbus value

Post by dirk »

Hi Peter, take a look at the following registers, they may contain error codes:
Modbus_Action_Status_[1... 32]
Modbus_Master_Status
You can then reset these errors by writing a 1 to the corresponding registers:
Action_Status_Reset_[1... 32]
Master_Status_Reset
Here is the documentation
https://revolutionpi.com/en/tutorials/m ... -verwenden
Please carry out the steps on the checklist
Modbus Checklist
Here are the FAQs on Modbus from our knowledge database:
https://kunbus-gmbh.atlassian.net/servi ... 2629664769
Post Reply