<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to POU Private variables</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/cbeb9d603f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/cbeb9d603f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/cbeb9d603f/</id><updated>2024-07-31T09:11:03.690000Z</updated><subtitle>Recent posts to POU Private variables</subtitle><entry><title>POU Private variables</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/cbeb9d603f/?limit=25#c6c0" rel="alternate"/><published>2024-07-31T09:11:03.690000Z</published><updated>2024-07-31T09:11:03.690000Z</updated><author><name>stuartjr</name><uri>https://forge.codesys.com/u/stuartjr/</uri></author><id>https://forge.codesys.com50a4d697b3ec25da17478e95b44f9576712d7cbc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Pretty sure I know the answer, but thought I would ask just in case.  Is there a way to set variables declared in a POU to private so that they can not be accessed from other POUs.&lt;br/&gt;
I tried using the library pragma, but that just stops the variables being displayed in the selection tree.&lt;br/&gt;
My compiler version is 2.3.9.62 if that's relevant, and I'm using an ABB AC500 V2 PLC.&lt;br/&gt;
Cheers&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>