Error compiling modbus configuration file
- SebastianM
- Offline
- Junior Member
-
Less
More
- Posts: 20
- Thank you received: 2
21 Jun 2025 23:44 - 22 Jun 2025 00:09 #330665
by SebastianM
Error compiling modbus configuration file was created 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
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
Attachments:
Last edit: 22 Jun 2025 00:09 by SebastianM.
Please Log in or Create an account to join the conversation.
- SebastianM
- Offline
- Junior Member
-
Less
More
- Posts: 20
- Thank you received: 2
22 Jun 2025 00:55 #330668
by SebastianM
Replied by SebastianM on topic Error compiling modbus configuration file
ok, nevermind.. I rewrote the file from scratch and now its working.. not idea what happened before.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23377
- Thank you received: 4966
22 Jun 2025 18:46 #330717
by andypugh
Replied by andypugh on topic Error compiling modbus configuration file
My guess would be that you lost the { at the end ofor 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.
static const hm2_modbus_chan_descriptor_t channels[] = {
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 or Create an account to join the conversation.
Time to create page: 0.193 seconds