Inheritance of axis

simotion
2023-12-07
2024-01-12
  • simotion - 2023-12-07

    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?

     
  • Reinier Geers - 2024-01-12

    Do You have a solution ? Ive want the same

     

Log in to post a comment.