Jump to content
OMRON Forums

Submitting "$$$" or "save" via gplib API


patdb

Recommended Posts

We are currently using the “Command()” or “GetResponse()” PMAC API methods (Gp Library Functions in gplib.h) to submit commands from a background C application (which in turn is talking to the outside world) to the PMAC command interpreter .

 

However, those particular methods do not support commands such as "$$$", "$$$***", "save".

What is the recommended way to submit these commands via the gplib API?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Power PMAC firmware refuses these commands through any communications thread other than direct “gpascii”. This is protection against “inadvertent abuse”.

Having said that, a Linux script could be installed that executes the following:

gpascii <<< ‘$$$’

 

The Power PMAC “system” command could then execute this from its script programming or through C.

 

Keep in mind this is very dangerous programming and is not recommended or supported by ODT. Execution at the wrong time can "brick" the PMAC.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...