<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to It is possobile to create a POU and the logic in with script ?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/91747bda2b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/91747bda2b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/91747bda2b/</id><updated>2020-02-27T14:44:54.643000Z</updated><subtitle>Recent posts to It is possobile to create a POU and the logic in with script ?</subtitle><entry><title>It is possobile to create a POU and the logic in with script ?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/91747bda2b/?limit=25#6fe8" rel="alternate"/><published>2020-02-27T14:44:54.643000Z</published><updated>2020-02-27T14:44:54.643000Z</updated><author><name>Halim</name><uri>https://forge.codesys.com/u/halim/</uri></author><id>https://forge.codesys.comfb116d13cf6ede38ca40452703a8e4b62b8f136b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks again Martin  &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>It is possobile to create a POU and the logic in with script ?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/91747bda2b/?limit=25#be46" rel="alternate"/><published>2020-02-27T14:44:53.036000Z</published><updated>2020-02-27T14:44:53.036000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.comdab4ba8663a38fc036f4ab7a96bbf5b1425f539a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Halim.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Halim hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Maybe another off-topic question regarding the syntax of python. The chm file in the codesys online help folder is for c#. Is there a similar chm for python syntax? or an online place for findin the correct syntax for python scripts?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The C# syntax in the CHM file for the Scripting API is historical because it was the easiest way to get some documentation. You get used to it but we have a new documentation which is based on a manually created python stub.&lt;/p&gt;
&lt;p&gt;You find it on our web help under the topic &lt;a class="" href="https://help.codesys.com/webapp/idx-scriptingengine;product=ScriptEngine;version=3.5.14.0" rel="nofollow"&gt;Scripting Engine&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>It is possobile to create a POU and the logic in with script ?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/91747bda2b/?limit=25#c7ea" rel="alternate"/><published>2020-02-27T14:44:52.412000Z</published><updated>2020-02-27T14:44:52.412000Z</updated><author><name>Halim</name><uri>https://forge.codesys.com/u/halim/</uri></author><id>https://forge.codesys.com0b84427683d21febfe90b745c4402cb44a09a86b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks Martin for the reply. I tried it before posting the question but, it looks indeed that the fbd language is not supported. I will have to do it in ST then.&lt;/p&gt;
&lt;p&gt;Maybe another off-topic question regarding the syntax of python. The chm file in the codesys online help folder is for c#. Is there a similar chm for python syntax? or an online place for findin the correct syntax for python scripts? &lt;/p&gt;
&lt;p&gt;Thanks in advance for your reply.&lt;/p&gt;
&lt;p&gt;BR,&lt;br/&gt;
Halim&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>It is possobile to create a POU and the logic in with script ?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/91747bda2b/?limit=25#a684" rel="alternate"/><published>2020-02-27T14:44:51.815000Z</published><updated>2020-02-27T14:44:51.815000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.comfe4bcdbe6280d5e9b57c981831d64d5efca2c3d0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Halim.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Halim hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I'm interested in the answer for this question as well. I'm trying to create a Program POU in FBD. I want to create instances of the FBs POUs in the PRG with the script. &lt;br/&gt;
I know it is possible as the following instruction works when I put language to None. I just seem not able to find the correct parameter to feed the language parameter. It should be a GUID value which I do not know how to generate.&lt;br/&gt;
mypou = app.create_pou(name="autoPRG", type=PouType.Program, language= '???', return_type=None, base_type=None, interfaces=None)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;On our &lt;a class="" href="https://help.codesys.com" rel="nofollow"&gt;Web Help&lt;/a&gt; go to Scripting Engine -&amp;gt; IecLanguageObjectContainer and search in the page for "ScriptImplementationLanguage". The properties of that class return the necessary GUID for the different languages but as far as I know we only support to edit ST.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>It is possobile to create a POU and the logic in with script ?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/91747bda2b/?limit=25#5516" rel="alternate"/><published>2020-02-27T14:44:50.274000Z</published><updated>2020-02-27T14:44:50.274000Z</updated><author><name>Halim</name><uri>https://forge.codesys.com/u/halim/</uri></author><id>https://forge.codesys.com1e6e5f05048cd6f4e62ad6558d511f0ddb4d2e77</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Codesys Support,&lt;/p&gt;
&lt;p&gt;I'm interested in the answer for this question as well. I'm trying to create a Program POU in FBD. I want to create instances of the FBs POUs in the PRG with the script. &lt;/p&gt;
&lt;p&gt;I know it is possible as the following instruction works when I put language to None. I just seem not able to find the correct parameter to feed the language parameter. It should be a GUID value which I do not know how to generate.&lt;/p&gt;
&lt;p&gt;mypou = app.create_pou(name="autoPRG", type=PouType.Program, language= '???', return_type=None, base_type=None, interfaces=None)&lt;/p&gt;
&lt;p&gt;Any advice?&lt;/p&gt;
&lt;p&gt;BR,&lt;br/&gt;
Halim&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>It is possobile to create a POU and the logic in with script ?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/91747bda2b/?limit=25#25c6" rel="alternate"/><published>2020-02-27T14:44:49.739000Z</published><updated>2020-02-27T14:44:49.739000Z</updated><author><name>Chag</name><uri>https://forge.codesys.com/u/chag/</uri></author><id>https://forge.codesys.com42205154638c539fcd9fdbbfedf3a1be57c11de6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I know that we can create a declaration and also a program in Text  ( ST ). But can we create POU in other languages and add or modify logic in it ?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>