<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Expression Evaluvation</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b59f38c735/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b59f38c735/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b59f38c735/</id><updated>2020-02-27T20:12:28.778000Z</updated><subtitle>Recent posts to Expression Evaluvation</subtitle><entry><title>Expression Evaluvation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b59f38c735/?limit=25#5368" rel="alternate"/><published>2020-02-27T20:12:28.778000Z</published><updated>2020-02-27T20:12:28.778000Z</updated><author><name>RajeshGandhi</name><uri>https://forge.codesys.com/u/rajeshgandhi/</uri></author><id>https://forge.codesys.com7098bc0dbf6387c771b30be17642c8198a63ba19</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I tried the Exec function which can handle only one operator, But in our case user can enter an lenghty expression with more than one operator( AND &amp;amp; or OR |). I hope the exec function will not help us.&lt;/p&gt;
&lt;p&gt;If possible let me know any algoritum to do Expression Evaluvation.&lt;/p&gt;
&lt;p&gt;Thanks and Regards&lt;/p&gt;
&lt;p&gt;Rajesh G&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Expression Evaluvation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b59f38c735/?limit=25#cdfe" rel="alternate"/><published>2020-02-27T20:12:24.851000Z</published><updated>2020-02-27T20:12:24.851000Z</updated><author><name>hugo</name><uri>https://forge.codesys.com/u/hugo/</uri></author><id>https://forge.codesys.com10d8201a857f55ec9b74af2600a76236e18a4698</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;in the open source library oscat you can find code for a similar expression engine 'exec' this could be modified quickly to evaluate your statements.&lt;/p&gt;
&lt;p&gt;pls get the library at  w &lt;a class="" href="http://www.oscat.de" rel="nofollow"&gt;www.oscat.de&lt;/a&gt; w &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Expression Evaluvation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b59f38c735/?limit=25#9022" rel="alternate"/><published>2020-02-27T20:12:23.503000Z</published><updated>2020-02-27T20:12:23.503000Z</updated><author><name>RajeshGandhi</name><uri>https://forge.codesys.com/u/rajeshgandhi/</uri></author><id>https://forge.codesys.com7706730fce07f2a154d498a2649c4e084709207a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I created a function which will do the process, but the problem is i need to reduce the process time, If the Expression length is big,&lt;/p&gt;
&lt;p&gt;Find the attached code for reference.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=147" rel="nofollow"&gt;Equation_Processing_4.pro &lt;span&gt;&lt;span&gt;[283.73 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Expression Evaluvation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b59f38c735/?limit=25#62ab" rel="alternate"/><published>2020-02-27T20:12:19.716000Z</published><updated>2020-02-27T20:12:19.716000Z</updated><author><name>ndzied1</name><uri>https://forge.codesys.com/u/ndzied1/</uri></author><id>https://forge.codesys.come2a44f81ed487acdb37b1022861a95c0ce72f4ce</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;What you are talking about is an interpreter.  &lt;/p&gt;
&lt;p&gt;This is a good project for students in first year computer science curriculum.&lt;/p&gt;
&lt;p&gt;I don't believe there is an interpreter built into CoDeSys but that doesn't mean you couldn't write one.  Although, I can't see the reason for it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Expression Evaluvation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b59f38c735/?limit=25#8599" rel="alternate"/><published>2020-02-27T20:12:18.349000Z</published><updated>2020-02-27T20:12:18.349000Z</updated><author><name>RajeshGandhi</name><uri>https://forge.codesys.com/u/rajeshgandhi/</uri></author><id>https://forge.codesys.comebae7370222adb43b03d89c25a43f286aa59ebeb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is there any Function or Functional Block available to evaluvate a string as shown below&lt;/p&gt;
&lt;p&gt;Result:BOOL;&lt;/p&gt;
&lt;p&gt;Input_Expression:STRING;&lt;/p&gt;
&lt;p&gt;Input_Expression := '1 OR 0 AND 1 OR 0';&lt;/p&gt;
&lt;p&gt;Result := (&lt;em&gt; Should give the result of the Input_expression &lt;/em&gt;)&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Rajesh G&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>