<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Writing a VALUE into a input function value....Enquiry</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/222ba90617/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/222ba90617/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/222ba90617/</id><updated>2020-02-27T14:53:56.701000Z</updated><subtitle>Recent posts to Writing a VALUE into a input function value....Enquiry</subtitle><entry><title>Writing a VALUE into a input function value....Enquiry</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/222ba90617/?limit=25#8047" rel="alternate"/><published>2020-02-27T14:53:56.701000Z</published><updated>2020-02-27T14:53:56.701000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com89faf55b15fbf5b6682de6c5d7818f8db2aef2b9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;To write one or more values through the monitoring you need to get the online application, set/prepare the values and write them through the online application.&lt;/p&gt;
&lt;p&gt;The following example prepares one value and writes it to the device:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;onlineApp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;online&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;create_online_application&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;onlineApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set_prepared_value&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;"PLC_PRG.counter"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;"5"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;onlineApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;write_prepared_values&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;If you want all the prepared values to be forced you have to use the method force_prepared_values(). &lt;/p&gt;
&lt;p&gt;For more details you should have a look at the ScriptEngine online help which you can find in the directory "CODESYS\Online Help" of the CODESYS installation directory.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Writing a VALUE into a input function value....Enquiry</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/222ba90617/?limit=25#4e3f" rel="alternate"/><published>2020-02-27T14:53:54.887000Z</published><updated>2020-02-27T14:53:54.887000Z</updated><author><name>labview</name><uri>https://forge.codesys.com/u/labview/</uri></author><id>https://forge.codesys.comc57926bc88845d27463c3eccd103b0d3144f38cf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I have a question, &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;How to write a value into a input Function Block(e,g CHxInput) via Test Manager.scripting -&amp;gt; ExecuteScript using Python command?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Many Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>