03-01-2013 01:23 PM - edited 03-01-2013 01:25 PM
I am using NI OPC Server and I can read Siemens S7-300 PLC tags such as thermocouple values from the PLC. Additonally I can write manually a constant value to that tag by selecting it in the NI Distributed System Manager. And I can read the written value from NI Distributed System Manager or from NI OPC Server. But I can not write any value to the S7300 PLC tags such as by using a knob object at the NI Vision Builder AI Inpection (.vbai) page.
Any help is welcomed. Thanks in advance.
03-01-2013 04:58 PM
The tutorial at the following location explains how to use Vision Builder AI as a OPC server.
https://decibel.ni.com/content/docs/DOC-18647
http://www.ni.com/white-paper/13574/en
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.
Hope this helps.
-Christophe
04-10-2013 12:09 AM
Hi KemalKemal,
I have to comunicate with a Siemens S7 300, and I'd like to use the NI OPC Server. Can you explain me how to connect the PLC to a standard desktop PC?
Are you using a RS232-MPI adapter? My S7 300 has no ethernet connection, so I've to use the MPI port.
Thank you,
Paolo.
04-10-2013 03:50 PM - edited 04-10-2013 03:50 PM
Hi, try checking the manufactures page. I'm sure they can provide the reference.