/// <summary> /// IO 출력 상태 가져오기. /// </summary> /// <param name="_iNo">IO번호</param> /// <returns>IO상태</returns> public bool GetOut(int _iNo, bool _bDirect = false) { //Check Error. if (_iNo >= m_iMaxOut || _iNo < 0) { return(false); } //Get Addr. int iBitAddr; int iModule; int iModuleDp; GetInfoOutput(_iNo, out iModule, out iModuleDp, out iBitAddr); //OutPut if (_bDirect) { int iOn = 0; Cmmsdk.cmmDoGetOne(_iNo, ref iOn); return(iOn == 0 ? false : true); } else { bool bRet = ((m_aModuleInfo.iDataOutGet >> iBitAddr) & 0x01) == 0x01; return(bRet); } }