Open betzrhodes opened 7 years ago
the excerpt of the description was copied from the Modbus specification. With the PLC we tested with, it actually performed the read action first followed by the write action. so it is either the spec is wrong or this PLC does not comply with the spec
It sounds like your hardware and our hardware are behaving the same, but this is different than the spec. Can you point me to the spec that you copied this from.
6.17 23 (0x17) Read/Write Multiple registers on page 38 at (http://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf )
The documentation states: "This method performs a combination of one read operation and one write operation in a single Modbus transaction. The write operation is performed before the read."
However when I run the following code the read doesn't show the values I just wrote.
Logs: 2017-05-08 15:07:24 -07:00 [Status] Downloading new code; 27.09% program storage used 2017-05-08 15:07:31 -07:00 [Device] Index : 0, value : 0 2017-05-08 15:07:31 -07:00 [Device] Index : 1, value : 0