02-23-2012 02:19 AM
Hi,
Is there a quick and easy way to access the data queues of a micrologix1400 PLC using labview? I have my OPC server up and running and I have no issues to query some individual data from the PLCs, but I have no clue how to access the data queues which store the most relevant measurement data.
I know this is not a labview specific question, but since I'd like to process the data in labview and there might be some experts out there I posted it to here.
thanks,
i-
02-23-2012 03:37 PM
If you are asking what I think you are asking then I believe that the OPC server allows for the same connections at what I did in my code. I do not use the OPC server but I think I remember that you have the same connections.
If you tell it the file number the element to start on and how many words to read you should get everything. Keep in mind that you will have a limit of reading 124 word per read so you will have to do three reads if you want to read the whole file.
Does that answer your question?
02-24-2012 03:13 AM
Hey Tim,
thanks for answering. Actually there is a broken image in your reply so can you repost it plz? I have the impression that these data can not be queried by the OPC server. Do you think you can post your code which you believe did the thing I am looking for?
thanks,
i-
02-24-2012 06:30 AM
No I can not post my code. It took many hours of learning and development to devlop my own. NI has a version of software to talk to Allen Bradley controller if you do not have the time or expertise to do your own. Here is a link to the tool kit.
http://sine.ni.com/nips/cds/view/p/lang/en/nid/209676
You can also look on LAVA for help in this they have some code that you can use for directly talking to the PLC.