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

Investigate type alias bugs and figure out desired behavior for basic types #314

Open
ZLLentz opened this issue Jun 20, 2023 · 0 comments
Open

Comments

@ZLLentz
Copy link
Member

ZLLentz commented Jun 20, 2023

See discussion in #311

After that PR, pytmc picks up on and happily tries to make records out of aliased types. That is, if you have a type definition that is just a thin alias on e.g. a user defined and pytmc'd struct, it will create the relevant records now.

Here's the twincat docs page on type aliases: https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_plc_intro/3928317323.html&id=

Pytmc here still doesn't quite work for built-in and basic types. For example, pytmc will now know to make records out of pragma'd AMSNETID instances (ARRAY[0..5] OF BOOL) but will fail to figure out which record should be built.

There's some discussion in the linked thread about what record to build and how to accomplish this.

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

1 participant