Iβm trying to use a python script to launch device connection and force device variables. I would like to be able to launch this script using the Tools->Scripting->Execute script file menu.
If I understand well, API are defined in ScriptEngine.chm. Where can I find tutorials or simple examples on writing such scripts ?
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Nicolas233 hat geschrieben:
If I understand well, API are defined in ScriptEngine.chm. Where can I find tutorials or simple examples on writing such scripts ?
For now you can search this forum for examples. With the release of CODESYS V3.5 SP10 Patch 1 we will provide an introduction, which contains a collection of examples, for the Scripting.
BR
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you Martin, I'll be looking forward to the new tutorials. May I make a simple and humble suggestion that may be useful to everyone.
How about creating a sticky thread containing links to strategic tutorial type threads or other specific tutorial material (Videos, doc, etc). It would perhaps reduce many of the "How do I start" type questions and would direct users to tutorials and examples that are most useful or that demonstrate specific things. It's something that could be developed over time as questions are asked and answered.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Iβm using Codesys 3.5 SP5 patch 4.
Iβm trying to use a python script to launch device connection and force device variables. I would like to be able to launch this script using the Tools->Scripting->Execute script file menu.
If I understand well, API are defined in ScriptEngine.chm. Where can I find tutorials or simple examples on writing such scripts ?
Thank you
Hi Nicolas233.
For now you can search this forum for examples. With the release of CODESYS V3.5 SP10 Patch 1 we will provide an introduction, which contains a collection of examples, for the Scripting.
BR
Martin
Thank you Martin, I'll be looking forward to the new tutorials. May I make a simple and humble suggestion that may be useful to everyone.
How about creating a sticky thread containing links to strategic tutorial type threads or other specific tutorial material (Videos, doc, etc). It would perhaps reduce many of the "How do I start" type questions and would direct users to tutorials and examples that are most useful or that demonstrate specific things. It's something that could be developed over time as questions are asked and answered.