Dom T
Hi, I'm running into an issue with compiling my OpenPLC program. I have an Rpi 4 connected to two Arduino Megas and one Arduino Uno. I have had no issues connecting with the two megas but when I try to run a motor off of the Uno I get the following error message:
Optimizing ST program...
Generating C files...
./st_files/251914.st:11-13..11-20: error: invalid location in global location declaration.
1 error(s) found. Bailing out!
Error generating C files
Compilation finished with errors!
Here is the table for slave devices in the OpenPLC runtime:
[203128%2F8603391%2Fmceclip0]
And here is the addressing in the OpenPLC editor:
[203128%2F8603390%2Fmceclip0]
As far as I can tell, the issue appears to only apply for the Uno's addresses (%QX 104.0 and %QX104.1) - if there's a simple fix that I'm missing please let me know, I can provide the additional files as needed should there be something else wrong.
Reply 0 0
thiagoralves
I think your error is elsewhere, most likely a typo in a variable declaration. Can you post your full project here?
Reply 0 0
Dom T
Here's the zipped folder, hopefully this helps
Reply 0 0
Dom T
I think your error is elsewhere, most likely a typo in a variable declaration. Can you post your full project here?
How can I check the variable declarations myself?
Reply 0 0
thiagoralves
Screenshot 2024-02-26 at 2.17.15 PM.png
 
You have two variables located at the same address
Reply 0 0
Dom T
Screenshot 2024-02-26 at 2.17.15 PM.png
 
You have two variables located at the same address
Oh geez that's embarassing, thanks for pointing that out! Is that the reason why my arduino uno was unable to function properly?
Reply 0 0
thiagoralves
Yup!
Reply 0 0
Reply