[r701]: / branches / h-hermsen / mqttsparkplug / SparkplugB / Functions / WriteDeviceLog / svnobj  Maximize  Restore  History

Download this file

4 lines (4 with data), 6.1 kB

Gx_lï!0…jüoŽ‚s~ð9Ý6Ë‚System.StringL{6f9dac99-8de1-4efc-8465-68ac443b7d08}SpecialFuncL{0db3d7bb-cde0-4416-9a7b-ce49a0124323}NoneImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocument	L{f3878285-8e4f-490b-bb1b-9acbb7eb04db}
TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}Id
longTagText0WriteDeviceLog := FALSE;ViCharPos       := Standard.FIND( msgFmtStr,P                                 '%s' );(IF iCharPos = 0 THEN    RETURN;END_IFN// add message to registered Device LogJsText := Standard.REPLACE( msgFmtStr,D                           strArg,:                           2,L                           iCharPos );@IF LEN( stext ) > uiMaxSize THENŒ    // log the right side of the message first (be carefull of offset)x    GVL_sparkplug._CmpSparkplugLog.AddLogEntry( msgCtrlMask,d                                                0, z                                                RIGHT( sText,!¬                                                       (LEN( sText ) - uiMaxSize) ) );"2    // then the left side#x                                                LEFT( sText,$ˆ                                                      uiMaxSize ) );%ELSE&p                                                sText );'.WriteDeviceLog := TRUE;(Interface)L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}*(* +–    Adds a message to the log, if the message is longer then 127 characters,–    ithe entry splits into two log messages (max 255 chars = 2 log entries)-$    Usage example:.ž    WriteDeviceLog( msgCtrlMask := UDINT_TO_DWORD( CmpLog.LogClass.LOG_INFO ), /f		            msgFmtStr := 'Ammount of tests : %s',0J			        strArg := uiTestAmmount );1	2P    results into the following logstring3:        Ammount of tests : 3 48	Returns TRUE when finnished5*)6${attribute 'hide'}7<FUNCTION WriteDeviceLog : BOOL8VAR_INPUT9     msgCtrlMask : DWORD;       // use UDINT_TO_DWORD( CmpLog.LogClass.LOG_.... ):’    msgFmtStr   : T_MaxString; // Usage example: ' Ammount of tests : %s';|    strArg      : T_MaxString; // Usage example: uiTestAmmount<END_VAR=VAR>:    uiMaxSize : USINT := 127;?8    sText     : T_MaxString;@(    iCharPos  : INT;A"UniqueIdGeneratorB515CPOULevelDL{8e575c5b-1d37-49c6-941b-5c0ec7874787}EStandardF ChildObjectGuidsG8System.Collections.ArrayListH,AddAttributeSubsequentIboolÐÐ-ÐÐ	E
$ÐÐ
­áÚÐ-ÐÐ
­âÚÐ-ÐÐ
­ãÚÐ-ÐÐ
­äÚÐ-ÐÐ
­åÚÐ-ÐÐ
­æÚÐ-ÐÐ
­çÚÐ-ÐÐ
­èÚÐ-ÐÐ
­éÚÐ-ÐÐ
­êÚÐ-ÐÐ
­ëÚÐ-ÐÐ
­ìÚÐ-ÐÐ
­íÚÐ-ÐÐ
­îÚÐ-ÐÐ
­ïÚÐ-ÐÐ
­ðÚÐ-ÐÐ
­ñÚÐ-ÐÐ
­òÚÐ-ÐÐ
­óÚÐ-ÐÐ
­ôÚÐ- ÐÐ
­õÚÐ-!ÐÐ
­öÚÐ-ÐÐ
­÷ÚÐ-"ÐÐ
­øÚÐ-ÐÐ
­ùÚÐ-ÐÐ
­úÚÐ-ÐÐ
­ûÚÐ-#ÐÐ
­üÚÐ-$ÐÐ
­ýÚÐ-%ÐÐ
­þÚÐ-ÐÐ
­ÿÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-&ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-'Ð()Ð	E
ÐÐ
­ÆÚÐ-ÐÐ
­ÇÚÐ-*ÐÐ
­ÈÚÐ-+ÐÐ
­ÉÚÐ-,ÐÐ
­ÊÚÐ-ÐÐ
­ËÚÐ--ÐÐ
­ÌÚÐ-.ÐÐ
­ÍÚÐ-/ÐÐ
­ÎÚÐ-0ÐÐ
­ÏÚÐ-1ÐÐ
­ÐÚÐ-2ÐÐ
­ÑÚÐ-3ÐÐ
­ÒÚÐ-1ÐÐ
­ÓÚÐ-4ÐÐ
­ÔÚÐ-5ÐÐ
­ÕÚÐ-6ÐÐ
­ÖÚÐ-7ÐÐ
­×ÚÐ-8ÐÐ
­ØÚÐ-9ÐÐ
­ÙÚÐ-:ÐÐ
­ÚÚÐ-;ÐÐ
­ÛÚÐ-<ÐÐ
­ÜÚÐ-=ÐÐ
­ÝÚÐ->ÐÐ
­ÞÚÐ-?ÐÐ
­ßÚÐ-@ÐÐ
­àÚÐ-<ÐÐ
­ÚÐ-ÐA-BÐCD-EFGÐHI­