--- a
+++ b/trunk/IoDrvMEGAIO/MEGAIO/MEGAIO/svnobj
@@ -0,0 +1,4 @@
+Gx_lƒ!0…jüo²–ó¯©ãàLSystem.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
longTagTextSUPER^();CASE _iState OF0:	.	IF usiAddress = 0 THENF		usiAddress := _byHardwareAddress;	END_IFd	IF usiAddress < 16#31 OR  usiAddress > 16#34 THEN,		usiAddress := 16#31;H	//usiAddress := 16#31 + StackLevel;,	IF SUPER^.init() THEN		_iState := 5;	END_IF	5:	(	Timer.pt := T#70MS;6	buff[0] := MEGAIO_DAC_ADD; 	buff[1] := 0;!	buff[2] := 0;""	// init DAC 0.0V#.  	write(ADR(buff), 3);$,	// init all relay off%*	write8(0, relayRaw);&,	// set all gpio input'D	write8(GPIO_DIR_ADD, gpioDirRaw);(,	// set all open drain)<	write8(MEGAIO_OD_ADD, odRaw);*	+	_iState := 10;,END_CASE-Interface.L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}/BFUNCTION_BLOCK MEGAIO EXTENDS i2c0VAR_INPUT1T	udtConfig : IoDrvConfig; // Configuration2V	udtOutput : IoDrvOutput; // Contains DO/AO3END_VAR4VAR_OUTPUT	5R	udtInput : IoDrvInput; // Contains DI/AI6VAR74	timer: TON := (IN:=TRUE);8.	dacRawValue: UINT :=0;9*	relayRaw: USINT :=0;:&	odRaw: USINT := 0;;D	odLastState: ARRAY[0..3] OF BOOL;<8	gpioDirRaw: USINT := 16#FF;=N	gpioOutLastState: ARRAY[0..5] OF BOOL;>4	_byHardwareAddress: BYTE;?*	//StackLevel: USINT;@2	_AfterReadInputs : UINT;A8	_BeforeWriteOutputs : UINT;B(	_Initialize : UINT;CVAR_TEMP	D	i, usi: USINT;E:	buff: ARRAY[0..2] OF USINT;	F"UniqueIdGeneratorG241HPOULevelIL{8e575c5b-1d37-49c6-941b-5c0ec7874787}JStandardK ChildObjectGuidsL8System.Collections.ArrayListM,AddAttributeSubsequentNboolÐÐ-ÐÐ	E
+ÐÐ
­
ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÞÚÐ-ÐÐ
­àÚÐ-ÐÐ
­ßÚÐ-ÐÐ
­CÚÐ-ÐÐ
­DÚÐ-ÐÐ
­EÚÐ-ÐÐ
­TÚÐ-ÐÐ
­ÖÚÐ-ÐÐ
­GÚÐ-ÐÐ
­IÚÐ-ÐÐ
­JÚÐ-ÐÐ
­KÚÐ-ÐÐ
­LÚÐ-ÐÐ
­NÚÐ-ÐÐ
­´ÚÐ-ÐÐ
­µÚÐ- ÐÐ
­¶ÚÐ-!ÐÐ
­ÀÚÐ-"ÐÐ
­·ÚÐ-#ÐÐ
­¾ÚÐ-$ÐÐ
­¸ÚÐ-%ÐÐ
­ÏÚÐ-&ÐÐ
­ÉÚÐ-'ÐÐ
­ÐÚÐ-(ÐÐ
­ÑÚÐ-)ÐÐ
­ÒÚÐ-*ÐÐ
­SÚÐ-+ÐÐ
­	ÚÐ-,Ð-.Ð	E
+ÐÐ
­ ÚÐ-/ÐÐ
­¡ÚÐ-0ÐÐ
­ïÚÐ-1ÐÐ
­ñÚÐ-2ÐÐ
­£ÚÐ-3ÐÐ
­¤ÚÐ-4ÐÐ
­íÚÐ-5ÐÐ
­©ÚÐ-3ÐÐ
­ªÚÐ-6ÐÐ
­«ÚÐ-7ÐÐ
­®ÚÐ-8ÐÐ
­½ÚÐ-9ÐÐ
­ÂÚÐ-:ÐÐ
­ÓÚÐ-;ÐÐ
­ÊÚÐ-<ÐÐ
­ÌÚÐ-=ÐÐ
­ÕÚÐ->ÐÐ
­×ÚÐ-?ÐÐ
­ëÚÐ-@ÐÐ
­ìÚÐ-AÐÐ
­êÚÐ-BÐÐ
­¬ÚÐ-3ÐÐ
­°ÚÐ-CÐÐ
­±ÚÐ-DÐÐ
­²ÚÐ-EÐÐ
­¯ÚÐ-3ÐÐ
­ÚÐ-ÐF-GÐHI-JKLÐMN­