public void DoPatternWeight() { DirUtils.CreateDir(string.Format("mes\\{0}", DateTime.Today.ToString("yyyy-MM-dd"))); PatternWeightSettings.FilePathDotWeight = string.Format("mes\\{0}\\DotWeight-{0}.csv", DateTime.Today.ToString("yyyy-MM-dd")); PatternWeightSettings.FilePathMatrixWeight = string.Format("mes\\{0}\\MatrixWeight-{0}.csv", DateTime.Today.ToString("yyyy-MM-dd")); if (!string.IsNullOrEmpty(PatternWeightSettings.FileDirUser)) { DirUtils.CreateDir(string.Format("{0}\\{1}", PatternWeightSettings.FileDirUser, DateTime.Today.ToString("yyyy-MM-dd"))); } if (!string.IsNullOrEmpty(PatternWeightSettings.FileDirUser)) { PatternWeightSettings.FilePathDotWeightUser = string.Format("{0}\\{1}\\DotWeight-{1}.csv", PatternWeightSettings.FileDirUser, DateTime.Today.ToString("yyyy-MM-dd")); PatternWeightSettings.FilePathMatrixWeightUser = string.Format("{0}\\{1}\\MatrixWeight-{1}.csv", PatternWeightSettings.FileDirUser, DateTime.Today.ToString("yyyy-MM-dd")); } //this.recdPatternWeight(); //this.recDotWeight(); Executor.Instance.ShotNums = 0; if (String.IsNullOrEmpty(patterName)) { return; } //if (this.runnableModule==null) // return; Machine.Instance.Robot.MoveSafeZAndReply(); this.Valve.MoveToScaleLoc(); Valve.DoWeight(spray); this.shotNums = Executor.Instance.ShotNums; this.recdPatternWeight(); this.recDotWeight(); }
public void DoPatternWeight() { Executor.Instance.ShotNums = 0; if (String.IsNullOrEmpty(patterName)) { return; } if (this.runnableModule == null) { return; } Machine.Instance.Robot.MoveSafeZAndReply(); this.Valve.MoveToScaleLoc(); Valve.DoWeight(spray); this.shotNums = Executor.Instance.ShotNums; }