<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to 3 inputs and 2 outputs</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/582248b7b3/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/582248b7b3/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/582248b7b3/</id><updated>2022-08-05T16:51:36.749000Z</updated><subtitle>Recent posts to 3 inputs and 2 outputs</subtitle><entry><title>3 inputs and 2 outputs</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/582248b7b3/?limit=25#cf35" rel="alternate"/><published>2022-08-05T16:51:36.749000Z</published><updated>2022-08-05T16:51:36.749000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.com1b8674ab96bdeaf9846049c002c2d1952e0ab1ae</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Well, please explain what values you want O1 and O2 to assume at each point of the following sequences (all starting from not pressed / scratch):&lt;br/&gt;
1. &amp;lt;r1,r2,r3&amp;gt;,P1, P2, R2, R1&lt;br/&gt;
2. &amp;lt;r1,r2,r3&amp;gt;,P3, R3, P3, R3&lt;br/&gt;
3. &amp;lt;r1,r2,r3&amp;gt;,P3, R3, P1, R1&lt;br/&gt;
4. &amp;lt;r1,r2,r3&amp;gt;,P1, R1, P3, R3&lt;br/&gt;
5. &amp;lt;r1,r2,r3&amp;gt;,P1, P3, R3, R1, P3, R3, P1, R1&lt;br/&gt;
6. &amp;lt;r1,r2,r3&amp;gt;,P1, P3, R1, P1, R3, R1&amp;lt;/r1,r2,r3&amp;gt;&amp;lt;/r1,r2,r3&amp;gt;&amp;lt;/r1,r2,r3&amp;gt;&amp;lt;/r1,r2,r3&amp;gt;&amp;lt;/r1,r2,r3&amp;gt;&amp;lt;/r1,r2,r3&amp;gt;&lt;/p&gt;
&lt;p&gt;I guess some, based on your post:&lt;br/&gt;
1. &amp;lt;o1f-o2f&amp;gt;,O1T-O2F, O1T-O2T, O1T-O2F, O1F-O2F&lt;br/&gt;
2. &amp;lt;o1f-o2f&amp;gt;,O1T-O2F, O1T-O2F, O1F-O2T, O1F-O2T&lt;br/&gt;
3. &amp;lt;o1f-o2f&amp;gt;,O1T-O2F, O1T-O2F, O1T-O2T, O1F-O2T&lt;br/&gt;
4. &amp;lt;o1f-o2f&amp;gt;,O1T-O2F, O1F-O2F, O1T-O2T, O1T-O2T&amp;lt;/o1f-o2f&amp;gt;&amp;lt;/o1f-o2f&amp;gt;&amp;lt;/o1f-o2f&amp;gt;&amp;lt;/o1f-o2f&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;whatever&amp;gt; = initial condition&lt;br/&gt;
Px = pressed button x (either momentary or latching)&lt;br/&gt;
Rx = released button x (either momentary or latching)&lt;br/&gt;
Oxy = output x has state y (T = on, F = off)&amp;lt;/whatever&amp;gt;&lt;/p&gt;
&lt;p&gt;Button 1 and 2 are latching, button 3 is momentary&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>3 inputs and 2 outputs</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/582248b7b3/?limit=25#2061" rel="alternate"/><published>2022-08-05T11:33:13.072000Z</published><updated>2022-08-05T11:33:13.072000Z</updated><author><name>edwin200000</name><uri>https://forge.codesys.com/u/edwin200000/</uri></author><id>https://forge.codesys.com146af879eaed7fb3d3d971652145ea2b6565efdf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have simplified the code. I made from button 3 a bool. And when high stand_links and when low stand_rechts.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>3 inputs and 2 outputs</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/582248b7b3/?limit=25#c361" rel="alternate"/><published>2022-08-05T09:43:03.934000Z</published><updated>2022-08-05T09:43:03.934000Z</updated><author><name>edwin200000</name><uri>https://forge.codesys.com/u/edwin200000/</uri></author><id>https://forge.codesys.comcb2a38eb9e6d9af8001a55d8d52ecdc4dcdc3f6e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Goodday,&lt;/p&gt;
&lt;p&gt;I have three buttons. Lets call the first one button 1 this is a bool by one press it's true by another press it's false. I have button 2 this is also a bool by one press it's true by another press it's false.&lt;br/&gt;
I have also button 3 this one is different it's only true if the button is pressed. &lt;br/&gt;
And as you could read in the title, 2 outputs these are also bools.&lt;/p&gt;
&lt;p&gt;I want that if I press button 3 that output 1 goes/is on and output 2 goes/is off. If I press another time button 3 I want that output 1 is/goes off and output 2 goes/is on. If I press another time button 3 I want that output 1 goes/is on and output 2 goes/is off. And so on. It's needs to overruled the other two buttons I mention earlier.&lt;/p&gt;
&lt;p&gt;And I want that if I press button 1 output 1 goes on or off. And I want that if I press button 2 output 2 goes on or off. This needs too overruled button 3. &lt;/p&gt;
&lt;p&gt;I tried a lot but couldn't find a solution. This is what I have so far. See the attachments and: &lt;br/&gt;
TS19 = button 1&lt;br/&gt;
TS20 = button 2&lt;br/&gt;
knop_rechts_links = button 3&lt;br/&gt;
ventiel22 = output 1&lt;br/&gt;
ventiel21 = output 2&lt;/p&gt;
&lt;p&gt;But it's not working good when I change output 1 or 2 with buttons 1 or 2 and press then button 3 it works the opposite, all the outputs goes on or off.   &lt;/p&gt;
&lt;p&gt;Everything is welcome. Thanks in advance! &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>