OPC tags fom Siemens S7

Hi
I'm just learning about OPC now and have never worked with PLCs either. I need to read values from a Siemens PLC. The PLC receives current inputs as 1 of its many inputs. Using Labview, and I able to connect to the PLC and set up OPC tags so I can read in the values or will have to alter the PLC program to set up tags to send the data?
Thanks

Hello JChec,
I am not an expert on that particular PLC and I do not know what code you already have running on it, however, you are correct in needing to setup an OPC Server.  You cannot directly connect to your PLC from LabVIEW.  LabVIEW connects to that OPC Server to read its tags.  As opposed to free OPC Servers that you may be able to find, a suggestion is to use the NI OPC Server; while not free, it is fairly straightforward to set up via a nice GUI and gets you access to excellent technical support.
There is some information at the following links that I think may be of assistance:
NI OPC Servers
     http://sine.ni.com/nips/cds/view/p/lang/en/nid/4584
Supported Device & Driver Plug-in List for NI-OPC Server
     http://zone.ni.com/devzone/cda/tut/p/id/6417#toc34
Depending on the scope of your project, an additional module that you may be interested in is the LabVIEW Datalogging and Supervisory Control (DSC) Module.  This increases the functionality of LabVIEW and your OPC setup as described by its homepage.
LabVIEW Datalogging and Supervisory Control Module Homepage
     http://sine.ni.com/nips/cds/view/p/lang/en/nid/1010
Regards,
Charlie Piazza
Staff Product Support Engineer, RF
National Instruments

Similar Messages

  • How to convert labview data into opc tag

    Hi all,
    Can any one please tell me how i can convert the labview data global into a OPC tag? I have some data globals reading and writing data to the globals. Now i wanted to use a PLC device to send its outputs to the field.
    The PLC device will supports the OPC tags so i wanted t create OPC recognised tags in my labview. Is it possible. I saw that labview also having OPC functinalities. Please any one guide me in doing this.
    I will be very thankful to them
    Ramme..

    As I said, I believe you can do this for globals as well by opening its front panel (double click the global) and using a DS connection for the control that represents that specific global.
    As for other alternatives:
    NI sells the DSC module which comes with an OPC server and with better tags.
    You can use a common protocol like Modbus to interact with the PLC.
    You can use the custom protocol used by the PLC.
    The last two would require that you would change your program structure, so you would only want to use them under certain conditions.
    I believe the practical limit for OPC tags with DS is a few hundred tags, but I never used it myself so I didn't run into it. You can try searching the forums to find out more.
    Try to take over the world!

  • Unable to read "read/write" OPC tags through datasockets

    I am having problems reading tags from an OPC server that are "read/write" access. Reading "read-only" tags works good. I am using the Datasocket Open.vi and Datasocker Read.vi and I have tried to set the mode input of the Datasocket Open to "read/write" follow by a Datasocket Read without any success. I am constantly getting the 1179 error as return.  
    I have tried to read the same tags with an OPC Client software and it works fine.
    Anyone that have successfully read a "read/write" OPC tag using Datasockets?  

    Are you watching these variables in another program as well? I have seen this error pop up before when variables were on the watch list and variable manager was open.  Make sure you have nothing else grabbing the resource at the same time.
    Rob K
    Measurements Mechanical Engineer (C-Series, USB X-Series)
    National Instruments
    CompactRIO Developers Guide
    CompactRIO Out of the Box Video

  • Opc tag list in labview

    Hello,
    Is it possible to get a list of published tags found on a certain server? 
    I’m aware of DataSocket Select URL.vi which uses an ActiveX to browse a server, but you cannot get a full listing out of this…
    Thanks in advance,
    Jonas

    Hi Marco,
    the OPC HDA is not supported as indicated in this document, but OPC DA (Data Access) servers can be accessed:
    http://digital.ni.com/public.nsf/allkb/EA231BDD22CCB64086256E5C00045500
    Regards,
    Anna
    AE Manager
    NI Italy

  • 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

  • OPC server trouble seeing tags in NI Distributed System Manager

    I have created my own OPC server for simulation purposes.  If I create an I/O server and select my OPC server I can then "create bound variable" in which I can browse my OPC tags which are all in there.  I use another program which makes use of property nodes to acquire a list of paths to these tags.  The list is empty.  I noticed that when I run the "NI Distributed System Manager" I can see the I/O Server but the sub tree doesn't show my tags.  If I got them to show up in "NI DSM" then I could get a list of tag paths.  Does anyone know why my tags would show up in the "created bound variable" window and not the "NI DSM" window?  I have tried deploying the library that the I/O server is in but this doesn't work.
    Thanks
    Matt

    Thanks for the reply Charris,
    I have two OPC servers.  One is the simulator and one that I connect to at a remote location which required some OPC client software (some service in windows registry which I am not familiar with). All I know is that I can browse all tags on the remote OPC server by first creating an I/O server (yes I use OPC client) and selecting "create bound variables".  Before I bind any shared variables to OPC tags I can go into DSM and see all the tags that are not yet shared variables.
    When I try doing this with the simulator, I first create the I/O server before I can browse all the tags in "create bound variables".  But this time when I go to the DSM, they are not listed under the I/O server.  This is just an observation.
    My real problem is that I use this piece of code found on the NI website to get a list of tags (URLs).  This code works with the remote OPC server but not with the simulator.
    I don't really understand the code.  All I know is that if I input the name of the library and the name of the I/O server as well as the path to the PC, it brings back a list of URLs pointing to tags.  Maybe there is something in this VI you can help with.
    Thanks
    Matt
    Attachments:
    Get Tag List.vi ‏38 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.

  • 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 Server PLC

    Hallo,
    I am doing right now the tutorial from NI " Connect LabVIEW to Any PLC Using OPC". And the first capital was everything richt, "View Existing PLC Tags with NI OPC Servers 2012".
    But in the second capital "Connect LabVIEW to OPC Tags by Creating an I/O Server" I can't get the picture as the 4. step "Select OPC Client in the Create New I/O Server Window and click Continue. ".
    The problem is, there is no option for "National Instruments.NIOPCServers.V5" to choose by me. How can I get the pic as the tutorial?? Why I can't get the "configure OPC Client I/O setup" menu??
    My system:
    LV 2012,  Win7, 
    Does somebody know the problem?? 
    Thanks a lot!
    Cabio

    But I think my OPC Server is running, the tool OPC Quick Client can connect to server "National Instruments.NIOPCServers.V5", it is also showed in the Pic.
    And I have fund a VI "C:\Program Files (x86)\National Instruments\LabVIEW 2011\vi.lib\variable\tagger\opcClient\GetOPCServerList.vi", this VI can find the "National Instruments.NIOPCServers.V5". But NI-DSM cant find it.
    I am confused~~~
    Attachments:
    OPC_Quick_Client_2014-01-21_14-58-00.jpg ‏342 KB
    GetOPCServerList_VI _2014-01-21_15-45-33.jpg ‏45 KB

  • OPC DataSocket error 42 in writing negative values

    I was playing around with OPC and using the DataSocket pallete. Although I've used it reliably for a while and am content, I was baffled by one error. I was hoping someone could explain why this error occurs or how to solve it.
    In the NI Distributed System Manager I've created an Shared Variable of the type single, with Read/Write access.
    Problem
    When writing a value less or equal to 0 to an OPC URL, I get an error 42. When using the equivalent PSP URL, I don't get it.
    Using this VI snippet code.
    I get these paths and errors:
    This error 42 comes for all values below zero and for zero. For all positive values I don't get this error. What's the reason for this behaviour? In my humble opinion this is not wanted behaviour, as OPC tags should accept the whole value range of the single.

    White spaces are allowed in OPC URLs, so that cannot be the issue.
    I've tested with another LV2013 computer and NI Distributed System Manager 2013 and got the same errors. However, when I tested it on a LV2012 and NI DSM 2012 it was all working. Quite strange.
    Now I'm wondering if it's something local or that the bug was introduced in the 2013 distribution and if it has been solved in the 2014 version ...
    Could someone test it on LV2013 and/or LV2014, just to check if the problem occurs for other installations in LV2013 and if the problem has been solved in LV2014? Please indicate LV version and DSM version.

  • Distribute measurment studio application with opc conntection to field point

    I have written an Measurement Studio application with an DataSocket connection to an OPC Sever of an field point 1808. If I distribute this application to another computer I can't get a connection to the OPC Server of the field point. The application works fine on the developent computer of the application. On the other computer is just installed the MAX and the drivers from the Field Point CD. As well I configured the Field Point on that computer. We I browse for an OPC tag in the distibuted application I am not able to access any OPC server, even if I see them. Does anybody have an explanation for that?
    Thanks Bernd

    Hi Daniel,
    sorry that i answer you so late.  I got an error like "opxproxy.dll could not be found". So meanwhile I checked the system and the opxproxy file was found in the "winnt/system32" directory. After i register the opcproxy.dll manually with the shell command " regsvr32 opxproxy..dll" everything was working fine. Normally, this file should register itself automatically.
    Bye
    Bernd

  • OPC/DSC/Kepware Server

    When I attempt to deploy my application, I receive "Deployment failed: The client process cannot communicate with the configuration server process....."
    I have DSC Run Time module on the target machine and I can read the OPC tags on the Kepware Quick Client so I narrowed it down to something to do with LV.  I've read about the "identity of interactive user" and I do have that checked in the DCOM for the client server.
    Thanks in advance for the help/ideas.

    Daniel, here is the error message I receive.
    The OPC server is located on 192.168.1.10 so it is the same subnet
    Attachments:
    deploymenterror.JPG ‏43 KB

  • Why are my Datasocket OPC reads and writes so slow?

    I am creating an application (in LabView 6.1) that has to interface with 15-30 OPC tags (about half and half read and write) on a KepWare OPC server. It seems like the DSC Module would be overkill, but the datasocket write VIs seem to slow the system to a halt at about 6 tags. I saw something about using the legacy datasocket connect VIs, but would I really see a large performance boost from switching?
    In the existing code we have, I have seen that even the legacy VIs (our old code uses the older VIs) sometimes grind the system to a halt or lock it up completely if it loses sight of the OPC server. Has anyone else had problems with this?

    Hi IYUS,
    What OPC Server are you using?  What methods are you using to communicate?  If you are using IAOPC, have you installed the latest patch?
    Also, this post is nearly 2 years old.  You will probably get more visibility (and more help) if you post your questions in a new thread.
    Cheers,
    Spex
    National Instruments
    To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be...

  • Labview and Mitsubishi OPC: communication

    Hi,
    My problem is I have to communicate between a Mitsubishi FX1N and Labview using OPC.  I have Labview 8.0 is that enough to communicate or do I need the DSC module ? I want to do I so simple as posible, nothing fancy. Maybe use of global variables ?
    Dr. Mackay

    Hi
    DSC is not necessary to read OPC tags, but it does have a lot of neat features. You can use Datasockets to read OPC tags. A very simple example that demonstrates this is called NI Demo OPC Client and can be found in NI Example Finder. To find the URL of the OPC tags you want to read, you can use DataSocket Select URL.vi.
    Regards

  • Use Data Socket vi's to write to a custom namespace OPC server.

    Hi there,
    I'm still having the following problem:
    I'm trying to write an OPC tag to my OPC server that is currently not
    existing in the servers name space.
    Normaly (with other OPC clients) the server fires an event that validates
    and adds such unknown tags
    to the server if they are not existing.
    These event is fired through the labview client, too, but unfortunately the
    parameter that tells the server what
    data type the server should use to register the new OPC item is always zero
    (uninitialized variant typ) instead
    of VT_UI VT_DBL or any other value for a valid typ.
    Does anybody know how to register unknown but type save OPC items to an OPC
    server with LabVIEW 6.1 / 7
    data soket vi's ???

    Hello Bryan,
    The BrowseDeviceList VI was released within NI-FBUS 3.2. For NI-FBUS Configurator 3.1, please unzip the attached file and copy the "addon" and "Ff" folders into "\vi.lib" directory. LabVIEW 7.1 or above version is required for using these addons.
    And for your information, there is a free upgrade (version 3.1.1) for NI-FBUS Configurator 3.1 users. Here is the link to the upgrade kit.
    http://digital.ni.com/softlib.nsf/websearch/00A1614EC291219586256F390020671B?opendocument&node=132070_US
    Hope it helps!
    Regards,
    --Josiane
    Attachments:
    locate_fflv_in_labview82.jpg ‏214 KB
    vi.lib.zip ‏391 KB
    locate_fflv_in_labview71.jpg ‏193 KB

Maybe you are looking for

  • How do I set a noise print for the entire track? (Back to Basics)

    Ok. I've only worked in STP with single audio clips. Now, I'm trying to adjust audio inside a Multi-Track project sent from FCP... and it's a little different. At least to a guy like me. I'm struggling with the most basic issue, and that's possibly w

  • Credit Dropped 100 points?

    Hello , Recenlty I changed american express cards , meaning I closed my AMEX gold charge card to open an AMEX everyday I was approved and given a 10k limit. However after I closed my gold card I didn't see one left over charge of $60. Months went by

  • Adobe Lens Profile Downloader 1.0.1

    Once I've downloaded the Lens Profile Downloader 1.0.1, I can't install it due to a wrong configured install program. Is there any solution how I can get the latest version of the lens profile downloader?

  • Adobe muse stops other applications

    Hi, I have Imac os x 10.8.3 - lion. Yesterday I downloaded adobe muse but everytime I launch the application the entire system go crashing (it stops all the other applications and nothing works at all, I must RESTART the computer). This happened even

  • Extracting Part of Field

    Hi, I want to extract all data to the right where the field contains 'User:' and to include User: I am using this formula which works great. =Right([Opportunity Description];(Length([Opportunity Description])-Pos([Opportunity Description];"User:")+1)