m_pConnector := IoMgrConfigGetConnector(pConnectorList, ADR(nCount), m_wModuleType, m_dwInstance);
IF m_pConnector = 0 THEN
IoDrvUpdateConfiguration := ERRORS.ERR_PARAMETER;
//check if device is enabled in the device tree
IoMgrSetDriverProperties(m_hInterface, DRVPROP_CONSISTENCY OR DRVPROP_BACKGROUND_GETDIAG);
pParameter := IoMgrConfigGetParameter(m_pConnector, 1000); (* digital inputs *)
IF (pParameter <> 0) THEN
pParameter^.dwDriverSpecific := 0; (* Device offset 0 *)
END_IF
//Setup I/O area for 2000 to 2003 DO
pParameter := IoMgrConfigGetParameter(m_pConnector, INT_TO_DWORD(1100+i)); (* Analog inputs *)
IF (pParameter <> 0) THEN
pParameter^.dwDriverSpecific := 1;
END_IF
END_FOR
//Setup I/O area for 2100 and 2101 AO