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)

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.
ReplyDeleteI 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!