I need to read a variable, defined in Codesys, in my Python script. I want to use shared memory to do that. There are some examples for Codesys shared memory access.
Could someone tell me how to write the Python code to read the values in shared memory?
I mean, i know how to setup the memory in Codesys but I miss the Python part.
Thank you guys!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I need to read a variable, defined in Codesys, in my Python script. I want to use shared memory to do that. There are some examples for Codesys shared memory access.
Could someone tell me how to write the Python code to read the values in shared memory?
I mean, i know how to setup the memory in Codesys but I miss the Python part.
Thank you guys!
Have you finished working on it?
Hi,
I wrote a tutorial how to do this.
Fast variable exchange between CODESYS and PYTHON via shared memory:
https://gist.github.com/arwie/ff56783d9a2fff52940de82ae1bc1a22