#31 Script language Python in CODESYS V3 wiki

closed
None
2020-02-08
2018-10-27
aliazzz
No

Dear Ticketmaster =)

Lately I have used the Python Script Engine in CODESYS to automate various things like auto-edit the Project Information etc.
I have found that Help.Codesys.Com is not providing nearly enough codesnippers, and searching the forum was a tedious task (more like stumble upon!).
For sure, you at CODESYS have a large compendium of know-how in this area! Its just that the know-how is very scattered (just like my previous experience on writing IO drivers before using cForge).

So, as (iron)Python scripting in CODESYS will definatly add a new dimension it at least deserves its owncorner in within cForge!

What I would like to see is more information on list of external tools can be used to write Python scripts.
* Notepad++
* - Does not provide sufficient intellisense help
* +Small installation footprint

  • http://eric-ide.python-projects.org/

      • Provides sufficient intellisense help
      • Large and complex installation footprint: composed of several independant but mandatory tools (Qt, Python, etc etc)
  • Visual Studio .NET 2015 with a python plugin (I am interested in this flavour but have not tried it yet)

      • Provides sufficient intellisense help (I assume!)
      • Large installation footprint (VS.NET + Python plugin)

And offcourse more background information on the CODESYS scriptengine objects and
for every member within the scriptengine some small code example of how to use this member;

from __future__ import print_function
from scriptengine import *

for member in dir(scriptengine):
   print(member)

I know this is a lot on the first go, but heck, rome wasn't built in one day either!

With kind regards

Aliazzz

Discussion

  • aliazzz

    aliazzz - 2018-10-27

    LOLz...

    The script does not work!
    Hhahahah (well, you the point!)

     
  • Ingo

    Ingo - 2018-10-27

    Good idea. How about, starting it similar as the I/O driver project?

    Scripting

     
    • aliazzz

      aliazzz - 2018-10-27

      I am not permitted to edit/extend the scripting page....

      Error 403
      Edit access required

       

      Last edit: aliazzz 2018-10-27
  • Ingo

    Ingo - 2018-10-28

    Sorry, but giving you editing rights was not my intention. But I'll give you the rights for now...

     
  • Ingo

    Ingo - 2018-11-01
    • status: open --> closed
     
  • Ingo

    Ingo - 2018-11-01

    I close this ticket, as actually there is a wiki now, which just needs to be extended over time.

     

Log in to post a comment.