<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Common Behaviour Model problems extending lacking docs?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b58b83aa83/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b58b83aa83/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/b58b83aa83/</id><updated>2021-11-24T07:04:58.415000Z</updated><subtitle>Recent posts to Common Behaviour Model problems extending lacking docs?</subtitle><entry><title>Common Behaviour Model problems extending lacking docs?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b58b83aa83/?limit=25#0e77" rel="alternate"/><published>2021-11-24T07:04:58.415000Z</published><updated>2021-11-24T07:04:58.415000Z</updated><author><name>Fil</name><uri>https://forge.codesys.com/u/fil/</uri></author><id>https://forge.codesys.com46d223ae110689327b07ce78376fc7b6072d742b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I couldn't agree more.&lt;br/&gt;
As a suggestion; maybe it would be possible to automatically add the SUPER^() call with a short comment when extending a CBML block? This would even save dredging through the documentation.&lt;br/&gt;
Best regards from Emden&lt;br/&gt;
Fil&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Common Behaviour Model problems extending lacking docs?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b58b83aa83/?limit=25#fdff" rel="alternate"/><published>2020-02-27T13:47:43.795000Z</published><updated>2020-02-27T13:47:43.795000Z</updated><author><name>hence.persson</name><uri>https://forge.codesys.com/u/hence-persson/</uri></author><id>https://forge.codesys.com85924c7f042f1f6e24939240ff9ab44534f8d59b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;That was nice when creating a library.. But if you just want to take benefit of the CBML in your regular program I still think it should be explained more clearly in the docs so that a PLC programmer lacking basic OO skills still can take benefit of these blocks as they are really useful.&lt;/p&gt;
&lt;p&gt;All that is really needed is to make the code snippet in the example larger so one could se the call of the SUPER^() and a short text explaining why.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Common Behaviour Model problems extending lacking docs?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b58b83aa83/?limit=25#1fb5" rel="alternate"/><published>2020-02-27T13:47:43.755000Z</published><updated>2020-02-27T13:47:43.755000Z</updated><author><name>alejho</name><uri>https://forge.codesys.com/u/alejho/</uri></author><id>https://forge.codesys.com759c509a474fca5a9009053374036ff28d484b3a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I think it's because it's not mandatory to create an _Execute() method..it's just a pratice to encapsulate the body of the base FB.&lt;br/&gt;
You can get the same result by calling SUPER^() in the FB that extends the base FB.&lt;br/&gt;
Actually is what you find in the "template FB" if you create a library!&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: library_CODESYS.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=5236"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Common Behaviour Model problems extending lacking docs?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b58b83aa83/?limit=25#fac9" rel="alternate"/><published>2020-02-27T13:47:43.710000Z</published><updated>2020-02-27T13:47:43.710000Z</updated><author><name>hence.persson</name><uri>https://forge.codesys.com/u/hence-persson/</uri></author><id>https://forge.codesys.com846acbdf0dc11e5e2df5d542349c4577ca6b0a96</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When I extend for example the ETrig block I have to manually add the method _Execute(); in my implementation.&lt;br/&gt;
This isnt explained good enough in the help documentation.. &lt;/p&gt;
&lt;p&gt;In the online help for example:&lt;br/&gt;
&lt;a class="" href="https://help.codesys.com/webapp/yZZoqaSNWq1cHjbGwGAnZjRnqrA%2Ffld-Common-Behaviour-Model;product=CommonBehaviourModel;version=3.5.15.0" rel="nofollow"&gt;https://help.codesys.com/webapp/yZZoqaS ... n=3.5.15.0&lt;/a&gt;&lt;br/&gt;
Under the bold text: &lt;strong&gt;Using inheritance for creating a new function block MC_MoveAbsolute extending CBML.ETrig&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;As many PLC programmers is lacking OO skills I think its important that this documentation is updated with a clearer example.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>