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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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