Attribute FB for comment

scrollman
2025-12-30
2026-01-08
  • scrollman - 2025-12-30

    Hello,

    I can use

    {attribute 'reflection'}
    FUNCTION_BLOCK POU
    VAR
    {attribute 'instance-path'}
    {attribute 'noinit'}
    str: STRING;
    END_VAR

    to get name of FB. How I can get the comment of FB, in the same way in the FB?

    Thank you for your time!

     

    Last edit: scrollman 2025-12-31
  • scrollman - 2026-01-08

    Masters, I need your help. I can explain in different way. I can get the name and comment of parameter if i use "VARINFO", but right now I want to get name and comment of FB from inside one. I can get the name to use the "{attribute 'reflection'}" but I don't understand how to get comment? Do you have any idea how to do it?

    Thanks

     

Log in to post a comment.