JeffB Posted November 12, 2019 Share Posted November 12, 2019 Previously I used the pewin 32 pro's pcomm32W.dll to interface with our C++ program. Now we switched from Turbo PMAC to Power PMAC. Is there something similar for Power PMAC. It looks like the PDK is only for C# but maybe it has some com or C++ callable dll? Thanks Link to comment Share on other sites More sharing options...
steve.milici Posted November 18, 2019 Share Posted November 18, 2019 You can use other languages. The complete examples are only in C# but the manual for the PDK has “individual” command syntaxes for Visual BASIC and Visual C++. Link to comment Share on other sites More sharing options...
JeffB Posted November 21, 2019 Author Share Posted November 21, 2019 So is there an underlying com interface or something like that, that can be called directly from C/C++? I mean normal C++ not .NET C++. Thanks Link to comment Share on other sites More sharing options...
steve.milici Posted November 22, 2019 Share Posted November 22, 2019 It is ".NET" only. Link to comment Share on other sites More sharing options...
JeffB Posted November 27, 2019 Author Share Posted November 27, 2019 So the recommended alternative for non .NET languages is via a SSH server, correct? Can the variables be sent in binary mode or only in ASCII? Thanks Link to comment Share on other sites More sharing options...
JeffB Posted December 3, 2019 Author Share Posted December 3, 2019 So is there a recommended way for non .NET? Link to comment Share on other sites More sharing options...
steve.milici Posted December 3, 2019 Share Posted December 3, 2019 An SSH server using "gpascii" would be the alternative method. Link to comment Share on other sites More sharing options...
jbeasley Posted December 3, 2019 Share Posted December 3, 2019 Not sure if this helps but looks like someone build a c++ library for ssh. Good luck. https://github.com/Observatory-Sciences/powerPMAC_ssh Link to comment Share on other sites More sharing options...
JeffB Posted December 5, 2019 Author Share Posted December 5, 2019 Thanks for the advice. Now using ssh, I'm able to read/write variables and execute plc/motion programs. I wonder if there's any more efficient way to read a lot of variables, like a binary mode. How does the PMAC IDE upload all the chart data? also, what does the -2 option mean when running gpascii? Link to comment Share on other sites More sharing options...
Omron Forums Support Posted December 5, 2019 Share Posted December 5, 2019 If you issues "gpascii -2" you will be able to access declared script global variables like in the IDE terminal. With just "gpascii", you would not be able to. You should be able to view multiple variables with commands like "P0..10", "Motor[1].JogSpeed,10", "backup Motor[1].", and "MyVar,10". By chart data do you mean the plot utility? Link to comment Share on other sites More sharing options...
JeffB Posted December 6, 2019 Author Share Posted December 6, 2019 Thanks for your information. I definitely want the -2 option so I can read the global variables. Are the gpascii option flags documented anywhere? The plot utility can receive a lot of data; does it do this all through ASCII or is there a way to read in binary? An array of 20,000 values may take much more time to send and parse as ASCII. The plot utility is the most analogous activity performed by the IDE so I thought whatever method DeltaTau is using internally should be the best method. Thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts