tecnico Posted April 5, 2018 Posted April 5, 2018 Hi all, I know I can run an external C program (of course after compiling it ;-)) from within a PLC with this command: system " /usr/local/bin/xxx/capp1" but what if I want to call this app from within a CPLC ? Is this possible?
steve.milici Posted April 5, 2018 Posted April 5, 2018 There are a couple of options. You could “force-feed” your first method through the PMAC command interpreter with the “Command()” or “GetResponse()” PMAC API function (Gp Library Functions in gplib.h). Another method is using the standard C system() function to pass a command string back to Linux.
Recommended Posts