<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Problem mit 4 Stück  MCP23017</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/15586fc21b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/15586fc21b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/15586fc21b/</id><updated>2021-02-28T13:47:27.372000Z</updated><subtitle>Recent posts to Problem mit 4 Stück  MCP23017</subtitle><entry><title>Problem mit 4 Stück  MCP23017</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/15586fc21b/?limit=25#5742/af64" rel="alternate"/><published>2021-02-28T13:47:27.372000Z</published><updated>2021-02-28T13:47:27.372000Z</updated><author><name>spsentdecker</name><uri>https://forge.codesys.com/u/spsentdecker/</uri></author><id>https://forge.codesys.com7959c4e2185a9da67eb507917f9da01333de95db</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Bei mir kommt immer die Meldung "IN_A ist kein Eingang von MCP23017_16_IO". Wenn ich den Eingangsteil ausblende (//) und nur den OUT Teil drin habe, funktioniert es... Wo könnte das Problem liegen?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem mit 4 Stück  MCP23017</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/15586fc21b/?limit=25#5742/113b" rel="alternate"/><published>2021-02-28T13:47:21.917000Z</published><updated>2021-02-28T13:47:21.917000Z</updated><author><name>spsentdecker</name><uri>https://forge.codesys.com/u/spsentdecker/</uri></author><id>https://forge.codesys.coma08dc5c68ae21a2c34ed4cc06403824d7d653614</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Bei mir kommt immer die Meldung "IN_A ist kein Eingang von MCP23017_16_IO". Wenn ich den Eingangsteil ausblende (//) und nur den OUT Teil drin habe, funktioniert es... Wo könnte das Problem liegen?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem mit 4 Stück  MCP23017</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/15586fc21b/?limit=25#b2c5" rel="alternate"/><published>2020-02-28T03:50:04.921000Z</published><updated>2020-02-28T03:50:04.921000Z</updated><author><name>mawi</name><uri>https://forge.codesys.com/u/mawi/</uri></author><id>https://forge.codesys.com181bbe6e3edfb22e47311ab3c652db8160d456b5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;br/&gt;
so änderst du die IOs als Eingang MCP23017.IO_B := 16#FF;&lt;br/&gt;
Viele Grüße  Mathias&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem mit 4 Stück  MCP23017</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/15586fc21b/?limit=25#5742" rel="alternate"/><published>2020-02-28T03:49:59.391000Z</published><updated>2020-02-28T03:49:59.391000Z</updated><author><name>rasenmuster</name><uri>https://forge.codesys.com/u/rasenmuster/</uri></author><id>https://forge.codesys.com0715ed12ee23a67ec1631d7a6d6be7b617afe863</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;wie kann man den Bereich B als Eingang deklarieren? So in etwa:&lt;/p&gt;
&lt;p&gt;FUNCTION_BLOCK IO_MCP23017&lt;br/&gt;
VAR_INPUT&lt;br/&gt;
    I2C: USINT;&lt;br/&gt;
    A0:BOOL;&lt;br/&gt;
    A1:BOOL;&lt;br/&gt;
    A2:BOOL;&lt;br/&gt;
    A3:BOOL;&lt;br/&gt;
    A4:BOOL;&lt;br/&gt;
    A5:BOOL;&lt;br/&gt;
    A6:BOOL;&lt;br/&gt;
    A7:BOOL;&lt;br/&gt;
END_VAR&lt;br/&gt;
VAR_OUTPUT&lt;br/&gt;
    B0:BOOL;&lt;br/&gt;
    B1:BOOL;&lt;br/&gt;
    B2:BOOL;&lt;br/&gt;
    B3:BOOL;&lt;br/&gt;
    B4:BOOL;&lt;br/&gt;
    B5:BOOL;&lt;br/&gt;
    B6:BOOL;&lt;br/&gt;
    B7:BOOL;&lt;br/&gt;
END_VAR&lt;br/&gt;
VAR&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;p&gt;MCP23017.usiAddress := I2C;&lt;/p&gt;
&lt;p&gt;MCP23017.IN_A;&lt;br/&gt;
MCP23017.IN_B  := SHL(SHL(SHL(SHL(SHL(SHL(SHL(BOOL_TO_BYTE(B7),1) OR BOOL_TO_BYTE(B6),1) OR BOOL_TO_BYTE(B5),1) OR BOOL_TO_BYTE(B4),1)&lt;br/&gt;
    OR BOOL_TO_BYTE(B3),1) OR BOOL_TO_BYTE(B2),1) OR BOOL_TO_BYTE(B1),1) OR BOOL_TO_BYTE(B0);   &lt;/p&gt;
&lt;p&gt;MCP23017.IO_B := 16#00;&lt;br/&gt;
MCP23017.IO_A := 16#00;&lt;/p&gt;
&lt;p&gt;MCP23017.OUT_A := SHL(SHL(SHL(SHL(SHL(SHL(SHL(BOOL_TO_BYTE(A7),1) OR BOOL_TO_BYTE(A6),1) OR BOOL_TO_BYTE(A5),1) OR BOOL_TO_BYTE(A4),1)&lt;br/&gt;
    OR BOOL_TO_BYTE(A3),1) OR BOOL_TO_BYTE(A2),1) OR BOOL_TO_BYTE(A1),1) OR BOOL_TO_BYTE(A0);&lt;br/&gt;
MCP23017.OUT_B;  // := SHL(SHL(SHL(SHL(SHL(SHL(SHL(BOOL_TO_BYTE(B7),1) OR BOOL_TO_BYTE(B6),1) OR BOOL_TO_BYTE(B5),1) OR BOOL_TO_BYTE(B4),1)&lt;br/&gt;
                              //    OR BOOL_TO_BYTE(B3),1) OR BOOL_TO_BYTE(B2),1) OR BOOL_TO_BYTE(B1),1) OR BOOL_TO_BYTE(B0);   &lt;/p&gt;
&lt;p&gt;MCP23017.STATE;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem mit 4 Stück  MCP23017</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/15586fc21b/?limit=25#3073" rel="alternate"/><published>2020-02-28T03:49:57.384000Z</published><updated>2020-02-28T03:49:57.384000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com1c70d5e79f31cfdfcb72b00e1af73c11cc775fcc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; PJ242&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;mawi hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hallo PJ242,&lt;br/&gt;
du hattest doch recht. Ich habe für jeden MCP23017 ein eigenes Gerät angehängt und in der POU ebenfalls für jedes Gerät einen eigenen Baustein.&lt;br/&gt;
Ich bin begeistert, dass es klappt und danke für deine Hilfe.  &lt;br/&gt;
Viele Grüße Mathias&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi mawi.&lt;/p&gt;
&lt;p&gt;Das freut mich, dass ich dir helfen konnte.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem mit 4 Stück  MCP23017</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/15586fc21b/?limit=25#af12" rel="alternate"/><published>2020-02-28T03:49:55.380000Z</published><updated>2020-02-28T03:49:55.380000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comb4a01448e43ab9eb9ce8f775fe85f8aa5bea87c1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Josef,&lt;/p&gt;
&lt;p&gt;die von anderen Usern erstellten Bibliotheken und Gerätebeschreibungen findest du im englischen CODESYS Forum unter:&lt;strong&gt;CODESYS V3 Raspberry Pi share your devices &amp;amp; libraries&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://forum.codesys.com/viewtopic.php?f=23&amp;amp;t=5872&amp;amp;x=10868&amp;amp;p=11014&amp;amp;lan=en" rel="nofollow"&gt;http://forum.codesys.com/viewtopic.php? ... 868#p11014&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Grüße&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem mit 4 Stück  MCP23017</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/15586fc21b/?limit=25#cdf6" rel="alternate"/><published>2020-02-28T03:49:49.843000Z</published><updated>2020-02-28T03:49:49.843000Z</updated><author><name>josef.welte</name><uri>https://forge.codesys.com/u/josef-welte/</uri></author><id>https://forge.codesys.comee35efe66bf200fd26363f7c1b6cd52ac5a2350a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo, ich suche auch die Lib für den MCP23017.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem mit 4 Stück  MCP23017</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/15586fc21b/?limit=25#a134" rel="alternate"/><published>2020-02-28T03:49:47.866000Z</published><updated>2020-02-28T03:49:47.866000Z</updated><author><name>mawi</name><uri>https://forge.codesys.com/u/mawi/</uri></author><id>https://forge.codesys.comc517a0a758176cddb4a5d1bfe1617e6a73a26771</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo PJ242,&lt;/p&gt;
&lt;p&gt;du hattest doch recht. Ich habe für jeden MCP23017 ein eigenes Gerät angehängt und in der POU ebenfalls für jedes Gerät einen eigenen Baustein.&lt;br/&gt;
Ich bin begeistert, dass es klappt und danke für deine Hilfe.    &lt;/p&gt;
&lt;p&gt;Viele Grüße Mathias&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem mit 4 Stück  MCP23017</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/15586fc21b/?limit=25#a99c" rel="alternate"/><published>2020-02-28T03:49:42.335000Z</published><updated>2020-02-28T03:49:42.335000Z</updated><author><name>mawi</name><uri>https://forge.codesys.com/u/mawi/</uri></author><id>https://forge.codesys.comd857f6bbfb6d14ebec6aeab89695beefa6df77c0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Danke für den Tipp.&lt;br/&gt;
Das habe ich auch schon versucht, leider ohne Ergebnis.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem mit 4 Stück  MCP23017</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/15586fc21b/?limit=25#2530" rel="alternate"/><published>2020-02-28T03:49:40.332000Z</published><updated>2020-02-28T03:49:40.332000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.combf7abb5e6caf55f36abd22ba9cdec0ddcc19292d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; PJ242&lt;/p&gt;
&lt;p&gt;4 Geräte am Bus bedarf auch dem Einbinden von 4 Geräten oder etwa nicht?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>