public bool WriteOutBit(int index, uint value) { try { if (m_nModuleCount <= 0) { return(false); } if (index < m_nOutputCount) { //for (int i = 0; i < Modules.Count; i++) //{ // if (index >= Modules[i].nOutStartIndex && index <= Modules[i].nOutEndIndex) // { // int nInd = index - Modules[i].nOutStartIndex; // CAXD.AxdoWriteOutportBit(i, nInd, value); // break; // } //} CAXD.AxdoWriteOutport(index, value); return(true); } else { return(false); } } catch (Exception E) { throw E; } }