sdwouc
Hi,

I study the openplc_v3 program framework, i find the info stream
 is: start_openplc-->webserver.py-->openplc.py, but i dont  understand the mean of file: "./core/openplc".I guess it creates a new subprocess, but how do I connect the relation beween the file(openplc) and the other files(.c .h source code)?
Thanks a lot! 😁

q_openplc.jpg 
Quote 0 0
thiagoralves
./core/openplc is a binary executable file, and is the heart of the OpenPLC Runtime. All the py files belongs to the webserver portion of the runtime, and are only responsible for interfacing (start, stop, change configs) the main core on ./core/openplc. This file is build by compiling all the .c, .h, .cpp files on the ./core folder with GCC. Note that every time you upload a new program, the core is recompiled to reflect the logic in your program.
Quote 0 0
sdwouc
OK, get it, thanks a lot!
And I have another question, how can we set the PLC scanning loop time in the OpenPLC-Editor?
I find the variable("extern int common_ticktime__" ) in the main.cpp file, but i don't find where it is assigned, I guess it must be in the ST-Generating C files...
Quote 0 0
thiagoralves
The cycle time is defined on the program resources. Just double click on Res0 on the left pane of the editor
Quote 0 0
sdwouc
OK, thanks a lot😁😁
Quote 0 0