PLC Communicat​ions with Labview

How do I view and record data from my plc to labview, currently we are using autmation directs DL205 with the 260 processor

If the DL 205 communicates through the Modbus protocol, you could use the Modbus library. This library consists of a bunch of VIs which can be used for Modbus communication. Think of them as advanced Serial read/write VIs. However, if you are looking into monitoring, datalogging and controlling the registers, then I would recommend the LabVIEW Datalogging and Supervisory Control Module. Using shared variables, you can then easily bind, control and talk to the registers and most of the work is taken away from you.
If the DL 205 doesn't communicate throught the Modbus protocol, then you would need an OPC server (like the NI Industrial Automation OPC Servers) and the LabVIEW DSC Module. You can then communicate from the LabVIEW DSC Module with the OPC server.
Message Edited by Adnan Z on 03-15-2007 10:27 AM
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies

Similar Messages

  • Serial Communicat​ions with Allen Bradley PLC 2.30

    Does any one know the required pin outs for the serial cable from the PC com port to the Allen Bradley 1771-KG card or directly to the Allen Bradley processor? Any samples on writing TAGs to the registers?
    Roy L. Costa
    Email: [email protected]
    Catalyst Test Engineer
    General Motors Warren Tech Center (R & D)

    Hello Chad
    Thanks for the pin out information. I tried that pin out configuration Monday and it did not work. I am pasting a copy of a communication with Allen Bradley in this comment box as well as a communication with another programmer that commented in here as well. Please read it and let me know what you think. Thanks again Chad.
    Roy
    Everything works well, from the LPD OPC Server to creating TAGS..to using the HMI wizard on the front panel,...but there is no communication with my hardware. An NI Application Engineer came by yesterday and we concluded that this was a hardware ware communication problem. I talked with an Automation Engineer in Austin yesterday and he told me to try RSLinx and see if I could get it to communicate with the hardware. I like that HMI wizard, it is pretty cool! I am pasting a copy of an email I sent to Allen Bradley so you can see a little bit more information about my hardware. thanks for your help again Khalid.
    {{{I am having much difficulty in communicating to my PLC 2 communication port or through my RS-232 port on my 1771-KG card. I am using a serial (null modem) cable on com port 1 on my PC. I have Win98 operating system. I am using LabView Datalogging and Supervisory control (Lookout) software to create several HMI?s. Can you please give me the pinouts that I need to communicate with the processor port on the PLC and or the 1771-KG card? Please contact me as soon as possible for I really need to get this to communicate so I can get started on this HMI upgrade. We are using PanelMates as HMI?s, but they are 13 years old and are failing frequently as well as being obsolete. At the present time I am creating new HMI?s but we are planning to do one fuel processing line at a time and replacing the PLC 2.3 with PLC-5 and then we can use the Ethernet module. Please call me at 313-972-4635 I do not have my own email at work so you will need to email any communications to my supervisor Fred Jacobsen he then will pass it on to me. Email: [email protected] If you have something you can fax me, here is the fax number: 313-871-2835
    Roy L. Costa
    Email: [email protected]
    Catalyst Test Engineer
    General Motors Warren Tech Center (R & D)

  • Connect plc using modbus with labview

    hi
    i m using Modbus to communicate plc with labview . but it is not working.......?
    can any one give me the example program so that i can understand how to communicate ?

    Hi Nadeemalikpda,
    Are you using the Modbus Library (http://zone.ni.com/devzone/cda/epd/p/id/4756) or the DSC Module for the Modbus communication?  There are examples included for each.
    For the Modbus Library, the examples are in the .llb (MB Serial Example Master.vi, MB Ethernet Example Master.vi).
    For the DSC Module, take a look at the help file here, which also has the locations of the example programs: http://zone.ni.com/reference/en-XX/help/371618F-01/lvmve/dsc_modbus_using/.
    Morgan S
    Applications Engineer
    National Instruments

  • Way to communicat​e with labview with my own scripting language

    Hi guys
     My objective is to design my own scripting language that can communicate(sending inputs and receiving outputs) with labView for my project. I do have little knowledge about labView . But I dont have any idea how to design scripting language or where to start learning about it since i dont have any computer science background. Can some one guide me about this?? 
    Thanks in advance

    Why do you want to design your own scripting language?  That wheel has already been invented.  There's a free Python toolkit and a Lua toolkit that you can buy to do scripting in LabVIEW.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Interproce​ss Communicat​ion C++ - LabView

    Hi,
    I have a C++ *.exe file wich is grabbing images with a Matrox framegrabber. This program ist startet via "system exec" from LabView. I want to do a kind of time measurement with this program so i need the exact time when the grabbing of frame starts. At the moment I dont know how long the *.exe file needs to initialize the framegrabber (something about 500-1000ms).
    My idea is to start a continous grabbing but start saving the images when another command via LabView will be send to the C++ application. But I don't know how to send this command! It should be a kind of a "wait until key pressed" controlled by LabView. Maybe a global bolean or something like that.
    I hope somebody can help me!
    (programming with LabView 7.0 and Visual C++ 2003.NET)

    Hi,
    What
    you are looking for is called an “inter-application communication”.
    There
    are several options to realize it. LabVIEW supports TCP/IP, ActiveX or UDP to
    communicate with another application.  So
    it’s not as simple as using a “global Boolean”
    as you mentioned.
    I advise you, to use the LabVIEW
    examples which shipped with the NI example finder to get some programs as
    reference. Search for keywords like TCP/IP, ActiveX and UDP.
    Attached
    you’ll find a link to a knowledgebase.
    Hope this helps.
    How Do I Use LabVIEW to Communicate with Other
    Applications?
    http://digital.ni.com/public.nsf/allkb/B3959ED76D5​5A9E586256965004D8092?OpenDocument
    Regards,
    Ulrich
    AE NICER

  • Comment créer une communicat​ion entre labview et "usb-1208l​s"

    Je viens d'installer le logiciel de "USB-1208LS" sur mon ordinateur mais j'ai envie et j'airéussi à voir des signaux mais seulement j'ai envie de communiquer entre mon logiciel et labview en gros j'ai envie de récupérer ses données sur labview je ne sais pas comment procédé mais je sais quand même qu il est compatible avec labview. Merci!

    Hello,
    You're in the english part of the forum, next time make sure your posting on the french forum.
    To acquire Data from your USB-1208LS device with LabVIEW, you'll need to install the driver API for LabVIEW here:
    ULx for NI LabVIEW
    http://www.mccdaq.com/daq-software/universal-libra​ry-extensions-lv.aspx
    And there a link to learn how to use it with LabVIEW :
    DAQ-Software-Quick-Start
    http://www.mccdaq.com/PDFs/Manuals/DAQ-Software-Qu​ick-Start.pdf (refer to p29)
    And another documentation to implement different functionnality and programming in LabVIEW
    Getting Started with NI LabVIEW Student Training
    http://zone.ni.com/devzone/cda/tut/p/id/7466
    Hope you'll find every information you need
    Best regards
    Victor F. | Application Engineer
    Certified LabVIEW Developer | Certified TestStand Architect
    National Instruments France

  • Labview : No USB communicat​ion with the DLN-2 adapter board.

    Hi,
    I am trying to use a Diolan DL2-N USB to I2C/SPI/GPIO adapter (https://diolan.com/dln2). This manufacturer provides Labview drivers for the board as well as example VIs. I just want to use them to access to all interfaces via Labview. After that I will design a test setup for our last product line using this adapter board.
    What i did:
    1) Fresh install of Labview 2014 (evaluaton version). System: DELL Precision M6800 (i7) , Windows 7 Professional SP1.
    2) Install NI VISA drivers and NI-488.2 drivers (14.0).
    3) Install manufacturer drivers as explained in NI website.
    4) Run Labview.  I can see instrument driver VIs under the Function Palette and run example VIs. So far, ok (I guess)
    5) Run NI MAX. No USB ports listed. Only COM1 and LPT1 (printer port).
    6) I ran some windows test apps provided by the manufacturer to access to all the interfaces of the NXP microcontroller in the DLN2. Everything works. I can read analog/digital inputs, force digital out values and use the SPI and I2C (I see the SPI/I2C frame sin a scope).
    I have spent one day going through different links in NI website (have watcheing almost every demo video on the site) and still are not able to guess why Labview can't see my USB device.
    Any hint?
    Regards,
    Jose
    Solved!
    Go to Solution.

    Hi again:
    I' m putting pressure on the manufacturer to provide support, but still I have some very basic questions that I think a Labview expert should be able to answer.
    Attached are the driver files provided by the manufacturer along with install instructions (which I do not fully understand). I assume the iinstall description is based on a standard procedure to install third party instrument drivers , but still don't know what to do with the dln.net.dll file (I just copied it in the /Labview 2014/instr folder). Any hint?
    The manufacturer website says that the driver has been developed for Labview 2012 . I' m using Labview 2014, and assuming backward compatibility. Is that correct?.
    One more question: Is there a way of seeing within Labview which third party instrument drivers do you have installed? 
    Regards
    Jose
    Attachments:
    DlnLibrary.Net.llb ‏574 KB
    readme.txt ‏2 KB
    dln2_drv.zip ‏338 KB

  • Omron (CQM1-CPU4​5-EV1) PLC communicat​ion and control

    hi,
    we have an Omron(CQM1-CPU45-EV1) PLC with RS 232C communication  connected  to instuments for control and monitoring of an aplication.
    Unfortunately  our old pc broke down and now we have to set up thisPLC  with a new labview interface.
    I'm not an experieinced Labview user i would need you help (tutorial) how to communicate the Omron PLC with the labview and how to acquire data and control the application.The task is somehow urgent so i would appreciate advice at your earliest convenience.

  • It's better or necessary open and close communicat​ion with instrument every loop?

    I must communicate with my instrument, but I must change its value, for example temperature, every loop. See the Figure to understand:
    I think that it is better if I open communication with my instrument out of while loop so I many operation: if I put Open VISA in While loop I open VISA session every loop, instead I think it is not intelligent. Can I open VISA SESSION out of the while loop or it is an error for EXCELLENT LABVIEW VI and I must open and close VISA SESSION every times I must talk (and set) with instrument? What is the better way?
    Message Edited by Michelle1892773 on 02-22-2010 02:00 PM

    Something like this?
    I do have to say, i don't know what is happening in the false case of yours, but if nothing happens with the 100 that is wired to the shift register, once you enter the true case, the value in the shift register will always be great than "i". You might as well do what I have done then. However, if something does happen with that number in your false case, then keep it the way you have it.
    That being said, why is the condition there to see if it has looped 100 times before doing the visa write??
    Message Edited by for(imstuck) on 02-22-2010 04:45 PM
    Message Edited by for(imstuck) on 02-22-2010 04:46 PM
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    visa.PNG ‏13 KB

  • RS232 communicat​ion with cDAQ

    Hello,
    I am about to commence a project which will require my LabVIEW application to communicate with an RS232 device.  I am planning on using an Ethernet 4-slot Compact DAQ module, but can't see a way to connect through.
    Is this possible? Is there a C-Series module I can buy for RS232 comms?
    Dave 

    So you mention you have a ethernet cDAQ.  Would it then be possible to add an ethernet switch, and a Ethernet to Serial device?  I have never used one but it appears that a quick google search finds lots of modules that can take ethernet from an RJ45 and convert it to RS232 in a DB9.  Here are a few links.
    http://www.perle.com/products/RS232-to-Ethernet.sh​tml
    http://www.lantronix.com/device-networking/embedde​d-device-servers/xport.html
    http://www.bb-elec.com/Products/Ethernet-Serial-Se​rvers-Gateways/Ethernet-Serial-Device-Servers.aspx
    http://www.digi.com/products/faceted?keywords=prod​ucts/serialservers/
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Using existing c code for usb-hid communicat​ion in labview

    Hello,
    I want to write a simple temperatrue logger using labview and a external hardware which communicates over usb-hid. The external hardware uses an ATMEL 90USB162 µC and DS18B20 sensors.
    Link to the hardware:
    http://www.diamex.de/dxshop/USB-Temperatur-Sensor-​Tester-fuer-DS18B20
    The source of a a simple command line tool is available (see attachement), which reads out the temperature value of the connected sensors.
    Is it possible to include this c-code in the labview application to simplify the communication?
    Thanks a lot and best regards,
    Michael
    Solved!
    Go to Solution.
    Attachments:
    CMDLINE.zip ‏17 KB

    I'm not that experienced at this personally (in terms of compiling C code into DLLs), but I believe the process you need to go down to call your C code in LabVIEW is to compile the C code into a DLL which you can then call from LabVIEW using a Call Library Function node (or you can try to use the "Import Shared Library" wizard to automatically generate SubVIs).
    There's more information here:
    http://digital.ni.com/public.nsf/allkb/DCB90714981​A1F148625731E00797C33
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • How do I establish serial communicat​ion using LabView to two stepper motors using a motor controller​?

    I currently use an off the shelf motor controller to run my two stepper motors. It already has integrated a firmware software that sends commands to operate each motor. I would like to create an interface where I can send these commands using LabView. If someone can point me in the right direction I would appreciate it.

    Look at the examples for the serial VISA vi.  Something like Basic serial write and read.vi is a good starting point.
    Have you searched for a LabVIEW driver  at the NI LV driver network?   Asked the vendor?
    If you write your own driver with the serial VISA vis remember to open and configure the port only once at the beginning and close it at the end of your program. 
    Message Edited by Henrik Volkers on 07-13-2009 04:21 PM
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • OfficeJet 8500-A910 unable to establish two-way communicat​ion with the device

    I have an HP OfficeJet 8500 A910 installed a couple months ago.  On first install the HP software could communicate with it from two computers--one XP and one Win7.  Now I can scan to the locations I setup before and print from both computers, but when I try to run the HP software that was installed and working on either computer, I get "...unable to establish two-way communication with the device".  I have tried all the troubleshooting and downloaded the diagnostic tool.  I have disabled both the Norton and Windows Firewalls. 
    Any suggestions would be appreciated.

    I have a similar problem. Brand new HP Officejet Pro 8500A Plus, wire-connected to router.
    I am unable to print/scan/fax on my Windows XP when Symantec Endpoint Protection is turned on.  I have to disable it to be able to print/scan/fax. 
    I can do all capabilities with my Win7 computers.  This seems to be a Win XP related problem.
    I have checked for HP PML service...not listed.  I show HP Port Resolver and HP Status Server and PML Driver HPZ12 started.
    Doesn't bode well for keeping Viruses and other malware at bay.  Any suggestions?

  • Problems on serial communicat​ion with an instrument

    Hello everybody!
    I'm having some problems interfacing with an Optical Spectrum Analyser from Anritsu via RS232. It has a GPIB interface that works well already, but i need to make communication work thru the serial port. If i use Measurement and Automation, i can write and read the commands alright. But, if i use a self made Labview vi, it doesn't work at all.
    My vi consisted on:
    ViOpen - ViWrite - ViRead - ViClose
    Normally, i can know when the communication initialized alright with the OSA because the instrument enters a "communication state". When i use M&A, it enters on that state. When i use Labview, it doesn't.
    I used NI Spy to see what differences were between the M&A and Labview. Here is a list of comm
    ands issued by M&A:
    viOpen(...,"ASRL1::INSTR",...)
    viInstallHandler(...) *
    viEnableEvent(...)
    viWriteAsync(...)
    viReadAsync(...)
    viClose(...)
    My Labview VI issues the following commands:
    viOpen(...,"ASRL1::INSTR",...)
    viWriteAsync(...)
    viReadAsync()
    viWaitonEvent()
    viWaitonEvent()
    viWaitonEvent()
    viTerminate()
    viClose()
    Labview returns a "problems in serial read" error, but i know that the program doesn't even begins communication with the OSA. I suspect that the error lies on that viInstallHandle function, that is ran in the M&A routine but it isn't on Labview, but i can't find a way to make a vi that runs this function.
    Anyone can help??? I am really frustrated because i know that serial communication works, but on M&A only!!!
    Thanks in advance
    Felipe

    I consulted the document "VISA and Serial Communication" from ni.com. It
    was helpful. I'm using Labview 6.
    I don't know how to get Labview to tell me what it is doing at the level of
    viTerminate(), etc., so I suppose I may not be able to contribute anything
    to you, but I did get my serial port working in Labview recently.
    I used a loopback test, by shorting pins 2 and 3, to verify that Labview was
    successfully sending and receiving from the chosen serial port.
    I made a .vi that let me do one thing at a time, initialize, write, and
    read. This helped me realize that the instrument wasn't very fast at
    getting back to me, when I was nailing down what I thought was a receiving
    problem.
    To get Labview to use the serial port on this system I had to uninstall a
    graphics tablet driver that was taking control of the port on bootup. VISA
    would report that there was a problem until I did this. Maybe if M&A runs
    first your OS still thinks the port is being used and won't let Labview use
    it.
    Also, depending on what serial .vi I was using, I needed to verify that I
    identified the port correctly. Port 0 in Labview, in my case, corresponds
    to COM1, this is for the "compatibility" .vis. When using VISA serial .vis,
    I discovered that COM1 was identified by VISA as ASRL1. However the default
    resource name that came up when putting a VISA serial .vi into a diagram was
    ASRL2 which does not exist on this system. Manually changing the "2" to a
    "1" in the front panel solved my problems.
    Your M&A and Labview VISA seem to agree on ASRL1, which might indicate that
    isn't the problem.
    I used the VISA interactive control to tell me how VISA was doing
    identifying the ports and which ports it thought it could use during any
    given session. This is available on my system in the VISA program group. If
    there are yellow question marks on ports in this program, the port in
    question has wandered away.
    There are some examples and functions in the directory:
    Labview 6\vi.llb\instr\serial.llb
    and also in the directory
    Labview 6\examples\instr\simplserl.llb,
    as well as
    Functions --> Instrument I/O --> Serial
    and
    Functions --> Instrument I/O --> I/O Compatibility --> Serial
    Compatibility
    "Felipe Ferri" wrote in message
    news:50650000000500000004140100-1042324653000@exch​ange.ni.com...
    > Thanks for your comment, but i tested the serial read and write
    > functions that you used on your program and they didn't work...

  • VISA: Communicate​ion with "imar sensor " via serial port[

    Hello
    I have problem in communication. I have one sensor imar sensor that can be easily communicate in Hyperlink but if I send same command for example "show conf" it doesn't responses It is connected with rs232 in com port 1.  it will be nice if you give me some suggestion thanking you
    regards
    Solved!
    Go to Solution.

    Yeah I can't open that (needs to be 2010 or earlier - see my first post)
    Is 57600 baud rate the one specified in the manual for your device? This needs to be absolutely correct for the serial communications to work properly.
    "If anyone needs me, I'll be in the Angry Dome!"

Maybe you are looking for

  • IDoc Meta Data Problem

    Hello i am getting the following error not clear of what might be the cause. <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Call Adapter   --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlso

  • ON HOLD STATUS

    Does anyone know what the "on hold" status means when i check the status of my repair.

  • Mobile Facebook photo upload problem

    Everytime I try to post a video or photo via mobile facebook a message pops up saying that the photo cannot be uploaded at this time. It asks if I want to save this photo and try to upload it again later. Help, thanks..

  • Soa-infra failed to start due to deployment

    Hi While starting my SOA Server , i am getting the following error. But the server comes as Running , but in em console - soa-infra is shown as down Can any one help me in getting the details on how to remove the failed application from soa-infra , s

  • Form with key 2 not present (create organization)

    On a brand new installation of OIM 9.1.0.1, after logon as xelsysadm, I try Organization - Create but I get the following error: 2010-02-18 10:30:57,478 ERROR [XELLERATE.APIS] Class/Method: tcFormDefinitionOperationsBean/getFormFieldsData encounter s