<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Read tag values using external program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/40f0b1d8dc/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/40f0b1d8dc/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/40f0b1d8dc/</id><updated>2024-06-28T14:23:36.124000Z</updated><subtitle>Recent posts to Read tag values using external program</subtitle><entry><title>Read tag values using external program</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/40f0b1d8dc/?limit=25#6a37" rel="alternate"/><published>2024-06-28T14:23:36.124000Z</published><updated>2024-06-28T14:23:36.124000Z</updated><author><name>tcarlbom</name><uri>https://forge.codesys.com/u/tcarlbom/</uri></author><id>https://forge.codesys.comeb47a4a40071fd47d2f490a56106735c7e94af5e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This is my first time posting in this forum and I am new to codesys.&lt;/p&gt;
&lt;p&gt;I am a fullstack developer and I am trying to figure out how the following.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;What would be the best approach to create a own/custom tag browser? Either directly in codesys ide or using a separate custom program (perhaps a winforms application).&lt;br/&gt;
1.a. Shall I parse the .project xml file to get a list of all tags in the project?&lt;br/&gt;
1b. Shall I use python scripting in codesys ide to get a list of tags?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Once one have selected some tags. These tags shall be exposed to a python program which will be acting as a edge computer.&lt;br/&gt;
It’s fine to be able to import a file.&lt;br/&gt;
2a. I found a library called codesys plchandler which (as I understand) acts a rest api server. Is this correct? If so, can I query the api from a custom python script, ie can query what tags exist in project and or read tag values?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;My research so far.&lt;br/&gt;
From earlier projects I know that using opc ua would be perfect for this but from my opinion it’s bloating the plc since it’s resource intensive. So opc ua is not an option.&lt;/p&gt;
&lt;p&gt;Codesys automation server is neat. But I don’t want to rely on some cloud services and subscription based pricing.&lt;/p&gt;
&lt;p&gt;There seem to be several interesting codesys libraries like mqtt, tcp server and NVL sender which would help me expose plc tags. But all have a common problem. One have to manually write what tags which will be used in these function blocks. &lt;br/&gt;
I want a similar experience like “selecting” tags in the opc ua or the codesys tracing, ie a tag browser.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>