Modbus RTU Master register address
Posted: 12 May 2020, 10:23
Dear all,
I use a RevPiCore 3+ with a USB-2-RS485 adapter to read modbus signals from a sensor. According to the sensors manufacturer, the registers I want to read are 8 and 9. If I set these up in the virtual Modbus RTU Master in piCtory and read them with piTest I saw mainly zeros. Only when I startet to look at the process image more broadly with, e.g. "piTest -r 326,10", with 326 the address of register 8 which I received from "piTest -v REGISTER_8", I saw the correct value for register 8. I played around with rebooting the revpi after changing the pictory configuration, checking with my old application, unplugging the usb connector, etc. etc. until I found out that if I read register 9, I get the value for register 8. If I read register 10, I get the value for register 9.
I double checked with the manufacturer and my own program that these registers are correct.
What am I doing wrong? Is there a bug in piCtory?
What kind of data do you need to be able to follow my explanation better?
I use a RevPiCore 3+ with a USB-2-RS485 adapter to read modbus signals from a sensor. According to the sensors manufacturer, the registers I want to read are 8 and 9. If I set these up in the virtual Modbus RTU Master in piCtory and read them with piTest I saw mainly zeros. Only when I startet to look at the process image more broadly with, e.g. "piTest -r 326,10", with 326 the address of register 8 which I received from "piTest -v REGISTER_8", I saw the correct value for register 8. I played around with rebooting the revpi after changing the pictory configuration, checking with my old application, unplugging the usb connector, etc. etc. until I found out that if I read register 9, I get the value for register 8. If I read register 10, I get the value for register 9.
I double checked with the manufacturer and my own program that these registers are correct.
What am I doing wrong? Is there a bug in piCtory?
What kind of data do you need to be able to follow my explanation better?