<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CodeSys scripting command</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66b4779dc4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66b4779dc4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/66b4779dc4/</id><updated>2020-02-27T14:58:14.849000Z</updated><subtitle>Recent posts to CodeSys scripting command</subtitle><entry><title>CodeSys scripting command</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66b4779dc4/?limit=25#fd70" rel="alternate"/><published>2020-02-27T14:58:14.849000Z</published><updated>2020-02-27T14:58:14.849000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comeef2856c2d38f760e24c5cbcd4e328eb93b15a88</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi, Damian,&lt;/p&gt;
&lt;p&gt;According to current schedule, this issue is likely to be fixed in the Version scheduled for December this year. (Probably V3.5 SP6).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CodeSys scripting command</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66b4779dc4/?limit=25#dbc9" rel="alternate"/><published>2020-02-27T14:58:14.266000Z</published><updated>2020-02-27T14:58:14.266000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com1af0b84ed523010ffb58d3b5342b2fe2d80545b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi, Damian,&lt;/p&gt;
&lt;p&gt;Your request was filed on our Jira Database as issue &lt;a class="" href="http://jira.3s-software.com/browse/CDS-39164" rel="nofollow"&gt;CDS-39164&lt;/a&gt;, so it will be fixed eventually.&lt;/p&gt;
&lt;p&gt;HTH,&lt;br/&gt;
M.Schaber&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CodeSys scripting command</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66b4779dc4/?limit=25#e6fa" rel="alternate"/><published>2020-02-27T14:58:13.701000Z</published><updated>2020-02-27T14:58:13.701000Z</updated><author><name>Damian</name><uri>https://forge.codesys.com/u/damian/</uri></author><id>https://forge.codesys.com547665f574923afeb538de694d4f1ab95f08e122</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I need the "AdditionalInterfaces" of the parent connector&lt;br/&gt;
to know which child connector is valid.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Damian&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CodeSys scripting command</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66b4779dc4/?limit=25#a518" rel="alternate"/><published>2020-02-27T14:58:12.034000Z</published><updated>2020-02-27T14:58:12.034000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com69becc555f49065f78fdce49e242f5e18116ab9c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Right now, there is no access to the "AdditionalInterfaces" of a connector. If you can describe your use case, I can try to file an improvement.&lt;/p&gt;
&lt;p&gt;IScriptDeviceConnector.parent is actually meant do deliver the list of connectors (IScriptDeviceConnectorSet), it is a "parent" in the sense of the object tree, not in the sense of the connector hierarchy. You can iterate over the list and filter for the connector_role property of the IScriptConnector, which can be set to ConnectorRole.parent or ConnectorRole.Child.&lt;/p&gt;
&lt;p&gt;For patches, the documentation is usually not updated (exceptions exist).&lt;/p&gt;
&lt;p&gt;HTH,&lt;br/&gt;
Markus&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CodeSys scripting command</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66b4779dc4/?limit=25#024c" rel="alternate"/><published>2020-02-27T14:58:11.378000Z</published><updated>2020-02-27T14:58:11.378000Z</updated><author><name>Damian</name><uri>https://forge.codesys.com/u/damian/</uri></author><id>https://forge.codesys.combcc329916893a2ad69f0095dee8a0017ebd52d6d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;thank you for the examples, they are very helpful!&lt;br/&gt;
Is there any possibility to get "AdditionalInterface" of a connector via python?&lt;/p&gt;
&lt;p&gt;Do you have a description of the property parent (IScriptDeviceConnector.parent)?&lt;br/&gt;
If I call this property then I get the connectors of the device and not the parent connector of the connector.&lt;br/&gt;
If I call "connector.parent" I get the same result as with "device.connectors".&lt;br/&gt;
Is this correct?&lt;/p&gt;
&lt;p&gt;One side note: The online help "ScriptEngine.chm" is not up to date (I have CoDeSys v3.5 SP4 patch1)!&lt;/p&gt;
&lt;p&gt;Best regards&lt;br/&gt;
Damian&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CodeSys scripting command</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66b4779dc4/?limit=25#c8be" rel="alternate"/><published>2020-02-27T14:58:10.649000Z</published><updated>2020-02-27T14:58:10.649000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com2dbfd23509639741f40ae136f6d058253129db00</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I did attach two short example scripts to this post.&lt;/p&gt;
&lt;p&gt;HTH,&lt;br/&gt;
Markus&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=599" rel="nofollow"&gt;DeviceParameterTest.py &lt;span&gt;&lt;span&gt;[1.28 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=598" rel="nofollow"&gt;TestDeviceParameters.py &lt;span&gt;&lt;span&gt;[602 Bytes]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CodeSys scripting command</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66b4779dc4/?limit=25#9d30" rel="alternate"/><published>2020-02-27T14:58:08.897000Z</published><updated>2020-02-27T14:58:08.897000Z</updated><author><name>Damian</name><uri>https://forge.codesys.com/u/damian/</uri></author><id>https://forge.codesys.comb669078538d2cf6046cb3c1bd1fabd94f61f157d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;M.Schaber hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
The functionality to configure device parameters via Scripting was implemented for the issue &lt;a class="" href="http://jira.3s-software.com/browse/CDS-22506" rel="nofollow"&gt;CDS-22506&lt;/a&gt; which will be released with V3.5 SP4 (currently scheduled for December).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Has anybody a example for this new functionality?&lt;br/&gt;
What interface must I use to configure device parameters?&lt;/p&gt;
&lt;p&gt;Thanks for the help&lt;br/&gt;
Damian&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CodeSys scripting command</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66b4779dc4/?limit=25#5fbf" rel="alternate"/><published>2020-02-27T14:58:08.231000Z</published><updated>2020-02-27T14:58:08.231000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com95338998769f8f2e9c9f8231541350f847684e6e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi, LabView,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;labview hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I wish to write/select value into a "Value" field such as  Off, -10V to 10V, -150mV to 150mV &amp;amp; etc under Module Configuration(Kindly refer to screenshot below), what would the correct scripting command?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The functionality to configure device parameters via Scripting was implemented for the issue &lt;a class="" href="http://jira.3s-software.com/browse/CDS-22506" rel="nofollow"&gt;CDS-22506&lt;/a&gt; which will be released with V3.5 SP4 (currently scheduled for December).&lt;/p&gt;
&lt;p&gt;As a side note, the Test Manager already has device parameter configuration functionality.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;labview hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
In future, how would I know which is correct command to use for other purpose I need to use as there is alot of scripting commands in the scripting command help.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Reading the help file should be the easiest way to find out what purpose those commands fulfil.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CodeSys scripting command</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66b4779dc4/?limit=25#ee1f" rel="alternate"/><published>2020-02-27T14:58:07.658000Z</published><updated>2020-02-27T14:58:07.658000Z</updated><author><name>labview</name><uri>https://forge.codesys.com/u/labview/</uri></author><id>https://forge.codesys.com7cdacd59bf1fbe6d2d0cafc8af0233d8dcbd5633</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello there,&lt;/p&gt;
&lt;p&gt;I wish to write/select value into a "Value" field such as  Off, -10V to 10V, -150mV to 150mV &amp;amp; etc under Module Configuration(Kindly refer to screenshot below), what would the correct scripting command? In future, how would I know which is correct command to use for other purpose I need to use as there is alot of scripting commands in the scripting command help.&lt;/p&gt;
&lt;p&gt;Many Thanks.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Write_Script.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=494"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: For_Python.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=493"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>