Python library

Hi everybody,

I am recently experimenting with Python scripting in PLC Engineering, and wondering if there is any python library to navigate through Objects(System, projects, etc.) more easily?

For example instead of studying the object "path" e.g. system.ui.choose() step by step from CODESYS Scripting Engine online help, just to type . and have access to some suggestions as usual. I think it would make programming much faster.

Kind regards

Best reply by Sgilk

Ahh, I see now I misunderstood the initial question.

If you are using the ctrlX PLC Engineering REST API, I don't think intellisense will be possible on the PLC project data since the interaction is stateless.

From a brief review of the CODESYS Python script engine it doesn't look like there is native intellisense functionality. I found a forum discussion around this topic and it looks like there may be a workaround, but I have not tried this myself.

CODESYS Python Engine APIย 

ย 

View original
4 replies