<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Two OneWireMaster on one Raspberry PI 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a817389ecb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a817389ecb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/a817389ecb/</id><updated>2025-11-22T16:50:59.678000Z</updated><subtitle>Recent posts to Two OneWireMaster on one Raspberry PI 5</subtitle><entry><title>Two OneWireMaster on one Raspberry PI 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a817389ecb/?limit=25#18b9" rel="alternate"/><published>2025-11-22T16:50:59.678000Z</published><updated>2025-11-22T16:50:59.678000Z</updated><author><name>s1mon</name><uri>https://forge.codesys.com/u/s1mon/</uri></author><id>https://forge.codesys.comf905de2bcb1934d7b158b97ea0f7ba9602ece02d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Took me a while to work on this again. &lt;br/&gt;
I testes today with a fresh setup and it works now. &lt;br/&gt;
My OneWireCycle tasks runs for around 10seconds. I guess my mistake was that I  put the cycle task for the OneWire Task to a too small number.&lt;/p&gt;
&lt;p&gt;Thx for the support!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Two OneWireMaster on one Raspberry PI 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a817389ecb/?limit=25#c143" rel="alternate"/><published>2025-10-21T18:23:21.081000Z</published><updated>2025-10-21T18:23:21.081000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com0d8f65f86f69ba53ab32a5ec944e47f0a65d712f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Could you check the taskcycle time in the taskmonitor (online monitor) - do you really see this 1s on Ethercat Task?&lt;br/&gt;
Need to check this on my hardware but will take some time...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Two OneWireMaster on one Raspberry PI 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a817389ecb/?limit=25#b02a" rel="alternate"/><published>2025-10-21T08:46:30.525000Z</published><updated>2025-10-21T08:46:30.525000Z</updated><author><name>s1mon</name><uri>https://forge.codesys.com/u/s1mon/</uri></author><id>https://forge.codesys.com5b7c3e6d49d7b08a00e112d05e6899389cf7ddfc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I don't know why the EtherCat fails, but what happens is: &lt;/p&gt;
&lt;p&gt;First I have only one 1WireMaster running on my Raspberry Pi and EtherCat is running fine.&lt;br/&gt;
Then I'd like to add a 2nd 1WireMaster. &lt;br/&gt;
Therefore I enable a 2nd GPIO Pin on the raspberry in the file "/boot/firmware/config.txt".&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;dtoverlay=w1-gpio,gpiopin=4,pullup=0
dtoverlay=w1-gpio,gpiopin=23,pullup=0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;To be able to use this 2nd 1WireMaster in Codesys Runtime I Adjust the CODESYScontrol.cfg file and add there:&lt;br/&gt;
&lt;code&gt;PlaceholderFilePath.2=/sys/devices/w1_bus_master2, $OneWire2$&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;After a reboot the EtherCat Master is not working any more.&lt;br/&gt;
I didn't even add a 2nd OneWire Master in Codesys, but still if I do the EtherCat does not work.&lt;/p&gt;
&lt;p&gt;Do you have an idea why? &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Two OneWireMaster on one Raspberry PI 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a817389ecb/?limit=25#c5c3" rel="alternate"/><published>2025-10-21T04:32:40.600000Z</published><updated>2025-10-21T04:32:40.600000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com3b7ac63b467190683d8a8d37343f183d24fee8c9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;the project has only one OneWire Master - so if you add the setting &lt;br/&gt;
"PlaceholderFilePath.2=/sys/devices/w1_bus_master2, $OneWire2$ to the config file it will fail and the Ethercat task will be blocked by the OneWire Master readings?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Two OneWireMaster on one Raspberry PI 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a817389ecb/?limit=25#dbc2" rel="alternate"/><published>2025-10-20T06:16:11.863000Z</published><updated>2025-10-20T06:16:11.863000Z</updated><author><name>s1mon</name><uri>https://forge.codesys.com/u/s1mon/</uri></author><id>https://forge.codesys.com9cb56cb3abbfc7c1af971765563a8194cc2e8a7e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;yes sure. Thx for your support!&lt;br/&gt;
This is the Codesys project stripped down only to my EtherCat and OneWire Configuration. &lt;/p&gt;
&lt;p&gt;The Project now contains only one OneWire Master on GPIO4. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Two OneWireMaster on one Raspberry PI 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a817389ecb/?limit=25#08b7" rel="alternate"/><published>2025-10-20T05:40:31.751000Z</published><updated>2025-10-20T05:40:31.751000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com5872d6dbd3636378fbd64875aa540797cd84ec75</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hm.. could you add the project or at least parts of it?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Two OneWireMaster on one Raspberry PI 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a817389ecb/?limit=25#f2aa" rel="alternate"/><published>2025-10-19T10:35:34.432000Z</published><updated>2025-10-19T10:35:34.432000Z</updated><author><name>s1mon</name><uri>https://forge.codesys.com/u/s1mon/</uri></author><id>https://forge.codesys.com6b362fece208f34aa4735a64b4d53572d82cd4b5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;All Sensors from the OneWire Master are assigned already to a seperate task with low prio (26) that runs with 1s cycle time. &lt;br/&gt;
My EtherCat Task is running with Prio 1.&lt;/p&gt;
&lt;p&gt;It all works fine, until I adjust the CODESYScontrol.cfg or the CODESYScontrol_Usr.cfg files so that it supports a 2nd OneWire Master in the Codeys Runtime.&lt;br/&gt;
If I change something in this config file and reboot my EtherCat Master stops working. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Two OneWireMaster on one Raspberry PI 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a817389ecb/?limit=25#dced" rel="alternate"/><published>2025-10-19T10:35:31.036000Z</published><updated>2025-10-19T10:35:31.036000Z</updated><author><name>s1mon</name><uri>https://forge.codesys.com/u/s1mon/</uri></author><id>https://forge.codesys.com580960e111e52fda7740e1ab7f735c4e635217b7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;All Sensors from the OneWire Master are assigned already to a seperate task with low prio (26) that runs with 1s cycle time. &lt;br/&gt;
My EtherCat Task is running with Prio 1.&lt;/p&gt;
&lt;p&gt;It all works fine, until I adjust the CODESYScontrol.cfg or the CODESYScontrol_Usr.cfg files so that it supports a 2nd OneWire Master in the Codeys Runtime.&lt;br/&gt;
If I change something in this config file and reboot my EtherCat Master stops working. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Two OneWireMaster on one Raspberry PI 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a817389ecb/?limit=25#01b8" rel="alternate"/><published>2025-10-19T10:35:28.368000Z</published><updated>2025-10-19T10:35:28.368000Z</updated><author><name>s1mon</name><uri>https://forge.codesys.com/u/s1mon/</uri></author><id>https://forge.codesys.com8bc93e7039abebbced516f74fbdd6fd023b53d1a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;All Sensors from the OneWire Master are assigned already to a seperate task with low prio (26) that runs with 1s cycle time. &lt;br/&gt;
My EtherCat Task is running with Prio 1.&lt;/p&gt;
&lt;p&gt;It all works fine, until I adjust the CODESYScontrol.cfg or the CODESYScontrol_Usr.cfg files so that it supports a 2nd OneWire Master in the Codeys Runtime.&lt;br/&gt;
If I change something in this config file and reboot my EtherCat Master stops working. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Two OneWireMaster on one Raspberry PI 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a817389ecb/?limit=25#6455" rel="alternate"/><published>2025-10-18T17:48:00.561000Z</published><updated>2025-10-18T17:48:00.561000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com729109a0e5807a860dc34bf053fd6c1651698d60</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ol&gt;
&lt;li&gt;you need to have an own tadk for the one wire and uodate these slaves in that special low prio task!&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</summary></entry></feed>