属性:monitoring_display
声明中的这个 pragma 功能块 或一个 结构体 具有指定成员的当前值 (财产 oder 变量)也显示在监控中。
然后,功能块或结构成员的值显示在监视功能块或结构类型的变量的顶行中。
句法:
{attribute 'monitoring_display' := '<component name>'}
插入位置:声明第一行上方
例 279. 例子

{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);
