supremesports
I tried to load my program which was running in Windows onto my Raspberry Pi. While the HelloWorld loads properly and runs, my ST file gives this error :

Optimizing ST program...
Generating C files...
POUS.c
POUS.h
LOCATED_VARIABLES.h
VARIABLES.csv
config0.c
config0.h
res0.c
Moving Files...
mv: cannot stat 'Config0.c': No such file or directory
mv: cannot stat 'Config0.h': No such file or directory
mv: cannot stat 'Res0.c': No such file or directory
Error moving files
Compilation finished with errors!

I already verified the other thread with the 3 apt-get to install and it didn't change...
Reply 0 0
thiagoralves
Your program is missing a Configuration and a Resource, or they have the wrong names. This program should not work on any version of the OpenPLC runtime, neither on the PC nor the Raspberry Pi.

edit: I just saw from the logs that you named your configuration “config0” and your resource “res0”. It must be renamed to “Config0” and “Res0”, otherwise it won’t work. OpenPLC is case-sensitive 
Reply 0 0
supremesports
It was running on Windows perfectly... But it just work, the files config0 and res0 should be Config0 and Res0 (first letter Capital).

Next question, is it normal that it takes like 5 minutes to load a program while it was taking 10 seconds in Windows, I know the RPi is slower but that much?
On the other hand, the runtime is running quicker on the RPi than in Windows. I have a LED that flashes every 250ms in the ladder. In Windows, it was barely flashing once per second and now it flashes twice per second very easily and more precisely (no delay) than Windows.
Reply 0 0
thiagoralves
What hardware are you using to blink the LED on Windows? On the Pi OpenPLC has direct access to the Pi’s GPIO pins, which is a lot faster than talking to a slave device through Modbus. Usually, most of the time of a scan cycle is spend doing I/O operations. Processing the ladder logic is usually super quick, in the order of nanoseconds.

About loading a new program, usually my Pi Zero takes around 30 seconds to a minute. If your Pi is taking 5 minutes to load a new program then there might be something wrong with it.
Reply 0 0
supremesports
The hardware is a ESP8266 through WiFi. I'm not using any of the local pins. I'm controlling many remote boards (garage, front lawn, pool cabin, etc...). 
As I said in another thread, my PLC program is getting pretty big, but not that much yet (199kb for the XML file).

I'm wondering what could be wrong. Can you try to load my ST file on your device to see if it's that long? Also, should I install Raspbian and OpenPLC on a flash drive instead of a SD card???
Reply 0 0
Reply