Professional Communication
Software Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Connecting to a PLC with anonymous users turned off

More
24 Nov 2025 16:59 #14485 by Cwardltu
Here is the behavior I am observing. the expectation is that it would reconnect and hold on to that connection.
Attachments:

Please Log in or Create an account to join the conversation.

More
24 Nov 2025 16:53 #14484 by Cwardltu
No from my end i am running the happy path. allow anon user turned on. I connect initially. i reinitialize. then it does not allow the reconnect..

Please Log in or Create an account to join the conversation.

More
24 Nov 2025 16:51 #14483 by support
I am sorry but I do not understand you.

Are you getting the same results as I reported?
If so, do you expect a different behavior from the software, and what is the behavior you expect?

Note that in my test, when the anonymous logon is disabled in Kepware, I can *not* connect initially. Is that a difference from your observations? 

Regards
 

Please Log in or Create an account to join the conversation.

More
24 Nov 2025 16:47 #14482 by Cwardltu
Yes I found that when i disallowed anon user i would get the same result. Why is that intended. is reconnect not allowed at a anon user?

Please Log in or Create an account to join the conversation.

More
24 Nov 2025 16:45 - 24 Nov 2025 16:46 #14481 by support
Hello.
I am confused here. The repro class you sent does not contain any username/password authentication from the client side.

When I run it as is, with "Allow anonymous login" in Kepware turned on, it successfuly connects, and after Reinitialize, it successfuly reconnects, which is expected.
When I run it as is, with "Allow anonymous login" in Kepware turned off, it always fails to connect (with BadUserAccessDenied), which is also expected.

Best regards

 
Last edit: 24 Nov 2025 16:46 by support.

Please Log in or Create an account to join the conversation.

More
24 Nov 2025 16:07 #14480 by Cwardltu
I have added a kepware opf project and a visual studio class that replicates the issue i am having. yes i am subscribing to values that are changing periodically 
Attachments:

Please Log in or Create an account to join the conversation.

More
24 Nov 2025 15:37 #14479 by support
Thank you.

I will try to setup a repro here with Kepware, and let you know the results. I will post here when I know more. Please allow some time for this.

Best regards

Please Log in or Create an account to join the conversation.

More
24 Nov 2025 13:31 #14478 by Cwardltu
I am using kepware. I click reinitialize to trigger a reconnect. I do have a 3 subscriptions in this specific test.
 

Please Log in or Create an account to join the conversation.

More
22 Nov 2025 09:30 #14477 by support
You are right, it should make no difference whether it is an initial connection or a subsequent connection.
I do not see a problem in your code.

How do you trigger the reconnection, in your tests? E.g. by unplugging the network cable? Or by turning off the PLC? Etc...

And, you simply let you client program run? - Is it doing any subscriptions, or has no subscriptions but is doing periodic/one-time operations such as reads/writes?

Thank you
 

Please Log in or Create an account to join the conversation.

More
21 Nov 2025 14:12 #14476 by Cwardltu
If that were the case wouldnt it be true that the initial connection would be denied aswell? I am only getting the denial when the automatic opclabs reconnection logic is triggered. I am wondering if there is a setting i need to set or something is wrong with my code?

Please Log in or Create an account to join the conversation.

Moderators: supportvaclav.zaloudek
Time to create page: 0.160 seconds