OPC server setting

Hi
I`have developed an application client which has shared variables bounded with an OPC server of NI. Sever and Client are on the same machine. My executable works very well.
Now if I want install my executable on a machine that has not the OPC server installed, so I need to change manually the path of the OPC server and of all the shared variable bounded before creating the executable.
Is there any possibility to set the path of the OPC server  on the front panel of the application? Any suggestion how can I develop a VI to set this path? 
Thanks
Vincenzo

Hi Vincenzo,
I've never tried it, but I guess the "Create&Configure IO Server"-Express-VI should do the job (DSC Module/EngineControl/Variables&IO-Server). It allows you to dynamically setup a connection to an OPC-Server (or other server type).
If you use the "Overwrite if I/O-Server exists"-Option and use the name of your original I/O-Server, all your Shared-Variables connected to that Server should (hopefully) automatically connect to the new OPC-Server.
As I mentioned, I did not try this. So, let me know if it works.
Good luck,
Thomas

Similar Messages

  • How to read enumerated values from an OPC server via Datasocket

    Hi Labviewers,
    I am using LV8.2 and I am trying to find if it is possible to read enumerations from an OPC server via Datasocket, not just the values.
    I can successfully read a value for an OPC server via Datasocket and I get a value for example 3, is it possible to get the enumeration/string that corresponds to this value i.e. "Open".
    Many thanks in advance
    Dimitris

    Hi Sarah,
    With the input type as variant I get the following response:
    1                                     <-This is the current numeric value of the parameter
    4 Attribute(s):
       'Quality' -> 192
       'TimeHigh' -> 29861723
       'TimeLow' -> -665408304
       'Timestamp' -> 39.238E+3
    With the Input set to         Enum constant I get no values or strings coming back. With the Input set to                Ring constant I just get the numeric value   
    Dimitris   

  • 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 Not going to active state

    When we add a single virtual Analog input channel on a PXI 4351 card the opc sevrer cannot be started by the tag engine. The error message is that it cannot be set to the active state. Removing the single analog input channel solves the problem. We have 100 tags 6 of them are analog and the remainder digital i/o. Does anybody know how to get the opc server to accept the new channel?

    When we add a single virtual Analog input channel on a PXI 4351 card the opc sevrer cannot be started by the tag engine. The error message is that it cannot be set to the active state. Removing the single analog input channel solves the problem. We have 100 tags 6 of them are analog and the remainder digital i/o. Does anybody know how to get the opc server to accept the new channel?

  • Are there any example vi's for implementing a circular buffer between a plc, opc server, and labview dsc??

    I am storing a block of data inside plc registers and reading this group into labview as a continuous set of datapoints. I am counting the number of scans in the plc and sometimes the number of points collected inside labview doesn't match.

    To explain a a little bit about tag updating:
    The LabVIEW DSC tag engine is not just updated on any change of the value within the plc. There are, in fact, several "deadbands" that must be crossed before those tags are updated:
    1) The OPC Server has a deadband - where the plc register value has to change a certain % before it is recorded.
    2) In the LabVIEW DSC moduel, there is an I/O Group Deadband that determines when the tag engine is actually updated.
    Both of these deadbands must be satisfied before a new "value" is recorded in the LabVIEW DSC tag engine.
    Therefore, I would check your OPC Server's deadband (configurable in the OPC Server configuration utility) and also the I/O Group deadband for those tags (configurable in the tag configuration
    editor).
    If this doesn't resolve the issue, please let me know. Thanks.

  • What is the best way to disable tags in SVE when a OPC server is not available?

    I have a LV2009 DSC app with SVE that reads tags (1100 spread acrross them) from 4 PLC's through NI OPC server.  From time to time the PLC will lose power because that test machine will be powered down.  The NI OPC  loses the OPC link then to that particular machine/PLC and this error is transferred through to the SVE. 
    Is there an any/efficient way to stop the reading of tags if/when this happens?  The only way I can think of is to undeploy/re-deploy from the app when it is necessary. 
    In the same way is it possible to prevent the SVE acting on this error?
    I also have a longstanding problem with updates of tag values to the frontend of the LV VI.  The update rate into SVE seems OK, but the tag values are slow to update onto the page.  I have reduced the amount of tags on the pages as well as reducing the amount of code on a page.  It becomes better, but I would like to have an update of less than 2 seconds at least to properly display plant status.  I'm running a heartbeat timer from a PLC and in some cases this takes up to 15 seconds to update.
    Any assistance will be appreciated.
    Pierre

    PierreN,
    In order to set the timeout value of a Shared Variable, you may Right-Click, and select 'Show Timeout':
    Implementing Timeouts through your application variables will allow you to gage which variables are, and are not updating. This troubleshooting stepp will allow you to better characterize the source of the slowed update rate. You also may take a closer look at the OPC Server configuration, and the deadnband settings you have implemented on the I/O Clients. 
    Snowforest has offered good advice in terms of implementing a State-Machine architecture to handle the 'Power Down' system status. Also, if you know the specific error that is propagated, you may choose to implement implicit error handling using the data contained in the Error Cluster.
    Cheers,
    Pcorcs
    Patrick Corcoran
    Application Engineering Specialist | Control
    National Instruments

  • How to specify Attribute ID in OPC Server DevicenetExplicit

    I'm trying to set up an Allen Bradley 842D Devicenet Absolute Encoder
    using the OPC server.  The manuals for the device mention that the
    data can be retrieved from the various Attribute ID's in each
    class.  From the OPC Server Help example below,  it starts to
    describe the location of the data desired,  but fails to show me
    where I specify the attribute ID.  For example, lets say in the
    example below,  I now want Attribute 2 or 3.  How does the
    below example tell me how?.
    Since I'm trying to get all this data in via the IA OPC server, 
    I'm not planning on using the DNET Vi's.  BUT.....I did look at
    the "GetIdentityAttrs.vi" and notice that the VI's provided allow for
    Class ID, Instance ID, and Attribute ID.  All of which correctly
    gives me the information I want when I run this VI with the 842D
    encoder.
    From OPC Server Online Help:
    NIDeviceNetExplicit Example
    Suppose you want to get attribute 1 from Class ID 1, Instance 3 of an
    object. Class ID 1 is the Identity Class, where all the identification
    information for the device is contained.
    Enter the background information when you create the
    NIDeviceNetExplicit object, setting the Service Code to 14 and the
    Class ID to 1. From the manufacturer’s documentation, you know that
    GetAttribute only accepts an unsigned integer (USINT) as a parameter.
    The baud rate for the object in question is an 8-bit unsigned integer
    (USINT). To read the baud rate, access the IID3.USINT0 data member.
    From the Above,  this is what how i'm interpreting the configuration:  IID ( Instance ID).USINT (data offset)
    To re-iterate my question:  How do I specify the Attribute ID when using the IA OPC Server DeviceNetExplicit Object? 
    Regis

    Hi Regis,
    The general steps to send & receive the explicit message using the NI OPC Server:
    Configure an OPC item to write the explicit message, you have to set the attribute ID for the GET request message here.
    Configure an OPC item to read the explicit message, you will get the explicit response from it.
    Example: Read the Vendor ID (ClassID=1, InstanceID=1, AttributeID=1, DataType=UINT)
    (1) Configure the NIDeviceNetExp object with the right MAC ID, ServiceCode=14(GET), ClassID=1
    (2) Add an OPC item (Data Member) NIDeviceNetExp1.IID1.USINT0 to write the parameter.
    (3) Add an OPC item (Data Member) NIDeviceNetExp1.IID1.UINT0 to read the Vendor ID.
    (4) Then you get the alarm message in IA OPC server and get failure message in your OPC client , if you have one started allready, because it reads the item automatically.
    The magic action is here: you write the value 1 to NIDeviceNetExp1.IID1.USINT0. (then the attribute ID 1 is set correctly).
    You can get the vendor ID then reading NIDeviceNetExp1.IID1.UINT0.
    2. Example: If you want to get the Serial Number (ClassID=1, InstanceID=1, AttributeID=6, DataType=UDINT)
    Add an OPC item NIDeviceNetExp1.IID1.UDINT0
    You write the value 6 to NIDeviceNetExp1.IID1.USINT0
    You can get the Serial Number in NIDeviceNetExp1.IID1.UDINT0
    So you can conclude that:
    (1) if you write to NIDeviceNetExp1.IID1.USINT0, USINT is the data type used to encode the request message parameter.
    (2) if you read from NIDeviceNetExp1.IID1.UDINT0, UDINT is the data type used to decode the response message.
    Attached you can find an example using LV and  Datasocket to read the Vendor ID.
    Hope that helps with your problem.
    DirkW
    Attachments:
    DNET to OPC Item.vi ‏44 KB

  • 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

  • UNABLE TO START NI-OPC SERVER

    WHEN START OPC SERVER
    Error in NI-OPC:  Unable to load driver dll 'c:\Program Files\National Instruments\Shared\ NI O...
    PLS HELP..........

    Do this as a quick attempt. Under the  "OPC Settings" tab there is an option for "Use DCOM configuration utility to set security" ... this is ON by default. Uncheck this box and restart the service.
    see this solved thread for more details. Don't hesitate to post back if you still have problems. We are glad to help you.
    Mathan

  • Can't connect to KepWare Enterprise OPC server

    I am trying to connect to the Kepware Enterprise OPC server with Server Explorer 2.4.1 but get a message 'The system cannot find the file specified' 0x80070002. I have modified the DCOM setting for XP SP2 as described in the Kepware documentation. Is there a way to resolve this issue?
    Thanks
    Harry

    Hello,
    Can you explain exactly how you are attempting to connect to this OPC Server and also any of it's properties that are set in Server Explorer. At what point do you get this message? Have you been able to connect to that OPC Server on that machine, or any machine before?
    Cheers
    Tom | NIUK

  • Omron OPC Server with Lookout 5.0

    I am trying to set up a Lookout 5.0 application using the OPC Client, connecting to the Omron OPC server, CX ServerOPC. When I add the OPC Client, I find the server on the drop down list, but when I click 'OK' to create the OPC client object, once it connects to the OPC server, Lookout crashes. I get the message that Lookout.exe has encountered a problem and has to close. Has anybody used this server before and seen this problem? Any hints as to what could be incorrect in the client or server settings?

    Hi,
    What happens if you connect to the Omron OPC server from the National Instruments Server Explorer? Do you access to the OPC items succesfuly in Server Explorer?
    Please also check the Tutorial linked below:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/B0​CC5FE5CBC5727F86256808006AD802?opendocument
    Hope this helps.
    Best Regards,
    Remzi A.
    National Instruments

  • 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

  • NI OPC server vs. KEPDIRECT

    I am in the process of setting up an industrial PLC project.  I am wanting to use Labview for communication with my Automation Direct PLC system.  Automation Direct offers an OPC server KEPDIRECT for $295.00.  NI OPC server is quoted at nearly $2,600.00.  Money is not a factor in my situation and I want to purchase the best and most efficient server.  Can someone explain to me the difference in the two servers (why one is more expensive than the other) and which one is better for working with labview and a PLC.  I currently have my system programmed with Automation Directs Direct Soft 5 and Lookout Direct and want to completly switch over to Labview if this makes any difference.  Thanks for any input and help.
    Solved!
    Go to Solution.

    Blue Ridge Test, a certified NI Alliance Partner, has successfully implemented a control / monitoring system with LabVIEW which interfaces to networked Automation Direct PLCs through ethernet (ECOM modules) and OPC.  If you are interested, we would like to talk with you about your application to see how we might partner together to achieve an elegant, cost effective solution which meets your goals while removing months from your timeline.
    If you decide to approach this on your own, there will be configuration challenges (e.g. extracting the correct tags from DirectSOFT 5, setting up OPC, etc.).  Before addressing those, though, you may want to think through your programming requirements such as those listed below.
    After the setup phase of your project (i.e. configuring hardware & signal conditioning, verifying connectivity, demonstrating various portions in LabVIEW, etc.), you might consider your architecture before moving forward.  How will you store your data?  How will you view / analyze the data later?  Is the architecture readable, scalable, and maintainable?  What will happen when you want new features (e.g printing reports, user logins, or controlling other external equipment or processes while saving data and displaying results)?  What kind of user interface will you use?
    Set yourself up for success long term by thinking about the right architecture today.  We frequently have customers whose "simple engineering experiment" grew on them.  And, interpreting bad LabVIEW code a year into a project can be a lot like deciphering abstract art (and equally expensive).
    Jason B
    434-525-7312 x114
    Message Edited by Support on 02-10-2009 05:17 PM
    Certified LabVIEW Architect
    Wait for Flag / Set Flag
    Separate Views from Implementation for Strict Type Defs

  • Opc server on compact fieldpoint 2100

    Dear all
    I am having a bit of trouble on where to start with setting up OPC tags for the customer to view.  I have a cFP-2100 in machine which is installed at a power station.  It isconnected by ethernet back to a PC in a server room.
    All outputs are normally hardwired using an analogue output card to give the values, but this customer has requested I use OPC.
    They browse the available OPC servers on the network and find
    National Instruments.Variable EngineNational Instruments.Variable Engine.1National Instruments.OPCFieldPointNational Instruments.LookoutOPCServer  
    Now I can easily change the code to ouput the instruments values to some new shared variables, but how do I go about creating a tag name?
    Another question I have the NI devloper suite (NI professional devlopment system) with teh datalogging and supervisory control module 8.2.1 and the labview industrial automation OPC servers 5.1.  But i cant find which disk they are on?  any ideas?
    any help would be much appriciated.
    regards,
    Chris

    Dear Monkins
    Please see this webcast of how to create custom tags through our National Instruments LabVIEW software and programmable automation
    controllers-to any PLC using the new NI OPC servers
    http://zone.ni.com/wv/app/doc/p/id/wv-263
    Just as a note, from a performance standpoint, there is no difference between these two
    methods when the DataSocket is configured correctly. At run time,
    accessing the tags will happen at the same rate and with the exact same
    behavior. To configure the DataSocket connection correctly, ensure that
    you open and close a connection to your tag only once when reading or
    writing from it iteratively, as shown in the following screenshot. From an implementation standpoint, there is an important difference
    between the two methods. The shared variable method uses an OPC client
    that is built into the shared variable engine. This OPC client is added
    by the DSC module. In order to bind shared variables to OPC tags, you
    must have the DSC module installed. The DataSocket method uses a
    different OPC client built into the DataSocket implementation in
    LabVIEW. Because DataSockets are a standard part of LabVIEW, you do not
    need any special software modules to access your OPC tags with this
    method.
    Please see the KB below which describes how to use the OPC server in Labview through using Datasocket.
    http://digital.ni.com/public.nsf/websearch/EA15F53DB6FECCA5862567240064DF09?OpenDocument
    Also, the below link, describes methods for binding a shared variable to a FP channel; please see method 1 which utilizes this NOT using the DSC module.
    http://digital.ni.com/public.nsf/allkb/FA610367EC62574186257118005089F2?OpenDocument
    Many thanks for using the NI forums and I look forward to your reply.
    Kind regards
    David
    Applications Engineer
    National Instruments UK

  • OPC Server Remote Connection LabVIEW 8

    Hi
    Currently I am trying to access a VI with a Shared Variable from a remote computer using an OPC Client. I haven´t succeed on this becasue I cannot find the OPC Server on the Host Computer.
    Here is what I am using:
    Host Computer:
    Windows XP SP2
    NI Developer Suite November 2005
    LabVIEW 8 with DSC Module.
    Remote Computer: The same as above.
    Here´s what I have done.
    I created a new project with a library that included a Network Published Shared Variable. The VI is quite simple it just generates a number that is written to the Shared Variable. Once the VI was running I opened the Server Explorer on the host computer, browsed My PC and connected to the server Variable.Engine in which I was able to see my shared variable. Then on the Remote Computer I opened the Server Explorer and browsed on my Network Places and when I tried to access the Host Computer I got the following error: "Unable to connect to \\HOST! Make sure that this computer is on the network, has remote administration enabled, and that both computers are running the remote registry service"
    I have tried by using the Matrikon OPC Server Explorer and I got the same results. I read many documents that refer tis problem as a DCOM setting because of the firewall fo XP SP2.
    Here´s a list of the NI documents I reviewed.
    How Can I set up LabVIEW, LabVIEW DSC, and Lookout to work with the windoes XP firewall
    URL: http://digital.ni.com/public.nsf/websearch/0D7B86F4B4D19A5E86256F9A006EECB1?OpenDocument
    Setting Proper Access for Remote OPC Server When Using National Instruments OPC Clients
    URL: http://digital.ni.com/public.nsf/allkb/5C8A90CD57B279F286256C2C006F1EB4
    I never got the results I expected. Then I tried the Matrikon OPC Simulation Server and the Matrikon OPC Server Explorer(Client) and I Succesfully connected between Matrikon servers and clients.
    My project is based in accesing the LabVIEW OPC server with a generic OPC client but I cannot get the client to connect to the server.
    I will apreciate some advice on this issue.
    Marcos

    Marcos,
    If you are using two instances of LabVIEW 8, I would first take the OPC part out and just try viewing Shared Variables on the remote computer.  This needs to work.  One document to check is the following KB: http://digital.ni.com/public.nsf/websearch/6E37AC5435E44F9F862570D2005FEF25?OpenDocument. I would also make sure the opcenum.exe service is running on both machines. 
    Once browsing to Shared Variables works, you can test the OPC aspect of the Shared Variable Engine.  Server Explorer is an older OPC 2 client, but should work in most cases to browse to OPC Servers -- you'll need to make sure the registry settings on the host computer are set up correctly as per the KB you mentioned, and also make sure to connect to the OPC Server, add a group, and add items manually from within Server Explorer, rather than using the Wizard.
    Doug M
    Applications Engineer
    National Instruments
    For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

Maybe you are looking for

  • Image substitution in a RTF template

    Hi, I'm trying to substitute an image on a RTF template. I have placed a dummy image on the template, and on the web tab of Format Picture i've hardcoded the actual image directory path. the entry is like "url:{/u01/app/applricew/ricewappl/xx/11.5.0/

  • FOUNDATION SERVICES NOT STARTING

    Hi All, V11.1.2 - On windows Server 2008 R2 Earlier today something weird happened when I tried to save an outline. End result I could not log into EAS - kept getting "login error" type message. Essbase itself was fine, I could still log in using the

  • Query - copy layout - really need this

    Hello, is there a way, a workaround, or what so ever to copy / download a Layout of a Query. (and then import it ... ) I really need this so please explain me how I could do this! thx in advance! greetings Steven

  • CADAPTERSHARED.DLL Access Violation

    I am getting strange error code -17502 in Teststand when returning from CVI function to Teststand. CVI function uses C++ dll and works fine until it returns to Teststand. I debugged the code in C++ and got these lines in debug window: First-chance ex

  • Unique item validation

    Good day apex user, how can I make an item unique in apex 4 and it when insert the same data on the field which already exist and error message should appear?? regards,