<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Inheritance of axis</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68a17dcebd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68a17dcebd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/68a17dcebd/</id><updated>2024-01-12T08:33:42.033000Z</updated><subtitle>Recent posts to Inheritance of axis</subtitle><entry><title>Inheritance of axis</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68a17dcebd/?limit=25#579a" rel="alternate"/><published>2024-01-12T08:33:42.033000Z</published><updated>2024-01-12T08:33:42.033000Z</updated><author><name>Reinier Geers</name><uri>https://forge.codesys.com/u/reinier-geers/</uri></author><id>https://forge.codesys.come83b6e0083a81a0cdf1d6e2bfda2a526eab67465</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Do You have a solution ?  Ive want the same&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Inheritance of axis</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/68a17dcebd/?limit=25#1cd9" rel="alternate"/><published>2023-12-07T15:38:04.392000Z</published><updated>2023-12-07T15:38:04.392000Z</updated><author><name>simotion</name><uri>https://forge.codesys.com/u/simotion/</uri></author><id>https://forge.codesys.coma361e78d447a57c978c387555c404e17069a3993</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have developped a function block 'Axis' the inherits from 'AXIS_REF_SM3'&lt;br/&gt;
-&amp;gt; FUNCTION_BLOCK Axis  EXTENDS AXIS_REF_SM3&lt;/p&gt;
&lt;p&gt;In my global variable list I define a variable MasterDrive of type Axis and assign Axis1. Axis1 is a virtual drive (AXIS_REF_VIRTUAL_SM3). This type should inherit from AXIS_REF_VIRTUAL. &lt;br/&gt;
VAR_GLOBAL&lt;br/&gt;
    MasterDrive : Axis := Axis1;&lt;/p&gt;
&lt;p&gt;However I get the error 'Cannot convert type'.&lt;br/&gt;
What is the way to obtain what I want : function block inheriting AXIS_REF_SM3 and initialising this function block with a Softmotion virtual or real axis?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>