<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to 1-Wire, ID eines Bus Teilnehmers über Variable setzen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/4133a5c001/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/4133a5c001/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/4133a5c001/</id><updated>2020-02-28T04:35:52.802000Z</updated><subtitle>Recent posts to 1-Wire, ID eines Bus Teilnehmers über Variable setzen</subtitle><entry><title>1-Wire, ID eines Bus Teilnehmers über Variable setzen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/4133a5c001/?limit=25#478c" rel="alternate"/><published>2020-02-28T04:35:52.802000Z</published><updated>2020-02-28T04:35:52.802000Z</updated><author><name>Lambda</name><uri>https://forge.codesys.com/u/lambda/</uri></author><id>https://forge.codesys.comd7612217a1ba8a840f0322fdebaf7c76c459f762</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Edwin,&lt;/p&gt;
&lt;p&gt;danke fünktioniert gut, das war die Lösung.&lt;/p&gt;
&lt;p&gt;Auch das direkte Zuweisen der gescannten Sensoren funktioniert einwandfrei, allerdings scheint es da ein&lt;br/&gt;
Problem mit dem Treiber für 1-wire zu geben. Der Treiber löscht bei mir die angelegten Ordner für die einzelnen&lt;br/&gt;
Sensoren nicht im Verzeichenis /sys/devices/w1_bus_master1 wenn der Sensor abgekelmmt wird. Erst nach&lt;br/&gt;
einem Neustart des Pi wird der Ordner gelöscht.&lt;br/&gt;
Somit listet natürlich auch CoDeSys Sensoren auf, die es eigentlich nicht mehr gibt. Ist Dir das Problem auch&lt;br/&gt;
schon mal aufgefallen? Oder ist das nur bei mir so. &lt;/p&gt;
&lt;p&gt;Hab auch schon im Internet gesucht, allerdings gibt es da auch die verschiedensten Fälle, bei manchen werden&lt;br/&gt;
die Ordner sofort gelöscht, bei manchen dauerts einige Minuten und andere haben auch das Problem wie ich.&lt;/p&gt;
&lt;p&gt;Vielleicht gibt ja eine Lösung das Problerm zu beheben?&lt;/p&gt;
&lt;p&gt;bin für jeden Tipp dankbar.&lt;/p&gt;
&lt;p&gt;Gruß Werner&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>1-Wire, ID eines Bus Teilnehmers über Variable setzen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/4133a5c001/?limit=25#b261" rel="alternate"/><published>2020-02-28T04:35:50.707000Z</published><updated>2020-02-28T04:35:50.707000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comb554e3de0928c520e9763e61a60e7b8591ed495b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;denke so prinzipiell geht es so:&lt;br/&gt;
diesmal haben wir es auch wirklich ausprobiert &lt;/p&gt;
&lt;hr/&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;OneWireUniqueID&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;byClass&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;abyUniqueID&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;00&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;abyUniqueID&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;00&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;abyUniqueID&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;abyUniqueID&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;37&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;abyUniqueID&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="n"&gt;F&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;abyUniqueID&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="n"&gt;B&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;DS18B20&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;ID&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;span class="err"&gt;```&lt;/span&gt;&lt;span class="o"&gt;---------------------------------------&lt;/span&gt;

&lt;span class="n"&gt;Am&lt;/span&gt; &lt;span class="n"&gt;schicksten&lt;/span&gt; &lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="err"&gt;ä&lt;/span&gt;&lt;span class="n"&gt;re&lt;/span&gt; &lt;span class="n"&gt;nat&lt;/span&gt;&lt;span class="err"&gt;ü&lt;/span&gt;&lt;span class="n"&gt;rlich&lt;/span&gt; &lt;span class="n"&gt;wenn&lt;/span&gt; &lt;span class="n"&gt;du&lt;/span&gt; &lt;span class="n"&gt;unser&lt;/span&gt; &lt;span class="n"&gt;Beispiel&lt;/span&gt; &lt;span class="n"&gt;nimmst&lt;/span&gt; &lt;span class="n"&gt;und&lt;/span&gt; &lt;span class="n"&gt;dann&lt;/span&gt; &lt;span class="n"&gt;das&lt;/span&gt; &lt;span class="n"&gt;Scannergebnis&lt;/span&gt; &lt;span class="n"&gt;da&lt;/span&gt; &lt;span class="n"&gt;reinschreibst&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;
&lt;span class="n"&gt;dann&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="err"&gt;ü&lt;/span&gt;&lt;span class="n"&gt;sstest&lt;/span&gt; &lt;span class="n"&gt;du&lt;/span&gt; &lt;span class="n"&gt;dir&lt;/span&gt; &lt;span class="n"&gt;das&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="err"&gt;ä&lt;/span&gt;&lt;span class="n"&gt;ndische&lt;/span&gt; &lt;span class="n"&gt;reinschreiben&lt;/span&gt; &lt;span class="err"&gt;ü&lt;/span&gt;&lt;span class="n"&gt;ber&lt;/span&gt; &lt;span class="n"&gt;Visu&lt;/span&gt; &lt;span class="n"&gt;eigentlich&lt;/span&gt; &lt;span class="n"&gt;ersparen&lt;/span&gt; &lt;span class="n"&gt;denke&lt;/span&gt; &lt;span class="n"&gt;ich&lt;/span&gt;
&lt;span class="n"&gt;also&lt;/span&gt; &lt;span class="n"&gt;so&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;DS18B20.ID := Onewire_master.pasScannedDevices^&lt;span&gt;[0]&lt;/span&gt;;&lt;/p&gt;
&lt;p&gt;```&lt;br/&gt;
Grüße&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>1-Wire, ID eines Bus Teilnehmers über Variable setzen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/4133a5c001/?limit=25#5490" rel="alternate"/><published>2020-02-28T04:35:48.663000Z</published><updated>2020-02-28T04:35:48.663000Z</updated><author><name>Lambda</name><uri>https://forge.codesys.com/u/lambda/</uri></author><id>https://forge.codesys.comc168c4d75c87d0ce43e165d1b96f2e993464d5ec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo liebe Mitglieder,&lt;/p&gt;
&lt;p&gt;kann mir jemand helfen, ich will die ID von einem 1-Wire Teilnehmer mit einer Variable setzen, also z. B. über einen Eintrag in der Visu, der dann ins Programm übernommen werden soll. Leider funktioniert es nicht.&lt;/p&gt;
&lt;p&gt;Ich habe es mit der Methode SetIDFromString versucht, wie beschrieben bringt die Methode auch die Rückmeldung TRUE für das erfolgreiche Setzen der ID, die ID wird aber nicht in den jeweiligen 1-Wire Teilnehmer eingetragen und dieser funktioniert somit auch nicht.&lt;/p&gt;
&lt;p&gt;Hat da schon jemand Erfahrung, bitte um Eure Hilfe.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>