<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to *** INVALID 16#40 - what this means ??</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/40bc42da96/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/40bc42da96/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/40bc42da96/</id><updated>2020-02-27T20:51:13.637000Z</updated><subtitle>Recent posts to *** INVALID 16#40 - what this means ??</subtitle><entry><title>*** INVALID 16#40 - what this means ??</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/40bc42da96/?limit=25#1465" rel="alternate"/><published>2020-02-27T20:51:13.637000Z</published><updated>2020-02-27T20:51:13.637000Z</updated><author><name>thkfighter</name><uri>https://forge.codesys.com/u/thkfighter/</uri></author><id>https://forge.codesys.come9c77eaf7ad31717bdc7c87a35d1a4d8312a3e1f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;a class="user-mention" href="/u/pnn/"&gt;@pnn&lt;/a&gt; .&lt;br/&gt;
201709251730 UTC+8&lt;br/&gt;
I change the CoDeSys v2.3--Project--Options--Build--Number of data segments to default value, and the problem is gone.&lt;/p&gt;
&lt;p&gt;210709251400 UTC+8&lt;br/&gt;
I encountered a similar problem, indicating '&lt;span style="color: #FF0000;"&gt;&lt;strong&gt;&lt;em&gt; INVALID: 16#08 &lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;'. Have you solved your problem, and what is your solution?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>*** INVALID 16#40 - what this means ??</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/40bc42da96/?limit=25#2e4a" rel="alternate"/><published>2020-02-27T20:51:12.248000Z</published><updated>2020-02-27T20:51:12.248000Z</updated><author><name>pnn</name><uri>https://forge.codesys.com/u/pnn/</uri></author><id>https://forge.codesys.come86395a2f9c9b4495dd14001eb1b1250c841d664</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;yes, sC34M and sC34F are BOOL's, these are the names of two physical inputs - declared directly in the PLC configuration.&lt;/p&gt;
&lt;p&gt;Thanks for reminding me about SEL, just forgot about it. It's indeed the better choice in this case and I'll use it.&lt;br/&gt;
But still the question remains why this INVALID 16#40 appears, as the use of MUX is technically valid. And especially why it disappears if I use a copy of a variable instead of the variable itself.&lt;br/&gt;
BTW the problem is not in the conversion - I tested to attach a BYTE variable (not obtained via conversion) to the first MUX input, and the output was still invalid.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>*** INVALID 16#40 - what this means ??</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/40bc42da96/?limit=25#b260" rel="alternate"/><published>2020-02-27T20:51:10.858000Z</published><updated>2020-02-27T20:51:10.858000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comee67ffdda8fd0de036a9ad0dcd03c69983f571b9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is sC34M a BOOL?&lt;br/&gt;
is sC34F a bool?&lt;/p&gt;
&lt;p&gt;instead of MUX use SELECT (it needs a BOOL input, this way no conversion needed)&lt;br/&gt;
please have yur names to the convention (x foor BOOL etc.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>*** INVALID 16#40 - what this means ??</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/40bc42da96/?limit=25#fe7a" rel="alternate"/><published>2020-02-27T20:51:06.944000Z</published><updated>2020-02-27T20:51:06.944000Z</updated><author><name>pnn</name><uri>https://forge.codesys.com/u/pnn/</uri></author><id>https://forge.codesys.comfc88e1cb4019495a7d24b6f8125ba000fbe9fe58</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a really weird problem with a CFC program, please check attached image.&lt;/p&gt;
&lt;p&gt;There is a MUX box which switches between two BOOLS(physical inputs), and sends the output to a BOOL input of a FB.&lt;br/&gt;
When online, Codesys 2.3 displays the MUX output (here sensorFWD FB input) as invalid - there is text *** INVALID 16#40 next to it, highlighted in red. Modifying MUX inputs has no effect at all.&lt;/p&gt;
&lt;p&gt;The problem is not in the FB but in the MUX - if I attach MUX output to a locally declared BOOL, this BOOL is displayed as INVALID as well.&lt;/p&gt;
&lt;p&gt;What is even more strange is that if I first copy one of the physical inputs (sC34M in the picture) to a local BOOL(copy_of_sC34M), and then then connect this BOOL copy to the MUX input (instead of the physical input, as displayed in the picture) - the problem disappears ??? MUX works as expected, no INVALID etc. How could that be ?&lt;/p&gt;
&lt;p&gt;I did project check for overlapping memory areas and concurrent access - no results. As far as I can tell, the problem is not in the physical inputs either - they are read correctly, the PLC doesn't display any problem. Project has only one freewheeling task, PLC is Festo CPX-CEC-C1.&lt;/p&gt;
&lt;p&gt;What could be the explanation for this? &lt;br/&gt;
I have found some sort of a workaround, but don't want to leave it like that.&lt;/p&gt;
&lt;p&gt;Another question is, how do I detect issues like this? I found this *** INVALID 16#40 by chance, there wasn't any indication for a problem from the PLC/Codesys.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Clipboard Image.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=373"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>