<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Forcing variables in online mode</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/01cf27af23/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/01cf27af23/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/01cf27af23/</id><updated>2020-02-27T23:19:49.659000Z</updated><subtitle>Recent posts to Forcing variables in online mode</subtitle><entry><title>Forcing variables in online mode</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/01cf27af23/?limit=25#a674" rel="alternate"/><published>2020-02-27T23:19:49.659000Z</published><updated>2020-02-27T23:19:49.659000Z</updated><author><name>bitwit</name><uri>https://forge.codesys.com/u/bitwit/</uri></author><id>https://forge.codesys.com1663d5c36ba6140f0aebc1ce4eb5d2c469f48425</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for the reply. Can that type of operation really be considered a global force? When debugging a program, if I want a variable forced to a given state, I want it to remain in that state and not be affected during the code execution. Is this how a force executes in other platforms (rslogix, step 7, etc.)?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Forcing variables in online mode</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/01cf27af23/?limit=25#cdc2" rel="alternate"/><published>2020-02-27T23:19:48.011000Z</published><updated>2020-02-27T23:19:48.011000Z</updated><author><name>Ralph Holz</name><uri>https://forge.codesys.com/u/ralph-holz/</uri></author><id>https://forge.codesys.com508208435ccc11d35676927e5e1ffbbe5be3e9ec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Forcing rules are quite simple. If you force some variables a force-list is created and this list is executed twice in every PLC - cicle. First time after reading inputs and the second time after the IEC-Program are executet just bevore outputs are written.&lt;/p&gt;
&lt;p&gt;The PLC Cycle is:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;read inputs&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;execute force list&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;execute the IEC-Program&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;execute force list&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;write outputs&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;See also attached diagram.&lt;/p&gt;
&lt;p&gt;So you can cange the variables in your PLC Program as often as you assign a   value to them&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=59" rel="nofollow"&gt;CoDeSys Training (1).pdf &lt;span&gt;&lt;span&gt;[51.72 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Forcing variables in online mode</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/01cf27af23/?limit=25#2465" rel="alternate"/><published>2020-02-27T23:19:43.399000Z</published><updated>2020-02-27T23:19:43.399000Z</updated><author><name>bitwit</name><uri>https://forge.codesys.com/u/bitwit/</uri></author><id>https://forge.codesys.com5877f8640a264881b753968facffa86e0668ea01</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Does anyone know if there is documentation which outlines the "rules" governing the forcing of variables in online mode? I have noticed that forcing some variables within a POU are not always passed along throughout the POU/project. The Codesys manual does not list any rules or exceptions to forcing of variables but it is apparent to me that there are. Has anyone else noticed this? I am using Codesys ver. 2.3.6.1.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Mike Metzer&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>