<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to 【Solved】Error 4355, 4370, 4371--A transition may not have any side effects; Superfluous lines; Invalid characters</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b62f91a542/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b62f91a542/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b62f91a542/</id><updated>2020-02-27T22:35:10.954000Z</updated><subtitle>Recent posts to 【Solved】Error 4355, 4370, 4371--A transition may not have any side effects; Superfluous lines; Invalid characters</subtitle><entry><title>【Solved】Error 4355, 4370, 4371--A transition may not have any side effects; Superfluous lines; Invalid characters</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b62f91a542/?limit=25#54b2" rel="alternate"/><published>2020-02-27T22:35:10.954000Z</published><updated>2020-02-27T22:35:10.954000Z</updated><author><name>thkfighter</name><uri>https://forge.codesys.com/u/thkfighter/</uri></author><id>https://forge.codesys.comd80e197171b2bddfd1ca0175361148876f83c472</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;strong&gt;Software&lt;/strong&gt;: CoDeSys V2.3&lt;br/&gt;
&lt;strong&gt;Function to achieve&lt;/strong&gt;: control the traffic lights&lt;br/&gt;
&lt;strong&gt;Problem&lt;/strong&gt;: The POU PLC_PRG is written in SFC using IEC-Steps. There are three compiling errors which I cannot eliminate even though the help documents contain corresponding explainations.&lt;/p&gt;
&lt;p&gt;at Transition T002, &lt;br/&gt;
Error 4355: A transition may not have any side effects (Assignments, FB-Calls etc.)&lt;/p&gt;
&lt;p&gt;in line 3 at Transition T002,&lt;br/&gt;
Error 4370: PLC_PRG (3): Superfluous lines found after correct IL-transition.&lt;/p&gt;
&lt;p&gt;in line 1 at Transition T001,&lt;br/&gt;
Error 4371: Transition T001 (1): Invalid characters following valid expression: 'T001 := START;"&lt;/p&gt;
&lt;p&gt;T001&lt;br/&gt;
T001 := START;&lt;/p&gt;
&lt;p&gt;T002&lt;br/&gt;
ST  TON_2.IN&lt;br/&gt;
LD  T#8S&lt;br/&gt;
ST  TON_2.PT&lt;br/&gt;
CAL  TON_2&lt;br/&gt;
LD  TON_2.Q&lt;br/&gt;
ST  T002&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Some clues:&lt;/strong&gt;&lt;br/&gt;
In the help docs of CoDeSys V2.3, &lt;br/&gt;
A transition condition must have the value TRUE or FALSE. Thus it can consist of either a boolean variable, a boolean address or a boolean constant. It can also contain a series of instructions having a boolean result, either in ST syntax (e.g. (i&amp;lt;= 100) AND b) or in any language desired (see 'Extras' '_ Action/Transition'). &lt;span style="color: #FF0000;"&gt;But a transition may not contain programs, function blocks or assignments! &lt;/span&gt;&lt;br/&gt;
In the help docs of CoDeSys V3.5, &lt;br/&gt;
CODESYS Development System &amp;gt; Reference, Programming &amp;gt; Programming Languages and their Editors &amp;gt; . Sequential Function Chart (SFC) &amp;gt; Elements &amp;gt; SFC Elements 'Step' and 'Transition' &lt;br/&gt;
&lt;span style="color: #FF0000;"&gt;As opposed to CoDeSys V2.3, now CODESYS treats a transition condition like a method call. &lt;/span&gt;The entry has the following syntax:&lt;br/&gt;
&amp;lt;transition name=""&amp;gt;:=&amp;lt;transition condition=""&amp;gt;&lt;br/&gt;
(for example trans1:= a=100)&lt;br/&gt;
or only&lt;br/&gt;
&amp;lt;transition condition=""&amp;gt;&lt;br/&gt;
(for example a=100)&amp;lt;/transition&amp;gt;&amp;lt;/transition&amp;gt;&amp;lt;/transition&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=3039" rel="nofollow"&gt;SFC_TrafficControl_SimpleTransitionWithStepTimer.pro &lt;span&gt;&lt;span&gt;[25.63 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=3038" rel="nofollow"&gt;SFC_TrafficControl_LD FBD Transition.pro &lt;span&gt;&lt;span&gt;[24.41 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=3037" rel="nofollow"&gt;SFC_TrafficControl_Action2Transition.pro &lt;span&gt;&lt;span&gt;[24.94 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=3036" rel="nofollow"&gt;SFC_TrafficControl.project &lt;span&gt;&lt;span&gt;[126.56 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=3035" rel="nofollow"&gt;SFC_TrafficControl.pro &lt;span&gt;&lt;span&gt;[24.32 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>