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

Scanning Members of UDT #125

Open
AndrewStuhr opened this issue Apr 20, 2020 · 2 comments
Open

Scanning Members of UDT #125

AndrewStuhr opened this issue Apr 20, 2020 · 2 comments

Comments

@AndrewStuhr
Copy link

I was reading over issue #45 : "reading a tag of type UDT". When dmroeder mentioned that there's never really been an intention to read the entire contents of a UDT, was that referring to reading the values in a UDT or the member names in the UDT (or both)?

I'm hoping to read the names (but not values) of a UDT's immediate children. Is there any way to do this without an l5x file? If not, do you know what it would take to modify pylogix to do this?

@ottowayi
Copy link

I'm not sure that status of reading nested structures in pylogix, but I have what you're looking for in pycomm3. It will give you both the fully nested structure of a UDT as well as allow reading of the entire UDT too (assuming no External Access = None attributes). If that functionality doesn't exist, you may be able to reference my code to get it working in pylogix as well.

@AndrewStuhr
Copy link
Author

Sweet! I was able to read UDT contents with pycomm3. I'm still curious what the status is with PyLogix and/or what it would take to add this functionality.

I'm going to start a separate thread in the pycomm3 issue's section.

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

No branches or pull requests

2 participants