Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Read and Write with OPC through NI Vision

Hi

 

   How can I Write and read directly from NI Vision to Plc?

 

in other words, how can connect to another device through OPC by NI Vision?

 

Many thanks for your reply.

Best Wishes,

0 Kudos
Message 1 of 5
(3,733 Views)

Do you mean an LabVIEW application (with Vision Development Module) or with VBAI?

 

 

Christian

Message 2 of 5
(3,732 Views)

We have several application notes that explain how to do that:

 

Using Vision Builder AI as an OPC Server: http://www.ni.com/white-paper/13574/en

https://decibel.ni.com/content/docs/DOC-18647

 

For implementation in LabVIEW, just search for OPC on ni.com. There are a lot of documents explaining how to implement this communication protocol.

If you give us more details (who you want to be the server or client), we can provide better guidance.

 

Hope this helps.

 

Christophe

Message 3 of 5
(3,728 Views)

Hello

 

i need to use Vision Builder AI as opc client,because i want to  connect to One opc server for the other machine and i need to write and read the register from opc server.

best regards

0 Kudos
Message 4 of 5
(3,715 Views)

To allow VBAI to connect to an OPC Server (i.e. act as an OPC client), you need to purchase and install the DSC Run-time System.

Once installed, you can create an OPC I/O client using the Distributed System Manager, create variables bound to OPC tags, then create VBAI network variables that are bound to these variables.


Another possible technical solution to connect to OPC Servers supporting Data Access 2.0 is to use the datasocket API in a Run LabVIEW step.

 

-Christophe

Message 5 of 5
(3,705 Views)