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

How does reading of alarms work #55

Open
jogibear9988 opened this issue Jan 29, 2025 · 1 comment
Open

How does reading of alarms work #55

jogibear9988 opened this issue Jan 29, 2025 · 1 comment

Comments

@jogibear9988
Copy link

Hello Thomas,

I've one more question, about how does reading of Alarms work.

I see this: TestWaitForAlarmNotifications, wich uses WaitForNewS7plusReceived(waitTimeout);

How does this work. What about I want to use the same connection to read Tags and Alarms?
As I see the Lib could not be used with multiple Threads, as WaitForNewS7plusReceived does not wait for a specific answer, it only returns the next one.

Or does the protocol at all not support multiple actions at once?

@thomas-v2
Copy link
Owner

It's for now only a testfunction to analyze how it works. I think it would be clearer to do all alarm relevant communication on a separate connection. If I remember correctly, that's also the way Siemens handles this in their software. They use one connection for variable access, one for events, and start an optional 3rd for exploring. I don't think this is a "must", but if something major in the event task goes wrong, you can just restart this session and keep the variable flow working.

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

2 participants