heretic
Hello!

I have made this program.

Markering_012.png  Markering_013.png  And when I upload the .st file I get
Markering_014.png  I have use sudo before ./start_ openplc.sh

Markering_015.png 

And the runtime

Markering_016.png 
Result:

Now %QX0.0 is always TRUE and the "button" has no function at all.

PROGRAM program0
VAR
button AT %IX0.0 : BOOL;
lamp AT %QX0.0 : BOOL;
END_VAR

lamp := button;
END_PROGRAM


CONFIGURATION configuration0

RESOURCE resource0 ON PLC
TASK task1(INTERVAL := T#1s0ms,PRIORITY := 0);
PROGRAM instans1 WITH task1 : program0;
END_RESOURCE
END_CONFIGURATION
Reply 0 0
thiagoralves
Your problem has nothing to do with starting the runtime as super user. Your problem is related to you not following the tutorial on the website to create a program (http://www.openplcproject.com/reference-your-first-project), more specifically the part where it mentions creating a resource and a configuration and renaming them to Res0 and Config0
Reply 0 0
Reply