Home > Software engineering >  Modbus protocol implementation of the problem
Modbus protocol implementation of the problem

Time:10-17

I use the c # programming implementation and PK6031 smart meter communication, use serial debugging assistants and sample program can realize communications and electric meter, the return value is also correct, however, when I communicate with its own procedures and electric meter, electricity meter don't respond, my program data reception and the sample is the same, but I still don't get the return value,
So, I use a serial port listener to see, parameter setting and sending code and sample program is the same, but I can't program is accepting the return value? !
Masters, you have what fault judgment to consider?

CodePudding user response:

Thoroughly studied communication protocols, consider this:
http://download.csdn.net/detail/veron_04/1262066

CodePudding user response:

Modbus control is very easy to succeed, not return values, to check
Communication protocol are consistent, bitrate, broadband data, check way
Equipment set device address is correct,
Calibration methods are consistent, the algorithm is correct

CodePudding user response:

Now have an existing c # modbus library, is the official implementation, you can use the dynamic link library!
The address is: http://www.modbustools.com/modbus_wsmbs.asp


Focus on intelligent digital sensors, providing data collection, wireless transmission, data storage, integrated solutions
On the left bank of Shanghai xin hui electronic technology co., LTD.
www.zaxh.com.cn

CodePudding user response:

The building Lord, problem solving have no? Your problem, c # within VB section, might have ran c # section of yo,
  • Related