<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to "incorrect" using of PLCHandler</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/dc91117f58/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/dc91117f58/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/dc91117f58/</id><updated>2020-02-27T18:54:05.383000Z</updated><subtitle>Recent posts to "incorrect" using of PLCHandler</subtitle><entry><title>"incorrect" using of PLCHandler</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/dc91117f58/?limit=25#f6c4" rel="alternate"/><published>2020-02-27T18:54:05.383000Z</published><updated>2020-02-27T18:54:05.383000Z</updated><author><name>gingomkc</name><uri>https://forge.codesys.com/u/gingomkc/</uri></author><id>https://forge.codesys.com84f96cf9c6c05c94f459ba41076b20ebd5246214</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Si&lt;/p&gt;
&lt;p&gt;Inviato dal mio Y100_Plus utilizzando Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>"incorrect" using of PLCHandler</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/dc91117f58/?limit=25#f383" rel="alternate"/><published>2020-02-27T18:54:04.223000Z</published><updated>2020-02-27T18:54:04.223000Z</updated><author><name>eugenee</name><uri>https://forge.codesys.com/u/eugenee/</uri></author><id>https://forge.codesys.come9a04741039b05df43a60c246ff1c6ca3085bdb5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;Description: there is a connection from my App to PLC through PLCHandler (v3.5.8.0)&lt;br/&gt;
Then i make call &lt;strong&gt;SyncReadVarsFromPlc(char &lt;/strong&gt;ppszSymbols,...)&lt;strong&gt; several (or many) times which allocates variable list(s).&lt;br/&gt;
And each time I &lt;/strong&gt;accidentally&lt;strong&gt; forget to call &lt;/strong&gt;SyncReadVarsFromPlcReleaseValues()** &lt;br/&gt;
I understand that I am totally wrong, but when I close the connection to PLC the following can be seen:&lt;br/&gt;
    1) in case of OEM HARDWARE PLC (ARM,CoDeSyS Runtime 3.5.SP6, QNX 6.5.0) - CPU Usage is up to 100%, established network connections to PLC are still working, new network connections are failed; such runtime behavior lasts in proportion to the number of SyncReadVarsFromPlc calls; then (after runtime release and clean resources?) PLC returns to normal working state.&lt;br/&gt;
    2) in case of CODESYS Control Win V3 SoftPLC(Windows 7x64, CoDeSyS 3.5.SP6) - CPU Usage of ServiceControl.exe (Service for starting/stopping the services of CODESYS Control Win V3 and CODESYS Gateway Service V3) is up to 30%, established network connections to SoftPLC are still working, new network connections are failed; normal working state of ServiceControl.exe may be restored only after service restart.&lt;/p&gt;
&lt;p&gt;Solution is clear - to call SyncReadVarsFromPlcReleaseValues.&lt;br/&gt;
But why does runtime make so high CPU Usage during resource cleanup of the closed PLCHandler connection?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>