Hi,
I am facing a problem with Modbus communication particularly at the receiving side.
Here the Master device is my Teensy3.1 controller (Rx-7, Tx-8) and slave is L&T Nova energy meter.
(http://www.larsentoubro.com/lntcorporate/uploads/product/nova manual.pdf)
The interface is via MAX345, the connection diagram is attached below.
Attached the SimpleModbusMaster project for reference.
The following procedures were followed to test the communication.
1. The slave Id is set to 2, baud rate is set to 9600 with parity None.
2. Sent a frame "2 4 0 0 0 2 113 248" from controller to the slave(L&T Nova).--> "modbus_construct(packet1, 2, READ_INPUT_REGISTERS, 0001, 2, readRegs)"
3. Verified the frames at various levels like i/p of MAX485 and o/p of MAX485. The frame was correct.
4. But on sending this frame, the response seen in the controller is exception error '2'.
5. Further we connected the o/p of MAX485 to Docklight (parallel with controller also connected). --> RS485 to USB converter used to view in PC (Docklight)
6. We observed that on sending the above frame from controller, slave was successfully sending the response to Docklight but failed response in the controller.
The frame received in Docklight
Hex "02 04 04 00 00 59 C0 F2 84"
Dec "002 004 004 000 000 089 192 242 132"
We used chipkin software for analysing the modbus frame received in Docklight
Response Analysis
-----------------
Device Address =2 =0x02
Function =4 =0x04 =Read Input Registers
Point Count =2 (Implied by byte count=4)
Point Index =1 Value=0 =0000. (Address is unknown because the Poll Message was not provided.)
Point Index =2 Value=22976=0x59c0. (Address is unknown because the Poll Message was not provided.)
Note that without knowledge of the poll, the specific addresses of each point cannot be determined as this information is not contained in the response.
Note: The 22976 is the phase1 voltage register of L&T Nova with Multiplication factor of 0.01(229.76V)
Kindly request you to help me in get this issue solved.
Thanks,
Prasad
I am facing a problem with Modbus communication particularly at the receiving side.
Here the Master device is my Teensy3.1 controller (Rx-7, Tx-8) and slave is L&T Nova energy meter.
(http://www.larsentoubro.com/lntcorporate/uploads/product/nova manual.pdf)
The interface is via MAX345, the connection diagram is attached below.
Attached the SimpleModbusMaster project for reference.
The following procedures were followed to test the communication.
1. The slave Id is set to 2, baud rate is set to 9600 with parity None.
2. Sent a frame "2 4 0 0 0 2 113 248" from controller to the slave(L&T Nova).--> "modbus_construct(packet1, 2, READ_INPUT_REGISTERS, 0001, 2, readRegs)"
3. Verified the frames at various levels like i/p of MAX485 and o/p of MAX485. The frame was correct.
4. But on sending this frame, the response seen in the controller is exception error '2'.
5. Further we connected the o/p of MAX485 to Docklight (parallel with controller also connected). --> RS485 to USB converter used to view in PC (Docklight)
6. We observed that on sending the above frame from controller, slave was successfully sending the response to Docklight but failed response in the controller.
The frame received in Docklight
Hex "02 04 04 00 00 59 C0 F2 84"
Dec "002 004 004 000 000 089 192 242 132"
We used chipkin software for analysing the modbus frame received in Docklight
Response Analysis
-----------------
Device Address =2 =0x02
Function =4 =0x04 =Read Input Registers
Point Count =2 (Implied by byte count=4)
Point Index =1 Value=0 =0000. (Address is unknown because the Poll Message was not provided.)
Point Index =2 Value=22976=0x59c0. (Address is unknown because the Poll Message was not provided.)
Note that without knowledge of the poll, the specific addresses of each point cannot be determined as this information is not contained in the response.
Note: The 22976 is the phase1 voltage register of L&T Nova with Multiplication factor of 0.01(229.76V)
Kindly request you to help me in get this issue solved.
Thanks,
Prasad