<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Reading and writing register.</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/495217a5dd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/495217a5dd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/495217a5dd/</id><updated>2020-02-27T22:08:36.051000Z</updated><subtitle>Recent posts to Reading and writing register.</subtitle><entry><title>Reading and writing register.</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/495217a5dd/?limit=25#a53c" rel="alternate"/><published>2020-02-27T22:08:36.051000Z</published><updated>2020-02-27T22:08:36.051000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comd228eb39e9c0b4463a7dbafcf984d51e83ee4757</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;in the varlist you can say&lt;br/&gt;
input AT %MX0.0 : BOOL;&lt;br/&gt;
output AT %MX0.0 :BOOL;&lt;br/&gt;
so you can write them from 2 places it is bad practice as you can also use same name for input and output.&lt;br/&gt;
if you mean reading from distance you will have to make communications protocol to the receiving unit.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reading and writing register.</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/495217a5dd/?limit=25#12f0" rel="alternate"/><published>2020-02-27T22:08:34.464000Z</published><updated>2020-02-27T22:08:34.464000Z</updated><author><name>Kassu</name><uri>https://forge.codesys.com/u/kassu/</uri></author><id>https://forge.codesys.come5db2affc4392bfc569811b2d546c5b4fc67d1d6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;shooter hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
yes you can write to registers using AT %MX0.0 :BOOL;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thanks for you answer but write is not problem.  I can write those register but I donät understand how I can read the same register.  That is my problem.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Kassu&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>Reading and writing register.</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/495217a5dd/?limit=25#cde5" rel="alternate"/><published>2020-02-27T22:08:30.139000Z</published><updated>2020-02-27T22:08:30.139000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com2df99a13aa5e3c96fca75a72e3ba0a6d10b0f1aa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;yes you can write to registers using AT %MX0.0 :BOOL;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reading and writing register.</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/495217a5dd/?limit=25#35f5" rel="alternate"/><published>2020-02-27T22:08:28.620000Z</published><updated>2020-02-27T22:08:28.620000Z</updated><author><name>Kassu</name><uri>https://forge.codesys.com/u/kassu/</uri></author><id>https://forge.codesys.combcce75fd8def2b9062204eaf8cbb832f1159ff26</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi All,&lt;br/&gt;
I have a problem with CodeSys(version 2.3.9, ST language).  So, I should both read and write to the same registers over modbus(RS485) but I have any idea how I can do it.&lt;br/&gt;
Register numbers are between 40000 - 42000 and I can write values to those registers but how I can read those registers?&lt;br/&gt;
And I am a newbie with CodeSys, so, please simple asnwer if it possible.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Kassu&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry></feed>