<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to call the same program from library and get the vars updated.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cdff848716/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cdff848716/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/cdff848716/</id><updated>2023-08-23T21:09:49.223000Z</updated><subtitle>Recent posts to How to call the same program from library and get the vars updated.</subtitle><entry><title>How to call the same program from library and get the vars updated.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cdff848716/?limit=25#76ae" rel="alternate"/><published>2023-08-23T21:09:49.223000Z</published><updated>2023-08-23T21:09:49.223000Z</updated><author><name>shooxplc</name><uri>https://forge.codesys.com/u/shooxplc/</uri></author><id>https://forge.codesys.com25d8924703cb4585a7529dda440631ab796b4083</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am writing to you today because I would like to create a library that would contain a program with its various subprograms, in my example "PLC_PRG" with "a", "aa", "aaa".&lt;/p&gt;
&lt;p&gt;But once the library is created as shown below:&lt;br/&gt;
&lt;img src="./attachment/1.png"/&gt;&lt;/p&gt;
&lt;p&gt;I would like to be able to drag and drop my folder as many times as I want (let's say I manage the same system multiple times). Once the drag and drop is done, we can see the second folder with the variables renamed successfully. As shown below:&lt;br/&gt;
&lt;img src="./attachment/2.png"/&gt;&lt;/p&gt;
&lt;p&gt;But my variables in CAD_1 remain the same as for CAD, so it's PLC_PRG instead of PLC_PRG_1, for example.&lt;br/&gt;
&lt;img src="./attachment/3.png"/&gt;&lt;/p&gt;
&lt;p&gt;Is there a solution to automate this?&lt;/p&gt;
&lt;p&gt;I wouldn't want to have to rename all my variables manually, considering that in the program where I want to do this, the number of variables is substantial.&lt;/p&gt;
&lt;p&gt;Lucas.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>