From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Industrial Communications

cancel
Showing results for 
Search instead for 
Did you mean: 

Read/Write Allen Bradley Tag Values using Labview (Linux and Windows.)

Just finished up writing some wrapper vi's that call on the libplctag sdk.  Did some very basic testing in Labview for Linux, and Windows. 

Hope it can help some others.

https://github.com/dirtyb15/libplctag-labview

 

 

0 Kudos
Message 1 of 10
(5,110 Views)

Delighted to test your project from Linux and Windows, I currently have LabVIEW_2016 for both operating systems, I would particularly like to ask if you can share the project in LabVIEW_2016 version.
I could assist with tests on AllenBradley Micro820 / 850 PLCs, and AB PowerFlex525 frequency inverters, since I have that hardware.
My cordial greetings,

0 Kudos
Message 2 of 10
(4,901 Views)

Sure I won't be able to convert it till Monday when I have access to my development system

0 Kudos
Message 3 of 10
(4,888 Views)

Okay, i added a zip file with the vi's saved for 2016.

Message 4 of 10
(4,856 Views)

Thank you for uploading the LabVIEW files.  I am new to labview so just trying to get this all installed correctly.  Can you tell me how I need to set this up for labview to work sending data back and forth.  Do I need to have the whole file in the labview PC?

 

Also, when converting a string from LabVIEW to a REAL number in PLC what is the best way to do so?  

 

Thanks.

 

I apologize for the NOOB questions.

0 Kudos
Message 5 of 10
(4,515 Views)

Not sure what you mean by the whole file? 

 

There is a simple example that shoes how to read and write a tag, i would start there.

 

To convert a string to real, there are existing labview functions to do that, look in the string/number conversion pallet.

 

0 Kudos
Message 6 of 10
(4,513 Views)

I tried the simple read and write.  I was able to read but not write. So, I tried it the way I was originally doing it and I get the same 0.0, after I try to write.

 

 

Write to plc.PNG

0 Kudos
Message 7 of 10
(4,506 Views)

Were there any errors when you ran the simple read write? If so, what were they?

0 Kudos
Message 8 of 10
(4,496 Views)

I was wondering if you could also add for LV17?  I am new to PLCs but I am having to read and write tags from/to an AB 5069.  Can you explain each of the "PLC attributes" cluster elements used in Create_Tag.vi? Particularly the path, element size and element count.

0 Kudos
Message 9 of 10
(4,466 Views)

You should be able to save the 2016 vi's for 2017?

 

For Path, Element Size, and element count you really should read through info at https://github.com/kyle-github/libplctag , the creator of the sdk.

Path is basically where on the backplane physically the controller is. Element size, is just the size of the tag in bytes, and element count is how many elements in the tag if it is an array.  Make sense?

 

Working from home, i finally have some time to start actually using these vi's in my own project, and i should have some updates soon.

 

0 Kudos
Message 10 of 10
(4,460 Views)