Possible to use Labview DSC to Modbus over Lantronix using ethernet encapsulation?
Hi,
I'm currently evaluating LabView DSC 2009. I want to connect to a Modbus PLC system, which is rs232, connected via a Lantronix box. I have the Lantronix software installed for com port redirection. I set up a serial Modbus I/O server, and every works great.
I was also playing around with the demo of LabView OPC Servers, and noticed that instead of selection com2, I was able to select ethernet encapsulation, and directly type in the IP address & port of the Lantronix box, and it worked great as well.
However, I noticed that when I close things out using the serial connection, it still leaves the port open & the computer connected to the serial port (verified using the Lantronix Manager). If I use the ethernet encapsulation route, it closes everything completely (since it doesn't use the installed Lantronix software redirector).
I have another user who will occasionally need to connect to the PLC using ProWorx, over the same Lantronix box, using a different computer. This often requires me to manually close out & disconnect the port, unless using the encapsulation method.
My question is: Using the DSC Module (over Modbus I/O server), can I use ethernet encapsulation instead of having to manually/force close the com port?
Thanks,
Jacob
Hi,
As you noticed, there are differences between Modbus RTU, Modbus RTU/IP (encapsulated) and Modbus TCP. The first involves the use of a Com port on your computer and on the PLC. The second involves the use of a Device Sever (TCP Server) without using a Com port on your computer and not on the PLC. The third involves Ethernet media only.
Using Modbus RTU encapsulated, your computer keeps com ports free. So, you don't have to open and close the com ports. This task is performed by the Device Server (between PLC and PC).
I have been using Share variables to read/write from/to an array of singles with success, and definetly it's better than doing it at single read/write.
You will find tha NI OPC Servers and KepServer are the same software.
Now you can read/write from/to an array
All this process is performed without using PC's Com Ports
Similar Messages
-
Can i communicate with labview, using ethernet or seriel modbus.
Is it possible to communicate with a i/o module and labview. I can communicate with ethernet, canbus(cscan, devicenet), rs232(modbus).
What is the easiest solusion.
Is it necessary to buy PC-cards for the communication or have only to download some drivers.
ThxHello,
To communicate with a CAN/DeviceNET bus you will need an interface card in your PC. NI has such cards along with LabVIEW VIs:
http://sine.ni.com/apps/we/nioc.vp?cid=1329〈=US
http://sine.ni.com/apps/we/nioc.vp?cid=1311〈=US
To communicate with Modbus, you will NOT need any special cards but you do need software drivers for it (you'll obviously need an Ethernet card for TCP/IP and Serial port for RS232). There are several options for these drivers, however:
1. Write your own driver VIs. You'll basically implement the Modbus protocol in LabVIEW. Modbus is a simple and open protocol.
2. Try to search the Net for such existing VIs. I believe someone has already written such Modbus VIs.
3. Use the Industrial Automatio
n OPC Servers suite from NI:
http://sine.ni.com/apps/we/nioc.vp?cid=4584〈=US
4. Use any third-party OPC Server for Modbus.
NOTE: in case you opt 3 or 4 above: though you may use DataSocket in LabVIEW as an OPC Client, you may want to consider LabVIEW-DSC which has a built-in OPC Client, and hence better support for OPC.
Hope this gives you some options.
Regards,
Khalid -
Hi
I am using LabVIEW DSC module as a OPC client. My Shared Variables are binded to automation system OPC Server via "OPC Client IO Server".
On the OPC Server side it seems that the every write commands comes like one item at time, not like grouped.
Now I have tested this with the NI OPC Server as server and KepServer and LabVIEW DSC IO Server as OPC Clients.
When I use the NI OPC Server : OPC Diagnostics there are different events messages when the update request comes from KepServer or LabVIEW DSC.
There are log files on attachements for both write events.
Attachments:
Data from the KepServer.txt 6 KB
Data from the LabVIEW DSC OPC Client.txt 18 KBHello Pentsi,
I have received confirmation (from the PSE in the US) that DSC doesn't support group writes
There however work-arounds that might provide a solution:
- The first solution I had in mind was like this. Update the 50 OPC items as fast as possible.
Then use a 51st item as synchronization OPC item to check/indicate if new data has arrived/has been set/is available.
So LabVIEW sets 50 OPC values as fast as possible. The 51st value becomes goes from false to true when the first 50 values are written.
When this (51st) value is true on the OPC server you can read out the first 50 values (from the non-LabVIEW side). When you've read out these values, then you can set the 51st value back to false (from the non-LabVIEW side).
In the meanwhile at the LabVIEW side you wait until the 51st value goes back from true to false.
When it becomes false, then you write again those 50 values and afterwards set the 51st synchronization value from false to true.
And this keeps on going...
Note: Keep in mind that you only have to monitor one event at the side of the Automation System OPC Server in this case (the 51st) and based on an event occuring over there you can just do a group read of the 50 others. Also keep in mind that the maximum rate (6500 updates per second) from inside LabVIEW with the DSC Module OPC client I/O server was also mentioned in this document (http://digital.ni.com/public.nsf/allkb/63C043359F1E12538625726E005BCD0C?OpenDocument).
Could this be a possible solution for your problem?
If you're using one of the OPC servers in this list (http://zone.ni.com/devzone/cda/tut/p/id/6417#toc19), then you can also use NI OPC Servers to update tags instead, which supports a faster update rate.
Kind Regards,
Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
CLD, CTA
If someone helped you, let them know. Mark as solved and/or give a kudo. -
What are the steps necessary to create an EXE using LabVIEW DSC ?
I´m developing an application in LabVIEW 7.0 using the LabVIEW DSC 7.0 Toolkit. I´d like to know the steps I should take to cretae an EXE for this application.
There is information regarding building a LVDSC .exe at
http://zone.ni.com/devzone/conceptd.nsf/webmain/2f7cf918f3b412db86256a1c006af25f?OpenDocument
It's from the time of LV6, but contains some useful info.
=====================================================
Fading out. " ... J. Arthur Rank on gong." -
Hi i am trying to see if I can use sys exe .vi to execute Mysql commands. Is it possible to use without toolkit?
regards,
ClementHi. I know there's a free toolkit that use ADO. But the problem is that my company not wish to splurge on the purchase of MS database server or alikes, but prefer to run MySQL. So can I do the labview with the MYSQL only?
Clement -
I want to use ETHERNET and not PROFIBUS to communicate and I think you can do that with only the applicom software SW-1000ETH. You must just have an ethernet card on your PC. So, you could use a notebook with an
ethernet card. You can also use Applicom PCI2000ETH for better performance.Hi,
You might be able to get the configuration listed above working as long as you can get from Siemens/Applicom or any other third party provider a OPC Server that communicates with the S7-300. Since LabVIEW DSC is a OPC client, you would be able to establish connection.
The National Instruments driver for the S7-300 (Containnned in the product called "IA OPC Server CD") does not support communication through ethernet directly, you would either have to have a Profibus board or use a serial port with a Siemens HMI Adapter.
I hope it helps
Best Regards
Andre Oliveira -
Interfacing PLC siemens S7_300 and LabVIEW DSC using siemens OPC server
Does anyone already interface Siemens PLC S7_315-2-DP with LabVIEW DSC using Siemens OPC server?
Is that a good solution? Are there any hidden problems?The use of an OPC Server is the way to go when dealing with LV. If you already have Siemens OPC Server then use that. Otherwise, NI has a product called IA Severs/Lookout Protocol Drivers (LPD), which has a large selection of drivers for PLC's. After configuring the driver, LPD is the OPC Server for the device.
-
Is it possible to use a Linksys By Cisco Wireless-G Internet Home Monitoring Camera with Labview
I was wondering if it is possible to use a 'Linksys By Cisco Wireless-G Internet Home Monitoring Camera' with Labview
http://www.dabs.com/productview.aspx?Quicklinx=53PX&SearchType=1&SearchTerms=network+cameras&PageMod...
I wan't to be able to get the raw data from the camera and analyse it.
Message Edited by Jam.hall on 03-25-2009 09:03 AM
Solved!
Go to Solution.Hi Jam.Hall
I am somewhat hesitant to say you will be able to use this camera with LabVIEW. It all depends on what functionality you are wanting to utilise on the camera, and how much video you want to analyze.
- If you want to use the wireless functionality, I am concered that the on board web server will compress and embed the video stream. I do not beleive this is something we can access in LabVIEW.
- If you wish to use the ethernet connection, if it is Gigabit Ethernet, then you should be able to use our IMAQ for GigE driver to bring in the feed, but looking at the specs for the camera, I'm not sure that this is an option.
- My other suggestion might be to utilise the record video stream function that the camera has. Depending on the format of the video file, you may be able to read in the recorded file and analyse it in LabVIEW.
If you could explain the purpose of your application, and what you would like to achieve with the system, there may be more suitable products that you can use.
Kind regards,
Sheela Sujeeun
Applications Engineer
National Instruments UK -
Is it possible to use an IrDA protocol with LabVIEW 8.2.1 in DSP BlackFin?
Dears,
I'm building a project to communicate a DSP BlackFin 533 with a Palm E2 Tungsten between IrDA Protocol. The packaged LabVIEW installed in Palm allows to use IrDA protocol, but I don't know if the packaged for BlackFin DSP allows or not.
Is it possible to use an IrDA protocol with LabVIEW 8.2.1 in DSP BlackFin?
Regards,
Renato - RPSOpPss ...
Sorry !!!
Attachments:
IrSerial.zip 11 KB
IrSerial1.zip 11 KB -
Has anyone tried to use LabVIEW as a modbus slave with a PLC master?
Hello. I use modbus extensively with PLCs as slaves. I am finding that it might be benificial to make the PLCs be the master in my next application. I have tried this with the MB Ethernet Example Slave.vi without any luck. Can anyone help?
I am running LabVIEW 8.6 on Windows XP with AutomationDirect PLCs using ethernet communication.
Thank you in advance for your help.
Ron Deavers, CLDHi
There are two options to connect to a Modbus device. Either the Modbus IO Servers (found in the NI LabVIEW Datalogging and Supervisory Control Module) or the free Modbus Library.
FLAsh
National Instruments
Applications Engineer -
Is there possibility to use the front panel without installing Labview?
Hallo,
i have two small questions:
1- Is it possible to use the front panel of a labview software without needing to install Labview itself? i mean something similar to the "power point viewer" which can view the Power Point files without installing the microsoft office.
2- In an intensity Graph, how can one change the color?
thanks.
Solved!
Go to Solution.Hi,
Regarding your questions
1)You need to have Labview and Application builder installed on your machine. If you have that you can make an stand alone application (EXE) and then you can deploy it on systems that does not have LabView and can view it, However you will not be able to see the block diagram.
Here is a link that explains how to do so
http://zone.ni.com/reference/en-XX/help/371361A-01/lvhowto/exe_ex/
2) You can either do it by using propery node or marker method. The following link explains it
http://digital.ni.com/public.nsf/allkb/1ADFF221E27F5B5886256E6F007C7B58?OpenDocument
Hope it helps.
Regards,
Fawad
Fawad Nisar
Applications Engineer
National Instruments UK & Ireland -
Possible to use scanner over network (without sane server)?
Hi,
I'm completely new to the subject of printers and scanners.
My configuration is the following: I got a HP OfficeJet 6500 in the basement, which is connected to a network switch, which my laptop (and a router and several other computers) is connected to.
Thanks to CUPS, printing is no problem. I got it to work within no more than 10 minutes (YEAH! I bet no Windows user could have done that faster and easier!)
Now I'm trying to get the scanner function to work.
My question is this: is it possible to use that scanner in the basement with my laptop and NO ADDITIONAL sane server directly connected to it?
Do I need a scan server which is DIRECTLY connected to the scanner (e.g. via USB)?
The only information I found on that topic was how to access a working scan server over the network, but this is NOT what I want to do.
Thanks for helping me with this.
Edgar
Last edited by EdgarButan (2010-05-02 14:13:43)Thanks, I didn't think so... but a misinformed sales rep suggested it was.
If I just want to tie CUCM and Lync together, do I need anything special (UC Integration for Lync?) or is it possible to do it with just a SIP interface? -
LabVIEW DSC 2011 / OPC Client IO Server / Write by OPC Group...
Hi
I am using LabVIEW DSC module as a OPC client. My Shared Variables are binded to automation system OPC Server via "OPC Client IO Server".
On the OPC Server side it seems that the every write commands comes like one item at time, not like grouped.
Now I have tested this with the NI OPC Server as server and KepServer and LabVIEW DSC IO Server as OPC Clients.
When I use the NI OPC Server : OPC Diagnostics there are different events messages when the update request comes from KepServer or LabVIEW DSC.
There are log files on attachements for both write events.
Attachments:
Data from the KepServer.txt 6 KB
Data from the LabVIEW DSC OPC Client.txt 18 KBHello Pentsi,
I have received confirmation (from the PSE in the US) that DSC doesn't support group writes
There however work-arounds that might provide a solution:
- The first solution I had in mind was like this. Update the 50 OPC items as fast as possible.
Then use a 51st item as synchronization OPC item to check/indicate if new data has arrived/has been set/is available.
So LabVIEW sets 50 OPC values as fast as possible. The 51st value becomes goes from false to true when the first 50 values are written.
When this (51st) value is true on the OPC server you can read out the first 50 values (from the non-LabVIEW side). When you've read out these values, then you can set the 51st value back to false (from the non-LabVIEW side).
In the meanwhile at the LabVIEW side you wait until the 51st value goes back from true to false.
When it becomes false, then you write again those 50 values and afterwards set the 51st synchronization value from false to true.
And this keeps on going...
Note: Keep in mind that you only have to monitor one event at the side of the Automation System OPC Server in this case (the 51st) and based on an event occuring over there you can just do a group read of the 50 others. Also keep in mind that the maximum rate (6500 updates per second) from inside LabVIEW with the DSC Module OPC client I/O server was also mentioned in this document (http://digital.ni.com/public.nsf/allkb/63C043359F1E12538625726E005BCD0C?OpenDocument).
Could this be a possible solution for your problem?
If you're using one of the OPC servers in this list (http://zone.ni.com/devzone/cda/tut/p/id/6417#toc19), then you can also use NI OPC Servers to update tags instead, which supports a faster update rate.
Kind Regards,
Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
CLD, CTA
If someone helped you, let them know. Mark as solved and/or give a kudo. -
I am currently programming in Labview 6.1 with the Datalogging and
Supervisory Control module to transfer 720 floating point numbers to a
SLC505 Allen Bradley PLC (with ethernet) using RSLinx as an OPC server. I
have found that using the Datasocket Write takes about 30 - 40 seconds, and
making the tags and writing to them takes about the same amount of time. Is
it possible to transfer this data faster?
Thanks,
Michael Thomson (Surcher)Cyril,
I was just experimenting with different ways to transfer the data from the
computer to the PLC. In the past I have built large tag databases with
specific tag names. This made the code rather cumbersome when you wanted to
write to a large group of tags with descriptive names. I was just using
datasocket write as a way to transfer the data to the plc using code to
build the url and without having the DSC engine running. I have found that
importing the tags right from the tag configuration editor with the names
being simply the PLC addresses and then accessing them with the tag write is
considerably faster (under 5 seconds). I can then build the names in an
embedded for/next loop and change them to a tag name before I write to each
one. The appli
cation is a user interface that allows the machine operator
to pick what kind of arch to put on cabinet door part. With the selections
chosen I calculate the servo moves and download the data to the PLC.
Thanks for the link!
Michael Thomson
"Cyril" wrote in message
news:[email protected]..
> Michael,
>
> I am a little bit confused about the configuration here and the
> programming here: why are you using Datasocket Write if you are using
> tags? Are the 720 floating numbers written to 720 different I/O
> Points(registers). If so this shouldn't be that slow especially with
> DSC
> I would strongly encourage you contact the support at National
> Instruments for LabVIEW DSC, either by phone or e-mail and give a
> detailed description of the issue:
> www.ni.com/ask, and communication method phone NI or e-mail NI. -
Hi,
I would like to develop a application with the TPC-2212 (Touch panel computer) and a CompactDaq System (NI9237 - 4-Channel, ±25 mV/V, 24-Bit Simultaneous Bridge Module).
Is it possible or I should use a panel pc?
Thanks.
Solved!
Go to Solution.This thread is a bit old, but I thought it would be worth while responding (as I was wondering the same thing a day ago).
The answer to the OP's concern(s) is YES, you can install DAQmx on your Windows 7 embedded TPC-2212 touch panel device while connecting to your cDAQ hardware. YES, it will function (depending on your memory constraints). DAQmx BASE is NOT a requirement (which, to me, seems very ambiguous if you're referring to NI's documentation for the LabVIEW Touch Panel Module).
My confusion began when it seemed using the Touch Panel Module for the 2212 was a requirement, not an option. If one proceeds with this assumption, then referring to the TPM documentation:
http://www.ni.com/pdf/manuals/371940d.pdf
NOTE: this link above is to an older version, but the content itself (also installed locally with the TPM in \\manuals\TPC_Getting_Started.pdf) remains relatively unchanged.
Section "Installing Additional Tools" clearly states "You must install additional tools on the target depending on the functionality you need." Immediately following is the installation procedures for DAQmx Base. You'll see the same statement in the LabVIEW help files that get installed with the TPM on your development machine. Nowhere does it state, for Windows Embedded, that it's possible to use DAQmx itself.
Because DAQmx is a bit of a heavy weight, you'll probably want to go with the Runtime (with MAX) as I did:
Search for 'NI DAQmx Run-Time Engine - Configuration with MAX'. I would have posted a link, but NI's site was down for maintenance at the time of this post.
Connect to your 2212 over a network connection (I just used a cross over cable and connected directly). Create a shared directory and copy the downloaded installer on over - install. You could, of course, download direct if your 2212 is already networked with web access.
I have my test station application running beautifully with an attached (USB) cDAQ chassis loaded with a variety of modules.
I hope this post is as useful for somebody else as it would have been for me.
-Chris
Kod Integrations, LLC
Sr Software and Automation Engineer
Certified LabVIEW Architect
Kod Integrations, LLC
http://www.kodintegrations.com
Maybe you are looking for
-
Error while creating project through import.wdl
Hi We are having issues creating project using the import.wdl. We are able to create content administration and merchandising projects though. We are getting the following error while creating a programatic import project through import.wdl [12/8/13
-
Smart cover not working properly after upgrade to iOS7
Since I upgraded my Ipad mini to iOS7 the smart cover stopped working as it was working before. Usually, when I closed the cover the ipad went to sleep and when I opened it the ipad woke up. Is it another problem of iOS7 ? Is there any solution?
-
Hi all, I am calling an ABAP program in an iView in the portal. The program has an function to download to Excel using function module XXL_SIMPLE_API. In the portal this results in a 'CNTL_ERROR' exception in program CL_GUI_FRONTEND_SERVICES. I have
-
hello, i am running my google mail page in firefox and for some reason, when i use the chat/talk, i am unable to tye into the message box to send, people can send to me, and i receive theri messages, i just cant reply, they see me as on line, also, i
-
Saving image as? is not showing Gif, PNG or JPeg
Hello Firefox Support, Made up a video to show the problem http://www.richvsplace.net/firefoxsupport.mp4