Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling a external C application from a CPLC
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?
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.

Forum Jump:

Users browsing this thread: 1 Guest(s)