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; |