Read/write variables Codesys <> Python script

2018-06-13
2018-06-14
  • Peter.skokanek

    Peter.skokanek - 2018-06-13

    Hi,
    I need to Read/Write variables from Codesys to runing python script. I tested example OPCUA where is changing iConunter variable in Codesys project and the value of iCounter is printed by means of OPC UA client "simpleclientRaspi.py". It works well. But I don't need print it I need to use this value in my python script. How can I extract value of iCounter variable?

    Peter

     
  • Peter.skokanek

    Peter.skokanek - 2018-06-14

    I found the right function. It this example it is possible to use : iCounter.get_value()

    Peter

     

Log in to post a comment.