[r790]: / branches / FeatureBranches / Debuglogging / SparkplugB / Functions / WriteEdgeLog / svnobj  Maximize  Restore  History

Download this file

4 lines (4 with data), 6.0 kB

Gx_lV!0Еj№o=<lёлJ	9System.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
longTagText,WriteEdgeLog := FALSE;ZiCharPos := Standard.FIND( msgFmtStr, '%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)А    GVL_sparkplug._CmpSparkplugEdgeLog.AddLogEntry( msgCtrlMask,d                                                0,z                                                RIGHT( sText, м                                                       (LEN( sText ) - uiMaxSize) ) );!2    // then the left side"x                                                LEFT( sText,#И                                                      uiMaxSize ) );$ELSE%p                                                sText );&*WriteEdgeLog := 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',/J			        strArg := uiTestAmmount );0	1P    results into the following logstring2:        Ammount of tests : 3 38	Returns TRUE when finnished4*)5${attribute 'hide'}68FUNCTION WriteEdgeLog : BOOL7VAR_INPUT8а    msgCtrlMask : DWORD;       // use UDINT_TO_DWORD( CmpLog.LogClass.LOG_.... )9Т    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;@"UniqueIdGeneratorA650BPOULevelCL{8e575c5b-1d37-49c6-941b-5c0ec7874787}DStandardE ChildObjectGuidsF8System.Collections.ArrayListG,AddAttributeSubsequentHbool╨╨-╨╨	E
#╨╨
н┌╨-╨╨
н┌╨-╨╨
н ┌╨-╨╨
н!┌╨-╨╨
н"┌╨-╨╨
н#┌╨-╨╨
н$┌╨-╨╨
н%┌╨-╨╨
н&┌╨-╨╨
н'┌╨-╨╨
н(┌╨-╨╨
н)┌╨-╨╨
н*┌╨-╨╨
н+┌╨-╨╨
н,┌╨-╨╨
н-┌╨-╨╨
н.┌╨-╨╨
н/┌╨-╨╨
н0┌╨-╨╨
н1┌╨- ╨╨
н2┌╨-╨╨
н3┌╨-!╨╨
н4┌╨-╨╨
н5┌╨-╨╨
н6┌╨-╨╨
н7┌╨-"╨╨
н8┌╨-#╨╨
н9┌╨-$╨╨
н:┌╨-╨╨
н;┌╨-╨╨
н<┌╨-╨╨
н=┌╨-%╨╨
н>┌╨-╨╨
н?┌╨-╨╨
н┌╨-&╨'(╨	E
╨╨
нr┌╨-)╨╨
нs┌╨-*╨╨
нt┌╨-+╨╨
нu┌╨-╨╨
нv┌╨-,╨╨
нw┌╨--╨╨
нx┌╨-.╨╨
нy┌╨-/╨╨
нz┌╨-0╨╨
н{┌╨-1╨╨
н|┌╨-2╨╨
н}┌╨-0╨╨
н~┌╨-3╨╨
н┌╨-4╨╨
нА┌╨-5╨╨
нБ┌╨-6╨╨
нВ┌╨-7╨╨
нГ┌╨-8╨╨
нД┌╨-9╨╨
нЕ┌╨-:╨╨
нЖ┌╨-;╨╨
нЗ┌╨-<╨╨
нИ┌╨-=╨╨
нЙ┌╨->╨╨
нК┌╨-?╨╨
н┌╨-;╨@-A╨BC-DEF╨GHн