[r14]: / trunk / Library / External / Functions / MEMCPY / svnobj  Maximize  Restore  History

Download this file

4 lines (4 with data), 4.4 kB

Gx_l#!0…jüo¢?ŽYА–QSystem.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
longTagTextV//// return 0 : Icorrect parameter values. T//// destAddr == 0 or srcAddr==0 or n == 0h//IF (srcAddr = 0) OR (destAddr = 0) OR (n = 0) THEN //	 MEMCPY := 0;//	 RETURN;//END_IF//N//lwSrc := CAA.PVOID_TO_LWORD(srcAddr);*//pSrc := ADR(lwSrc);R//lwDest := CAA.PVOID_TO_LWORD(destAddr);.//pDest := ADR(lwDest);0//FOR i := 0 TO (n-1) DOj//	pDest^ := pSrc^;	// copy contents from src to dest//	\//	pSrc := pSrc + i;	// add i to addres of srcb//	pDest := pDest + i; // add i to addres of dest //END_FOR!////return n"//MEMCPY := n;#Interface$L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}%"// Todo: Ticket 5&Î// The function MEMCPY can be used to copy the values of PLC variables from one memory area to another.'.FUNCTION MEMCPY : ULINT(VAR_INPUT),	destAddr : CAA.PVOID;**	srcAddr : CAA.PVOID;+	n : UDINT;,END_VAR-VAR."//	lwSrc : LWORD;/6//	pSrc : POINTER TO LWORD;0$//	lwDest : LWORD;18//	pDest : POINTER TO LWORD;2//	i : UDINT;3(* 4j   destAddr: Start address of the target memory area.5h   srcAddr: Start address of the source memory area.6F   n: Number of bytes to be copied.7   8ì   The function copies n bytes from the memory area that starts at srcAddr to the memory area that starts at destAddr.9*):"UniqueIdGenerator;103<POULevel=L{8e575c5b-1d37-49c6-941b-5c0ec7874787}>Standard? ChildObjectGuids@8System.Collections.ArrayListA,AddAttributeSubsequentBboolÐÐ-ÐÐ	E
ÐÐ
­BÚÐ-ÐÐ
­IÚÐ-ÐÐ
­CÚÐ-ÐÐ
­FÚÐ-ÐÐ
­HÚÐ-ÐÐ
­GÚÐ-ÐÐ
­VÚÐ-ÐÐ
­fÚÐ-ÐÐ
­gÚÐ-ÐÐ
­TÚÐ-ÐÐ
­UÚÐ-ÐÐ
­ZÚÐ-ÐÐ
­bÚÐ-ÐÐ
­;ÚÐ-ÐÐ
­KÚÐ-ÐÐ
­dÚÐ-ÐÐ
­aÚÐ-ÐÐ
­`ÚÐ-ÐÐ
­@ÚÐ- ÐÐ
­eÚÐ-ÐÐ
­JÚÐ-!ÐÐ
­/ÚÐ-"Ð#$Ð	E
ÐÐ
­&ÚÐ-%ÐÐ
­ÚÐ-&ÐÐ
­ÚÐ-'ÐÐ
­ÚÐ-(ÐÐ
­
ÚÐ-)ÐÐ
­ÚÐ-*ÐÐ
­ÚÐ-+ÐÐ
­ÚÐ-,ÐÐ
­6ÚÐ--ÐÐ
­NÚÐ-.ÐÐ
­\ÚÐ-/ÐÐ
­SÚÐ-0ÐÐ
­^ÚÐ-1ÐÐ
­7ÚÐ-2ÐÐ
­8ÚÐ-,ÐÐ
­ÚÐ-3ÐÐ
­%ÚÐ-4ÐÐ
­ÚÐ-5ÐÐ
­!ÚÐ-6ÐÐ
­ÚÐ-7ÐÐ
­$ÚÐ-8ÐÐ
­#ÚÐ-9Ð:-;Ð<=->?@ÐAB­