RandomStudent
For some reason I cannot compile this simple project on my Laptop tried linux, windows(dual boot), still same issue
Some how it works perfectly fine and compiles with on PC.


Start build in C:\Users\Gry\Documents\PLC\LED_0\build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Collecting data types
Collecting POUs
Generate POU prog0
Generate Config(s)
Compiling IEC Program into C code...
"C:\Users\Gry\OpenPLC_Editor\matiec\iec2c.exe" -f -l -p -I "C:\Users\Gry\OpenPLC_Editor\matiec\lib" -T "C:\Users\Gry\Documents\PLC\LED_0\build" "C:\Users\Gry\Documents\PLC\LED_0\build\plc.st"
exited with status 1 (pid 10004)
C:\Users\Gry\Documents\PLC\LED_0\build\plc.st:36-10..37-14: error: unknown error in resource declaration.
In section: CONFIGURATION Config0
0036: RESOURCE Res ON PLC
0037: END_RESOURCE
1 error(s) found. Bailing out!
Error : IEC to C compiler returned 1
PLC code generation failed !



Reply 0 0
fg71
What does your config and resource show in your plc.st, the error say its something with that part
 
CONFIGURATION Config0
  VAR_GLOBAL
  END_VAR

  RESOURCE Res0 ON PLC
    <what_does_this_show_in_your_plc.st_file>
  END_RESOURCE
END_CONFIGURATION
 
Reply 0 0
thiagoralves
Hard to help you when we don't know what your "simple project" is...
Reply 0 0
Reply