Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

query about python

jbarrio
2017-11-29
2017-12-01
  • jbarrio - 2017-11-29

    hello:

    excuse my ignorance but I'm trying to do something with python to prove how it works and I'm unable. From what I understand, I need to install Scriptengine and I can not find it anywhere, could someone tell me where to get it.

    Thank you

     
  • mkeller - 2017-11-30

    Hi jbarrio.

    jbarrio hat geschrieben:
    From what I understand, I need to install Scriptengine and I can not find it anywhere, could someone tell me where to get it:

    The ScriptEngine is part of the default installation of CODESYS V3.

    BR
    Martin

     
  • jbarrio - 2017-11-30

    Like what I want to do is not possible.
    I'm working with raspberry. Is it possible to access variables read their value or write it from the same raspberry in python?
    any example to go see please?

     
  • mkeller - 2017-12-01

    Hi jbarrio.

    jbarrio hat geschrieben:
    Like what I want to do is not possible.
    I'm working with raspberry. Is it possible to access variables read their value or write it from the same raspberry in python?
    any example to go see please?

    The ScriptEngine is part of development environment (IDE) and not of the runtime, which is on the Raspberry Pi. The Scripting is used for testing or automating tasks, like for example create a project from an external configuration.

    If I remember correctly there were some threads about reading and writing values from/to your IEC application on the Raspberry Pi. I think the options were to use a fieldbus protocol, TCP/IP socket or OPC UA. Look in our sub forum for the Raspberry Pi.

    BR
    Martin

     

Log in to post a comment.