Error compiling modbus configuration file

More
1 year 4 months ago #330665 by SebastianM
Hello!
I just tried to compile a modbus file according to this documentation:
linuxcnc.org/docs/2.9/html/drivers/mesa_...#_configuration_file

I attached the file that I created, and imho it looks fine, but the compiler just throws a bunch of errors...

What am I doing wrong ;)?

Edit: compiling one of the modbus sample files works fine.. no idea why my file doesnt work... I copied it directly from this post from PCW (as its the same VFD)
forum.linuxcnc.org/27-driver-boards/5533...us-so?start=0#321582


 

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
1 year 4 months ago #330668 by SebastianM
ok, nevermind.. I rewrote the file from scratch and now its working.. not idea what happened before.

Please Log in to join the conversation.

More
1 year 4 months ago #330717 by andypugh
My guess would be that you lost the { at the end of
Code:
static const hm2_modbus_chan_descriptor_t channels[] = {
or possibly the one that terminates that set.

If you still have the good and bad files, then could you attach them? I don't think that I can make the compiler more helpful in it's error messages, but possibly the preprocessor could be.

Please Log in to join the conversation.

Time to create page: 0.429 seconds
Powered by Kunena Forum