[r234]: / branches / aliazzz / mqttsparkplugb / SparkplugB / Function Blocks / FB_SparkplugB_1 / FB_SparkplugBSimple / Done / Diag / svnobj  Maximize  Restore  History

Download this file

16 lines (15 with data), 2.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
Diag := 'SimplePayloadEncoder';
IF FlushMetricsPool() THEN
    Diag := CONCAT(Diag,'.FLUSH');
END_IF
IF _PayloadEncoder.xEnable THEN
	Diag := CONCAT(Diag,'.EN');
IF _PayloadEncoder.xDone THEN
	Diag := CONCAT(Diag,'.DN');
IF _PayloadEncoder.xBusy THEN
	Diag := CONCAT(Diag,'.BUSY');	
IF _PayloadEncoder.xError THEN
	Diag := CONCAT(Diag,'.Error= ');
	Diag := CONCAT(Diag,TO_STRING(_PayloadEncoder.eError));
// log on change
IF Diag <> _Diag THEN