<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Retrieving project settings and device information programmatically</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1203efe4d8/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1203efe4d8/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/1203efe4d8/</id><updated>2020-02-27T13:49:58.067000Z</updated><subtitle>Recent posts to Retrieving project settings and device information programmatically</subtitle><entry><title>Retrieving project settings and device information programmatically</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1203efe4d8/?limit=25#ddb7" rel="alternate"/><published>2020-02-27T13:49:58.067000Z</published><updated>2020-02-27T13:49:58.067000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.coma45fe7472e47cda9a874d09410e3443e377175e3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Kim,&lt;br/&gt;
I could give you two of your wanted Information:&lt;/p&gt;
&lt;p&gt;//Compiler Version&lt;br/&gt;
ver := __SYSTEM.Constants.CompilerVersion;&lt;br/&gt;
//Ethercat Master Version&lt;br/&gt;
Ethercat_Master.m_info.szFirmwareVersion;&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Compiler_and_EthercatVersion.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1992"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retrieving project settings and device information programmatically</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1203efe4d8/?limit=25#9688" rel="alternate"/><published>2020-02-27T13:49:57.646000Z</published><updated>2020-02-27T13:49:57.646000Z</updated><author><name>Kim</name><uri>https://forge.codesys.com/u/kim/</uri></author><id>https://forge.codesys.com0a93ad9ca50843e357807b3f46d921d8e74ca895</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;learnetk hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi,&lt;br/&gt;
I think you should look at the CmpApp library, there is also an example on Store. Look for Applicationmanager in Codesys store.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thank you, but CmpApp does not provide what I'm looking for.&lt;br/&gt;
I'm starting to think the information I want is not within the compiled file or simply not accessible by code.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retrieving project settings and device information programmatically</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1203efe4d8/?limit=25#1244" rel="alternate"/><published>2020-02-27T13:49:57.535000Z</published><updated>2020-02-27T13:49:57.535000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.coma190b37ba7af45ddbe310dc4a9965419d8fa4034</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I need the same as you to know about the input outputs of every devices.&lt;/p&gt;
&lt;p&gt;I have use the iostandard library. There is a function which returns an array of ioconnectors. And every connector has an array of iodevicesparameters. &lt;/p&gt;
&lt;p&gt;But at the end I can't get the iomaps. &lt;/p&gt;
&lt;p&gt;I cannot find information about the devices paràmetres.&lt;/p&gt;
&lt;p&gt;Enviat des del meu Aquaris M5.5 usant Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retrieving project settings and device information programmatically</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1203efe4d8/?limit=25#67b6" rel="alternate"/><published>2020-02-27T13:49:57.416000Z</published><updated>2020-02-27T13:49:57.416000Z</updated><author><name>travlytle</name><uri>https://forge.codesys.com/u/travlytle/</uri></author><id>https://forge.codesys.com18cf7ae5dee280ca543e75eaf02b0c71fdbb0a43</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can use the CmpApp like so:&lt;/p&gt;
&lt;p&gt;PROGRAM Version_POU&lt;br/&gt;
VAR&lt;br/&gt;
    pApp: POINTER TO APPLICATION;&lt;br/&gt;
    tResult: POINTER TO RTS_IEC_RESULT;&lt;br/&gt;
    pAppInfo: POINTER TO APPLICATION_INFO;&lt;br/&gt;
    strProjectName: STRING(255);&lt;br/&gt;
    strAuthor: STRING(255);&lt;br/&gt;
    strVersion: STRING(255);&lt;br/&gt;
    strDescription: STRING(255);&lt;br/&gt;
    strProfile: STRING(255);&lt;br/&gt;
    strLastChanges: STRING;&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;p&gt;// Project Name, Author, Version, Description, Profile, and Last Changes&lt;br/&gt;
pApp := AppGetFirstApp(pResult := tResult);&lt;br/&gt;
IF pApp &amp;lt;&amp;gt; 0 THEN&lt;br/&gt;
   pAppInfo :=AppGetApplicationInfo(pApp, tResult);&lt;br/&gt;
   strProjectName :=pAppInfo^.pstProjectName^;&lt;br/&gt;
   strAuthor := pAppInfo^.pstAuthor^;&lt;br/&gt;
   strVersion:=pAppInfo^.pstVersion^;&lt;br/&gt;
   strDescription:=pAppInfo^.pstDescription^;&lt;br/&gt;
   strProfile:=pAppInfo^.pstProfile^;&lt;br/&gt;
   strLastChanges:=DT_TO_STRING(pAppInfo^.dtLastChanges);&lt;br/&gt;
END_IF&lt;/p&gt;
&lt;p&gt;This will display the settings show under Project -&amp;gt; Project Information&lt;/p&gt;
&lt;p&gt;Getting library version, I'm not sure how to do.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retrieving project settings and device information programmatically</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1203efe4d8/?limit=25#ab0e" rel="alternate"/><published>2020-02-27T13:49:57.305000Z</published><updated>2020-02-27T13:49:57.305000Z</updated><author><name>learnetk</name><uri>https://forge.codesys.com/u/learnetk/</uri></author><id>https://forge.codesys.comd72c9ace64c449739150090185ead1e7871df719</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I think you should look at the CmpApp library, there is also an example on Store. Look for Applicationmanager in Codesys store.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retrieving project settings and device information programmatically</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1203efe4d8/?limit=25#e3e0" rel="alternate"/><published>2020-02-27T13:49:57.191000Z</published><updated>2020-02-27T13:49:57.191000Z</updated><author><name>Kim</name><uri>https://forge.codesys.com/u/kim/</uri></author><id>https://forge.codesys.comb3cd7654abf27e6707426325ffa350e82c2f6d9e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a project with an EtherCAT master, a Modbus TCP master and a Modbus RTU master.&lt;br/&gt;
We are making automated tests and part of the result should be information regarding the devices and project settings.&lt;/p&gt;
&lt;p&gt;I've used CmpIECTask to obtain what I need from the task settings, works fine.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;But how can I obtain the following information programmatically during runtime?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I'm aware not all of this will be possible to obtain, but please hint me on how to obtain what I can.&lt;/p&gt;
&lt;p&gt;Kim Hansen&lt;br/&gt;
Beijer Electronics Automation AB&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>