LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read several real data with single Ethernet ip tag readsub vi for allen bradley compact lagix

Hi,

I am expecting to read multiple real data tags from compact logix plc by using ethernet/ip read tag sub vi.

Is it possible.

If yes, Please suggest me the way to proceed.

Thank you  in advance.

0 Kudos
Message 1 of 7
(4,960 Views)

Here is my VI and screen shot.

Download All
0 Kudos
Message 2 of 7
(4,959 Views)

Is the tag on the PLC setup for multiple Real values?  If so, then you should already be getting all of the data.  It is now just you understanding how to use an array.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 7
(4,951 Views)

No,tags were not created for arrays in ladder logic.Smiley Wink

Anyway ,can't we create array with tag names in labview to read the tags data?

Instead of creating array tags in ladder.

I appreciate your solution to create a array tags in ladder logic.

Thank you so much for your support.

 

 

0 Kudos
Message 4 of 7
(4,936 Views)

@sridhar..reddy wrote:

Anyway ,can't we create array with tag names in labview to read the tags data?


That would be your alternative.  Have an array of strings holding the tag names and then use a FOR loop to read each tag individually.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 7
(4,917 Views)

Hi,

Thank you very much for your support.

I got it.

I created arrays in ladder logic and i created an array of tags to read and then followed by a for loop then outputs as an array .

i am excited.

Thank you very very much.

0 Kudos
Message 6 of 7
(4,905 Views)

Hi, but what if I want to read multiple tags with a single TCP and Ethernet/IP connection. This would be helpful because I don't have access to the PLC program and if I read each tag separately (even by a for loop in LabView), the reading time of for example 1000 real data tags gets too big (allmost minutes). 

 

Please help me how to read in labview multiple tags with one single Ethernet/IP request.

 

Thank you!

0 Kudos
Message 7 of 7
(4,821 Views)