PeBi
Hello,
I have created a simple test program here. However, when I try to create the program, I get the following error message.
 
 
 
[10:06:15]: Starting compilation process...
[10:06:15]: Compiling program for project: C:\Users\P\Documents\OPENPLC_4\CANADUINO_BAHN and board target: Arduino Mega Canaduino
[10:06:15]: Host Hardware Info:
[10:06:15]: System Architecture - x64
[10:06:15]: Operating System - win32
[10:06:15]: Processor - Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
[10:06:15]: Logical CPU Cores - 4
[10:06:15]: CPU Frequency - 2993 MHz
[10:06:15]: CPU Model - Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
[10:06:15]: Checking tools availability...
[10:06:16]: Arduino CLI available at version 1.1.1
[10:06:16]: IEC2C available at version 0.1
[10:06:16]: Directories for compilation source files created.
[10:06:16]: Generated XML from JSON at: C:\Users\P\Documents\OPENPLC_4\CANADUINO_BAHN\build\Arduino Mega Canaduino\src
[10:06:18]: Compiling file C:\Users\P\Documents\OPENPLC_4\CANADUINO_BAHN\build\Arduino Mega Canaduino\src\plc.xml
[10:06:18]: Collecting data types
[10:06:18]: Collecting POUs
[10:06:18]: Generate POU Besetzt
[10:06:18]: Generate POU main
[10:06:18]: Generate Config(s)
[10:06:18]: Stage 1 compilation finished successfully
[10:06:18]: Saving ST file...
[10:06:18]: Parsing complex variables...
[10:06:19]: ST file generated at: C:\Users\P\Documents\OPENPLC_4\CANADUINO_BAHN\build\Arduino Mega Canaduino\src\ program.st
[10:06:19]: Copying static files...
[10:06:19]: Static files copied successfully.
[10:06:19]: iec2c process exited with code 3221225477
[10:06:19]: Stopping compilation process.
Reply 0 0
thiagoralves
You created a Function Block called Besetzt, and inside this block you have a variable called Besetzt. You cannot have a variable with the same name as the Function Block
Reply 0 0
PeBi
Thank you very much,
that was the mistake, of course.
Reply 0 0
thiagoralves
Errors like this can happen all the time. I guess the main problem here is that matiec error message is not helpful in guiding users to identify the error. We're working on improving the error messages to make it easier for the user to fix their own mistakes. If the compiler had told you the same thing I did, you probably wouldn't even need to start this topic, right? In the end, a smarter compiler = happier users 🙂
Reply 2 0
Reply