CRIO communicating as PLC with NI-OPC-Server

Hi there,
i have the task to implement a communication between multiple cRIO's and the NI-OPC-Server. The NI-OPC-Server has to act as data handler for a complex frontend.
I tried out the NI-OPC-Server and i was successful in communicating with the NI-OPC-Server as OPC-Client in Windows using an IO-Server and Shared Variables. But the task is to do this on a cRIO. I tried to open a data socket connection from a cRIO to the NI-OPC-Server using a specific URL using "DataSocket Select URL.vi". But as long i do not activate simulation in the NI-OPC-Server i get errors on opening the data socket connection. If i do activate the simulation, which is not the solution, i can write some data without error but the Quick Client of the NI-OPC-Server sees no changes for that data tag.
I have the feeling i am not at a good way to get this working. Is there anybody having experiences with this? Is data socket a possible way at all? Is it possible at all? Do i need to implement a cRIO-OPC-driver?
Thank you.
Solved!
Go to Solution.

Hi,
There's one pretty good tutorials and one webcast. Have you already study them?
Connect LabVIEW to Any PLC Using OPC (Tutorial)
http://www.ni.com/white-paper/7450/en
Connect LabVIEW to Any PLC Using OPC (Webcast)
http://zone.ni.com/wv/app/doc/p/id/wv-263
Chers,
Philip

Similar Messages

  • Hello!!!ho​w can I control an omron plc (sysmac cqm1)with an OPC server?I want to adquire a signal controllin​g its amplitude and frecuency.​How can it be done with OPC server?I already have the NI CD of OPC drivers.Th​ank you

    Hello!!!how can I control an omron plc (sysmac cqm1)with an OPC server?I want to adquire a signal controlling its amplitude and frecuency.How can it be done with OPC server?I already have the NI CD of OPC drivers.Thank you

    Hola Jose David, que OPC estas utilizando?, Si tienes comunicación entre tu computadora y PLC pero falla la comunicación entre el OPC y el PLC? La configuración y direcciones entre los dos es correcta? La comunicación es por cable serial?
    Espero tus respuestas
    Saludos
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • Connecting a Siemens S7-300 PLC to NI OPC Server

    As a part of the final year Bachelor Thesis project I and two others are involved with, I have been tasked with setting up an HMI/SCADA system to control level and flow in several water storage tanks. This is to be done locally via a "Operator Panel" and also remotely over the Internet via webbrowser. These storage tanks and control system is placed on a wheeled demonstration model so it can be used in classrooms and auditoriums. As such, I have a Siemens S7-300 PLC and the latest edition of LabVIEW (2009 Professional Ed.) available to me. In order to create a HMI system, we will also acquire the NI DSC module as it should have everything we need (NI OCP is included?).
    Since this is a bachelor project and the school is basically paying for everything, we are on a rather strict budget. This means that we currently haven't settled on a solution for the "Operator Panel" since this would be dependent on how the PLC and panel interfaces. What we would like to do for simplicity sake is to use commercial laptop computer with touchscreen capability thus having a low cost "all-in-one" solution, both for local input & control and web publishing capability. Now, most computers today doesn't have serial comports anymore, but rather USB ports.
    On the OPC server webpage under the OPC Device Connectivity heading, it is specifically stated "Siemens HMI Adapter for S7-300/400 via Serial with HMI adapter". I assume this refers to the following Siemens product: https://support.automation.siemens.com/WW/llisapi.​dll/csfetch/8774263/hmi_adapter_x.pdf?func=cslib.c​... (6ES7 972-0CA1X-0XA0).
    Does this mean that the OCP server can only use a Serial connection via the HMI adapter for the S7-300 directly? Would it be possible to use a driverless Serial to USB adapter with the HMI adapter, or for example the Siemens CP5711 MPI to USB adapter? If it is not possible to use a USB based solution, We would have to use an older desktop PC with an serial comport or an additional PCI card and that is something we would like to avoid.
    Any help on this matter would be highly appreciated.
    -- DanJack, NUC Norway
    Solved!
    Go to Solution.

    now this is a problem the PLC S7300 does not support some functions of communication when you want to make a simulation may not be accessible from OPC Server, this by PROFIBUS Siemens USB / MPI + PLC S7300/400 protocol adapter cord
    Atom
    Certified LabVIEW Associate Developer

  • How can I write to a Siemens S7-300 PLC tag from OPC Server.vbai page by using a Knob object ?

    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.
    Attachments:
    manual_writing_to_plc.png ‏298 KB

    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.
    http://forums.ni.com/t5/Machine-Vision/Read-and-Write-with-OPC-through-NI-Vision/m-p/2048278/highlig...
    Hope this helps.
    -Christophe

  • Connection of Siemens S7-300 PLC to NI OPC Server 2012

    Hi,
    My name is Gevorg.
    I am going to create a communication between S7-300 (CP 343-1 Lean) and NI OPC Server 2012.
    As per my investigations, NI OPC server does not have appropriate drivers for S7-300 PLCs. At the other hand I could find any documentation, that prooves that S7-300 supports OPC protocol.
    Does anyone have any experience of using S7-300 PLCs?
    What protocol does it support?
    Could you please help me..
    Attached you can find the datasheet of S7-300 PLC.
    Thank you in advance,
    Attachments:
    OPC server.png ‏64 KB
    GH_CP343-1-Lean-CX10_76.pdf ‏1563 KB

    https://decibel.ni.com/content/docs/DOC-38858
    Atom
    Certified LabVIEW Associate Developer

  • Error 1101 - Cannot communicate with Experion OPC Server

    Hello,
    I am having an issue whereby I cannot Read/Write to an Experion OPC Server through Labview and Datasocket, and get Error 1101.
    The Program is below.
    - I have been able to connect to Experion with another OPC Client (INAT) without any issues.
    - The error says I lack the privaleges, but if I follow the instructions and change these priviledges via Datasocket Server Manager, it makes no difference.
    - We are trying to run this program on a Labview 2011 and Windows 7 system.
    - I have tried running this same program on a WinXP computer with Labview 2009. I had to save it for previous versions, but when I run it, it comes back with a 'Generic Error', whatever that means.
    Can anyone help me solve this problem and steer me in the right direction.
    Kind Regards,

    Have any users found a remedy for this issue?
    I am having the same problem.  I have a very simple network set up where I want to use DS in LabView on one computer (192.168.1.101) to read from an OPC server on another computer (192.168.1.1).  The OPC server, DCOM permissions, etc. are all correctly configured, as I can use a third party OPC client to view the server tags and values on the remote PC from my LabView PC. 
    I am using the "Monitor OPC Items with DataSocket.vi" example VI, just specifying a tag from my existing remote OPC server as an initial test.  I can browse to and select the tag on the remote computer that I wish to read in LabView using the "DataSocket Select URL.vi".  However, after selecting the tag and passing the URL to the "DataSocket Open" block, I receive Error 1101.  (Same occurs if I just directly pass the URL string to the DS Open block.)
    I have added "localhost", "everyhost" and "192.168.1.1" to "DefaultReaders", "DefaultWriters", and "Creators" groups in the DataSocket Server Manager.  I have stopped and re-started the DataSocket Server, and even rebooted the entire PC, but the error persists.
    The specific error text is:
    Error 1101 occurred at DataSocket Open
    LabVIEW: (Hex 0x44D) Insufficient privileges to read, write, or create an item in the DataSocket Server.  Use the DataSocket Server Manager to configure these privileges.
    It seems as though this should be an easy fix, given that the OPC server is readily readable by an OPC client.  I would appreceate any help, as would mkenneday, if they haven't already solved their issue.
    Thanks,
    -Brandon

  • I'm having problems communicating with my opc server after a few minutes of operation.

    I'm using Industrial Automation OPC Servers 5.1 and Labview 6.1 Professional Development Package on a Windows NT 2000 Ver. 5.1 w/service pack 4 installed. While running my machine for a few minutes the data sockets seem to quit updating. I can see on my koyo 250 plc that the bits are set but they don't show this in my labview code. I'm using front panel data sockets with local variables to publish and subscribe to the server. This procedure works fine with the other systems that I have built. Can anyone steer me in the right direction to correct this problem?

    Hi Rick,
    I found 58 FP DataSocket connections, all Booleans tied to individual PLC coils. You might have more if I missed a cluster or tab:
    - 26 pub/subscribes to PLC coils spread between C202 and C267
    - 32 subscribes to coils C0-C37 (on your Opto tab)
    The maximum number of DS connections that gets mentioned in a common little blurb throughout NI's website/literature about when it would be good to drop using DataSocket to connect to OPC and switch to LV's DSC module varies from place to place. Usually it's 100, sometimes it's 50, and in one place I've seen 30. It is subjective and depends on your performance needs.
    You can easily cut the number of DS connections to from 58 to 28; and with a bit a work it can go down to 3: just access all these Booleans from their DL 250 V-mem locations/registers.
    The easy cut is for C0-C37. If you connect a U32 numeric to ALFG_DL1.VD40600, you get everything in 1 shot instead of 32. The U32 can easily be converted into a cluster for display purposes as shown in jpg (or you can just index the earlier Boolean array into 32 individ controls).
    The cut to get from 28 to 3 DataSockets would require a change in all your writes to the other coils. The status of C200-C237 and C240-C2777 can be accessed as U32's from VD40610 and VD40612 respectively. Everytime you want to change one bit, you'd have to a bit of masking and write the whole 32bits (also in jpg). With a little bit of work in octal and hex, this can be programmed neatly in a subVI. I had one long ago for 16 bits.
    No guarantee that your program will work with 3 DS though. It certainly is big. If you want other comments or have questions, just ask.
    donald
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."
    Attachments:
    OptoCluster_C0-C37 etc.jpg ‏32 KB

  • NI OPC server communication with B&R plc

    hi,
    I have a NI OPC server in my lab . I want to send the data from B&R plc to the OPC server. I have tried to search for a solution but could not find any.
    Kindly help me in establisihng a communication between the B&R plc and the OPC server.
    Regards

    Did you try installing the B&R PLC OPC server on a computer and then see if the NI OPC server can connect to it?  It might not be the most elegant soloution, but it might work.
    We were having problems with some siemens wincc software that would not connect to the Think&Do OPC server.  So I had to bring the Think&Do OPC tags into LabVIEW and then have LabVIEW broadcast the data so the Semens OPC software could see it.  I did not like doing it, but it worked.
    Other than that, maybe someone else will have more to offer.

  • Unable to access only Read Write addresses of AB Micrologix 1400 PLC using NI DSC and NI OPC server

    Hi,
    I have been using NI DSC and OPC servers (NI and Kepware) to communicate with Allen Bradley Micrologix 1400 PLC (1766-L32BXB). Recently at one  site I found that I could access Process values from the PLC correctly (Read Only tags) but could not access the Read Write Tags at all. The latter are addresses to which it should be possible to write Set (i.e., references) values from MMI or PC software. I am able to do so from the MMI not from the PC software. I get communication error message on the MMI and PC, mentioning the PLC address being accessed (e.g. N7:0).
    Support from the supplier is not available. Hence can anyone let me know if ladder logic could have been written to prevent PC software based access of Read/write addresses (N7:0 to 9 in this case), while permitting access to Read only addresses? Is the problem at the PLC end or OPC server end? Is there a way to get around this?
    Thanks in advance.

    The OPC Server cannot force Outputs so if th registers in question are the outputs of ladder rungs you cannot write to them via the server. The controller will accept the write from the server but will not execute the write. In some cases the server event log will post an error if it is the PLC. Do you get errors when you try to write and if so what are the posted error messages.
    Fred Loveless
    Kepware Technologies
    http://www.kepware.com

  • OPC Server Issues with Lookout 6.1

    Hello All,
    I have an application, using Lookout V 6.1.  I have copied the files from a Lookout V 6.0 application that all ready works.  The Lookout package is communicating using the Helmholz Step 5/Step 7 OPC Server to a Siemens S7-414H processors (a redundant system).
    The previous application worked fine, but it was done by another engineer who is no longer with our company.  The new application, I keep getting the following message:
    "PC/OLE error (1): Configuring OPC server (10): The item ID is not defined in the server address space or no longer exists in the server address space. (C0040007): Item (PRO1.HMI.PCV_PB_CLOSE_12)."
    I have checked this item out using the Helmholz OPC Test Client, the tag does exist inside the PLC and the OPC Test Client can read the data just fine, however Lookout does not appear to be communicating with the OPC server.
    Any help would be greatly appreciated.  Like I said, I can get the OPC Test Client to communicate, but not the Lookout project.
    Thanks for the help.
    Best Regards,
    John Blaser
    Design Engineer
    Mcaps Inc.
    [email protected]

    Have a look at the OPCClient object, as well as some expressions on the panel in the previous application. Did the previous application use any customized Access Path for the items like the attachments?
    Also try "Flat", instead of "Hierachical" for browsing option. After you change to Flat, refresh the object in Object Explorer.
    Message Edited by Ryan.S on 05-27-2007 10:21 PM
    Ryan Shi
    National Instruments
    Attachments:
    untitled2.JPG ‏7 KB
    untitled1.JPG ‏45 KB

  • Communication from a fieldpoint also acting as a OPC server to a simatic 545 through serial?

    Hi...
    I'm supose to control a breweri, and right now it is controlled by a simatic 545.
    Is it possible for fieldpoint and connect directly to the PLC with OPC using serial?
    I have the software to run NI's OPC server, but haven't bought a fieldpoint yet.
    So i was wondering if this is possible to reuse the I/O oirts of the PLC instead of buying new I/O boards for the fieldpoint, which is very expensive.
    Thanks..
    Carsten Toft
    Aalborg University Esbjerg, DK

    The easy scenario is to use FieldPoint with the OPC server to provide distributed I/O for your HMI/SCADA application.  The same HMI/SCADA application can communicate via OPC to the Simatic 545 thru serial.  In this scenario, the data move from FieldPoint to Windows XP to Siemens.  For slow processes and current computing technology, this scenario typically works well. 
    If you need FieldPoint to communicate directly over serial to the Siemens Simatic, you will need communications support in LabVIEW RT for the Simatic PLC.  Typically what is recommended is to use a Modbus gateway and the LabVIEW RT modbus VIs to communicate Modbus protocol from Fieldpoint to the gateway, and the gateway then communicates over serial to the Simatic. 
    here are the modbus vis
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/201711
    here is a reference for gateways
    http://www.woodhead.com/products/automation/gateways/
    Preston Johnson
    Principal Sales Engineer
    Condition Monitoring Systems
    Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
    National Instruments
    [email protected]
    www.ni.com/mcm
    www.ni.com/soundandvibration
    www.ni.com/biganalogdata
    512-683-5444

  • Trouble reading OPC Server values with Labview

    Hello there,
    I am currently working with Siemens Equipment : a Simatic Microbox with an OPC Server.
    I would like to read some variables' values provided by the OPC server with Labview 2012 (and DSC module), but I'm experiencing some difficulties.
    I have set up my OPC Server as an I/O Server in a Labview projet. Then, I have created some Shared Values to treat them in Labview.
    In the Distributed System Manager, I can read NI OPC Client Status :
    Active -> true
    Connected -> false
    Enable logging diagnostic information -> false
    OPC interface version -> OPC DA-3
    Server ProgID -> OPC.SimaticNet.1
    When I want to check any Shared Value, I have the comment : Server Failure.
    I think DCOM/COM configuration of the client and the server are good (I can correctly read values with Siemens OPC Scout).
    Maybe the issue comes from the connection between the OPC Server and Labview.
    Has anyone had a similar problem ?
    Thanks in advance,
    Jeremy

    You don't specify whether the server and the client are on the same PC or not.
    I recently run in a situation where the Matrikon client was able to read from a remote server while the Labview program (using Datasocket) could not.
    I suggest to try with Datasocket vi's to see what happens.
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011
    Attachments:
    Read OPC variant.vi ‏17 KB

  • What is scan time (or polling frequency) of OPC Server of Labview

    What is the scantime of OPC Server.

    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,
    -Sam F, DAQ Marketing Manager
    Learn about measuring temperature
    Learn how to take voltage measurements
    Learn how to measure current

  • DSC toolkit and OPC server

    Can I datalogging data from OPC server directly to SQL without "datasocket", and how, example maybe?
    Thanks
    Rookie; LV 2011 on WIN 7

    Dear hlod,
    Can you provide me more information about your application, and why it is'nt possible for you to use DataSockets?
    If you want to use OPC servers for connecting to PLCs, I can recommend the followings:
    Here is a great tutorial, how to work with OPC Server to connect to PLCs: 
    Connect LabVIEW to Any PLC Using OPC http://zone.ni.com/devzone/cda/tut/p/id/7450 
    After the tutorial you're able to communicate with PLCs through NI OPC server, using I/O Server instead of DataSockets.
    Datalogging into Databases are also made easy with LabVIEW DSC Module. Look at the following tutorial:
    Data logging Options Using the LabVIEW DSC Module http://zone.ni.com/devzone/cda/tut/p/id/12525
    For more specific solutions, feel free to browse either the LabVIEW DSC Module Help from LabVIEW, or Online: http://zone.ni.com/reference/en-XX/help/371618G-01/
    If you have different, more custom application, which I can help you with, please post on forum some more specification of your task you want to do.
    Best Regards,
    Tamas Szekely
    Applications Engineer
    National Instruments

  • I have an existing application need to add LabVIEW OPC Server

    I have an existing application written in LabVIEW which controls a Device. The data from the device is currently logged to the local drive. 
    It is desired to upgrade this application to become an OPC Server so that the manager can remotely acquire data and control the Application.
    What would be the easiest approach to accomplish this task?
    Thanks and Best Regards,
    Gary

    Hello Dan,
    1. The operator specifies a time interval to save the data to disk. The data is stored in a csv file.
     2. The manager is the Engineer who is managing the data collection system remotely.
    3.The desired end result is to have the LabVIEW with an OPC server provide the connectivity to an OPC client so that they can collect the data, that they desire from the system, and control the system.
    4. Controlling the system is secondary. Providing the connectivity so that an OPC client can specify what data is to be sent and the update interval is the first priority.  For example, they may only be interested
    in 10 of say 30 parameters, and want that data sent over every 10 seconds or so. The data once they receive it will be logged to a central data base.
    We suggested using TCP/IP but they do not want a custom interface.
    We also suggested Modbus, but they perfer to use OPC. The want to integrate it with their OSI PI.
     Thanks and Best Regards,
    Gary

Maybe you are looking for