I have developped a function block 'Axis' the inherits from 'AXIS_REF_SM3'
-> FUNCTION_BLOCK Axis EXTENDS AXIS_REF_SM3
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.
VAR_GLOBAL
MasterDrive : Axis := Axis1;
However I get the error 'Cannot convert type'.
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have developped a function block 'Axis' the inherits from 'AXIS_REF_SM3'
-> FUNCTION_BLOCK Axis EXTENDS AXIS_REF_SM3
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.
VAR_GLOBAL
MasterDrive : Axis := Axis1;
However I get the error 'Cannot convert type'.
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?
Do You have a solution ? Ive want the same