<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to inputs/outputs mapping issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e5074aa3e9/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e5074aa3e9/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/e5074aa3e9/</id><updated>2020-02-27T14:16:08.252000Z</updated><subtitle>Recent posts to inputs/outputs mapping issue</subtitle><entry><title>inputs/outputs mapping issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e5074aa3e9/?limit=25#9c56" rel="alternate"/><published>2020-02-27T14:16:08.252000Z</published><updated>2020-02-27T14:16:08.252000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.coma829a1dfd0d4fe2eb64ee6a65995b36ed7c75533</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I believe it is not possible. I am assuming what you are calling mapping is from the IO of the target. the target is not configurable. Why does it matter? Just map in the software?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>inputs/outputs mapping issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e5074aa3e9/?limit=25#a334" rel="alternate"/><published>2020-02-27T14:16:07.142000Z</published><updated>2020-02-27T14:16:07.142000Z</updated><author><name>Andoni Crespo</name><uri>https://forge.codesys.com/u/andoni-crespo/</uri></author><id>https://forge.codesys.com04782917cdd96131480a209e8d8e8f2ed421bfb7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks spfeif for the info but I would like to use this in a mapping input/output card. &lt;/p&gt;
&lt;p&gt;I mean instead of mapping a UINT variable in a %QW0, I would like to map bit by bit like %QB0.0,%QB0.1, %QB0.2...and so on. I have seen on the help menu that is possible but I do not know how to do it&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>inputs/outputs mapping issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e5074aa3e9/?limit=25#7dfb" rel="alternate"/><published>2020-02-27T14:16:06.700000Z</published><updated>2020-02-27T14:16:06.700000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.comf1e33547b87f8eab26df47100caff49134e338b7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Add a variable in the mapping table like wFaultRegister.&lt;/p&gt;
&lt;p&gt;In the code you can access the bit level of the variable as follows:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;OverTemperature&lt;/span&gt;  :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;wFaultRegister&lt;/span&gt;.&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="c1"&gt;;   (* Get bit0, all bits are accessed 0 based *)&lt;/span&gt;
&lt;span class="nv"&gt;UnderTemperature&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;wFaultRegister&lt;/span&gt;.&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nv"&gt;You&lt;/span&gt; &lt;span class="nv"&gt;can&lt;/span&gt; &lt;span class="nv"&gt;get&lt;/span&gt; &lt;span class="nv"&gt;creative&lt;/span&gt; &lt;span class="nv"&gt;and&lt;/span&gt; &lt;span class="nv"&gt;substitute&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;bits&lt;/span&gt; &lt;span class="nv"&gt;by&lt;/span&gt; &lt;span class="nv"&gt;enumerations&lt;/span&gt; &lt;span class="nv"&gt;and&lt;/span&gt; &lt;span class="nv"&gt;constants&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;ENUM_OVRTEMP&lt;/span&gt;  :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="c1"&gt;;   (* Assume this is part of an enum structure *)&lt;/span&gt;
&lt;span class="nv"&gt;ENUM_UNDRTEMP&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;OverTemperature&lt;/span&gt;  :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;wFaultRegister&lt;/span&gt;.&lt;span class="nv"&gt;ENUM_OVRTEMP&lt;/span&gt;  &lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;UnderTemperature&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;wFaultRegister&lt;/span&gt;.&lt;span class="nv"&gt;ENUM_UNDRTEMP&lt;/span&gt; &lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;Also&lt;/span&gt; &lt;span class="nv"&gt;easy&lt;/span&gt; &lt;span class="nv"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;create&lt;/span&gt; &lt;span class="nv"&gt;your&lt;/span&gt; &lt;span class="nv"&gt;own&lt;/span&gt; &lt;span class="nv"&gt;FB&lt;/span&gt; &lt;span class="nv"&gt;to&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="nv"&gt;this&lt;/span&gt; &lt;span class="nv"&gt;similar&lt;/span&gt; &lt;span class="nv"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;UNPACK&lt;/span&gt; &lt;span class="nv"&gt;FB&lt;/span&gt;.
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>inputs/outputs mapping issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e5074aa3e9/?limit=25#0f8e" rel="alternate"/><published>2020-02-27T14:16:06.164000Z</published><updated>2020-02-27T14:16:06.164000Z</updated><author><name>Andoni Crespo</name><uri>https://forge.codesys.com/u/andoni-crespo/</uri></author><id>https://forge.codesys.comc67bea9e3116f9dc7ddc64c5469b17236bcdd426</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Good afternoon,&lt;/p&gt;
&lt;p&gt;I am working with UINT variables, but I would like to map then bit by bit because each bit has a determinate meaning. I am trying to do it following the help menu but I cannot do it. Can anybody help me please?&lt;/p&gt;
&lt;p&gt;If I have understood properly I should make an structure of 16 bits and then try to map it, but I do not know how to map it bit by bit&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>