I already tried it with System.Delay(x) before the login, but the failure still exists.
If i pregenerate the code with the generate_code() method it seems to be better, but the failure is still available sporadically.
You can try to use RaiseIdle()
in combination with system.delay()
. There are a few things in CODESYS which are executed with the Idle event. Call RaiseIdle(EventArgs.Empty)
a few times before the login.
If that does not help we could have a problem in the noUI mode which we need to investigate.
from System.Windows.Forms import Application
from System import EventArgs
What is your Use Case for using the noUI mode?
Check out the CODESYS store: http://store.codesys.com/CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions