<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Error in ScriptingEngine Docs - create_pou()</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/765f6fcb7d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/765f6fcb7d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/765f6fcb7d/</id><updated>2024-08-05T14:28:43.545000Z</updated><subtitle>Recent posts to Error in ScriptingEngine Docs - create_pou()</subtitle><entry><title>Error in ScriptingEngine Docs - create_pou()</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/765f6fcb7d/?limit=25#a9b1" rel="alternate"/><published>2024-08-05T14:28:43.545000Z</published><updated>2024-08-05T14:28:43.545000Z</updated><author><name>eguerra</name><uri>https://forge.codesys.com/u/eguerra/</uri></author><id>https://forge.codesys.comf20d083e8692b1a75995a64b3e692cd289328807</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In the ScriptingEngine documentation there seems to be an error (or missing information) in the ScriptIecLanguageObjectContainer part ( &lt;a href="https://content.helpme-codesys.com/en/ScriptingEngine/ScriptIecLanguageObjectContainer.html#ScriptIecLanguageObjectContainer.ScriptIecLanguageObjectContainer" rel="nofollow"&gt;https://content.helpme-codesys.com/en/ScriptingEngine/ScriptIecLanguageObjectContainer.html#ScriptIecLanguageObjectContainer.ScriptIecLanguageObjectContainer&lt;/a&gt; ).&lt;br/&gt;
The description of the function &lt;code&gt;create_pou()&lt;/code&gt; doesn't specify the correct arguments requested, it only says &lt;code&gt;create_pou(type: SpecialPouType)&lt;/code&gt; and a script using the documentation definition of the function will raise an error.&lt;br/&gt;
I tried passing the function arguments similar to the ones specified for the &lt;code&gt;create_dut()&lt;/code&gt; function and it seems to work fine:&lt;br/&gt;
&lt;code&gt;create_pou(name, PouType)&lt;/code&gt; , &lt;em&gt;name : str&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>