From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-11-2005 11:02 AM
01-25-2006 10:07 AM
01-06-2008 10:43 PM
01-08-2008 08:23 AM
Hi Phooi,
Are you using an OPC server with your PLC? If so, you can use DataSocket in LabVIEW to read the input from the hardware. There are several good examples of using DataSocket found in the NI Example Finder. In LabVIEW, go to Help » Find Examples… and then click the Search tab. Search for DataSocket and this should populate a list of example VIs. Some of the more useful ones for getting started with DataSocket are Multiple OPC Items Monitor.vi, Front Panel DataSocket Read.vi and DS Reader.vi.
01-08-2008 07:14 PM
Thanks Donovan. But my PLC currently do not have OPC server. Are there any other alternatives available?
Appreciate any viable advise.
01-09-2008 06:39 PM
Hi Phooi,
I did not find any drivers for your PLC on our Instrument Driver Network. If Beckhoff does not have a LabVIEW driver for your PLC and the example from their website will not work for you, you can make a request for this driver at the Product Suggestion Center. I'm not sure of the protocol that the PLC uses to communicate. If you know that, you may be able to write your own driver.
09-04-2008 01:45 AM
Hi !
I use the .net controls provided by beckhoff to communicate with the CX9010 device
It is ADS based and works great but needed a few weeks to translate to .NET in labview.
If you want a simple example just write.
Best regards
gernot
09-12-2008 01:45 PM
If this thread is still active, I started with TwinCAT's ADSOCX and LabVIEW 7.1 in 2005. There were some issues with passing arrays between the two interfaces, but I was able to get it to work. I am starting a new project to use a different Beckhoff PLC. I plan to use the .NET component and would like to use events to update various controls when PLC values fire. Are there any .NET examples or TwinCAT specific examples to perform this type of task?
Regards,
Kenneth
09-15-2008 02:02 AM
I think I have a example for you especially regarding the eventing. It was a hard task but now works very good with .NET events.
Here are the screenshos of the two main vi's which I am using to make the eventing procedure. Then Main produces the handlers and all other stuff and the callback is responsible to bring the values into the application.
Hope this helps
Best regards
gernot
09-15-2008 12:23 PM
Sample code can be found here.
http://infosys.beckhoff.com/content/1033/tcsample_labview/html/tcsample_labview_overview.htm
Regards,
Corey