Author |
Message |
Topic: Modbus RTU with pic |
vietnh
Replies: 6
Views: 21527
|
Forum: General CCS C Discussion Posted: Thu Jul 02, 2015 5:08 pm Subject: Modbus RTU with pic |
I don't think it's important, the_slave_address or modbus_address is defined as constant. I checked the modbus library, as RF_Developer said, the slave address and modbus address are not used in the m ... |
Topic: Modbus RTU with pic |
vietnh
Replies: 6
Views: 21527
|
Forum: General CCS C Discussion Posted: Thu Jul 02, 2015 3:29 am Subject: Modbus RTU with pic |
My hardware has no problem. I used it to send and receive data to computer by using Hercule.
I am using the version CCS 5.015 and I read the library, it had to define MODBUS_SLAVE_ADDRESS, didn't us ... |
Topic: Modbus RTU with pic |
vietnh
Replies: 6
Views: 21527
|
Forum: General CCS C Discussion Posted: Thu Jul 02, 2015 2:21 am Subject: Modbus RTU with pic |
I tried to send data from pic to computer using modbus RTU, I used modbus poll and I can't receive anything.
My code is simple
#include <main.h>
#define MODBUS_PROTOCOL MODBUS_PROTOCOL_SE ... |
|