<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Read/write variables Codesys &lt;&gt; Python script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/83c880fed9/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/83c880fed9/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/83c880fed9/</id><updated>2020-10-24T14:47:35.263000Z</updated><subtitle>Recent posts to Read/write variables Codesys &lt;&gt; Python script</subtitle><entry><title>Read/write variables Codesys &lt;&gt; Python script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/83c880fed9/?limit=25#aa49" rel="alternate"/><published>2020-10-24T14:47:35.263000Z</published><updated>2020-10-24T14:47:35.263000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.coma4bb672079272411f2b9fd22bf19e8ac6cc288e7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;See also:&lt;br/&gt;
&lt;a href="https://help.codesys.com/webapp/_cds_access_cds_func_in_python_scripts;product=codesys;version=3.5.15.0#example-reading-of-variables" rel="nofollow"&gt;https://help.codesys.com/webapp/_cds_access_cds_func_in_python_scripts;product=codesys;version=3.5.15.0#example-reading-of-variables&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Read/write variables Codesys &lt;&gt; Python script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/83c880fed9/?limit=25#3add/89b9" rel="alternate"/><published>2020-10-16T08:32:44.446000Z</published><updated>2020-10-16T08:32:44.446000Z</updated><author><name>shakir</name><uri>https://forge.codesys.com/u/shakir/</uri></author><id>https://forge.codesys.com0c2f51a0ab599b5bca631c83afe640c7b28bec5a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
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.&lt;br/&gt;
Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Read/write variables Codesys &lt;&gt; Python script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/83c880fed9/?limit=25#3add" rel="alternate"/><published>2020-02-27T14:38:48.529000Z</published><updated>2020-02-27T14:38:48.529000Z</updated><author><name>Peter.skokanek</name><uri>https://forge.codesys.com/u/peter-skokanek/</uri></author><id>https://forge.codesys.comea68f21a56d5f58dc56166d15b646b81be184c00</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I found the right function. It this example it is possible to use :  iCounter.get_value()&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Read/write variables Codesys &lt;&gt; Python script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/83c880fed9/?limit=25#5951" rel="alternate"/><published>2020-02-27T14:38:47.997000Z</published><updated>2020-02-27T14:38:47.997000Z</updated><author><name>Peter.skokanek</name><uri>https://forge.codesys.com/u/peter-skokanek/</uri></author><id>https://forge.codesys.com34e6c7ec6048efac095bcce35cc57c45e4b238a8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
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?&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>