New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in function 0x17 (FC_READ_AND_WRITE_REGISTERS) in 2.9.1 #2

Closed
kohan opened this Issue Nov 23, 2010 · 1 comment

Comments

Projects
None yet
2 participants
@kohan

kohan commented Nov 23, 2010

Hello!

In Modbus_Application_Protocol_V1_1b.pdf there is paragraph that states (page 38):

6.17 23 (0x17) Read/Write Multiple registers
This function code performs a combination of one read operation and one write operation in a
single MODBUS transaction. The write operation is performed before the read.

But in the code we generate responce before writing to registers.

@stephane

This comment has been minimized.

Show comment
Hide comment
@stephane

stephane Jan 6, 2011

Owner

Read/write were swapped in _FC_READ_AND_WRITE_REGISTERS. Closed by 49d6f4a.

Page 38 in the document Modbus_Application_Protocol_V1_1b.pdf:
6.17 23 (0x17) Read/Write Multiple registers

This function code performs a combination of one read operation
and one write operation in a single MODBUS transaction. The write
operation is performed before the read.

The unit test has been updated.

Owner

stephane commented Jan 6, 2011

Read/write were swapped in _FC_READ_AND_WRITE_REGISTERS. Closed by 49d6f4a.

Page 38 in the document Modbus_Application_Protocol_V1_1b.pdf:
6.17 23 (0x17) Read/Write Multiple registers

This function code performs a combination of one read operation
and one write operation in a single MODBUS transaction. The write
operation is performed before the read.

The unit test has been updated.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment