Connecting a plc without opc server

hi, can i connect a plc to labview 7.1 (to send and read data) without an opc server, using just an rs232 cable from plc to pc.
Solved!
Go to Solution.

syd_b,
RS232 is just the physical interface, but it says nothing about the communication protocol. Allen Bradley PLCs use several serial protocols, e. g. the DF-1 protocol. You can either try to implement the protocol by yourself by using VISA calls (good documentation is required) or you can purchase a library. NI doesn't offer an Allen-Bradley library for LabVIEW, but I have found a vendor with a quick Google search.
Jochen

Similar Messages

  • Problem Connecting Shared Variable to OPC Server

    Hi All,
    I use LBW 8.2.1 and DSC.
    I try to connect to an OPC server :  Emerson DeltaV
    When using Datasocket, I am able to connect to the DeltaV OPC server and browse (DSTP Server) to the variables I want to Read/Write.
    But, since I'll need to connect to hundreds of variables I want to use DSC and so the Shared Variables.
    When I try to bind the variable, Labview cannot detect the DeltaV OPC Server... Browsing results in a "Populating Node" comment... But never completes...
    Does anyone have a clue?
    Thanx to All
    Dai
    Dai
    LV 7.1 - WIN XP - RT - FP

    Hi,
    I do not trust datasocket for this. I already tried with LBW 7.1and after something like 150 datasocket connections to DeltaV OPC, some variables do not respond anymore.
    It's kinda wierd. It happens to groups off variables. Just add one more connection and a all bunch off the other connections freeze. Remove it and it comes back...
    One application Engineer of NI told me at the NiDays that datasocket was not meant for so many variables and that I had to use DSC.
    He said something like : "Now you know why datasocket ships with Labview and that you have to pay for DSC..."
    I'll take some screenshots to explain, but later... In fact, we are going to upgrade our DeltaV to version 8 or 9 soon (currently 7.4).
    Dai
    Dai
    LV 7.1 - WIN XP - RT - FP

  • Problems connecting to a remote OPC server in write mode using CWDataSocket control

    Hi.
    I have been struggling with an odd feature when trying to connect to a remote OPC server using CWDataSocket control, though I'm not sure if it's a CWDataSocket related problem. But anyway, the following error occurs: "Active: Can't write data." Error number: "-2147467259". Now, when I connect to a local OPC server
    and write some data and then again connect to the remote server, no errors occure and reading and writing work fine. The same error occurs when I try the same in LabVIEW. What could be the problem?
    No errors occure when I connect to the server with some other OPC client application.
    Thanks in advance.
    - Asko -

    The ConnectTo operation (as are all DataSocket operations) is asynchronous. In order for it to complete, you must process Windows messages after calling it and before calling another operation. Is it possible that you are trying to write data before the connection operation is complete?
    One easy way to test this would be to put the ConnectTo and the Write in separate control callbacks, cause ConnectTo to be called, wait a while, then cause the Write to be called. Alternatively, you could do something like the following:
    dsWrite.ConnectTo txtUrl.Text, cwdsWrite
    While Not ((dsWrite.Status = cwdsConnectionActive) Or (dsWrite.Status = cwdsConnectionIdle))
    DoEvents
    Wend
    If this is the problem, then you'll probably want to go with the
    second option. In a production system, you should include a timeout in the While loop so that if the connection actually cannot be made, you are not stuck in an infinite loop.

  • Connect yudian controller through OPC server in Labview.

    I am trying to bind Indicator using DSTP server that gets data from Yudian controller AI706M.
    I want to get this data through yudian OPC server.
    when I do this in labview 7.1 version with windows XP OS, I get option of yudian OPC server from browse menu available at Indicator's property and It works 
    but with Labview 2012 and window 7 I am not getting this option ??
    I would appreciate your help on this.
    Thank You
    CLAD
    Passionate for LabVIEW

    Hi there,
    According to the following link, you might not be able to connect your PLC to LabVIEW:
    http://www.ni.com/white-paper/6417/en
    In general, if you would like to establish a connection between LabVIEW and a PLC, here is a step-by-step guide:
    http://www.ni.com/white-paper/7450/en
    Regards,
    Norbert

  • 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

  • Problem to connect with OPC Server opc.sinumerik.machineswitch using DS_Open

    Hi,
    I want to connect to an Siemens OPC server type opc.sinumerik.machineswitch using DS_Open calls (CVI 6.0) to read few tags. Running my client software (as well as the NI- sample test client) locally on the same computer as the server the connection works and I can access the tags.
    Running the client-software on a remote PC then the DS_Open call "hangs-up" (not even an error message). All the DCOM settings etc should be ok, since I can access the tags using the Siemens Client OPC-Scout as test client.
    I have used the same calls in several previous applications and it works with other servers (Bachmann, WinCC), so I am pretty sure that I use the correct URLS etc.
    What can be the reason for a specific incompatibility?
    Any idea is highly appreciated.
    Cheers,
    Ronald

    Hi Roland,
    as experience shows, Remote DataSocket is hard to implement.
    The best way to implement this communication is the following:
    First of all, check the DCOM -Settings
    Using OPC via DCOM with Windows XP
    http://www.opcfoundation.org/DownloadFile.aspx?RI=326
    Use the “NI-OPC Server” to create a tunnel between the Siemens OPC server and your PC.
    Install the NI-OPC Server on your PC and use the “OPC DA Client Driver” to access the tags on the Siemens OPC server.
    After that you can access the created tags in the NI-OPC Server with CVI and DataSocket.
    Please download the NI OPC Servers Evaluation-Version to test communication.
    NI OPC Servers
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/209059
    Download NI OPC Servers Evaluation
    https://lumen.ni.com/nicif/us/evalopc/content.xhtml
    Regards
    Ulrich

  • Trouble connecting to an OPC server

    Hi guys,
    The problem is connecting to a mass spectrometer, for which I have a dedicated LAN cable connection and an IP address. I can ping the device, and connecting to the OPC server works with the Softing OPC client, by manually entering the IP address of the server. However it does not show up in the remote machines list when I try to connect to it with via new I/O server. Is there a way to connect directly to an OPC server having only it's IP address?

    Our lab was shut down for the holidays period, so I couldn't try anything for a while. Back on it now though.
    Thanks for your suggestions! However, I still can't reach the server. Some more details in this post.
    The server explorer doesn't see the device either. I think both the
    server explorer and LabVIEW actually browse the network looking for
    machines running some kind of Samba (SMB) server? That's at least
    suggested by the characteristic '\\' added to the machine name I put in
    there. I don't think the Mass Spectrometer is running an SMB server. It
    does run http and OPC servers, and I believe that's it. So it's not 'visible' on
    the Windows network. Is that a problem?
    When I enter the IP address of the machine at the new IO server window,
    it automatically adds the '\\' in front and gives the 'No such
    interface supported' error described in the previous post. When I put
    in the IP address of a non-existing machine it gives a different error
    ('The RPC server is unavailable') after a few seconds. So it does seem
    to know there is a machine there, just it can't interface with it.
    Reconfiguring the client side DCOM settings according to recipe above didnt seem to make a difference.
    Anyone?

  • 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

  • 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

  • Fieldpoint OPC server freezes up

    A Honeywell DaVinci system communicates with Fieldpoint OPC server. After working properly for hours, the analog outputs would not respond to write updates from DaVinci system. I tried to use FactorySoft OPC client to connect to the Fieldpoint OPC server and also could not manipulate the analog outputs. However, I could still change the outputs using the Fieldpoint explorer. Please advise how to fix this problem.

    What version of the Fieldpoint OPC server are you using? There was a memory leak issue in 3.0.2.177 (I think that was the rev.). Is the opc server memory usage increasing?
    See also:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=5065000000050000000DF60000&HTHREAD=000062989&UCATEGORY_0=_18_%24_17_&UCATEGORY_S=0
    Matt

  • 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

  • Profibus DP S7 300 Siemens PLC to communicate to LabView 8.0 without using opc server

    Does anyone know of a way to communicate with Siemens PLC s7 300 PLC and Step 7 software to LabView 8.2.1 without using a opc server. I'm currently using a opc and it works but it is to slow. Looking for a faster way to move my readings for Siemens to Lab View.

    Hi Duck,
    Please refer to the below articles:
    Profibus Overview
    http://zone.ni.com/devzone/cda/tut/p/id/6958#toc1
    Using an Applicom Profibus Board
    http://zone.ni.com/devzone/cda/tut/p/id/4501
    Hopefully these will help you get started.
    Aashish M
    Applications Engineer
    National Instruments
    http://www.ni.com/support/

  • Is it possible to connect labview with opc server without using NI dsc Module ?

    Hellow sir,
    I want to get data over labview using OPC server and i am not using any dsc module vi (Alams, print, GUI, security).I am using share variable to get data from OPC server to labview. Now i want to deploy that application to third party computer. (where there is no NI software is installed)
    i am using labview 8.6 and 2009.
    Many ? like....
    1) what is the procedure to install that application in third party computer.
    2) Do i need to use my dsc run time licence..?
    waiting for your valuable feed back.
    Thank you.
    CLAD
    Labiew programmer

    Hi, When you connect to NI OPC Server by creating New I/O Server > OPC Client. You will see all registered OPC Servers running on local machine or remote machine. I used KepServerEx from Kepware and LSIS OPC Server from LG with no problems. Just make sure that the OPC server is running.
    Hope it helps
    Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
    Assistant Lecturer
    Mechatronics Department
    Faculty of Engineering
    Misr University for Science & Technology
    Attachments:
    LG.png ‏57 KB

  • 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

  • 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

Maybe you are looking for

  • Safari 5 doesn't show all images on a webpage

    Hi, I'm using Safari 5, and my Safari doesn't always show all the images on a webpage but shows a "blue question mark" instead of an image. sometime when I try to reload the webpage, the image (that was a blue question mark) appears but some other im

  • PR commitment nullification.

    Hi,        My requirement is to close the PR when ever the amount of adopted PO's commitment becomes equal to the PR amount. Is there any badi or exit where i can check for the amount of PR commitment and PO commitment? Thanks n Advance. Sudheer.

  • Distribution point not installing

    I'm having some issues with a new Distribution point. This is my first Server 2012 R2 distribution point and after installing the roles and features (I believe are required) the distribution point does not install. I can't see anything on the distrib

  • BI Apps load - DAC variables not substituted.....

    HI All, Source - EBSR12.1.1 Server A : Target is Win Server 2008, Oracle 11g, DAC 10.1.3.4.1, IPC 8.6.1 (HF 11), BI Apps 7.9.6.2 - tried loadin HR In this it substitutes one $$variable incorrectly. I did this long back and so I am not sure what this

  • Circle with slash/won't recognize DVD or external drives

    I have this model: Model Name:          MacBook Pro   Model Identifier:          MacBookPro5,5   Processor Name:          Intel Core 2 Duo   Processor Speed:          2.26 GHz   Number Of Processors:          1   Total Number Of Cores:          2   L