Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.

The current versions of the IDE (3.x and 4.x) are missing the Power PMAC CAPI help, as it wouldn’t “import” properly.

You can install it manually from this link with instructions:

The “GetResponse()” function is documented there.
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?

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):
“ PMAC/Manuals/Power PMAC Software Reference Manual.pdf”
Can you please update the link? thanks
Hello Steve

As the filedepot is closed and the link is not working, is there any other place with the instructions to import the C API help, or at least a document with the functions documented?

thanks in advance
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".
Going forward, users are recommended to reach out to their respective Omron Tech Support representatives in order to obtain the C API help files.

I am also attaching them to this comment.

Attached Files
.zip (Size: 316.41 KB / Downloads: 8)

Forum Jump:

Users browsing this thread: 1 Guest(s)