I have just bought a RC6700 Deluxe development kit to create a Modbus TCP slave controller.
The Dynamic C version supplied is 10.64 which only shows the libraries but no sample code to work from.
Sorry, but this is my first foray into Rabbit Modules and I could do with a sample program to get me going.
I cannot find the BL2000 sample program mentioned elsewhere in this forum, it isn’t online anymore?
Grateful for any help.
Hello , I think they have removed samples from the Dynamic C 10, So check with the digi technical support team. They will provide the samples. send mail to email@example.com
I have taken same problem. But the technical support keep silence more than two days.
Technical support, please, answer me
Have you tried downloading the Modbus TCP 1.02 package from http://www.digi.com/support/productdetail?pid=4978 to see if there is some examples in that that you could use as a starting point?
Yes, i have tried. But i catch some errors:
line 22 : ERROR MODBUS_SERIAL_SLAVE.C : BL2600A is out of scope/ not declared.
line 30 : ERROR MODBUS_SERIAL_SLAVE.C : LP3500 is out of scope/ not declared.
line 42 : ERROR MODBUS_SERIAL_SLAVE.C : This board (
line 48 : WARNING MODBUS_SERIAL_SLAVE.C : Reference to ‘brdInit’ has no corresponding prototype.
line 49 : ERROR MODBUS_SERIAL_SLAVE.C : LP3500 is out of scope/ not declared.
line 51 : ERROR MODBUS_SERIAL_SLAVE.C : BL2600A is out of scope/ not declared.
line 61 : WARNING MODBUS_SERIAL_SLAVE.C : Reference to ‘MODBUS_Serial_Init’ has no corresponding prototype.
It will do impossible any future steps
From hat I can remember when I looked at this before:
The Modbus installer puts some of the lib files in \lib\Modbus and not \lib\rabbit4000\Modbus so you may need need to add that path to your lib.dir file.
I think the BL2600 is a Rabbit 3000 device and the files for that will probably need DC9.x to compile if you want to see how the files go together.
You will probably need to have a good look at all the Modbus bits and sample programs and build a RCM6700 specific test app yourself based on the rather disjointed set of examples and libs.
Thanks Peter very much! Can you send me a few examples to try? please
Unfortunately, I haven’t implemented Modbus TCP in our products yet so I can’t be of much help other than pointing you at what’s currently available
I used the Digi Modbus Serial library as a starting point and heavily modified it to make it more resilient for my purposes.