Jimbo29 Posted April 14, 2008 Report Share Posted April 14, 2008 Hi, My project requires an OPC server to communicate with a Direct Logic PLC (DL230). I am unable to locate any tutorials on how to do this. I have all the required programs.....Measurement and Automation, Industrial and Automation OPC server 5.1 and Labview 8.5. Basically I am looking just to control outputs on the PLC with toggle switches; just something easy for now. Any insight would be appreciated. Thank you! My email address is genroymad@yahoo.com Quote Link to comment
Yair Posted April 14, 2008 Report Share Posted April 14, 2008 I haven't really used it much, so I don't remember the details, but this might help. It's probably wrong, but it's how I remember it: Start the IA server software. Create a new file (I don't even remember the extension). Add your device to it. I think this is done through an option in the edit menu. When you select the option, you get a list of supported devices. You then need to select the one matching yours (I think the DL205 should work for you) and then you get the option to configure its exact settings (port, baud rate, protocol settings, etc.). After you do that, you need to save the file and then, if memory serves, you need to connect to it using the tag engine (at least that was in 7.x, it might work differently in 8.x with the variable manager). Quote Link to comment
Jimbo29 Posted April 15, 2008 Author Report Share Posted April 15, 2008 I haven't really used it much, so I don't remember the details, but this might help. It's probably wrong, but it's how I remember it: Start the IA server software. Create a new file (I don't even remember the extension). Add your device to it. I think this is done through an option in the edit menu. When you select the option, you get a list of supported devices. You then need to select the one matching yours (I think the DL205 should work for you) and then you get the option to configure its exact settings (port, baud rate, protocol settings, etc.). After you do that, you need to save the file and then, if memory serves, you need to connect to it using the tag engine (at least that was in 7.x, it might work differently in 8.x with the variable manager). Thanks Yen. Yeah, that much I know, but it's not letting me go any further after (what you said in step 4) because it wants a PLC address. What the heck is a PLC address and where can I find it? lol Quote Link to comment
Yair Posted April 15, 2008 Report Share Posted April 15, 2008 Usually, devices on a network (e.g. an RS 485 network) have an address identifying them. In this case, I assume the address is either a Modbus address or an address for a proprietary protocol. The address itself is defined in the device, but exactly how depends on the device and the protocol. Looking through the documentation should help. In any case, using 01 usually works. :laugh: Quote Link to comment
Rolf Kalbermatter Posted April 16, 2008 Report Share Posted April 16, 2008 QUOTE (Jimbo29 @ Apr 14 2008, 03:13 PM) Thanks Yen. Yeah, that much I know, but it's not letting me go any further after (what you said in step 4) because it wants a PLC address. What the heck is a PLC address and where can I find it? lol DirectNet devices have several possibilities to be addressed. Two of them are: either by the IP adress of the PLC or by it's PLC address. Both are assigned by the software that comes with those devices. The IP address is obvious, the PLC address is typically a number between 1 and 255. Communication happens over the proprietary (although specifications can be requested) Ethernet protocol from Host Engineering Inc. using UDP. I did develop a VI library implementing that protocol natively in LabVIEW based on the UDP primitives and it is downloadable from the website of Host Engineering at http://www.hosteng.com. Some time ago I did improve the version posted at the hosteng website a bit and sent them an update for it but it hasn't made it on their website yet. It fixes a bug in the protocol implementation that did not make itself appear when using the built in TBase-10 Ethernet interface but would fail when the connection was done through an ECOM100 plugin device. I've attached that version here, which is LabVIEW 7.0 or higher. Download File:post-349-1208242588.zip Rolf Kalbermatter Quote Link to comment
Jimbo29 Posted April 18, 2008 Author Report Share Posted April 18, 2008 Yen, thanks. Now that you gave me that remember. Duh, 1 for the PLC addy. Thanks, again.....That takes care of part of my problem. Now I need to establish communication through Labview to my PLC. Like Data binding and data socket in Labview so Labview recognizes the path to the PLC.........New territory for me. If you remember that would be a huge push. Thanks, rolf I appreciate your input. But I want to keep it simple. Although I have taken an in depth course of Labview, I'm not quite getting what you are saying, sadly. Anyway, I have downloaded your file and will eventually take a look at it, but it's not what I am looking for at the time. Jim Quote Link to comment
Yair Posted April 18, 2008 Report Share Posted April 18, 2008 You can read tags from an OPC server either by using Datasocket or by using the DSC VIs. Searching for OPC in the example finder and on NI's site should provide some results. I suppose it's also possible you can bind a control directly to an OPC tag, but I'm not sure about that one. Binding is done by right clicking the control and selecting the relevant option from the data operations or advanced menu, I can't remember which. Quote Link to comment
Jimbo29 Posted April 21, 2008 Author Report Share Posted April 21, 2008 Thanks Yen! I think I found out my problem. I do not have an OPC lookout driver installed when I try binding the controls of the PLC with IA OPC Server 5.1--sometimes not having the right stuff can be a headache. Not to mention, being able to obtain the stuff you need without breaking the bank. Anywho, I did notice an DsOPC server that comes with my Direct Logic software that I was able to bind with some toggle switches, so I might just take this route instead because the OPC client is easier to obtain. It appears the server is communicating with Labview, but not with the PLC. I guess there are usually 4 parts to this type of system, and don't quote me on this, in order for the system to work. The application; the OPC server; the OPC client and, of course, the PLC or whatever. I think I only have 3 parts....Yes this will end up driving me insane before you know it, but I have learned a lot. I just hope I learn it completely. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.