06-14-2007 04:15 AM
06-15-2007 11:03 AM
06-15-2007 10:11 PM
06-18-2007
07:54 AM
- last edited on
04-12-2024
06:45 PM
by
Content Cleaner
Hi Aithal,
First of all, thank you very much for posting this additional information, as it is much more useful to help you out going forward.
To clarify, when interacting with PLCs, LabVIEW is acting as a client and the PLC (via an OPC Server) is the server. If you wished to share some data from LabVIEW to other applications via OPC, this is technically possible as well, since the LabVIEW shared variable engine acts as an OPC server.
1. I am not sure in terms of speed whether you would be able to capture this amount of data in this amount of time, as this is dependent on the device (PLC ) that you are communicating with, network traffic (if it is ethernet), etc. The data rate at which you can capture from a particular PLC with new data is going to be something you will need to determine empirically.
2. Most commonly, yes, people use an OPC server to communicate with a PLC (or sometimes Modbus). This is frequently something that is provided by their PLC manufacturer on a CD or for download, but in some instances not. We do offer Industrial Automation OPC Servers, which provides support for many common PLCs.
Once you have done this, you may either use datasocket to communicate with the OPC server, or we recommend the LabVIEW DSC Module, as it enables you to bind shared variables to your OPC items, and also adds logging, alarming and security to the variables.
3. It entirely depends upon your PLC. If it supports serial communication, then you could likely use NI-VISA commands to interface with it, and a good starting point would be the example in the Example Finder entitled "Basic Serial Write and Read.vi".
Best regards,
06-19-2007 05:55 AM
06-19-2007 09:11 AM
06-19-2007 02:15 PM
Let me jump in here for a minute.
The actual OPC server that you use to talk to your PLC is not dicated by LabVIEW.
Once you choise one there is generally a configuration page "somewhere" that lets you define the update interval.
If your network connection can handle it and you are not talking about an I/O count that staggers the mind, you should be able to achieve the update rates you are asking for.
Re: the serial protocol
That is dependent on your OPC server. For the most part, serial will often be slower than ethernet based connections.
So....
all of your questions should be posed to the supplier of the OPC server.
Adding....
If the OPC server supports data sockets, we have seen very good results by using the dynamic value change events available with DSC.
I hope that helps,
Ben
06-19-2007 10:01 PM