<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to Hide Action or Method of FB</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ee94d9076e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ee94d9076e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/ee94d9076e/</id><updated>2020-02-27T13:47:58.547000Z</updated><subtitle>Recent posts to How to Hide Action or Method of FB</subtitle><entry><title>How to Hide Action or Method of FB</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ee94d9076e/?limit=25#68d5" rel="alternate"/><published>2020-02-27T13:47:58.547000Z</published><updated>2020-02-27T13:47:58.547000Z</updated><author><name>StoeberAs</name><uri>https://forge.codesys.com/u/stoeberas/</uri></author><id>https://forge.codesys.comb3fd7fe69e164b76390221f57b8cbdc316ae0ad8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;you can write a pragma above the method like this to hide it  &lt;/p&gt;
&lt;p&gt;{attribute 'hide'}&lt;br/&gt;
METHOD METH_XYZ : BOOL&lt;br/&gt;
VAR_INPUT&lt;br/&gt;
END_VAR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to Hide Action or Method of FB</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ee94d9076e/?limit=25#1341" rel="alternate"/><published>2020-02-27T13:47:58.501000Z</published><updated>2020-02-27T13:47:58.501000Z</updated><author><name>Jay</name><uri>https://forge.codesys.com/u/jay/</uri></author><id>https://forge.codesys.comdf151a2552b65bc42f0b3bf68f3e716538ade628</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can assign visibility for Methods in their declaration, e.g.:&lt;br/&gt;
METHOD PRIVATE DoSomething: BOOL&lt;/p&gt;
&lt;p&gt;I don't remember exactly in which CoDeSys version visibility of methods was implemented, but this works atleast with V3.5 SP1. &lt;/p&gt;
&lt;p&gt;You cannot give access specifier for Actions, and therefore you cannot hide them with PRIVATE or INTERNAL ("PUBLIC" inside the Library, otherwise PRIVATE (i.e. hidden for application that includes the library).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to Hide Action or Method of FB</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ee94d9076e/?limit=25#f917" rel="alternate"/><published>2020-02-27T13:47:58.449000Z</published><updated>2020-02-27T13:47:58.449000Z</updated><author><name>jzhvymetal</name><uri>https://forge.codesys.com/u/jzhvymetal/</uri></author><id>https://forge.codesys.com69a4780af753d0034fab999bd8184b30d5c9ef9b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is there a Pragma Instruction to make an Action/Method private in a function block?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>