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

When the PLC power is off, no exception is thrown #548

Open
alitahaozturk opened this issue Nov 25, 2024 · 1 comment
Open

When the PLC power is off, no exception is thrown #548

alitahaozturk opened this issue Nov 25, 2024 · 1 comment

Comments

@alitahaozturk
Copy link

In my project, where I use the example code shared below, I always start by opening a connection using the baglantiAc() method. Then, I use the DegerOkuInt() method to check if the connection is established (isconnected) and to read values. Generally, there is no issue, but when the power to the PLC is off and the connection cannot be established, no exception is thrown. The application freezes at that point. After restarting, it reconnects and works again. This situation always requires my manual intervention. How can I ensure an exception is thrown when the connection is lost?

image

@ynioba
Copy link

ynioba commented Nov 25, 2024 via email

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