Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Determination of User defined instances of function by a POU

2011-02-10
2011-02-15
  • 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 - 2011-02-15

    Anyone guys?
    I would appreciate some help.

     

Log in to post a comment.