[r818]: / branches / FeatureBranches / Debuglogging / SparkplugB / Function Blocks / FB_Edge / FB_EdgeMQTT / Subscribers / STATE / SubscriberSTATEDiag / svnobj  Maximize  Restore  History

Download this file

11 lines (10 with data), 4.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
SubscriberSTATEDiag := 'STATE Subscriber';
LogClass := CmpLog.LogClass.LOG_DEBUG;
IF _STATE.xEnable THEN
    SubscriberSTATEDiag := CONCAT( SubscriberSTATEDiag,'.IDLE' );
END_IF
IF _STATE.xBusy THEN
    SubscriberSTATEDiag := CONCAT( SubscriberSTATEDiag,'.RCV' );
IF _STATE.xSubscribeActive THEN
    SubscriberSTATEDiag := CONCAT( SubscriberSTATEDiag,'.ER= ' );
// Returns a dynamic connection state string for diagnosis purposes