Exemplo n.º 1
0
 private void sprayLine(Line line, Valve valve, int shots, double intervalSec)
 {
     valve.MoveToScaleLoc();
     valve.SprayCycle((short)shots, (short)(intervalSec - valve.Prm.JtValvePrm.OnTime));
     GlueManagerMgr.Instance.UpdateGlueRemainWeight((int)valve.Key, shots * line.Program.RuntimeSettings.SingleDropWeight);
     line.shortNum += shots;
 }
Exemplo n.º 2
0
        public override Result PatternWeightExecute(Directive directive, Valve valve)
        {
            Dot dot = directive as Dot;

            valve = Machine.Instance.Valve1;
            valve.MoveToScaleLoc();
            int shots = dot.IsWeightControl ? (int)((decimal)dot.Weight / (decimal)dot.Program.RuntimeSettings.SingleDropWeight) : dot.Param.NumShots;

            this.MultiShotDelta(dot, valve, shots);
            GlueManagerMgr.Instance.UpdateGlueRemainWeight((int)valve.Key, shots * dot.Program.RuntimeSettings.SingleDropWeight);
            dot.shortNum += shots;
            return(Result.OK);
        }