--- a
+++ b/trunk/IoDrvMEGAIO/IoDrvFB/ICmpIoDrv/IoDrvUpdateConfiguration/svnobj
@@ -0,0 +1,100 @@
+Gx_l!!0…jüoÝ«¦ÓQ	J¡íËSystem.StringL{f8a58466-d7f6-439f-bbb8-d4600e41d099}ImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocumentL{f3878285-8e4f-490b-bb1b-9acbb7eb04db}TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}	Id
+longTagText
ŠIoDrvUpdateConfiguration_Count := IoDrvUpdateConfiguration_Count + 1;TIoDrvUpdateConfiguration := Errors.ERR_OK;8IF (pConnectorList = 0) THEN*	// Reset application2	// TODO: Free ressources	RETURN;END_IFÄm_pConnector := IoMgrConfigGetConnector(pConnectorList, ADR(nCount), m_wModuleType, m_dwInstance);0IF m_pConnector = 0 THENd	IoDrvUpdateConfiguration := ERRORS.ERR_PARAMETER;^//check if device is enabled in the device tree€IF (m_pConnector^.dwFlags AND ConnectorFlags.CF_ENABLE) = 0 THEN.	_bDeactivated := TRUE;V	IoDrvUpdateConfiguration := Errors.ERR_OK;@IF m_pConnector^.hIoDrv = 0 THENL	m_pConnector^.hIoDrv := m_hInterface;^	m_pConnector^.pFather^.hIoDrv := m_hInterface;	 V	{IF defined (pou:IoMgrConfigSetDiagnosis)}!L	IoMgrConfigSetDiagnosis(m_pConnector,"X							ConnectorFlags.CF_DRIVER_AVAILABLE OR#V							ConnectorFlags.CF_CONNECTOR_FOUND OR$`							ConnectorFlags.CF_CONNECTOR_CONFIGURED OR%V							ConnectorFlags.CF_CONNECTOR_ACTIVE);&	{END_IF}'^	IoMgrConfigSetDiagnosis(m_pConnector^.pFather,(^	{IF defined (pou:IoMgrSetDriverProperties)}			)¸		IoMgrSetDriverProperties(m_hInterface, DRVPROP_CONSISTENCY OR DRVPROP_BACKGROUND_GETDIAG);*²		//Note: background diagnosis property flag is optional (supported with 3.5.1.0 runtime)+&	{END_IF}										,"	//Setup I/O area-0	//1000 (Contains DO/AO).v	pParameter := IoMgrConfigGetParameter(m_pConnector, 1000);/4	IF (pParameter <> 0) THEN0t		pParameter^.dwDriverSpecific := ADR(_instance.udtInput);1	END_IF20	//2000 (Contains DI/AI)3v	pParameter := IoMgrConfigGetParameter(m_pConnector, 2000);4v		pParameter^.dwDriverSpecific := ADR(_instance.udtOutput);5$	//3000 Parameters6v	pParameter := IoMgrConfigGetParameter(m_pConnector, 3000);7¦		pudtConfig := IoStandard.ConfigGetParameterValuePointer(pParameter, ADR(Result));8J		_instance.udtConfig := pudtConfig^;9l	//Go through all childs of the device (if applicable):š	pChild := IoMgrConfigGetFirstChild(m_pConnector, ADR(nCount), m_pConnector);;.	WHILE (pChild <> 0) DO<z		IF (pChild^.dwFlags AND ConnectorFlags.CF_ENABLE) <> 0 THEN=F			pChild^.hIoDrv := m_hInterface;	>Z			{IF defined (pou:IoMgrConfigSetDiagnosis)}?D			IoMgrConfigSetDiagnosis(pChild,@\									ConnectorFlags.CF_DRIVER_AVAILABLE ORAZ									ConnectorFlags.CF_CONNECTOR_FOUND ORBd									ConnectorFlags.CF_CONNECTOR_CONFIGURED ORCZ									ConnectorFlags.CF_CONNECTOR_ACTIVE);D			{END_IF}E		END_IFFŽ		pChild := IoMgrConfigGetNextChild(pChild, ADR(nCount), m_pConnector);G	END_WHILEHInterfaceIL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}JNMETHOD IoDrvUpdateConfiguration : UDINTKVAR_INPUTL^	pConnectorList : POINTER TO IoConfigConnector;M	nCount : DINT;NEND_VAROVARPX	pParameter : POINTER TO IoConfigParameter;	QP	pChild : POINTER TO IoConfigConnector;	RX	pstConnectorVendorName : POINTER TO STRING;SX	pstConnectorDeviceName : POINTER TO STRING;TJ	pudtConfig : POINTER TO IoDrvConfig;U2	Result : RTS_IEC_RESULT;ÐÐÐETÐÐ	
+­2ÚÐ-
ÐÐ	
+­ÍÚÐ-ÐÐ	
+­3ÚÐ-ÐÐ	
+­ÌÚÐ-ÐÐ	
+­ûÚÐ-ÐÐ	
+­-ÚÐ-ÐÐ	
+­.ÚÐ-ÐÐ	
+­&ÚÐ-ÐÐ	
+­ÊÚÐ-ÐÐ	
+­$ÚÐ-ÐÐ	
+­æÚÐ-ÐÐ	
+­ðÚÐ-ÐÐ	
+­øÚÐ-ÐÐ	
+­ñÚÐ-ÐÐ	
+­òÚÐ-ÐÐ	
+­÷ÚÐ-ÐÐ	
+­éÚÐ-ÐÐ	
+­óÚÐ-ÐÐ	
+­ôÚÐ-ÐÐ	
+­õÚÐ-ÐÐ	
+­öÚÐ-ÐÐ	
+­ïÚÐ-ÐÐ	
+­KÚÐ-ÐÐ	
+­×ÚÐ-ÐÐ	
+­\ÚÐ-ÐÐ	
+­]ÚÐ-ÐÐ	
+­ÜÚÐ-ÐÐ	
+­ÝÚÐ- ÐÐ	
+­ÞÚÐ-!ÐÐ	
+­ßÚÐ-"ÐÐ	
+­àÚÐ-#ÐÐ	
+­áÚÐ-$ÐÐ	
+­âÚÐ-%ÐÐ	
+­ãÚÐ-&ÐÐ	
+­šÚÐ-ÐÐ	
+­œÚÐ- ÐÐ	
+­ÚÐ-'ÐÐ	
+­žÚÐ-"ÐÐ	
+­ŸÚÐ-#ÐÐ	
+­ ÚÐ-$ÐÐ	
+­¡ÚÐ-%ÐÐ	
+­^ÚÐ-&ÐÐ	
+­¾ÚÐ-ÐÐ	
+­¿ÚÐ-(ÐÐ	
+­åÚÐ-)ÐÐ	
+­ÀÚÐ-*ÐÐ	
+­MÚÐ-+ÐÐ	
+­0ÚÐ-ÐÐ	
+­1ÚÐ-,ÐÐ	
+­QÚÐ--ÐÐ	
+­2ÚÐ-.ÐÐ	
+­3ÚÐ-/ÐÐ	
+­4ÚÐ-0ÐÐ	
+­5ÚÐ-1ÐÐ	
+­RÚÐ-ÐÐ	
+­6ÚÐ-2ÐÐ	
+­7ÚÐ-3ÐÐ	
+­8ÚÐ-/ÐÐ	
+­9ÚÐ-4ÐÐ	
+­:ÚÐ-1ÐÐ	
+­;ÚÐ-ÐÐ	
+­SÚÐ-5ÐÐ	
+­<ÚÐ-6ÐÐ	
+­=ÚÐ-/ÐÐ	
+­>ÚÐ-7ÐÐ	
+­?ÚÐ-8ÐÐ	
+­@ÚÐ-1ÐÐ	
+­AÚÐ-ÐÐ	
+­BÚÐ-9ÐÐ	
+­CÚÐ-:ÐÐ	
+­DÚÐ-;ÐÐ	
+­EÚÐ-<ÐÐ	
+­FÚÐ-=ÐÐ	
+­GÚÐ->ÐÐ	
+­HÚÐ-?ÐÐ	
+­IÚÐ-@ÐÐ	
+­JÚÐ-AÐÐ	
+­KÚÐ-BÐÐ	
+­LÚÐ-CÐÐ	
+­MÚÐ-DÐÐ	
+­NÚÐ-EÐÐ	
+­OÚÐ-FÐÐ	
+­=ÚÐ-GÐÐ	
+­	ÚÐ-ÐHIÐEÐÐ	
+­ÚÐ-JÐÐ	
+­ÚÐ-KÐÐ	
+­ÚÐ-LÐÐ	
+­ÚÐ-MÐÐ	
+­ÚÐ-NÐÐ	
+­PÚÐ-OÐÐ	
+­:ÚÐ-PÐÐ	
+­>ÚÐ-QÐÐ	
+­`ÚÐ-RÐÐ	
+­—ÚÐ-SÐÐ	
+­PÚÐ-TÐÐ	
+­ÚÐ-UÐÐ	
+­ÚÐ-NÐÐ	
+­ÚÐ-