Page 1 of 1

single modbus read and write command

Posted: 21 Feb 2024, 13:12
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

Re: single modbus read and write command

Posted: 21 Feb 2024, 14:56
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#

Re: single modbus read and write command

Posted: 01 Aug 2024, 17:13
by Peter_Platzer
Thanks!
This worked got it running.