rickmann64

OpenPLC Server


Error compiling program. Please check console log.

compiling new program...
POUS.c
POUS.h
LOCATED_VARIABLES.h
VARIABLES.csv

Program compiled successfully
moving files...
error moving files


When i compile the program from OpenPLC WEB page, it generate this error (can't move files)


Any idea why?

Kind regards
Torben

Quote 0 0
thiagoralves
You are missing the resource and configuration on your PLC program. See the screenshot from the Hello World example below:

Capture.PNG 

Perhaps the best way to start writing your own programs is to download the Hello World example from the website and modify it. The resource and configuration on your program must be exactly as the example above (including it names) for the OpenPLC to compile the program properly.
Quote 0 0
rickmann64
Ok, i tried to modify the hello World excample and now it tels me it is compiled and moved, but what do i have to do Next, the program is still not uploadet to my Arduino, it is connected to my PC through the USB.
Quote 0 0
thiagoralves
The program keeps running on the Arduino as long as it is connected to the PC. If you disconnect the Arduino the program stops running. For now, the Arduino needs the host PC to run. In the future it might be possible to generate stand alone code for the Arduino
Quote 1 0