Amar Posted February 14, 2017 Posted February 14, 2017 We are using Power PMAC for our application developed in Microsoft Visual Studio .Net. I tried to establish communication using "PowerPmacComLib.dll" using SSH connection type. We have not yet tested it, hope it will communicate properly. After importing this library i have found that there is lots of functions unavailable. We need command for Download motion program file into Power PMAC. As per unavailability of DPRAM in Power PMAC what are the other options to fetch real time data in Host PC? Note - We are not using Power PMAC Development Kit.
steve.milici Posted February 14, 2017 Posted February 14, 2017 This dll is not for customer use. If you wish to create a Windows application having a "download" function you will need the Power PMAC Development Kit - it has this function. Since the Ethernet port is 1Gb speed you can usually poll PMAC for real-time data. There are also streaming data gather functions in the PDK.
Clopedandle Posted February 14, 2017 Posted February 14, 2017 The data gathering functions in the PDK are really nice. I suggest you check them out. You can even generate live plots.
Amar Posted February 15, 2017 Author Posted February 15, 2017 that means, i can't connect to Power PMAC straightway from host PC application developed using other tool and there is no any API library like "PCOMMSERVERLib.dll" which we are using previously to communicate with UMAC or other PMAC modules. Can i write our own driver for Ethernet using other development tool in host PC to communicate with Power PMAC or i can't do this without PDK?
steve.milici Posted February 15, 2017 Posted February 15, 2017 You can have full access to "PowerPmacComLib.dll" when you install and license the Power PMAC PDK. You can also create you application based on SSH connections running gpascii on Power PMAC without the PDK. You will need a very good working knowledge of Power PMAC on-line command syntax.
Amar Posted February 16, 2017 Author Posted February 16, 2017 Thanks for your valuable feedback.. I have other doubts, i.e what about Linux? Is PDK available for Linux environment also? (Our lots of application will develop on Linux) Is any barrier for MODBUS? ( separate firmware is required?) We need manuals for PDK and DLL. How can we get this?
steve.milici Posted February 16, 2017 Posted February 16, 2017 We do not have the PDK for Linux and have no plans to make one. Modbus is a standard feature for Power PMAC - see the example projects: PowerPmacModbusExample ModbusLibExample The manuals for the PDK are part of the "Help" system of the installed product.
Clopedandle Posted February 17, 2017 Posted February 17, 2017 Talking to PPMAC through Linux with your own driver should not be too bad. For example, if you want to go with Python on Linux, you can use Paramiko, which is a native SSH implementation: http://www.paramiko.org/ Or others: https://wiki.python.org/moin/SecureShell Connect to your PPMAC IP Address (default 192.168.0.200), port 22 It will request a username, which is "root". Password is "deltatau" After that, issue "gpascii -2" Then, you can issue commands as though you are talking through the IDE. This naturally will not be as fancy or nice as the PDK, but you can do virtually anything you need still.
Amar Posted February 26, 2017 Author Posted February 26, 2017 Talking to PPMAC through Linux with your own driver should not be too bad. For example, if you want to go with Python on Linux, you can use Paramiko, which is a native SSH implementation: http://www.paramiko.org/ Or others: https://wiki.python.org/moin/SecureShell Connect to your PPMAC IP Address (default 192.168.0.200), port 22 It will request a username, which is "root". Password is "deltatau" After that, issue "gpascii -2" Then, you can issue commands as though you are talking through the IDE. This naturally will not be as fancy or nice as the PDK, but you can do virtually anything you need still. Dear Sir, Thank you very much. Is it possible to implement DPRAM like functionality?
Amar Posted February 26, 2017 Author Posted February 26, 2017 Talking to PPMAC through Linux with your own driver should not be too bad. For example, if you want to go with Python on Linux, you can use Paramiko, which is a native SSH implementation: http://www.paramiko.org/ Or others: https://wiki.python.org/moin/SecureShell Connect to your PPMAC IP Address (default 192.168.0.200), port 22 It will request a username, which is "root". Password is "deltatau" After that, issue "gpascii -2" Then, you can issue commands as though you are talking through the IDE. This naturally will not be as fancy or nice as the PDK, but you can do virtually anything you need still. Dear Sir, Thank you very much. Is it possible to implement DPRAM like functionality? How to do real time data gathering?
Clopedandle Posted February 27, 2017 Posted February 27, 2017 Make a thread in your host program to poll variables/structures (whatever you are trying to gather) at a set period. That is as close to real-time data gathering that you can achieve without purchasing the PDK, which has built-in real-time gathering tools. Remember to poll something in gpascii -2 mode, all you have to do is query (i.e. send down the variable/structure name to PPMAC) (e.g. send down Motor[1].Servo.Kp and PPMAC responds with the current value). To change the way PPMAC replies, you can set the "echo" parameter. echo 7 makes PPMAC respond with just the value, omitting the structure name, in the current communication thread.
Amar Posted February 28, 2017 Author Posted February 28, 2017 Make a thread in your host program to poll variables/structures (whatever you are trying to gather) at a set period. That is as close to real-time data gathering that you can achieve without purchasing the PDK, which has built-in real-time gathering tools. Remember to poll something in gpascii -2 mode, all you have to do is query (i.e. send down the variable/structure name to PPMAC) (e.g. send down Motor[1].Servo.Kp and PPMAC responds with the current value). To change the way PPMAC replies, you can set the "echo" parameter. echo 7 makes PPMAC respond with just the value, omitting the structure name, in the current communication thread. Thank You Sir..
Recommended Posts