-
Notifications
You must be signed in to change notification settings - Fork 106
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
WIP testing-mapping #25
base: master
Are you sure you want to change the base?
Conversation
Suggested changes to move data serialization and deserialization into Templates.
updates for defining, mapping, serializing, and deserializing arrays w/ examples
finished template class updates for controller, tag, and tag group class to support templates fixed other misc bug found added additional tests
Pull Request Test Coverage Report for Build 101
💛 - Coveralls |
update to run string through mapping generator
I can confirm this code base works for my application. You cannot use the Types.STRING as you get a type mismatch. |
Yes, I believe the built-in string type as well as user-defined string types are treated as UDTs. |
changed semi-colons to commas in examples
Fix error in UDT examples in README
AFIAK all non-atomic types (including arrays of atomic types) resolve to 32-bit alignment (except when including LINT in certain versions, in which case it's 64 bit alignment...not currently accounted for...). Can you send me the full udt l5x and the logix designer version to review? |
Alright, I made a stripped-down version which reproduces the error for me (String, Int, IntArr read fine, but the bools are misaligned as far as I can see) |
Perfect. Thanks. I'll dig into it this weekend. Just looking at how the UDT builds in logix, it looks like it offsets the way I expect it to it should be pretty quick to debug the source of the offset error in the parser. |
Any work on this? |
I haven’t really been keeping up with this. I have a local copy with these updates pulled in that I use, but I’m moving away from EtherNet/IP and towards EtherCAT and ADS, so I haven’t spent any time on development for this. |
Template class update.
Addition of template class for udts.
Moved serialization and deserialization for all types into templates.
Description, Motivation, and Context
How Has This Been Tested?
Tested with atomic types, udts, nested udts, strings, bit indexes, bool arrays.
All tests done with tag read/write, tag group read/write and subscribe.
Screenshots (if appropriate):
Types of changes
Checklist:
[WIP] Some awesome PR title
)Related Issue