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

Add support for reading/writing the legacy DATE (IEC date) datatype #506

Merged
merged 7 commits into from
Sep 7, 2023

Conversation

bonk-dev
Copy link
Contributor

Solves #505

I did not bother with adding this type to struct serialization, because the DateTime type itself is not supported either.
I might create a separate PR and add both the DateTime and IEC date to struct later on.

Dawid Pągowski added 5 commits August 23, 2023 00:27
The spec goes up to a full 2168 year, but the PLC date type goes up to 2169 June 06 which is represented by 65535 (max ushort value).
S7.Net/Types/Date.cs Outdated Show resolved Hide resolved
@mycroes
Copy link
Member

mycroes commented Sep 7, 2023

Hi @bonk-dev, sorry for my late response. Thankfully @gfoidl did a review quickly and I agree with his comments. Only thing that would've been nice is test-cases for the new conversion, but I'll accept this as-is. Thanks a lot for your contribution!

@mycroes mycroes merged commit ab6308e into S7NetPlus:main Sep 7, 2023
5 checks passed
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