03-23-2006 11:16 AM
03-23-2006 02:53 PM - edited 03-23-2006 02:53 PM
Well I see, in rereading your post, that you have some comm with the PLC so most of my message is not needed. If you are reading you should be able to write if you have the right "URL" spec'd. Which example have you been using, as I state in the body of this post the a modified "Multiple OPC Items Monitor", where I added an "Datasocket Open Connection.vi" set to "write" and then an event structure that wrote values if the UI's values changed which worked pretty well. Did them on the fly while at my customer, doing a proof of concept demo that LabVIEW could talk to his PLC. Of course it was the second trip, after getting an AB-Rockwell USB-RS485 adapter (customer paid for it, don't know the $)
Hi,
There have been a few discussions regarding communicating with RSLinx on this forum. Run a search with the terms RSLinx, OPC, LabVIEW. There are a number of things to watch for. First, you need to have the full RSLinx, not RSLinxLite, or whatever it is called. Secondly, how are you physically connecting to the device that you're trying to talk too? I recently fought with trying to talk over a serial port, to be told by a AB-Rockwell tech support guy that, "their drivers won't talk to a USB-RS232 adapter, may not talk to a built in serial port in OS above Windows98 (!!!)". There was a slight variation on the first part, they can talk to a USB-485 adapter that they sell. Then you need to make sure that the RSLinx is configured correctly (there is a doc on the NI site that helps for this). After all this I was able to use the basic example of multiple OPC items that ships with LabVIEW to do basic communication, writing to and reading from tags on the PLC I was working with.
Good Luck,
P.M.
Message Edited by LV_Pro on 03-23-2006 03:59 PM
03-23-2006 10:16 PM
Graham_D wrote:... Are there any simple examples or writing to RSLinx OPC that someone could point me to please.
Graham,
Last year, Andrew_Russell posted a few Datasocket URL's that he found worked for block reads/writes of booleans and floats from an AB-PLC5/RSLinx. You can find them here
03-24-2006 03:20 AM
03-24-2006 06:43 AM
@Graham_D wrote:
.... I was hoping there would be a similar VI ''DataSocket Write Double.vi' that I could use.
There's a DataSocket Write Double.vi in dataskt.llb (... \LabVIEW xx\vi.lib\platform\dataskt.llb).
03-24-2006 06:58 AM