<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to add an own device to the bus-master?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c79f8778ca/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c79f8778ca/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/c79f8778ca/</id><updated>2020-02-27T16:06:18.378000Z</updated><subtitle>Recent posts to How to add an own device to the bus-master?</subtitle><entry><title>How to add an own device to the bus-master?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c79f8778ca/?limit=25#ecc3" rel="alternate"/><published>2020-02-27T16:06:18.378000Z</published><updated>2020-02-27T16:06:18.378000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comf0909d7901ed4c0b02efba337a20c9b0bb6bcd81</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;a good startpoint is to read RaspberryPI_CodesysV3_FirstSteps_EN.pdf:&lt;/p&gt;
&lt;p&gt;"c:\Users\&amp;lt;yourwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\3.5.8.10\Documentation\RaspberryPI_CodesysV3_FirstSteps_EN.pdf" &lt;br/&gt;
In Chapter 4 'Connecting additional devices via I²C and SPI' there is a Basic description how it works.&amp;lt;/yourwindowsusername&amp;gt;&lt;/p&gt;
&lt;p&gt;See after reading this the 'open' libraries and devices here:&lt;br/&gt;
"c:\Users\&amp;lt;yourwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\3.5.8.10\Libraries\" &amp;lt;/yourwindowsusername&amp;gt;&lt;/p&gt;
&lt;p&gt;I2C_AdafruitPWM.library &lt;br/&gt;
I2C_Gyroscopes.library &lt;br/&gt;
I2C_SRF02.library &lt;br/&gt;
IoDrvGPIO.library &lt;/p&gt;
&lt;p&gt;open these libraries with CODESYS and check how they are implemented.&lt;br/&gt;
They use the I2C/SPI FB's from Raspberry Pi Periphials Library.&lt;/p&gt;
&lt;p&gt;you need to implement a own device description for your device and install it then to the device repository&lt;br/&gt;
"c:\Users\&amp;lt;yourwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\3.5.8.10\Devices\" &amp;lt;/yourwindowsusername&amp;gt;&lt;/p&gt;
&lt;p&gt;The best practice how to work/debug/install... with libraries you'll find here:&lt;br/&gt;
 l &lt;a class="" href="http://forum.codesys.com/viewtopic.php?f=22&amp;amp;t=5641&amp;amp;x=10677&amp;amp;p=10677&amp;amp;lan=en" rel="nofollow"&gt;viewtopic.php?f=22&amp;amp;t=5641&amp;amp;p=10677#p10677&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: I2C_SPIMasterFBs.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1759"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to add an own device to the bus-master?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c79f8778ca/?limit=25#a1fc" rel="alternate"/><published>2020-02-27T16:06:17.546000Z</published><updated>2020-02-27T16:06:17.546000Z</updated><author><name>Raspx10</name><uri>https://forge.codesys.com/u/raspx10/</uri></author><id>https://forge.codesys.com7335fffe55ee01c004c727a903804f542bb5b29c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I've got the same problem. Does really no one can help us? With the I2C-examples, you can only control the example devices, are there a bib for I2C devices in general?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to add an own device to the bus-master?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c79f8778ca/?limit=25#e831" rel="alternate"/><published>2020-02-27T16:06:15.291000Z</published><updated>2020-02-27T16:06:15.291000Z</updated><author><name>lafro</name><uri>https://forge.codesys.com/u/lafro/</uri></author><id>https://forge.codesys.comde5f140b29a2faef3ee718c718126eb0d1565110</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hvae you had any luck getting some information, i am also trying to connect a device&lt;br/&gt;
where there is no specific device driver&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to add an own device to the bus-master?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c79f8778ca/?limit=25#8a92" rel="alternate"/><published>2020-02-27T16:06:14.377000Z</published><updated>2020-02-27T16:06:14.377000Z</updated><author><name>Photon</name><uri>https://forge.codesys.com/u/photon/</uri></author><id>https://forge.codesys.comc8d0f97b75c299deee37f64a69e3261e8bf08a52</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey Guys, &lt;br/&gt;
I'm using Codesys for the Raspberry Pi and searching for an option to configure my own device for the SPI/I2C bus? (it's a DA-Converter, MCP4725) &lt;br/&gt;
The SPI-master just offers a few prepared devices and no option for custom settings.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;question: There are lots of posts explaining how to control Codesys via Python script but is it possible to start a Python script in codesys projects? &lt;/li&gt;
&lt;li&gt;condition = true then starting python_script(a,b,..) &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thank you for helping!&lt;br/&gt;
Photon&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>