single modbus read and write command

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

single modbus read and write command

Post by Peter_Platzer »

Hi!

I wonder how I could do a single write and read on holding registers.
If I use PiCtory Modbus Master Setup and define a register the read is done all the time.
Looks like it is done every second due to config in extended data setup.

I have a device where I need to write flash values via modbus, so I want to only perform one write and only want to perform reads at defined times.

Thanks Peter
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: single modbus read and write command

Post by dirk »

Hi Peter, unfortunately you can only implement cyclic Modbus queries with PiCtory. Why don't you try this?
https://pymodbustcp.readthedocs.io/en/s ... sters.html#
Peter_Platzer
Posts: 13
Joined: 18 Feb 2024, 12:37

Re: single modbus read and write command

Post by Peter_Platzer »

Thanks!
This worked got it running.
Post Reply