Ejemplo n.º 1
0
        public bool SetOut(int _iNo, bool _bOn)
        {
            //Check Error.
            if (_iNo >= m_iMaxOut || _iNo < 0)
            {
                return(false);
            }

            //OutPut
            short nOn = _bOn ? (short)1 : (short)0;
            short nRet;

            //Controller 추가 연결시 사용 되는거 같다.
            //nRet = NMC2.nmc_SetDIOOutPin(m_nDevId, (short)_iNo, nOn);
            nRet = NMC2.nmc_SetMDIOOutPin(m_nDevId, (short)_iNo, nOn);

            return(true);
        }