khalil-yazji Posted February 19, 2019 Share Posted February 19, 2019 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 More sharing options...
steve.milici Posted February 21, 2019 Share Posted February 21, 2019 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: ftp://support.deltatau.com/DT-USA/milici/PPMAC%20IDE/Help%20Files/ The “GetResponse()” function is documented there. Link to comment Share on other sites More sharing options...
khalil-yazji Posted February 22, 2019 Author Share Posted February 22, 2019 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 More sharing options...
steve.milici Posted February 25, 2019 Share Posted February 25, 2019 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 More sharing options...
JeffB Posted December 21, 2019 Share Posted December 21, 2019 Can you please update the link? thanks Link to comment Share on other sites More sharing options...
leandro.martins Posted August 30, 2021 Share Posted August 30, 2021 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 Link to comment Share on other sites More sharing options...
Alex Anikstein Posted August 30, 2021 Share Posted August 30, 2021 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 More sharing options...
Omron Forums Support Posted August 30, 2021 Share Posted August 30, 2021 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.PowerPMACHelp.zip Link to comment Share on other sites More sharing options...
Recommended Posts