<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Get data from tab "Information" to PLC program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b453e9ecdb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b453e9ecdb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/b453e9ecdb/</id><updated>2020-02-27T14:03:07.152000Z</updated><subtitle>Recent posts to Get data from tab "Information" to PLC program</subtitle><entry><title>Get data from tab "Information" to PLC program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b453e9ecdb/?limit=25#da34" rel="alternate"/><published>2020-02-27T14:03:07.152000Z</published><updated>2020-02-27T14:03:07.152000Z</updated><author><name>e.kislov</name><uri>https://forge.codesys.com/u/e-kislov/</uri></author><id>https://forge.codesys.com3b43fd989c17344fe2bd09708859567c57aa5b1b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, KevinR.&lt;/p&gt;
&lt;p&gt;Thanks for interesting information.&lt;/p&gt;
&lt;p&gt;But, to say honestly, it's not solve my problem.&lt;br/&gt;
I say about "Ethercat Master" as example.&lt;br/&gt;
Yes, "IoDrvGetInfo" works for Ethercat Master, but it gives incorrect version for Modbus Master (3.0.0.0 instead real 3.5.10.3).&lt;br/&gt;
Furthermore, it not works for Modbus COM, Modbus Slave, Ethercat Slave, etc. (I also check method GetDeviceInfo, but it does not contain device version).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get data from tab "Information" to PLC program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b453e9ecdb/?limit=25#7af1" rel="alternate"/><published>2020-02-27T14:03:06.747000Z</published><updated>2020-02-27T14:03:06.747000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com3d3c9bfeb01d0fa8bbadb4e4a0ad072c36d332b0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; KevinR&lt;/p&gt;
&lt;p&gt;Hello e.kislov,&lt;/p&gt;
&lt;p&gt;This is what I've found out after some research: &lt;/p&gt;
&lt;p&gt;The information for the device is read from the device description (dd) file. In the dd file, there can also be specified text translation for the info section. So I think, this text is not loaded to the runtime.&lt;/p&gt;
&lt;p&gt;After some deeper analysis, I've found out that the EtherCat_Master is extending the "IoDrvBase". This FB implements the interface "ICmpIoDrv" with a method called "IoDrvGetInfo". The method requires a "Pointer to Pointer to IoDrvInfo". The structure "IoDrvInfo" includes the var "szFirmwareVersion", which seems to be the same as in the information tab. &lt;/p&gt;
&lt;p&gt;If the driver is implementing the interface "ICmpIoDrv", this might be a quick and dirty solution to read the version. But I don't know if the information is valid. &lt;/p&gt;
&lt;p&gt;See the attached screenshots below, there is also a example code for the EtherCat_Master instance.&lt;/p&gt;
&lt;p&gt;Please let me know if there is a better way, which works for all devices  &lt;/p&gt;
&lt;p&gt;BR,&lt;br/&gt;
KevinR&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: stIoDrvInfo.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2854"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: devicedesc.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2853"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: IoDrvInfo.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2851"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: IoDrvBase.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2850"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: EtherCatFB.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2849"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: infotab.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2847"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get data from tab "Information" to PLC program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b453e9ecdb/?limit=25#4cf7" rel="alternate"/><published>2020-02-27T14:03:06.456000Z</published><updated>2020-02-27T14:03:06.456000Z</updated><author><name>e.kislov</name><uri>https://forge.codesys.com/u/e-kislov/</uri></author><id>https://forge.codesys.com2e794570962db82608d1a2cfd32e5ecc6a774f7c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks, it works for device (PLC).&lt;/p&gt;
&lt;p&gt;But how I can use it for POU from Device Tree? (for example, for Ethercat master device)&lt;br/&gt;
Can you give me a little example?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get data from tab "Information" to PLC program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b453e9ecdb/?limit=25#2524" rel="alternate"/><published>2020-02-27T14:03:05.457000Z</published><updated>2020-02-27T14:03:05.457000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com0117fe3c38a559ba2eb010cfa84710e5f88814f0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;SysTarget.library...&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Systarget.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2845"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get data from tab "Information" to PLC program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b453e9ecdb/?limit=25#8447" rel="alternate"/><published>2020-02-27T14:03:05.141000Z</published><updated>2020-02-27T14:03:05.141000Z</updated><author><name>e.kislov</name><uri>https://forge.codesys.com/u/e-kislov/</uri></author><id>https://forge.codesys.come1706aa77ea062191f863dfdbacac910c7f8da74</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Edwin, I call on you to help. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get data from tab "Information" to PLC program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b453e9ecdb/?limit=25#164c" rel="alternate"/><published>2020-02-27T14:03:04.813000Z</published><updated>2020-02-27T14:03:04.813000Z</updated><author><name>e.kislov</name><uri>https://forge.codesys.com/u/e-kislov/</uri></author><id>https://forge.codesys.com274099215f0ceb65c3d20cc85b7a237cd59e541e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi. I need to get data about some POUs from Device Tree (data from tab "Information) in PLC program.&lt;/p&gt;
&lt;p&gt;Something like that:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;sTargetVersion&lt;/span&gt;&lt;span class="o"&gt;:=//&lt;/span&gt; &lt;span class="nt"&gt;some&lt;/span&gt; &lt;span class="nt"&gt;system&lt;/span&gt; &lt;span class="nt"&gt;function&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;sEthercatMasterVersion&lt;/span&gt;&lt;span class="o"&gt;:=//&lt;/span&gt; &lt;span class="nt"&gt;some&lt;/span&gt; &lt;span class="nt"&gt;system&lt;/span&gt; &lt;span class="nt"&gt;function&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Is this possible?&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 3SFORUM.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2838"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>