<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to IEC Steps</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/54172bae6d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/54172bae6d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/54172bae6d/</id><updated>2020-02-27T21:28:01.577000Z</updated><subtitle>Recent posts to IEC Steps</subtitle><entry><title>IEC Steps</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/54172bae6d/?limit=25#b0d7" rel="alternate"/><published>2020-02-27T21:28:01.577000Z</published><updated>2020-02-27T21:28:01.577000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com7dc9b94d41bab9fc4033b8cd9f0f004a51eff354</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have written an example codesys and uploaded it, just take this example&lt;/p&gt;
&lt;p&gt;You have to add actions in your program and then call them via the N (other functions are also possible see qualifier)&lt;br/&gt;
An Entry action is possible by using a P (Pulse) this is run only once.&lt;br/&gt;
(from help file &lt;br/&gt;
In order to associate the actions with IEC steps the following qualifiers are available:&lt;/p&gt;
&lt;p&gt;N&lt;br/&gt;
 Non-stored&lt;br/&gt;
 The action is active as long as the step&lt;/p&gt;
&lt;p&gt;R&lt;br/&gt;
 overriding Reset&lt;br/&gt;
 The action is deactivated&lt;/p&gt;
&lt;p&gt;S&lt;br/&gt;
 Set (Stored)&lt;br/&gt;
 The action is activated and remains active until a Reset&lt;/p&gt;
&lt;p&gt;L&lt;br/&gt;
 time Limited&lt;br/&gt;
 The action is activated for a certain time, maximum as long as the step is active&lt;/p&gt;
&lt;p&gt;D&lt;br/&gt;
 time Delayed&lt;br/&gt;
 The action becomes active after a certain time if the step is still active and then it remains active as long as the step is active.&lt;/p&gt;
&lt;p&gt;P&lt;br/&gt;
 Pulse&lt;br/&gt;
 The action is executed just one time if the step is active&lt;/p&gt;
&lt;p&gt;SD&lt;br/&gt;
 Stored and time Delayed&lt;br/&gt;
 The action is activated after a certain time and remains active until a Reset&lt;/p&gt;
&lt;p&gt;DS&lt;br/&gt;
 Delayed and Stored&lt;br/&gt;
 The action is activated after a certain time as long as the step is still active and remains active up to a Reset&lt;/p&gt;
&lt;p&gt;SL&lt;br/&gt;
 Stored and time limited&lt;br/&gt;
 The action is activated for a certain time&lt;/p&gt;
&lt;p&gt;The qualifiers L, D, SD, DS and SL need a time value in the TIME constant format. This value can be entered directly (e.g. “T#5s”) or by a variable of datatype TIME (e.g. “t_var”).&lt;/p&gt;
&lt;p&gt;An EXIT program is more difficult in IEC (I have to check when output is true if all actions are done even when transition is true)&lt;/p&gt;
&lt;p&gt;The transition is or a Bool out of the action above or just any bool from the global or local another way is to use here a ladder without a output.&lt;br/&gt;
You only are allowed to write one boolean as output.&lt;/p&gt;
&lt;p&gt;I saw something peculiar when proramming.&lt;br/&gt;
Before you even program one step have the iecsfc.lib in the library list and set the IEC steps to ON .&lt;br/&gt;
It is possible to use the steps but they will never work when other sequence is used.&lt;/p&gt;
&lt;p&gt;If you send me your PRO or i prefer EXP file i will comment it and send it back to the forum. (or if email given to your PM.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IEC Steps</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/54172bae6d/?limit=25#cc44" rel="alternate"/><published>2020-02-27T21:27:57.488000Z</published><updated>2020-02-27T21:27:57.488000Z</updated><author><name>JCPKemper</name><uri>https://forge.codesys.com/u/jcpkemper/</uri></author><id>https://forge.codesys.comc1dc7d55e804dd6606330316a25b8a75d1833404</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Paul,&lt;br/&gt;
I see how to add actions and I know I can program in any supported language. I am using IEC steps so I should should have an entry action an exit action and an action which runs as long as the step  is active (N action) I think The N comes out of the right side of the step and has two boxes the first says N and the second I can type code in but it does not expand. Is this my step in process code and if so why can I not expand it?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IEC Steps</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/54172bae6d/?limit=25#d060" rel="alternate"/><published>2020-02-27T21:27:56.033000Z</published><updated>2020-02-27T21:27:56.033000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comae7966bc0a09c0120e0767502fb8bdbf70694df4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;1.&lt;br/&gt;
Under project you see add action&lt;br/&gt;
here you can put any actions in any language you are using.&lt;br/&gt;
In the IEC step you can define the qualifier (like N for Normal running when step is active)&lt;br/&gt;
A P for only once when steps gets active etc.&lt;br/&gt;
One remark here (the actions are not checked when not active so a timer will have some problems to check)&lt;br/&gt;
2. No you can not use a default However you can copy a step and its transition and use it many times. &lt;br/&gt;
You can even make a small lib with this.&lt;br/&gt;
Do not use IEC steps and NX together as this is hard to read because you have 4 programs running on one step.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;click on the first one (top) then hold shift and click the lowest&lt;br/&gt;
for the transitions you should use 1 rung external ladders without coil&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</summary></entry><entry><title>IEC Steps</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/54172bae6d/?limit=25#a0d7" rel="alternate"/><published>2020-02-27T21:27:54.589000Z</published><updated>2020-02-27T21:27:54.589000Z</updated><author><name>JCPKemper</name><uri>https://forge.codesys.com/u/jcpkemper/</uri></author><id>https://forge.codesys.comac3fbd187cc61fc2afe61c6960532e3a5dc8d419</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have IEC Steps selected and have a few questions. &lt;br/&gt;
1. The "N" action always appears but I can never expand the window to enter my commands. Can this part of the block be expanded to enter code (Can ladder, FB or ST all be used here). &lt;br/&gt;
2. Also is there a way to default the Entry and exit actions to always be on and to open in ST.&lt;br/&gt;
3. Is there any way you can use the mouse to select series and parallel blocks to copy an paste. I only have been able to copy series blocks using the Ctrl left mouse button.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>