<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Access to a GVL and seraching for a variable inside of it (Pyhton)</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5d17280dd0/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5d17280dd0/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5d17280dd0/</id><updated>2022-07-25T11:30:14.207000Z</updated><subtitle>Recent posts to Access to a GVL and seraching for a variable inside of it (Pyhton)</subtitle><entry><title>Access to a GVL and seraching for a variable inside of it (Pyhton)</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5d17280dd0/?limit=25#35fd" rel="alternate"/><published>2022-07-25T11:30:14.207000Z</published><updated>2022-07-25T11:30:14.207000Z</updated><author><name>ninaxx</name><uri>https://forge.codesys.com/u/ninaxx/</uri></author><id>https://forge.codesys.com76b985ae4e1527f983f7269e0ae024bad0aeb2a4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello. &lt;/p&gt;
&lt;p&gt;I want to access a GVL on my program (PLC somachine) and search for a variable. I did something like:&lt;/p&gt;
&lt;p&gt;sK = &lt;span&gt;[childnode for childnode in sProj.get_children(True)]&lt;/span&gt;&lt;br/&gt;
        for x in sK:&lt;br/&gt;
            if x.get_name() == 'GVL_1'&lt;br/&gt;
                system.write_message(Severity.Information, 'GVL_1 present')&lt;/p&gt;
&lt;p&gt;So i can find the GVL that i need but i cannot access the variables declared inside of it..&lt;/p&gt;
&lt;p&gt;Is there a way to do it? Or is not possible?&lt;/p&gt;
&lt;p&gt;I want to verify the existence of a variable that supposed to be declared on my GVL_1.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>