<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to IO Module - CFG file</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/111448f797/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/111448f797/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/111448f797/</id><updated>2020-02-27T22:48:59.994000Z</updated><subtitle>Recent posts to IO Module - CFG file</subtitle><entry><title>IO Module - CFG file</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/111448f797/?limit=25#8667" rel="alternate"/><published>2020-02-27T22:48:59.994000Z</published><updated>2020-02-27T22:48:59.994000Z</updated><author><name>Granus</name><uri>https://forge.codesys.com/u/granus/</uri></author><id>https://forge.codesys.comf13d93de06086afa5a35b0cca9d42195e889eb74</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;i got it know (the Trial-and-Error-way).&lt;/p&gt;
&lt;p&gt;Here is the CFG File i wrote :&lt;/p&gt;
&lt;p&gt;; ----- Module -----&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[Module.Card]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Id=1234&lt;/p&gt;
&lt;p&gt;Class=CARD&lt;/p&gt;
&lt;p&gt;Name=MPC5200&lt;/p&gt;
&lt;p&gt;AdrEditable=Yes&lt;/p&gt;
&lt;p&gt;SymbolicNames=unlocked&lt;/p&gt;
&lt;p&gt;Icon=Plcconf.ico&lt;/p&gt;
&lt;p&gt;DiagnosisSize=0&lt;/p&gt;
&lt;p&gt;Channel1=Section=BYTE_Output,Name=OutCh_0,Adr=%QB3,AdrEditable=Yes,NodeIdEditable=Yes,Comment='Output &lt;/p&gt;
&lt;p&gt;Channel 0'&lt;/p&gt;
&lt;p&gt;; ----- Channels -----&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[Channel.BYTE_Output]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Id=8033&lt;/p&gt;
&lt;p&gt;Type=BYTE&lt;/p&gt;
&lt;p&gt;AdrType=B&lt;/p&gt;
&lt;p&gt;Class=Q&lt;/p&gt;
&lt;p&gt;CreateBitChannels=true&lt;/p&gt;
&lt;p&gt;; ----- end of file ----- &lt;/p&gt;
&lt;p&gt;Another thing that made problems was the IO module not returning DR_CAP_FLAG_WANTS_CONFIG on IODrvFctGetDeviceFlags.&lt;/p&gt;
&lt;p&gt;That resulted in the fact that output-mappings werent established and the WriteOutputs function wasnt called.&lt;/p&gt;
&lt;p&gt;However, its working now  &lt;/p&gt;
&lt;p&gt;Any suggestions ?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Granus&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IO Module - CFG file</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/111448f797/?limit=25#f607" rel="alternate"/><published>2020-02-27T22:48:58.391000Z</published><updated>2020-02-27T22:48:58.391000Z</updated><author><name>Granus</name><uri>https://forge.codesys.com/u/granus/</uri></author><id>https://forge.codesys.comc9f6e653d9945aa03a811f5bb22b03e7546de585</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;we ported your RTS to another Operating system.&lt;/p&gt;
&lt;p&gt;My part was/is about the IO modules.&lt;/p&gt;
&lt;p&gt;With Profibus, everything went fine, as the GSD files were available from the  manufacturers (HMS, Siemens).&lt;/p&gt;
&lt;p&gt;Afterwards, i wrote a module for GPIO (General Purpose IO), whose job it is to show an output-value (binary) using some LEDs.&lt;/p&gt;
&lt;p&gt;The module is loaded fine by the RTS and even the Start-/DoneWriteOutputs functions are called.&lt;/p&gt;
&lt;p&gt;However, i think i must write a cfg file, which describes the device, and load it into the configurator, to use the module in my PLC program.&lt;/p&gt;
&lt;p&gt;Am I right ?&lt;/p&gt;
&lt;p&gt;The problem is that i have no idea, how these cfg files look alike.&lt;/p&gt;
&lt;p&gt;The available documents do not contain this information and i am in lack of an example.&lt;/p&gt;
&lt;p&gt;So here comes the question : &lt;/p&gt;
&lt;p&gt;What does an CFG file looks like, which defines a device, which provides 1 Byte of Output Size ?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Granus&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>