--- a/trunk/mqttsparkplug/mqttsparkplug/SparkplugB/Function Blocks/FB_Device/FB_DeviceMQTT/DCMD/SubscriberDCMDDiag/svnobj
+++ b/trunk/mqttsparkplug/mqttsparkplug/SparkplugB/Function Blocks/FB_Device/FB_DeviceMQTT/DCMD/SubscriberDCMDDiag/svnobj
@@ -1,53 +1,38 @@
-Gx_lª!0…jüo±
-A+Ñ»®SSystem.StringL{f8a58466-d7f6-439f-bbb8-d4600e41d099}ImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocumentL{f3878285-8e4f-490b-bb1b-9acbb7eb04db}TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}	Id
-longTagText
^LogClass           := CmpLog.LogClass.LOG_INFO;PSubscriberDCMDDiag := 'DCMD Subscriber';*IF _DCMD.xEnable THENj    SubscriberDCMDDiag := CONCAT( SubscriberDCMDDiag,T                                  '.EN' );ELSEX                                  '.IDLE' );END_IF&IF _DCMD.xBusy THENX                                  '.BUSY' );.IF _DCMD.xReceived THENV                                  '.RCV' );<IF _DCMD.xSubscribeActive THEN\                                  '.ACTIVE' );(IF _DCMD.xError THENZ                                  '.ERR= ' );”                                  MQTTErrorToString( _DCMD.eMQTTError ) );T    LogClass := CmpLog.LogClass.LOG_ERROR;  // log on change!PIF SubscriberDCMDDiag <> _DCMD_Diag THEN"^    WriteDeviceLog( UDINT_TO_DWORD( LogClass ),#2                    '%s',$R                    SubscriberDCMDDiag );%END_IF;&// store 'B_DCMD_Diag := SubscriberDCMDDiag;(Interface)L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}*†// Returns a dynamic connection state string for diagnosis purposes+†// This string also gets logged into the SparkplugLog on any change,DMETHOD SubscriberDCMDDiag : STRING-VAR.*    LogClass : UDINT;/END_VARÐÐÐE,ÐÐ	
-­›ÚÐ-
ÐÐ	
-­œÚÐ-ÐÐ	
+Gx_l2!0…jüo‰š»ZŽÝoA$System.StringL{f8a58466-d7f6-439f-bbb8-d4600e41d099}ImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocumentL{f3878285-8e4f-490b-bb1b-9acbb7eb04db}TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}	Id
+longTagText
PSubscriberDCMDDiag := 'DCMD Subscriber';LLogClass := CmpLog.LogClass.LOG_DEBUG;*IF _DCMD.xEnable THEN|    SubscriberDCMDDiag := CONCAT( SubscriberDCMDDiag, '.EN' );ELSE€    SubscriberDCMDDiag := CONCAT( SubscriberDCMDDiag, '.IDLE' );END_IF&IF _DCMD.xBusy THEN‚    SubscriberDCMDDiag := CONCAT( SubscriberDCMDDiag,  '.BUSY' );.IF _DCMD.xReceived THEN~    SubscriberDCMDDiag := CONCAT( SubscriberDCMDDiag, '.RCV' );<IF _DCMD.xSubscribeActive THEN„    SubscriberDCMDDiag := CONCAT( SubscriberDCMDDiag, '.ACTIVE' );(IF _DCMD.xError THEN\    LogClass := CmpLog.LogClass.LOG_ERROR;    ‚    SubscriberDCMDDiag := CONCAT( SubscriberDCMDDiag, '.ERR= ' );¼    SubscriberDCMDDiag := CONCAT( SubscriberDCMDDiag, MQTTErrorToString( _DCMD.eMQTTError ) ); // log on changePIF SubscriberDCMDDiag <> _DCMD_Diag THEN T    WriteDeviceLog( gc_sparkplug.CMP_EDGE,!:                    LogClass,"2                    '%s',#R                    SubscriberDCMDDiag );$END_IF;%// store &B_DCMD_Diag := SubscriberDCMDDiag;'Interface(L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94})†// Returns a dynamic connection state string for diagnosis purposes*†// This string also gets logged into the SparkplugLog on any change+DMETHOD SubscriberDCMDDiag : STRING,VAR-*    LogClass : UDINT;.END_VARÐÐÐEÐÐ	
+­ÈÚÐ-
ÐÐ	
+­›ÚÐ-ÐÐ	
 ­ÚÐ-ÐÐ	
 ­žÚÐ-ÐÐ	
-­ŸÚÐ-ÐÐ	
-­ ÚÐ-ÐÐ	
-­¡ÚÐ-ÐÐ	
-­¢ÚÐ-ÐÐ	
-­£ÚÐ-ÐÐ	
-­¤ÚÐ-ÐÐ	
-­¥ÚÐ-ÐÐ	
-­¦ÚÐ-ÐÐ	
-­§ÚÐ-ÐÐ	
-­¨ÚÐ-ÐÐ	
-­©ÚÐ-ÐÐ	
-­ªÚÐ-ÐÐ	
-­«ÚÐ-ÐÐ	
-­¬ÚÐ-ÐÐ	
-­­ÚÐ-ÐÐ	
-­®ÚÐ-ÐÐ	
-­¯ÚÐ-ÐÐ	
-­°ÚÐ-ÐÐ	
-­±ÚÐ-ÐÐ	
-­²ÚÐ-ÐÐ	
-­³ÚÐ-ÐÐ	
-­´ÚÐ-ÐÐ	
-­µÚÐ-ÐÐ	
-­¶ÚÐ-ÐÐ	
-­·ÚÐ-ÐÐ	
-­¸ÚÐ-ÐÐ	
-­¹ÚÐ-ÐÐ	
-­ºÚÐ-ÐÐ	
-­»ÚÐ-ÐÐ	
-­¼ÚÐ-ÐÐ	
-­½ÚÐ-ÐÐ	
-­¾ÚÐ- ÐÐ	
-­¿ÚÐ-!ÐÐ	
-­ÀÚÐ-"ÐÐ	
-­ÁÚÐ-#ÐÐ	
-­ÂÚÐ-$ÐÐ	
-­ÃÚÐ-%ÐÐ	
-­ÄÚÐ-ÐÐ	
-­ÅÚÐ-&ÐÐ	
-­zÚÐ-'Ð()ÐEÐÐ	
-­–ÚÐ-*ÐÐ	
-­—ÚÐ-+ÐÐ	
-­˜ÚÐ-,ÐÐ	
-­™ÚÐ--ÐÐ	
-­šÚÐ-.ÐÐ	
-­‰ÚÐ-/
\ No newline at end of file
+­ ÚÐ-ÐÐ	
+­¡ÚÐ-ÐÐ	
+­£ÚÐ-ÐÐ	
+­¥ÚÐ-ÐÐ	
+­¦ÚÐ-ÐÐ	
+­¨ÚÐ-ÐÐ	
+­ªÚÐ-ÐÐ	
+­«ÚÐ-ÐÐ	
+­­ÚÐ-ÐÐ	
+­¯ÚÐ-ÐÐ	
+­°ÚÐ-ÐÐ	
+­²ÚÐ-ÐÐ	
+­´ÚÐ-ÐÐ	
+­ÇÚÐ-ÐÐ	
+­µÚÐ-ÐÐ	
+­¸ÚÐ-ÐÐ	
+­¼ÚÐ-ÐÐ	
+­¾ÚÐ-ÐÐ	
+­¿ÚÐ-ÐÐ	
+­ÀÚÐ- ÐÐ	
+­ÆÚÐ-!ÐÐ	
+­ÁÚÐ-"ÐÐ	
+­ÂÚÐ-#ÐÐ	
+­ÃÚÐ-$ÐÐ	
+­ÅÚÐ-%ÐÐ	
+­zÚÐ-&Ð'(ÐEÐÐ	
+­–ÚÐ-)ÐÐ	
+­—ÚÐ-*ÐÐ	
+­˜ÚÐ-+ÐÐ	
+­™ÚÐ-,ÐÐ	
+­šÚÐ--ÐÐ	
+­‰ÚÐ-.
\ No newline at end of file