<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Some example Python script for calling PLCHandler SDK (PLCHandler.dll)?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a38bbb0b1c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a38bbb0b1c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/a38bbb0b1c/</id><updated>2023-05-24T09:06:29.303000Z</updated><subtitle>Recent posts to Some example Python script for calling PLCHandler SDK (PLCHandler.dll)?</subtitle><entry><title>Some example Python script for calling PLCHandler SDK (PLCHandler.dll)?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a38bbb0b1c/?limit=25#b4d6" rel="alternate"/><published>2023-05-24T09:06:29.303000Z</published><updated>2023-05-24T09:06:29.303000Z</updated><author><name>kevp</name><uri>https://forge.codesys.com/u/kevp/</uri></author><id>https://forge.codesys.com8b92146aa98c947d88704db252659c5ff5c7f729</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to load PLCHandlerDll.dll using clr and got the exact same error. Did you find any solution?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Some example Python script for calling PLCHandler SDK (PLCHandler.dll)?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a38bbb0b1c/?limit=25#971f/63dd" rel="alternate"/><published>2022-03-02T16:00:24.244000Z</published><updated>2022-03-02T16:00:24.244000Z</updated><author><name>hhz</name><uri>https://forge.codesys.com/u/hhz/</uri></author><id>https://forge.codesys.comb3b8dd8d2c7f18731010867be9d2216bf79460cf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank for info. &lt;/p&gt;
&lt;p&gt;Anyway, I have try to load the PlcHandlerDll.dll by ironPython (v2.7.11):&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;clr&lt;/span&gt;
&lt;span class="n"&gt;clr&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;AddReference&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"PLCHandlerDll"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I got an error:&lt;br/&gt;
&lt;strong&gt;SystemError: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;As I understand, in this case the dll file was found, but it can not be loaded because some of manifest/s failed.&lt;/p&gt;
&lt;p&gt;In my PC VC_regist_2015 was installed.  &lt;/p&gt;
&lt;p&gt;From Docu. and Error message, U cannot determine what was still required. &lt;/p&gt;
&lt;p&gt;Someone also meets this problem? Or any suggestion for that?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Some example Python script for calling PLCHandler SDK (PLCHandler.dll)?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a38bbb0b1c/?limit=25#971f" rel="alternate"/><published>2022-01-22T12:02:27.667000Z</published><updated>2022-01-22T12:02:27.667000Z</updated><author><name>mondinmr</name><uri>https://forge.codesys.com/u/mondinmr/</uri></author><id>https://forge.codesys.comca88d63641d4ced188926b01e1a748b6fe4318e4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It would appear that PlcHadle.dll can only be used by having the SDK. However, it would be very interesting to be able to use it even without it, as it would open the way to unthinkable levels of integration.&lt;br/&gt;
Today I go around it with shared memory. In this way we interface a big framework that we developed in Qt through a gateway in shm, however being able to use the PlcHandle would simplify our life a lot.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Some example Python script for calling PLCHandler SDK (PLCHandler.dll)?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a38bbb0b1c/?limit=25#c543" rel="alternate"/><published>2022-01-20T11:40:32.508000Z</published><updated>2022-01-20T11:40:32.508000Z</updated><author><name>hhz</name><uri>https://forge.codesys.com/u/hhz/</uri></author><id>https://forge.codesys.com4e6aeb9bf90e224d3c464832b21e62d71fb11027</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Forum,&lt;/p&gt;
&lt;p&gt;I want to connect and make some communication with PLC runtime (v3 and v2) by Python without via CoDeSys v3.5.x. As you known, there are a SDK package with the name of "PLCHandel.dll". I am no familiar with this SDK. So may be same example scripting will make big help to me. For example: start to establish communication between Python and PLC runtime, read FW version, check working state of PLC etc.&lt;/p&gt;
&lt;p&gt;Thx for any suggestion!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>