Determination of User defined instances of function by a POU

2011-02-10
2011-02-15
  • rahulnshinde

    rahulnshinde - 2011-02-10

    Hi,

    Consider an example where <inst1>, <inst2>, .....<instn> are declared instances of function block FUB</instn></inst2></inst1>

    FUNCTION_BLOCK FUB
    {
    .......
    }

    VAR GLOBAL
    inst1, inst2, inst3 : FUB
    END_VAR

    Is it possible that a POU executing under PLC_PRG (main task) can detect and deliver all the names (STRING) of instances of Type "FUB" ?
    Is there some method like __isinstance() or anything similar?

    Regards,
    Rahul.

     
  • rahulnshinde

    rahulnshinde - 2011-02-15

    Anyone guys?
    I would appreciate some help.

     

Log in to post a comment.