Esempio n. 1
0
        /// <summary>
        /// 서보상태를 받아옴.
        /// </summary>
        /// <returns>온오프</returns>
        public bool GetServo()
        {
            int iRet = -1;
            int iOn  = 0;

            //bRet = ((MotionInfo.uOutput >> 0) & 0x01) == 0x01;
            iRet = Cmmsdk.cmmGnGetServoOn(Para.iPhysicalNo, ref iOn);

            bool bRet = Convert.ToBoolean(iOn);

            if (Para.eServoPhase == LOGIC.LOGIC_B)
            {
                bRet = !bRet;
            }

            return(Convert.ToBoolean(bRet));//== MotnDefines.cmERR_NONE;
        }