I did a quick search and found a hello world example on how to create, modify and delete POUs. Very helpful. I do have another question, though. Is there a way to read or write external files not in the Codesys project?
The ScriptEngine uses the IronPython v2.7, which is mostly compatible to (C)Python v2.7, so you can use one of the many solutions available.
Some of the ways to open a file for reading or writing:
- built-in methods, e.g. open(...)
- one of the included python modules, e.g. codecs.open(...)
- .Net API, e.g. File.Open(...)
Check out the CODESYS store: http://store.codesys.com/CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions