shansen Posted July 11, 2013 Share Posted July 11, 2013 Hello fellow Power PMAC users! Not too long ago, I wrote a simple library that lets you communicate between a Power PMAC and one or more Turbo PMACs over Ethernet. I figured I would upload it here so other people can use it too! (see attached Turboeth Project.zip) This library can be used to: Connect to one or more Turbo PMACs over EthernetRead variables from a Turbo PMAC into Power PMAC variablesSend variables from a Power PMAC to Turbo PMAC variablesAutomatically reconnect if the connection is lostPerform asynchronous GetResponse commands in addition to background polling As shown in the example, connections to Turbo PMACs can be created by any background Capp. The Capp can setup which variables should be polled (read from Turbo), which variables should be cmds (sent to Turbo), and how often this happens (poll rate). You can also monitor the status of the connection, and then take action if something bad happens. A cool consequence of the way this library is setup is that it can be used to mirror variables. For example, you can set it up so P100 in the Power PMAC is updated with the value of P100 in the Turbo. Then, all of your script and motion programs on the Power PMAC can read from P100, but the value is really coming from the Turbo! Feel free to modify or use this as you please, but as with any free software use at your own discretion. Good luck!Turboeth Project.zip 1 Link to comment Share on other sites More sharing options...
Sina.Sattari Posted July 12, 2013 Share Posted July 12, 2013 Great job shansen! Thanks for all your efforts. Link to comment Share on other sites More sharing options...
Unit101 Posted July 13, 2013 Share Posted July 13, 2013 Awesome jub !! I dig it big time... thanks for sharing. Pmac users are top.... Link to comment Share on other sites More sharing options...
Recommended Posts