<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Mapping GPIO and adding GPIO configurations</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e621d26dd0/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e621d26dd0/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/e621d26dd0/</id><updated>2023-11-16T18:56:27.162000Z</updated><subtitle>Recent posts to Mapping GPIO and adding GPIO configurations</subtitle><entry><title>Mapping GPIO and adding GPIO configurations</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e621d26dd0/?limit=25#74ee" rel="alternate"/><published>2023-11-16T18:56:27.162000Z</published><updated>2023-11-16T18:56:27.162000Z</updated><author><name>Bahrt</name><uri>https://forge.codesys.com/u/bahrt/</uri></author><id>https://forge.codesys.comfdfc21703923acd325ea6976a8808eed2e979cda</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
I am about to configure ALL GPIOs on a Raspberry Pi 3 model B V1.2.&lt;br/&gt;
It seems that I have limited understanding of why not all the IO’s become available with the corresponding mapped IO’s – the 'dwInUse' contains mapping of the inputs from GPIO0 to GPIO27. But 'dwInputs' are only showing GPIO0 to GPIO8 and GPIO15 as available inputs. These mentioned inputs work fine&lt;/p&gt;
&lt;p&gt;You will be able to watch the limited mapped IO activity here:&lt;br/&gt;
&lt;a href="https://drive.google.com/file/d/1zz4PBNBfRZBF2YkiJ2VQxw6L9MBVji7R/view?usp=sharing" rel="nofollow"&gt;https://drive.google.com/file/d/1zz4PBNBfRZBF2YkiJ2VQxw6L9MBVji7R/view?usp=sharing&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can you please bring your best idea on why GPIO09 to GPIO14 and GPIO16 to GPIO27 state are zero in the dwInputs register?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;br/&gt;
Best regards&lt;br/&gt;
Andreas Bahrt&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mapping GPIO and adding GPIO configurations</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e621d26dd0/?limit=25#c9c3" rel="alternate"/><published>2021-10-13T02:11:30.228000Z</published><updated>2021-10-13T02:11:30.228000Z</updated><author><name>davewkoenig</name><uri>https://forge.codesys.com/u/davewkoenig/</uri></author><id>https://forge.codesys.com79dee4fea44016c03b417342a38144f04359f2e3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to get a PWM circuit to work, I only need one channel for lase control and Raspberry Pi has it, GPIO 12 or 13, how do I enable and control it?  I do see a function GPIO that has PWMFrequency and duty cycle&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mapping GPIO and adding GPIO configurations</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e621d26dd0/?limit=25#6fa2" rel="alternate"/><published>2020-02-27T17:06:21.476000Z</published><updated>2020-02-27T17:06:21.476000Z</updated><author><name>greggo</name><uri>https://forge.codesys.com/u/greggo/</uri></author><id>https://forge.codesys.coma34915e4b80684776e57d62233af667af3fd20ed</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, further to this I see the pattern for I/O  Mapping 8 bits per bank. To edit this and add the additional channels, should I download the CSV file edit it and reload? &lt;br/&gt;
Then for example, if I create channel Bit2 , %IXO.2, it will be GPIO2 ?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mapping GPIO and adding GPIO configurations</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e621d26dd0/?limit=25#c19b" rel="alternate"/><published>2020-02-27T17:06:18.523000Z</published><updated>2020-02-27T17:06:18.523000Z</updated><author><name>greggo</name><uri>https://forge.codesys.com/u/greggo/</uri></author><id>https://forge.codesys.comb0cbe7f55de3c44960373986d9b016e7c9525a1b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Model: Rpi 3B+&lt;br/&gt;
Hi,&lt;br/&gt;
I would like to use all GPIO pins, 2 to 27 for digital I/O.&lt;br/&gt;
I edited the  device description file (devdesc.xml), added in the missing GPIO pins and gave it a new name and loaded it, but it's not enough, it seems apparent you need to update the  IoDrvGPIO.library to reference the GPIO numbers to the internal Pi memory address.  The GPIOs I/O Mapping table needs to be populated so you can assign variables to the GPIO.&lt;/p&gt;
&lt;p&gt;Edwin, would it be possible to provide a library file with mapping for GPIO 2 to 27?&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: GPIO_capture.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4758"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: GPIO_Channels capture.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4759"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mapping GPIO and adding GPIO configurations</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e621d26dd0/?limit=25#86b4" rel="alternate"/><published>2020-02-27T17:06:17.498000Z</published><updated>2020-02-27T17:06:17.498000Z</updated><author><name>Peter1983</name><uri>https://forge.codesys.com/u/peter1983/</uri></author><id>https://forge.codesys.com324e0a81bb4359b9fa4f9a26e7b08a829a1c9fcf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi,&lt;br/&gt;
yes, this is possible. &lt;br/&gt;
We only provide the free GPIOs because we assume that in many cases I²c, SPI and the other options are used, so we reduced the standard IOs.&lt;br/&gt;
Please see attached the device description file (devdesc.xml) that contains the description and the parameters of the “GPIO” device in the device tree. Feel free to modify/customize it, but consider to give it a new ID (DeviceIdentification section) and a new name (DeviceInfo section)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;Device&lt;/span&gt; &lt;span class="na"&gt;hideInCatalogue=&lt;/span&gt;&lt;span class="s"&gt;"false"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;DeviceIdentification&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;Type&amp;gt;&lt;/span&gt;504&lt;span class="nt"&gt;&amp;lt;/Type&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;Id&amp;gt;&lt;/span&gt;0000 0000&lt;span class="nt"&gt;&amp;lt;/Id&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;Version&amp;gt;&lt;/span&gt;1.0.0.0&lt;span class="nt"&gt;&amp;lt;/Version&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/DeviceIdentification&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;DeviceInfo&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;Name&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"local:ModelName"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;GPIOs&lt;span class="nt"&gt;&amp;lt;/Name&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;to distinguish it from the standard one. You need to install it in the device repository and update your device.&lt;br/&gt;
Please see also the attached library that interprets the configuration and executes it. &lt;br/&gt;
BR &lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mapping GPIO and adding GPIO configurations</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e621d26dd0/?limit=25#1dfc" rel="alternate"/><published>2020-02-27T17:06:14.808000Z</published><updated>2020-02-27T17:06:14.808000Z</updated><author><name>artemka</name><uri>https://forge.codesys.com/u/artemka/</uri></author><id>https://forge.codesys.comd89a531cb2318f8401703be9f7d04a8dcf6dc2cc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;artemka hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hello! I need to set GPIO11 as input. I edit the file GPIOsBplus.devdesc.xml, in the settings this output appeared, but it's not working, can you fix it?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Is it possible to implement it?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mapping GPIO and adding GPIO configurations</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e621d26dd0/?limit=25#81de" rel="alternate"/><published>2020-02-27T17:06:13.858000Z</published><updated>2020-02-27T17:06:13.858000Z</updated><author><name>artemka</name><uri>https://forge.codesys.com/u/artemka/</uri></author><id>https://forge.codesys.comf34dc78c4b882bc3be49e0ba3252bba07d62379b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello! I need to set GPIO11 as input. I edit the file GPIOsBplus.devdesc.xml, in the settings this output appeared, but it's not working, can you fix it?&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: GPIO1.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1926"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: GPIO.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1925"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mapping GPIO and adding GPIO configurations</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e621d26dd0/?limit=25#4fbf" rel="alternate"/><published>2020-02-27T17:06:12.894000Z</published><updated>2020-02-27T17:06:12.894000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com649e305e3e9b4e96ded00961fda6707cb745bac3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;in recent CODESYS versions, the "Featureset" functionality was removed, CODESYS now always behaves as "Professional".   &lt;/p&gt;
&lt;p&gt;HTH,&lt;br/&gt;
Markus&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mapping GPIO and adding GPIO configurations</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e621d26dd0/?limit=25#5677" rel="alternate"/><published>2020-02-27T17:06:10.238000Z</published><updated>2020-02-27T17:06:10.238000Z</updated><author><name>SimonD</name><uri>https://forge.codesys.com/u/simond/</uri></author><id>https://forge.codesys.com67323db48dbe16ca71ebd7d59a128ac93843b21b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;alexdrik hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
First of all, you have to install the DevDesc.xml under "Tools" -&amp;gt; "Install Device..." and select the file.&lt;br/&gt;
Then, you have to navigate to "Tools" -&amp;gt; "Options...", select "Features" and click on "Predefined Feature Set" and change it to "Professional".&lt;br/&gt;
Now you can right-click on the Raspi in the project manager, select "update device..." and there is a new option "display all versions (for experts only)" and select the modified device description file.&lt;br/&gt;
Remember to map the Inputs and Outputs to plc-variables and to configure the used pins as input or as output.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi, I don't have the "Features" option under the Tools - Options tabs! Am I missing something please?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mapping GPIO and adding GPIO configurations</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e621d26dd0/?limit=25#6526" rel="alternate"/><published>2020-02-27T17:06:09.290000Z</published><updated>2020-02-27T17:06:09.290000Z</updated><author><name>Ledrunner</name><uri>https://forge.codesys.com/u/ledrunner/</uri></author><id>https://forge.codesys.coma79111856e48ac18f8252eefc3e0fc9f272ced06</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone! Anyone help me to understand GPIO structure. I talk about  pull-up resistors, how configured I/O in Codesys driver, when I select port is input? For example I need use button working on ground.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Screenshot_1.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1710"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>