<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Retain SFC</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b564d09d1a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b564d09d1a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b564d09d1a/</id><updated>2020-02-27T22:48:53.349000Z</updated><subtitle>Recent posts to Retain SFC</subtitle><entry><title>Retain SFC</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b564d09d1a/?limit=25#c73b" rel="alternate"/><published>2020-02-27T22:48:53.349000Z</published><updated>2020-02-27T22:48:53.349000Z</updated><author><name>Waddle</name><uri>https://forge.codesys.com/u/waddle/</uri></author><id>https://forge.codesys.com267df87a161ebd869eb8b2dc8b7250b3845ee136</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have read that there are two ways to get SFC retain:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Declare all Stepnames used in SFC as RETAIN variable &lt;/li&gt;
&lt;li&gt;Define your POU istead of a PROGRAM as FUNCTION BLOCK and declare the FUNCTION BLOCK as RETAIN&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I have tested nr. 2 and it works fine, but I can't get nr. 1 to work.&lt;br/&gt;
Where and how do I declare the stepname?&lt;br/&gt;
Is it StepName: BOOL; or what? &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>