<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Working with pointers and problem with process image</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dbba05360d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dbba05360d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/dbba05360d/</id><updated>2020-02-27T14:25:51.531000Z</updated><subtitle>Recent posts to Working with pointers and problem with process image</subtitle><entry><title>Working with pointers and problem with process image</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dbba05360d/?limit=25#e702" rel="alternate"/><published>2020-02-27T14:25:51.531000Z</published><updated>2020-02-27T14:25:51.531000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comc7ecefd705ced2d22a65e01702dd27c19659d9ab</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; mh020519&lt;/p&gt;
&lt;p&gt;Thank you for the solution.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Working with pointers and problem with process image</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dbba05360d/?limit=25#e4dd" rel="alternate"/><published>2020-02-27T14:25:51.067000Z</published><updated>2020-02-27T14:25:51.067000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.com28b2de1a4d20c773a03f3e7584ecc8e968bed4bb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Just set your I/O as Always refreshed in a choosen bus task. By default, codesys uses the task where it's in use, but as you don't explicitly use them, it doesn't refresh them at all.&lt;/p&gt;
&lt;p&gt;see this post : &lt;a class="" href="https://forum.codesys.com/viewtopic.php?p=23811&amp;amp;p=23811&amp;amp;lan=en" rel="nofollow"&gt;https://forum.codesys.com/viewtopic.php?p=23811#p23811&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Working with pointers and problem with process image</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dbba05360d/?limit=25#2ed6" rel="alternate"/><published>2020-02-27T14:25:50.575000Z</published><updated>2020-02-27T14:25:50.575000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com40f6b67ba72c2275e8c441d1a0a06650f407aa78</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; mh020519&lt;/p&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;when I read inputs and write outputs &lt;strong&gt;only&lt;/strong&gt; with pointers the CODESYS V3 compiler don't recognize that my program uses inputs/outputs.&lt;br/&gt;
Then the PLC doesn't copy the process image to the outputs.&lt;/p&gt;
&lt;p&gt;In consequence, my program doesn't work.&lt;/p&gt;
&lt;p&gt;My solution:&lt;/p&gt;
&lt;p&gt;IF alwaysFalse THEN //never ever "true"&lt;br/&gt;
%QB0:=%IB0; //this code is never executed&lt;br/&gt;
%QB1:=%IB1;//this code is never executed&lt;br/&gt;
%QB2:=%IB2;//this code is never executed&lt;br/&gt;
%QB3:=%IB3;//this code is never executed&lt;br/&gt;
END_IF&lt;/p&gt;
&lt;p&gt;My question: is there a possibility to tell the compiler what input/output I really use? Is there a setting?&lt;br/&gt;
The best solution: the plc should sync the process image with the existing input/output modules.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>