[r525]: / branches / h-hermsen / mqttsparkplugb / SparkplugB / Function Blocks / FB_Device / FB_Device / FB_Init / svnobj  Maximize  Restore  History

Download this file

10 lines (9 with data), 3.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
//The return value is not evaluated. For a specific influence, you can also declare the
    bInitRetains: BOOL; // TRUE: the retain variables are initialized (reset warm / reset cold)
    msgCtrlMask : DWORD; // use UDINT_TO_DWORD( CmpLog.LogClass.LOG_.... )
	uiMaxSize : USINT := 127; 
Diag();
FB_Init := FALSE;
GVL_sparkplugB._CmpSparkplugLog.AddLogEntry(msgCtrlMask, 0, 0, sText);
sText := 'SparkplugB Device Initialised';
FB_Init := TRUE;