Jump to content
OMRON Forums

Calling a external C application from a CPLC


tecnico

Recommended Posts

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?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...