public static bool Fire() { if (CheckLaserStatus()) { LSDLL.LAS_Source_SHON(); LSDLL.LAS_SetShutterON(2); } else { return(false); } return(true); }
// 設定偏光板是否On M8馬達 public static bool SetColorFilter(bool IsOn) { // if( IsOn ) // LAS_Motor_RunRomTable(8,1000); // 有濾光 // else // LAS_Motor_RunRomTable(8,0); // 無濾光 if (IsOn) { LSDLL.LAS_Motor_RealPluseMove(8, 11500, 0); // 正轉 } else { LSDLL.LAS_Motor_RealPluseMove(8, 11500, 1); // 反轉 } return(true); }
// 設定雷射能量() public static bool SetPower(double power) { // 雷射Power 輸入mW 需要用Double型別 if (CheckLaserStatus()) { LSDLL.LAS_Motor_RunRomTable(1, (int)power); //CString tempstr; //tempstr.Format("雷射能量設定階數 %d", (int)power); //theApp.m_MMonitor.SendToMachineMsg("LaserCmdUI", "SetPower", tempstr,TRUE); } else { return(false); } return(true); }
// 停止擊發 public static bool Stop() { LSDLL.LAS_SetShutterOFF(1); LSDLL.LAS_SetShutterOFF(2); return(true); }
public static bool LaserInitial() { return(LSDLL.LAS_LaserContrelInit()); }
// 雷射Shutter目前狀態 public static bool IsLaserFire() { // true 開 false 關 return(LSDLL.LAS_GetShutterStatus(2)); }
public static bool IsLaserReady() { return(LSDLL.LAS_Source_GetLaserReadyS()); }