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

Download this file

14 lines (13 with data), 2.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
Diag := 'SimplePayloadEncoder';
IF _PayloadEncoder.xEnable THEN
	Diag := CONCAT(Diag,'.EN');
END_IF
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