Attribute 'monitoring_display'

This pragma in the declaration of a function block or structure causes the current value of the specified component (property or variable) to be displayed in the monitoring.

The value of the function block or structure component is then displayed in the top line of the monitoring for variables of the function block or structure type.

Syntax:

{attribute 'monitoring_display' := '<component name>'}

Insertion location: Above the first line of the declaration

Sample:

{attribute 'monitoring_display' := 'sValue'} 
TYPE ST_Sample:
STRUCT
    nVar1  : INT;
    nVar2  : INT;
    sValue : STRING := 'Value to be monitored';
END_STRUCT
END_TYPE
PROGRAM MAIN
VAR
    stSample : ST_Sample;
    nTest    : INT;
END_VAR

nTest           := nTest + 1;
stSample.sValue := INT_TO_STRING(nTest);