thiagoralves
Make sure your antivirus, windows defender or any other protection software is not blocking OpenPLC actions
Reply 0 0
JCM1964
I closed the antivirus and other protección and the error is present, when I want to start the "Start PLC Simulation" funtion
Reply 0 0
thiagoralves
This error means that the editor is trying to clean the project folder to generate another build but windows is preventing access. Make sure this folder is not restricted and that the editor has access to it. Worst case, manually delete the “build” folder inside your project folder and it should work.
Reply 0 0
JCM1964
I deleted the build folder and run the StartPlc Simulation but whit the next error:
Iniciar la construcción en D:\googledrive\PARTICULAR\Documentacion\Particulares\Curriculum, titulos y capacitaciones\Juan C Moreno\Capacitacion JCM\2024\PLC Y SCADA\PLC\OpenPLC Editor\ProgramaCap7\build
Generando el código ST/IL/SFC IEC-61131 para el SoftPLC...
Collecting data types
Collecting POUs
Generate POU PROGRAMACAP7
Generate Config(s)
Compilando el programa IEC en código C...
"C:\Users\juan-\OpenPLC_Editor\matiec\iec2c.exe" -f -l -p -I "C:\Users\juan-\OpenPLC_Editor\matiec\lib" -T "D:\googledrive\PARTICULAR\Documentacion\Particulares\Curriculum, titulos y capacitaciones\Juan C Moreno\Capacitacion JCM\2024\PLC Y SCADA\PLC\OpenPLC Editor\ProgramaCap7\build" "D:\googledrive\PARTICULAR\Documentacion\Particulares\Curriculum, titulos y capacitaciones\Juan C Moreno\Capacitacion JCM\2024\PLC Y SCADA\PLC\OpenPLC Editor\ProgramaCap7\build\plc.st"
Terminado con estatus 1 (pid 10532)
D:\googledrive\PARTICULAR\Documentacion\Particulares\Curriculum, titulos y capacitaciones\Juan C Moreno\Capacitacion JCM\2024\PLC Y SCADA\PLC\OpenPLC Editor\ProgramaCap7\build\plc.st:32-4..32-7: error: invalid variable before ':=' in ST assignment statement.
In section: PROGRAM PROGRAMACAP7
0032: LED2 := TP0.Q;
1 error(s) found. Bailing out!
Error: El compilador de IEC a C retorno 1
¡Falló la generación del código del PLC!
 
If i run second time the StartPlc Simulation I have de first error of permission again
Reply 0 0
thiagoralves
Your project is in a google drive folder. That's why the editor is having a hard time to clean the build folder. Move it outside of your google drive and it should stop complaining about the permission error.
 
On the second problem, that's related to your project. Without seeing your project it is hard for me to help you find where the problem is. It seems to be related to your TP0 Q output connected to the LED2 variable.
Reply 0 0
JCM1964
ok, Thks
Reply 0 0
thiagoralves
By the way, if you update your editor to the latest version I pushed today (file -> check for updates) your build crash on permission denied will go away. This fix does not fix the permission denied problem, as this is a Windows thing, but instead avoids the application to crash. Compilation could fail as a result of the build folder not being fully cleaned.
Reply 0 0
Reply