10-19-2016 04:01 AM
Hi guys, I'm trying to build commucation between my CRIO9066 and PLC300, which means I want the CRIO to obtain data from PLC, but I don't know how to implement it, could anyone give me a hand? By the way, I've made it possible to communicate between Labview and PLC by using OPC server, I wonder if it works too in communication between CRIO and PLC.
Solved! Go to Solution.
10-19-2016 04:52 AM
Can you connect to OPC-server from cRIO? (similas as from PC).
If no, make vi on PC which will get data from OPC and send it to cRIO
10-19-2016 04:55 AM
I'm working on that, thanks for you reply!!
10-19-2016 07:31 AM
To my knowledge, you cannot connect to an OPC DA server from a cRIO because it is not a windows target and OPC DA uses DCOM for communication. If it is an OPC UA server, you can definitely use the LabVIEW API from a cRIO.
You could also check if there are other ways to communicate to the PLC such as Modbus.
10-19-2016 09:38 AM
Depending on how you want to use it but you can use this API. http://snap7.sourceforge.net/
Generally it works fine but If you want a more reliable method, I use SP7 Toolkit (a product of Data Ahead, NI Silver Alliance Partner). You can give it a try.
Emre
10-19-2016 07:55 PM
Thans for you reply, I'll give it a try!
Regards!
10-19-2016 08:01 PM
Hi Matt, I've considered your suggestion, and I wonder if it is an accessible way to achiece that by installing Linux system to my computer.
Regards!
10-26-2016 09:07 PM
Problem solved!
Thanks for your suggestion, it does help!