LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing micrologix data queues

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-

 

0 Kudos
Message 1 of 4
(2,335 Views)

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.

 

Example.png

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?

Tim
GHSP
0 Kudos
Message 2 of 4
(2,322 Views)

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-

0 Kudos
Message 3 of 4
(2,314 Views)

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.

Tim
GHSP
0 Kudos
Message 4 of 4
(2,309 Views)