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?
I found the right function. It this example it is possible to use : iCounter.get_value()
I have facing the same issue. Would you like to please elaborate how did you do that?As I am new to CODESYS couldn't find the right option yet.
Log in to post a comment.