<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Function Block doesn't execute</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/733c9df843/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/733c9df843/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/733c9df843/</id><updated>2020-02-27T14:08:04.313000Z</updated><subtitle>Recent posts to Function Block doesn't execute</subtitle><entry><title>Function Block doesn't execute</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/733c9df843/?limit=25#5c74" rel="alternate"/><published>2020-02-27T14:08:04.313000Z</published><updated>2020-02-27T14:08:04.313000Z</updated><author><name>MassSarr</name><uri>https://forge.codesys.com/u/masssarr/</uri></author><id>https://forge.codesys.com5e26c8d5bd51bd17112b763a45c93eca01693798</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
Yes there was misunderstanding and you were right about HSC. After I downloaded program to PLC everything was ok.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Function Block doesn't execute</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/733c9df843/?limit=25#be32" rel="alternate"/><published>2020-02-27T14:08:03.926000Z</published><updated>2020-02-27T14:08:03.926000Z</updated><author><name>singleton</name><uri>https://forge.codesys.com/u/singleton/</uri></author><id>https://forge.codesys.comf86a4846ca944b493ca5082e9d9c6d861346975d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
there might be a misunderstanding. If you switch to simulation mode, CoDeSys takes a special simulation device instead of the real device. In this case it is only possible to simulate the logic. I don't know any solution to simulate the hardware of a device.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Function Block doesn't execute</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/733c9df843/?limit=25#bbb3" rel="alternate"/><published>2020-02-27T14:08:02.894000Z</published><updated>2020-02-27T14:08:02.894000Z</updated><author><name>MassSarr</name><uri>https://forge.codesys.com/u/masssarr/</uri></author><id>https://forge.codesys.comf119b1a2eac2dc1e055e1f412279e2137d96920e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Tank you for your prompt reply, I assumed something like that. Can you just tell me where can I find that special simulation devices to simulate encoder and counter.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Function Block doesn't execute</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/733c9df843/?limit=25#c774" rel="alternate"/><published>2020-02-27T14:08:02.508000Z</published><updated>2020-02-27T14:08:02.508000Z</updated><author><name>singleton</name><uri>https://forge.codesys.com/u/singleton/</uri></author><id>https://forge.codesys.com3ee9b5dde6cb2bad1fb6d9b1694ed3da36df8f01</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
HSC does not work in simulation mode as it is a runtime functionality of the PLC. For the simulation mode CoDeSys provides a special simulation devices that is implicitly used. There you can not access to any PLC runtime functionalities.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Function Block doesn't execute</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/733c9df843/?limit=25#1273" rel="alternate"/><published>2020-02-27T14:08:02.160000Z</published><updated>2020-02-27T14:08:02.160000Z</updated><author><name>MassSarr</name><uri>https://forge.codesys.com/u/masssarr/</uri></author><id>https://forge.codesys.comc44fc1cb7eb1650be663f9d8aafb0aa552fcfd9f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;First of all I m new in Codesys world so i would need some help.&lt;br/&gt;
I am working with schneider m241 controller. My apliccation should read data from A/B encoder and calculate speed. &lt;br/&gt;
I configured HSC and called it in my POU which is called at MAST task.&lt;br/&gt;
My issue is that after debuging hsc counter doesn't execute. I 'm working with simulation for now, I didn't put my program to PLC yet.&lt;br/&gt;
In attachment is possible see that all outputs are "false" but at least RUN output should be "true". I also tried with some other function blocks and still had same issue.&lt;br/&gt;
I will appreciate any help.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Counter issue.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1613"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>