Erik Höglund
I have a projekt that i worked on that gets a syntax error when i try to open it in the editor.

Is there a way to rollback "backcompile" from the runtime program to the editor (i have an older working program)
The runtime program says this when i try the broken plc file


./st_files/697034.st:280-19..280-24: error: invalid location in global location declaration.

1 error(s) found. Bailing out!
Error generating C files
Compilation finished with errors!


Is this fixable or am i short 50 hours of my life 🙁

If some guru/wizard wants to look have the catalog rar:ed
from here : https://sprend.com/download?C=f526920a52f84a3c86b9542fc2a2045e
Reply 0 0
thiagoralves
There is no way to "backcompile" a program and revert it back to the original project. The program running on the PLC contains only the structured text code. What happened to your original project files? I looked at your .rar file (by the way, you can upload .zip files straight to the forum post) and your project is empty. The plc.xml file has 0 bytes. There is nothing in there.
Reply 0 0
Erik Höglund
I had over 25 scrolldown pages .... and now its gone .... it happened when i was making sensor control program and what would happen if 1 of 3 would fail, how to check if it was broken and if it could be recalibrated (power-outage/glitch or realy broken)

Wel ... S%¤T happens. If its empty, there is nothing to do. TNX anyway!
Reply 0 0
thiagoralves
I always keep a backup copy of large projects “just in case”… 
Anyway, how did you manage to lose the original project file? Did the editor crash or something like that?
Reply 0 0
Reply