--- a/trunk/MEGAIO_FB_1/MEGAIO_FB/svnobj
+++ b/trunk/MEGAIO_FB_1/MEGAIO_FB/svnobj
@@ -1,6 +1,4 @@
-Gx_lé!0…jüoÀ
-D
-ÌÝìq›5System.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:d	IF usiAddress < 16#31 OR  usiAddress > 16#34 THEN,		usiAddress := 16#31;	END_IFH	//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}-HFUNCTION_BLOCK MEGAIO_FB EXTENDS i2c.VAR_INPUT/&	stIn : IoDrvInput;0END_VAR1VAR_OUTPUT2*	stOut : IoDrvOutput;3VAR44	timer: TON := (IN:=TRUE);5.	dacRawValue: UINT :=0;6*	relayRaw: USINT :=0;7&	odRaw: USINT := 0;8D	odLastState: ARRAY[0..3] OF BOOL;98	gpioDirRaw: USINT := 16#FF;:N	gpioOutLastState: ARRAY[0..5] OF BOOL;;*	//StackLevel: USINT;<VAR_TEMP	=	i, usi: USINT;>:	buff: ARRAY[0..2] OF USINT;	?"UniqueIdGenerator@251APOULevelBL{8e575c5b-1d37-49c6-941b-5c0ec7874787}CStandardD ChildObjectGuidsE8System.Collections.ArrayListF,AddAttributeSubsequentGboolÐÐ-ÐÐ	E
-ÐÐ
­
ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­CÚÐ-ÐÐ
­DÚÐ-ÐÐ
­EÚÐ-ÐÐ
­TÚÐ-ÐÐ
­ÖÚÐ-ÐÐ
­GÚÐ-ÐÐ
­IÚÐ-ÐÐ
­JÚÐ-ÐÐ
­KÚÐ-ÐÐ
­LÚÐ-ÐÐ
­NÚÐ-ÐÐ
­´ÚÐ-ÐÐ
­µÚÐ-ÐÐ
­¶ÚÐ-ÐÐ
­ÀÚÐ- ÐÐ
­·ÚÐ-!ÐÐ
­¾ÚÐ-"ÐÐ
­¸ÚÐ-#ÐÐ
­ÏÚÐ-$ÐÐ
­ÉÚÐ-%ÐÐ
­ÐÚÐ-&ÐÐ
­ÑÚÐ-'ÐÐ
­ÒÚÐ-(ÐÐ
­SÚÐ-)ÐÐ
­	ÚÐ-*Ð+,Ð	E
-ÐÐ
­ÙÚÐ--ÐÐ
­÷ÚÐ-.ÐÐ
­øÚÐ-/ÐÐ
­ùÚÐ-0ÐÐ
­úÚÐ-1ÐÐ
­ûÚÐ-2ÐÐ
­çÚÐ-0ÐÐ
­èÚÐ-3ÐÐ
­éÚÐ-4ÐÐ
­êÚÐ-5ÐÐ
­ëÚÐ-6ÐÐ
­ìÚÐ-7ÐÐ
­íÚÐ-8ÐÐ
­îÚÐ-9ÐÐ
­ïÚÐ-:ÐÐ
­ðÚÐ-(ÐÐ
­ñÚÐ-;ÐÐ
­òÚÐ-0ÐÐ
­óÚÐ-<ÐÐ
­ôÚÐ-=ÐÐ
­õÚÐ->ÐÐ
­öÚÐ-0ÐÐ
­ÚÐ-Ð?-@ÐAB-CDEÐFG­+Gx_l!0…jüo"»wé!Áà¤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
longTagTextSUPER^();CASE _iState OF0:@	usiAddress := stCfg.i2cAddress;d	IF usiAddress < 16#31 OR  usiAddress > 16#34 THEN,		usiAddress := 16#31;	END_IFH	//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}.HFUNCTION_BLOCK MEGAIO_FB EXTENDS i2c/VAR_INPUT0&	stIn : IoDrvInput;1*	stCfg : IoDrvConfig;2END_VAR3VAR_OUTPUT4*	stOut : IoDrvOutput;5VAR64	timer: TON := (IN:=TRUE);7.	dacRawValue: UINT :=0;8*	relayRaw: USINT :=0;9&	odRaw: USINT := 0;:D	odLastState: ARRAY[0..3] OF BOOL;;8	gpioDirRaw: USINT := 16#FF;<N	gpioOutLastState: ARRAY[0..5] OF BOOL;=VAR_TEMP	>	i, usi: USINT;?:	buff: ARRAY[0..2] OF USINT;	@"UniqueIdGeneratorA253BPOULevelCL{8e575c5b-1d37-49c6-941b-5c0ec7874787}DStandardE ChildObjectGuidsF8System.Collections.ArrayListG,AddAttributeSubsequentHboolÐÐ-ÐÐ	E
+ÐÐ
­
ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­CÚÐ-ÐÐ
­üÚÐ-ÐÐ
­DÚÐ-ÐÐ
­EÚÐ-ÐÐ
­TÚÐ-ÐÐ
­ÖÚÐ-ÐÐ
­GÚÐ-ÐÐ
­IÚÐ-ÐÐ
­JÚÐ-ÐÐ
­KÚÐ-ÐÐ
­LÚÐ-ÐÐ
­NÚÐ-ÐÐ
­´ÚÐ-ÐÐ
­µÚÐ-ÐÐ
­¶ÚÐ- ÐÐ
­ÀÚÐ-!ÐÐ
­·ÚÐ-"ÐÐ
­¾ÚÐ-#ÐÐ
­¸ÚÐ-$ÐÐ
­ÏÚÐ-%ÐÐ
­ÉÚÐ-&ÐÐ
­ÐÚÐ-'ÐÐ
­ÑÚÐ-(ÐÐ
­ÒÚÐ-)ÐÐ
­SÚÐ-*ÐÐ
­	ÚÐ-+Ð,-Ð	E
+ÐÐ
­ÙÚÐ-.ÐÐ
­÷ÚÐ-/ÐÐ
­øÚÐ-0ÐÐ
­ýÚÐ-1ÐÐ
­ùÚÐ-2ÐÐ
­úÚÐ-3ÐÐ
­ûÚÐ-4ÐÐ
­çÚÐ-2ÐÐ
­èÚÐ-5ÐÐ
­éÚÐ-6ÐÐ
­êÚÐ-7ÐÐ
­ëÚÐ-8ÐÐ
­ìÚÐ-9ÐÐ
­íÚÐ-:ÐÐ
­îÚÐ-;ÐÐ
­ïÚÐ-<ÐÐ
­òÚÐ-2ÐÐ
­óÚÐ-=ÐÐ
­ôÚÐ->ÐÐ
­õÚÐ-?ÐÐ
­öÚÐ-2Ð@-AÐBC-DEFÐGH­