We are moving! We are currently migrating our community to the new Bosch Connected Industry Online Portal. The community will be available latest in the new year again, until then it will be in read-only mode. Click here for more information.
08-04-2022 11:04 AM
Hello,
using OES4.11b here. I want to access the comment of a variable that is linked in my object's parameter. However, the Comment property is empty, even though there is a string specified:
Are there some special conditions to pay attention to?
Solved! Go to Solution.
08-04-2022 11:06 AM
Never mind, found the problem.
The comment is at the type from which the variable is created, but not at the variable directly. Now I need to find a way to access that type comment somehow from my VariableDrop^^
08-04-2022 11:46 AM
Where is your first picture? please tell me thanks
08-04-2022 11:52 AM
Comments are primarily for the PLC code, so they are not inherited from the type definition because the element of the struct instance does not appear in the declaration PLC code, anyway.
If you want the text to be available at all instances of a structure, you can use the Label property. If no comment is specified, the VariableDrop.Comment property returns the Label as fallback.
08-04-2022 12:21 PM
Where is VariableDrop?