Attribute: monitoring_display
This pragma in the declaration of a function block or a structure has the effect that the current value of the specified member (property or Variable) is also displayed in the monitoring.
The value of the function block or structure member is then displayed in the top line of the monitoring for variables of the type of the function block or the structure.
Syntax:
{attribute 'monitoring_display' := '<component name>'}
Insert location: Above the first line of the declaration
Example 279. Example

{attribute 'monitoring_display' := 'stMonitoring'}
TYPE ADUT :
STRUCT
val1: INT;
val2: INT;
stMonitoring: STRING := 'to be monitored';
END_STRUCT
END_TYPE
PROGRAM PLC_PRG
VAR
mydut: ADUT;
nTest: INT;
END_VAR
nTest:= iCounter + 1;
mydut.stMonitoring := INT_TO_STRING(nTest);
