I want to create a small snippet which opens the project, create a boot application, do a login and perform a cold reset. Codesys 3.5.14.1
My problem is, that this 2 lines not working:
I tried to implement a similar feature (going online, doing the reset and the start).
But I get a timeout on the reset/start when I'm testing the script.
If you got something working, I would appreciate to see it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I want to create a small snippet which opens the project, create a boot application, do a login and perform a cold reset. Codesys 3.5.14.1
My problem is, that this 2 lines not working:
The error message is always: >Zitat:
ImportError: No module named _3S.CoDeSys.OnlineUI.OnlineChangeOption (same with ResetOption)
My Code:
As a workaround I tried to use the int values, which results in error:
I saw some code here (a while ago, so cant provide a link) which is using the enums, so it should be possible. How can I use this enums?
Thanks for your time!
Edit solution:
Looks like I made two mistakes:
1. I have to use ```
import scriptengine
, where is the documentation for this module or the information that this one contains the enums? 2.
OnlineChangeOption.Force
isn't possible, only
OnlineChangeOption.Never
```
Hello Jusito,
Can you share your final code, please ?
I tried to implement a similar feature (going online, doing the reset and the start).
But I get a timeout on the reset/start when I'm testing the script.
If you got something working, I would appreciate to see it.