on raspberrypi 4 I would like to run a program written in C by launching it from the codesys runtime project.
The compiled program launched from the terminal works correctly.
I use the command:
sudo/home/pi/Documents/c-plain/shm/shm
I add at the bottom in the file /etc/CODESYSControl.cfg and /etc/CODESYSControl_User.cfg
Hello,
on raspberrypi 4 I would like to run a program written in C by launching it from the codesys runtime project.
The compiled program launched from the terminal works correctly.
I use the command:
I add at the bottom in the file /etc/CODESYSControl.cfg and /etc/CODESYSControl_User.cfg
Then i program this code
The SysCom program is called cyclically.
When it works in runtime, setting TRUE the
xExecuteSysP
var, nothing happens, the program is not executed.
Why doesn't it work?
Last edit: elsabz 2020-08-09
try to call without sudo..
yes it works, thanks.