[r12]: / trunk / Library / External / Functions / LOGSTR / svnobj  Maximize  Restore  History

Download this file

5 lines (4 with data), 3.7 kB

Gx_l’!0…jüo	LÈ‚aA˜JNSystem.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
longTagTextNiPos := Standard.FIND(msgFmtStr, '%s');"IF iPos = 0 THEN 	RETURN; END_IF;lsText := Standard.REPLACE(msgFmtStr, strArg, 2, iPos);„stdLogger.AddLogEntry( msgCtrlMask, Errors.ERR_FAILED, 0, sText); InterfaceL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}"// Todo: Ticket 4 	(* This function issues when called a message box holding a specifiable text on the screen, and writes an entry into the system s log. In the text to be given out, a string (a sequence of characters) can be inserted in the text at a point specified by the user. For this purpose the stored format must contain the characters  %s  at the desired location. Always remember that here too, as illustrated in the example, the function must be called using edge-control (see also the note in the description of ADSLOGDINT). The result value contains the function error code, or, if successful, 0.*)º// This is a Beckhoff dependent function which must be replaced by a vanilla codesys function,FUNCTION LOGSTR : DINTVAR_INPUT*	msgCtrlMask : DWORD;2	msgFmtStr : T_MaxString; ,	strArg : T_MaxString;!END_VAR"VAR#*	sText : T_MaxString;$	iPos : INT;	%"UniqueIdGenerator&120'POULevel(L{8e575c5b-1d37-49c6-941b-5c0ec7874787})Standard* ChildObjectGuids+8System.Collections.ArrayList,,AddAttributeSubsequent-boolÐÐ-ÐÐ	E

ÐÐ
­mÚÐ-ÐÐ
­vÚÐ-ÐÐ
­oÚÐ-ÐÐ
­pÚÐ-ÐÐ
­qÚÐ-ÐÐ
­wÚÐ-ÐÐ
­sÚÐ-ÐÐ
­xÚÐ-ÐÐ
­uÚÐ-ÐÐ
­#ÚÐ-ÐÐ	E

ÐÐ
­aÚÐ-ÐÐ
­bÚÐ-ÐÐ
­cÚÐ-ÐÐ
­dÚÐ-ÐÐ
­eÚÐ-ÐÐ
­fÚÐ-ÐÐ
­gÚÐ-ÐÐ
­hÚÐ- ÐÐ
­iÚÐ-!ÐÐ
­jÚÐ-"ÐÐ
­kÚÐ-#ÐÐ
­lÚÐ-$ÐÐ
­ÚÐ-!Ð%-&Ð'(-)*+Ð,-­