annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

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 Compliments
Message 1 sur 4
2 732 Visites

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 Compliments
Message 2 sur 4
2 719 Visites

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 Compliments
Message 3 sur 4
2 711 Visites

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.

 

https://www.ni.com/en-us/shop/product/ni-industrial-communications-for-ethernet-ip.html

 

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 Compliments
Message 4 sur 4
2 706 Visites