Jump to content
OMRON Forums

GetResponse


khalil-yazji

Recommended Posts

Hi all

I want to use Pmac Commands in a background C app.

I can use the Command() function to send commands but I can't get any return with this function.

I found that I can use GetResponse function for returns in the gplib.h and I can see the function declaration with some information about the parameters. However, it's not clear how to use it. and what is the echomode and what values are used for it?

 

I couldn't find any details about this function in the manual, the software reference nor in the IDE help.

 

Thanks

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Thanks for your reply. I got the help files for C API.

 

In functions like GetResponse and Command they return an integer for status.

0 is OK and negative number for error number. is there any list or information about what are the error numbers for these functions?

I have done some testing in Command() and found the following error numbers:

-31 for syntax error.

-20 for program not open

-22 for calling a program which is not in buffer.

 

Are those codes correct?

 

Thanks

Link to comment
Share on other sites

The “Command()” function should be returning the standard PMAC Command Processor error numbers (*-1) as listed in the “Power PMAC Software Reference Manual” in the section “Reported Errors for Illegal Commands” starting on page 71. Here is a link to this manual on the ODT Forums’ FileDepot (requires registration):

“http://forums.deltatau.com/filedepot/download.php?f=Power PMAC/Manuals/Power PMAC Software Reference Manual.pdf”

Link to comment
Share on other sites

  • 9 months later...
  • 1 year later...
The linked document (Power PMAC Software Reference Manual) should now be available on the appropriate Omron website instead of in our File Depot. For instance, for users in the Americas, they would download it from manuals section of their related product page on the Omron Site (I chose the CK3E page, but it is also on the CK3M and UMAC pages) or by searching for "Power PMAC Software Reference Manual".
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...