Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@emourzi1
Copy link

pycomm3.cip.data_types.DataType description states that attributes property is
"List of names for each attribute in the structure. Does not include internal tags not shown in Logix, like the host
DINT tag that BOOL attributes are mapped to."

However, the current code shows hidden attributes for AOIs and UDT, where this is not happening when using Logix Designer.
Proposed change will show only visible attributes. I followed the CIP spec that describes the style bytes that are returned from the controller, two bytes for each template member, and made the change to exclude them. internal_tags property still shows all structure attributes regardless of the visibility status. The tests passed with the exception of the test_demo_plc.py since I have a different controller and another version of Studio 5000.

Unfortunately, I am not able to use the develop branch as described in the "contributing guidelines" as I do not have the permission to create branches in the base repository.

@ottowayi ottowayi changed the base branch from master to develop July 25, 2022 13:35
@ottowayi
Copy link
Owner

ottowayi commented Jul 25, 2022

thanks for this, I just have a couple questions. What spec are you referring too? I'm not seeing the same information in the Data Access Manual, but I could just be miss reading it too. And can you undo the couple of formatting/whitespace changes? I use black for formatting, although I'm not the biggest fan of the whitespace it adds to slices.

I'll do some testing with this this afternoon and get it merged soon. Also, I changed the target branch to develop. Usually I create a new one right after I publish a release, but I must've forgotten to do that.

Copy link
Author

@emourzi1 emourzi1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed some spaces based on differences in formatting tools

@ottowayi
Copy link
Owner

Why did you close this PR? I was starting to review the changes this morning, sorry I've been really busy and finally got some time to work on it. If what I have currently isn't correct then I would like to include your fixes

@emourzi1
Copy link
Author

emourzi1 commented Jul 27, 2022 via email

@ottowayi
Copy link
Owner

well shit, I understand though. I will not include these changes.

@emourzi1
Copy link
Author

emourzi1 commented Oct 11, 2022 via email

@emourzi1
Copy link
Author

emourzi1 commented Oct 11, 2022 via email

@emourzi1
Copy link
Author

emourzi1 commented Oct 11, 2022 via email

This pull request was closed.
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

Successfully merging this pull request may close these issues.

3 participants