OPC Connection

Hello,
I have a significant problem with connect an OPC Server to my Labview Application. I make use of  the AX OPC Server of Phoenix Contact this is already working. Now I have no idea how I can simply write a boolean or read one. I need an easy VI were I can add the IP adress of my server or something like that.  It would be nice if I can use this variable as a normal one in my VI.
I would be thankfull for each support!!!
Thank you

HI,
did you already open the example OPC project in the LV example finder?
Is this any help?
Anna

Similar Messages

  • OPC connection failure

    I'm continue to troubleshoot OPC connectivity via Shared Vairables. I've attached the error log output by LabView. Any ideas on the proper fix for this? I'm assuming it's making the proper registry entries, but I'm not sure where to begin. The errors are "Class not registered" problems. Everything is running on the local machine, and I can get standard OPC clients to connect, but not the Shared Variables. 
    The relevant errors are at the top of the log.  
    Attachments:
    OPC Error Log.txt ‏14 KB

    Hi, is this the same topic as this. If it is we should stick to the older thread. However, for the time being, have you checked your dcom settings?
    In order to successfully communicate to the OPC server, you need to allow the proper exceptions in the Windows Firewall.  Open up the Windows Firewall from the Control Panel, and select the Exceptions tab.  Click on Add Program... and add the following:  
    All OPC Clients and Servers
    Microsoft Management Console
    OPC utility OPCEnum.exe found in the Windows\System32 directory
    Next, In the Exceptions tab of the Windows Firewall, click on Add Port...
    In the Add a Port dialog, fill out the fields as follows: (Name: DCOM) (Port Number: 135) and check tcp
    National Instruments
    RIO Embedded Hardware PSE
    CompactRIO Developers Guide

  • Data access in Teststand/LabVIEW through OPC connection

    We are using TestStand 2.0 and LabVIEW6.2 and following problem occurs when accessing the datas from UUT through OPC.
    For the first UUT i get the measurement datas but starting the next UUT causes a system hang up. The corresponding LabVIEW VI stops at the connect to the OPC Server it doesn't read the selected item. Only with LabVIEW there is no problem launching OPC data access for multiple times. Does anyone have expierence with this configuration: TestStand-LabVIEW-OPC?

    For your information, there is a new TestStand Add-on "OPC DA Connect" which adds a StepType Palette dedicated to OPC Data Access.
    You can configure each step by browsing the OPC servers on your network and browsing variables within these servers.
    This toolkit has free deployment licence.
    Hoping this helps.
    Jean-Louis SCHRICKE
    ├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
    ├ CTD - Certified TestStand Developer (2004 & 2007)
    └ CLD - Certified LabVIEW Developer (2003 & 2005)

  • Executable opc connection

    Hi all
    I-trying to build an executable which reads values from a RT-target (cRIO) and then sends this data to an opc-server.
    I managed to read the values from the rt-target, but unfortunatelly the connection to the opc seems not to work. I created a library with the opc Server and the variables in the project. if I run the vi on the pc with LabView installed everthing works fine. Also if I try the executable on this pc. When I change to the other PC where I want the executable to be running. The programm runs with no error, but the data never gets to the OPC-server.
    Has somone any idea why this happens?
    Thanks
    Manuel

    Hi Manuelwaser,
    your problem sounds like an configuration problem.
    It would be helpful to post your build-specifications or your project without VIs.
    Here is an guide for ...
    Building an Installer (Windows) - LabVIEW 2011 Help - National Instruments
    http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/build_installer/
    How Do I Use OPC in LabVIEW? - National Instruments
    http://digital.ni.com/public.nsf/allkb/EA15F53DB6FECCA5862567240064DF09
    Over that you'll need the DSC RUN-Time System:
    What is the DSC Run-Time System and When Should I Use It? - National Instruments
    http://digital.ni.com/public.nsf/allkb/E56DB8726DB68F288625770E00594351?OpenDocument

  • OPC Connection faliure/status using LabView & Protool

    Hi there,
    we are integrating NI Vision solution into Siemens Step7/Protool automation environment. Two CVS modules perform visual inspection and communicate via Ethernet with Siemens Protool vizualization/GUI application running on Windows XP based PC. Protool is serving as OPC 2.0 compliat server and LabView "helper" application on PC is mirroring OPC data to and from NI PSP (Shared variable) domain which NI CVS-es use to communicate. All works well until we shut down and/or restart Protool (and thus the OPC service along with it).
    Helper application fails to acknowledge any Connection Status change (as its status remains: Connected) if/when OPC is turned off ... furthermore once the Protool OPC is up and running again the values in LabView OPC bound items within helper app. cease to be updated although their Connection Status Property is shown as: Connected throughout ...
    Has anyone had a similar problem? What could be the cause/solution to the behavior described?
    Thanks in advance,
    Robert

    Hi Mike,
    LabView "helper" app. is residing on Win PC and has controls that are data-bound to ProTool OPC via datasocket. The PC hosts shared variables that CVS-es use to communicate to PC. helper app. is transfering data between ProTool OPC and NI PSP network as necessary. If OPC is "power cycled" the "datasocket LED" of OPC DataBound controls remains green as nothing happened! If we use DataSocket (DS) pallete to programatically open DS conneciton to an OPC item, connection is rejected if OPC is not running, but once connected the "connection:status" property wont change if we shutdown the OPC!
    Why is this happening? Is there a manner to detect the "running" status op OPC? Is there a more elegant way to bring OPC and NI PSP network together that would bypass the need for data pooling? Would the functionality of DSC help, like "register for events notification" function?
    We would sure could use a quick soultion to this ...
    Thx and regards, Robert

  • LabVIEW OPC Connection

    Hi,
    Could anybody send me an example for LabVIEW to connect to an OPC Server
    to read/write IOs from a plc. I have to connect to a Siemens plc via
    SIMATIC NET OPC Server. Or maby you can post a link for further
    information and/or examples because i couldn't find any at the NI
    Developer zone.
    Thanks,
    Max

    There are examples included with LabVIEW; they are stored in the comm folder:
    Program Files\National Instruments\LabVIEW 7.0\examples\comm\opc.llb
    MTO

  • DSC - OPC Connection - Can't read or write to tags

    I am working on controlling some motors over an OPC server.
    The PLC is an M258, and the OPC server is CoDeSyS OPC DA.
    When I use MatrikonExplorer, I can read the value of tags, and change their values as needed.
    Using an evaluation version of NI OPC client, I could see the tags, but their value was marked as "unknown" with bad quality. In their properties, the value of the tags is given as "BAD VARTYPE".
    I used DSC to add the codesys server to a library and imported all the relevant variables. When I try to read them in a VI, they give me error code: -1950679034, so that they have no value. And when I try to change a value, I can see that the value never changes.
    I would greatly appreciate any help you can provide.

    http://www.ni.com/white-paper/6417/en/
    Codesys isn't listed as a supported OPC Server.

  • Connecting to OPC Server

    Hi,
    I'm a newbie to DSC module and i have a question on OPC connectivity. With the base Labview (non-DSC) you can connect to OPC servers through Datasockets, although I understand that Datasockets is not a true OPC client and there are some limitations. With the DSC module, however, LV is a true OPC client. How do I connect to OPC servers in DSC module? Is the only way through the tag engine? Do datasocket vi's in non-DSC work the same in DSC?
    Thanks!

    Yes and Yes. In DSC, you connect to OPC Servers via the Engine (and there are tools to browse the OPC Servers and create Tags for them, set your client's settings, etc.)
    And DataSockets work exactly the same in DSC.
    Khalid

  • How can I write to an OPC Server?

    Hello!
    I was busy a few days with LabVIEW 8 to finish a special task, but now I've got problems to solve the following problem:
    I have an OPC connection between a frequency converter and LabVIEW 8. With the example vi's I get the data out of the OPC Server (revolutions per minute).
    So I can read data out of the OPC Server, but how can I write? I want to write several voltage values to the OPC Server that the frequency converter gets the required revolutions per minute.
    Have you got any ideas? Are there existing example vi's to write data to an OPC Server?
    Best regards and Thanks in advance!

    So here it is - a little bit modified, but you should get the idea out of it.
    If you have questions, I'll try to answer them .
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    IOControl.llb ‏168 KB

  • How do I browse an OPC Server's Namespace with Teststand ActiveX Steps?

    Hello
    I use Teststand as the client of an OPC Connection. At the Moment I'm trying to realize an browse funktionality by using the "OPC Automation 2.0" automation server in the
    ActiveX adapter.
    What I can create is the OPCBrowse object by using the "CreateBrowser" method. But then there's no method to browse the OPC server's namespace for the ItemID's.
    Does someone have an idea how I can go on further?
    thx, Michael   

    For your information, there is a new TestStand Add-on "OPC DA Connect" which adds a StepType Palette dedicated to OPC Data Access.
    You can configure each step by browsing the OPC servers on your network and browsing variables within these servers.
    The browsing functionnality that you where looking for as been implemented in this toolkit.
    Hoping this helps.
    Jean-Louis SCHRICKE
    ├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
    ├ CTD - Certified TestStand Developer (2004 & 2007)
    └ CLD - Certified LabVIEW Developer (2003 & 2005)

  • OPC data refresh slow

    Dear all
     I use the OPC connection with the Omron CS1 PLC, PC prepared to use Labview 8.6.1, the connection points over 2500 points, the database is SQL2005,
     industrial-site host computer is Advantech's IPC, 845 motherboard , Pentium 2.4G of the CPU, 1G memory. We use shared variables and OPC tag binding
     way to communicate. OPC Server refresh to 100ms. Now problem is: in the PC side, some analog data refresh needs  about 4-6 seconds,  what can I do
    for improve the update?
    Labview 7.0, 8.0, 8.6,8.6.1,2011

    Hi Tony
    I have attempted to replicate this issue in our lab using our cFP 2120 controller. The LEDs seemed to perform correctly and instantaeneously even after some 20-30 operations. The writes should not be cached anywhere and should operate as you have commnaded, How are you communicating with the cFP? Did you save the .iak file via MAX and use the config with the OPC server?
    In our lab we have a cFP 2120 controller with a full 8 module rack. All the modules are plugged in (AI, AO, PWM, TC), this doesnt seem to slow any of the write operations down. Could there be a chance that the hardware you are using could be at fault?
    Kindest Regards
    YatinM
    National Instuments 

  • OPC custome and automation I/F

    Hi all,
    Sure it's clear I'm just a beginner in OPC. I wanna know what are OPC custom and automation interfaces?
    Thanks... 

    Hi,
      for connecting to OPC, you can simply use Datasocket. If you're designing a larger system, then you might want to have a look at LabVIEW Datalogging and Supervisory Control, which prior to LabVIEW 8.0 runs with a tag engine to connect to the various external data sources, including OPC, and then you write your code to talk to the tag engine. To learn more about LabVIEW 8.0 and the DSC module have a look at the links from here : http://zone.ni.com/devzone/conceptd.nsf/webmain/D76C3788A0C4C5668625708B0072987C
    Here's the link to a search results page that will allow you to find out more about Datasocket and OPC connections.
    http://search.ni.com/nisearch/nisearchservlet?nistype=default&ddown=0&filter=%2Btaxonomy:top+%2B(met...
    (from ni.com, top right hand corner and type in "OPC datasocket" (without the quotes)
    Hope that helps
    Sacha Emery
    National Instruments (UK)
    // it takes almost no time to rate an answer

  • PCO 2.2 - OPC and IP21

    Hi,
      We are looking at connecting to IP21 via PCO OPC DA connector.
      Can PCo only poll the IP21 OPC server for eventing or can one set up the IP21 OPC server to advise PCO on data changes for
      eventing purposes ?
    Also what is required on the server where PCo is installed to enable OPC connectivity, for browsing the IP21 we have established that you need the following dlls in the PCo system directory :
    cimsrvapi.dll
    CimWin32Util.dll
    infoplus21_api.dll
    ip21admin_client.dll
    ip21ezrpcw32.dll
    ip21winrpc32.dll
    libc21.dll
    PCo is running on Windows server 2008 R2 and the IP21 is not on the same box.
    thanks

    Hi ,
        I got it working to be able to get the notification working. Although one still cannot browse the IP21 tags, and all tags are still shown as a name space.
    a. I installed the Matricon IP21 OPC server on the same box as IP21 Historian.
    b. I connected to the IP21 server and configured new aliases in the Matricon IP21 OPC server to look at the IP21 tags
    c. I then configured PCo OPC DA agent to look at the Matricon IP21 OPC server and got the subscriptions to work, and PCo can browse the MAtricon IP21 OPC server tags that I configured , so the browsing seems to work via this OPC server
    d. Then I tried to fire up the OPC DA agent in PCo that I previously configured to look at the Aspentech IP21 OPC server, and the configuration now started to work (still can't browse the tags)
    e. I uninstalled the Matricon IP21 OPC server and the configuration in step d. still worked.
    So the conclusion is that the Matricon IP21 OPC server did some sort of a configuration that made the orginal configuration functional, this however now leaves me the question of what did this driver do to get things working.
    Now I sit with a new challenge I have PCo installed on a seperate server and in a different domain as the IP21 OPC server.
    What I have so far
    1. The Same local user on both the PCo box and the IP21 OPC server with Admin rights
    2. I can see the IP21 OPC server from the PCo box and access it
    But the issue is as soon as I fire up the Agent to run  it fails to start with the following error:
    ConnectivityAgentProxy|"The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
    Below is the PCo Log file:
    Date Time| Machine| Thread ID| Process ID| Process Name| Event Type| Source| Message| Stack Trace
    2012/02/24 04:12:01 PM|.|8|7888|IP21_OPC_DA|Information|AgentBase|Start ignored.  Agent state = Faulted|""
    2012/02/24 04:12:01 PM|.|6|7888|IP21_OPC_DA|Information|Host|WCF service is started.|""
    2012/02/24 04:12:01 PM|.|6|7888|IP21_OPC_DA|Error|Host|failed to create ConnectivityAgentProxy|"The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.   Server stack trace:     at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)   Exception rethrown at [0]:     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)    at SAP.Manufacturing.Connectivity.IPCoAgentControl.Start()    at SAP.Manufacturing.Connectivity.ConnectivityAgentProxy.Start()    at SAP.Manufacturing.Connectivity.WcfHost.Start()"
    2012/02/24 04:12:01 PM|.|8|7888|IP21_OPC_DA|Error|ServiceFaultManager|Manufacturing Fault: REASON = The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly. ; SEVERITY = Fatal|""
    2012/02/24 04:12:01 PM|.|8|7888|IP21_OPC_DA|Verbose|AgentBase|beginning PublishSubscribe CommunicationMode initialization...|""
    2012/02/24 04:12:00 PM|.|8|7888|IP21_OPC_DA|Verbose|AgentBase|starting...|""
    2012/02/24 04:12:00 PM|.|6|7888|IP21_OPC_DA|Information|Host|implicitly calling start on the hosted IConnectivityAgent service contract|""
    2012/02/24 04:11:59 PM|.|6|7888|IP21_OPC_DA|Information|Host|using default NetTcpBinding endpoint for internal IConnectivityAgent proxy|""
    2012/02/24 04:11:59 PM|.|6|7888|IP21_OPC_DA|Verbose|Host|Service endpoints:|""
    2012/02/24 04:11:59 PM|.|6|7888|IP21_OPC_DA|Verbose|Host|SAP.Manufacturing.Connectivity.Agents.Opc.Da.OpcDaAgent is running with the following endpoints:|""
    2012/02/24 04:11:58 PM|.|6|7888|IP21_OPC_DA|Information|Host|WCF service is starting.|""
    2012/02/24 04:11:58 PM|.|1|7888|IP21_OPC_DA|Verbose|OpcDaAgent|Creating the OPC DA agent.|""
    2012/02/24 04:11:58 PM|.|1|7888|IP21_OPC_DA|Verbose|BrowserSessionManager|Created browse manager.|""
    2012/02/24 04:11:58 PM|.|1|7888|IP21_OPC_DA|Verbose|OpcDaAgent|Creating the OPC DA agent.|""
    2012/02/24 04:11:58 PM|.|1|7888|IP21_OPC_DA|Verbose|BrowserSessionManager|Created browse manager.|""
    2012/02/24 04:11:58 PM|.|1|7888|IP21_OPC_DA|Verbose|Host|Running [IP21_OPC_DA] as a windows service...|""

  • Labview 7.2 OPC VI's Work, but 8.0 VI's Give Error 1101

    I am a novice Labview 8.0 user.  I am trying to set up OPC connections to collect some data.  Another engineer sent me an OPC Data Socket VI created in Labview 7.2.  This one works, but when I try to duplicate the reading of the exact same data in 8.0, I am getting an Error 1101.
    I would use the 7.2 functions, but they no longer show up on the Data Communication palette.  And, I don't know what to do to get the 8.0 versions beyond Error 1101.
    Any help is appreciated.

    It sounds like you need to set up  the privileges using the DataSocket Server   http://digital.ni.com/public.nsf/allkb/6941F7A4DBBC1B0886256CEE0082A3CB
    Don't remember if this changed from 7.x to 8.x and am not where I can look at my machine with 7 on it.   I've never seen a version 7.2, think that the last 7.x was 7.1.1
    Message Edited by LV_Pro on 03-26-2007 03:56 PM
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • OPC connectivi​ty with labVIEW without datasocket​s

    Hi,
    I wish to know how do I achieve OPC connectivity in LabVIEW without using Datasockets and DSC module ?
    Regards
    Ashutosh

    One option would be to write an OPC Client yourself using VB/C++ and call it from LabVIEW. 
    Another is to use existing ActiveX controls for OPC.  Like this one (just as an example.. I have neither tried it nor endorse it):
    http://www.opcactivex.com/
    -Khalid

Maybe you are looking for

  • How do I copy my iTunes library to an external hard drive?

    I´d like to copy (note: copy NOT export) my iTunes library to an external hard drive but I just can´t figure out how! It says that the external hard drive can not be changed, therefor I can not drag and drop the iTunes files to it. The external hard

  • Sender File Adapter

    Hi Guys, I have a requirements wherein I have to pick up .xml and .tif files from one folderusing NFS.  The tif file to be picked up should correspond to the filename of the .xml.  Could anyone help me on how to acheive this? Below is currently the c

  • WebLogic Server 10.0 MP1: Error in resource adapter deployment

    When I try to deploy our (own implemented) resource adapter into WebLogic Server 10.0 MP1, I get the following error message: An error occurred during activation of changes, please see the log for details. weblogic.security.service.InvalidParameterEx

  • Purchased tv show on my iPhone, how do i get it to play on my apple tv or computer

    I recently purchased tv show on my iPhone, how do i get it to play on my apple tv or computer?

  • Display settings not saving

    I have just bought a Touchsmart 14-n055sa and I'm having problems with linking my laptop to my tv using the HDMI lead. When I choose the "duplicate" option in display settings, I get a message saying that it is unable to save my settings. I have cont