<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Python Reference</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/879bd170ed/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/879bd170ed/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/879bd170ed/</id><updated>2020-02-27T14:55:42.889000Z</updated><subtitle>Recent posts to Python Reference</subtitle><entry><title>Python Reference</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/879bd170ed/?limit=25#aef3" rel="alternate"/><published>2020-02-27T14:55:42.889000Z</published><updated>2020-02-27T14:55:42.889000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com1d338d762db5249dd612e7683f1bfe5ba9b7454b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi tstevic.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;tstevic hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I would like to get some good references covering creating scripts to be executed on a PLC (Specifically a Lenze controller).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I think you misunderstood where the python script is executed. The python script is executed in the CODESYS IDE (PC) and not on the CODESYS Runtime (PLC).&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;tstevic hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
There seems to be some material on the S3 site, but it is all presented as web pages. If it exists, I would like to download the documents as a single file or two.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;CODESYS still contains the CHM file of the Scripting API which is generated from the C# code and requires you to translate the syntax to python. You can find it one of the following locations of your installed CODESYS:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;tstevic hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
The project I am working on requires the script to force values in the processor, read the resulting logic states and then release the force. Thanks in advance.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Look at the other topics in this sub forum there are some example how to read/write/force variables on a PLC.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python Reference</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/879bd170ed/?limit=25#9593" rel="alternate"/><published>2020-02-27T14:55:42.305000Z</published><updated>2020-02-27T14:55:42.305000Z</updated><author><name>tstevic</name><uri>https://forge.codesys.com/u/tstevic/</uri></author><id>https://forge.codesys.com4aca93d28a4c30b0b3dbb6dc5380795d565b2d72</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I would like to get some good references covering creating scripts to be executed on a PLC (Specifically a Lenze controller).  There seems to be some material on the S3 site, but it is all presented as web pages. If it exists, I would like to download the documents as a single file or two.&lt;/p&gt;
&lt;p&gt;The project I am working on requires the script to force values in the processor, read the resulting logic states and then release the force. Thanks in advance.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>