/// <summary> /// 네트워크 타입들은 시그널을 받아 놓는다. /// </summary> public void Update() { int iMioState = 0; Cmmsdk.cmmStReadMioStatuses(Para.iPhysicalNo, ref iMioState); MotionStat.bAlarmSgnl = ((iMioState >> (int)MotnDefines._TCmMioState.cmIOST_ALM) & 0x01) == 0x01; MotionStat.bPLimSnsr = ((iMioState >> (int)MotnDefines._TCmMioState.cmIOST_ELP) & 0x01) == 0x01; MotionStat.bNLimSnsr = ((iMioState >> (int)MotnDefines._TCmMioState.cmIOST_ELN) & 0x01) == 0x01; MotionStat.bHomeSnsr = ((iMioState >> (int)MotnDefines._TCmMioState.cmIOST_ORG) & 0x01) == 0x01; MotionStat.bInPosSgnl = ((iMioState >> (int)MotnDefines._TCmMioState.cmIOST_INP) & 0x01) == 0x01; MotionStat.bZphaseSgnl = ((iMioState >> (int)MotnDefines._TCmMioState.cmIOST_EZ) & 0x01) == 0x01; Cmmsdk.cmmStGetCount(Para.iPhysicalNo, (int)MotnDefines._TCmCntr.cmCNT_COMM, ref MotionInfo.iCmdPos); Cmmsdk.cmmStGetCount(Para.iPhysicalNo, (int)MotnDefines._TCmCntr.cmCNT_FEED, ref MotionInfo.iActPos); }