HenningHansen / nmodbus

Automatically exported from code.google.com/p/nmodbus
0 stars 0 forks source link

Unexcepted start address in response. Expected 3, received 0. #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I am using Modbus slave simulator (ModRSim) from
http://sites.google.com/site/plcsimulator//index.html
2. then I am able write multiple coils using WriteMultipleCoil()with no
exception.
but able write the same register  using WriteSingleCoil() but it generated
an error: An Unhadled exception of type 'System.IO.IOException' occured in
NModbusRead.exe 
Additional information: Unexcepted start address in response. Expected 3,
received 0.

3.

What is the expected output? What do you see instead?
WriteSingleCoil() should not produces an error

What version of the product are you using? On what operating system?
Modbus.dll 1.9.0.0 and OS - Win XP

Please provide any additional information below.

Original issue reported on code.google.com by lalita.s...@gmail.com on 2 Dec 2009 at 5:10

GoogleCodeExporter commented 8 years ago
What's happening with this issue? Isn't there a solution? Help please!

Original comment by jorgejua...@gmail.com on 25 Jan 2010 at 5:07

GoogleCodeExporter commented 8 years ago
there is a bug in Modrsim. I contacted the author on 8/24/06 but it looks like 
he 
still hasn't fixed it. 

Conrad,

Thanks for the key. I think i may have found a "bug". The response for
writing a single holding register should echo the request. The

mod_RSsim response does not include the last two
bytes (the data).

For example -

TCP/IP request to set register 200 to value 350
000000000006 FF 06 00 C8 01 5E

the actual response
000000000004 FF 06 00 C8

should be
000000000004 FF 06 00 C8 01 5E

Original comment by sja...@gmail.com on 26 Jan 2010 at 5:31

GoogleCodeExporter commented 8 years ago

Original comment by sja...@gmail.com on 26 Jan 2010 at 5:31

GoogleCodeExporter commented 8 years ago
OK. Thanks for reporting.

Great job!

Original comment by jorgejua...@gmail.com on 18 Feb 2010 at 3:09