<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to create I/O mapping for new devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d4954a43fe/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d4954a43fe/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/d4954a43fe/</id><updated>2020-02-27T17:01:47.157000Z</updated><subtitle>Recent posts to How to create I/O mapping for new devices</subtitle><entry><title>How to create I/O mapping for new devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d4954a43fe/?limit=25#2899" rel="alternate"/><published>2020-02-27T17:01:47.157000Z</published><updated>2020-02-27T17:01:47.157000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com07c182563668d675cc0ab1d4ea7fb383af55cc0c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
even for this a good startpoint is:&lt;/p&gt;
&lt;p&gt;if you want provide an SPI Driver for your device you need to add your library and your devicedescription for your device.&lt;br/&gt;
Maybe PiFace_Io_driver is the startpoint you need.&lt;br/&gt;
The device description which you find here:&lt;br/&gt;
"c:\Users\&amp;lt;yourwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\2.2.0.2\Devices\PiFaceIOdrv.devdesc.xml" &lt;br/&gt;
the library here:&lt;br/&gt;
"c:\Users\&amp;lt;yourwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\2.2.0.2\Libraries\IoDrvPiFace.library" &lt;br/&gt;
check the FAQ's in the forrum for best practice on generating libraries (two instances CODESYS one with the library the other with the project... etc)&amp;lt;/yourwindowsusername&amp;gt;&amp;lt;/yourwindowsusername&amp;gt;&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to create I/O mapping for new devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d4954a43fe/?limit=25#cc26" rel="alternate"/><published>2020-02-27T17:01:44.506000Z</published><updated>2020-02-27T17:01:44.506000Z</updated><author><name>dhoehl</name><uri>https://forge.codesys.com/u/dhoehl/</uri></author><id>https://forge.codesys.com0597cd6f8ae5e1d6d912b8729d9ad9355dfed61f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;i am struggeling to understand how to create an i/o mappig i can use within codesys.&lt;/p&gt;
&lt;p&gt;I adjusted a predefined device description file and programmed the lib, my device (MCP4812 D/A converter with SPI interface) is now running.&lt;br/&gt;
I can access the variables using my MCP4812 instance and the corresponding variables...but i'd like to map the codesys variables via the i/o section of the spi device. How do i do that?&lt;/p&gt;
&lt;p&gt;i looked at excisting SPI devices which support this and they all use the whole IoDrv/Base libraries...and couldn't find documentation for that and have no idea how it works ... or is there a program which does everything for me (like the device description builder i read in the xml file? what is it?) &lt;/p&gt;
&lt;p&gt;Hope you can help as i am new to codesys&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>