Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to read External Access of Tags and Usage of UDTs? #426

Open
JulZimmermann opened this issue Jun 29, 2023 · 5 comments
Open

How to read External Access of Tags and Usage of UDTs? #426

JulZimmermann opened this issue Jun 29, 2023 · 5 comments

Comments

@JulZimmermann
Copy link

JulZimmermann commented Jun 29, 2023

Hello,

is it possible to read the External Access (Read/Write, Read Only, or None) of Variables and Usage of UDTs? (Input, Output, InOut, Local) of UDTs?

Tags in Logix Designer:
Tag

UDTs in Logix Designer:
UDT

Thanks!

@JulZimmermann JulZimmermann changed the title How to read Access Level of Tags and Usage of UDTs? How to read External Access of Tags and Usage of UDTs? Jun 29, 2023
@timyhac
Copy link

timyhac commented Jul 4, 2023

This is not exposed in libplctag.

Quickly browsing the Rockwell documentation there was some info on this:

@JulZimmermann
Copy link
Author

Hi.

I looked at pages 39 and 48 of the documentation

If I understand correctly, the information I wanted to access is not available via the Get_Instance_Attribute_List (0x55) and Get_Attribute_List (0x03) services.

Thank you anyway!

@joed74
Copy link

joed74 commented Jul 5, 2023

Maybe it is accessible via Get_Instance_Attribute_List (0x55) and Attribute 10:

grafik

Source: https://docs.pycomm3.dev/en/latest/_modules/pycomm3/logix_driver.html#LogixDriver.get_tag_list (scroll down to function get_instance_attribute_list_service)

@kyle-github
Copy link
Member

Thanks for the tip. This looks interesting. I wonder if just always requesting attribute 10 will work? Each attribute has a separate status response, so it might work as long as we can see that asking for attribute 10 fails on some systems and the others succeed.

I wonder why the pycomm3 author is pulling attribute 6? I found attribute 8 by experimentation.

@tomatac
Copy link

tomatac commented Sep 13, 2023

It would be really nice to be able to read tags that are based on UDTs.
I am curious, what is the currently the best practice on that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants