Monday, April 29, 2013

Modbus RTU sample frame 8N1.

Recently, I have been working on modbus RTU for communication between ABB ACS800 (a type of motor drive) and dsPIC33FJ128mc. Finally, I made it to work.
However, during development time, I was trying to google for sample Modbus RTU frame, but I could not find a good source. Hence, after making it work, I decided to post it here:
Request frame : 1 3 0 101 0 1 148 21 (in DEC)

Respond frame : 0 1 3 2 52 22 47 74 0 (in DEC)

1 comment:

  1. Hello, My name is Francisco, and I am working with the same dsPIC and modbus. I'm glad to find someone who worked at this.

    I think I have a problem with UART interrupt configuration. Could you explain how did you configurate them, please? I have set Tx and Rx separately and allowed nesting. They only have "pxMBFrameCBTransmitterEmpty" and "pxMBFrameCBByteReceived" respectively and the flag clearing.
    Is it wrong, or should I look for another type of error?

    Thank you!

    ReplyDelete