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

[NEW-FEATURE] Poco property of DateTime has different default value than PLC #330

Closed
kuh0005 opened this issue Aug 20, 2024 · 4 comments · Fixed by #363
Closed

[NEW-FEATURE] Poco property of DateTime has different default value than PLC #330

kuh0005 opened this issue Aug 20, 2024 · 4 comments · Fixed by #363
Assignees
Labels
bug Something isn't working
Milestone

Comments

@kuh0005
Copy link
Collaborator

kuh0005 commented Aug 20, 2024

The shadow validator validates the time value. By default, this value is set in a C# POCO property to 1.1.0001, which is invalid for the PLC.

@PTKu PTKu added the bug Something isn't working label Jan 21, 2025
@PTKu PTKu self-assigned this Jan 21, 2025
@PTKu PTKu added this to the v0.22.0 milestone Jan 21, 2025
@PTKu
Copy link
Contributor

PTKu commented Jan 22, 2025

@kuh0005 do you think it would be sufficient to initialize default of date/time related values in POCO objects to minimal controller value?

@kuh0005
Copy link
Collaborator Author

kuh0005 commented Jan 23, 2025

I made a test with TIA and PLCSIM. It is possible to write datetime variables with default values that are initialized by C#.

Image

Image

When I try to read it from the PLC, an exception is raised.

Image

Image

@kuh0005
Copy link
Collaborator Author

kuh0005 commented Jan 23, 2025

As you can see, some time variables have different values between the PLC and the Blazor view (after batch write).

@PTKu
Copy link
Contributor

PTKu commented Jan 23, 2025

OK. Thanks. We will need to discriminate between target platform (TIA vs AX).

@PTKu PTKu closed this as completed in #363 Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants