private void UpdateNGBox()
 {
     BaseForm.SetControlText(labelNGBoxLeftCount, zone.NGBoxCellCount[EnumCellIndex.左电芯].ToString());
     BaseForm.SetControlText(labelNGBoxMidCount, zone.NGBoxCellCount[EnumCellIndex.中电芯].ToString());
     BaseForm.SetControlText(labelNGBoxRightCount, zone.NGBoxCellCount[EnumCellIndex.右电芯].ToString());
     ClassCommonSetting.UpdateIOStatus(labelNGBoxFull, zone.NGBoxFullSensor);
     ClassCommonSetting.UpdateIOStatus(labelNGBox, zone.NGBoxSensor);
 }
Example #2
0
 private void UpdateLoadNGBox()
 {
     BaseForm.DoInvokeRequired(labelNGBoxLeftCount, () => ClassBaseWorkZone.SetNGText(labelNGBoxLeftCount, ClassWorkZones.Instance.WorkZone上料机械手.NGBoxCellCount[EnumCellIndex.左电芯]));
     BaseForm.DoInvokeRequired(labelNGBoxMidCount, () => ClassBaseWorkZone.SetNGText(labelNGBoxMidCount, ClassWorkZones.Instance.WorkZone上料机械手.NGBoxCellCount[EnumCellIndex.中电芯]));
     BaseForm.DoInvokeRequired(labelNGBoxRightCount, () => ClassBaseWorkZone.SetNGText(labelNGBoxRightCount, ClassWorkZones.Instance.WorkZone上料机械手.NGBoxCellCount[EnumCellIndex.右电芯]));
     ClassCommonSetting.UpdateIOStatus(labelNGBoxFull, ClassWorkZones.Instance.WorkZone上料机械手.NGBoxFullSensor);
     ClassCommonSetting.UpdateIOStatus(labelNGBox, ClassWorkZones.Instance.WorkZone上料机械手.NGBoxSensor);
 }
Example #3
0
        private void UpdateNGBox()
        {
            Control temp;

            for (int i = 0; i < 4; i++)
            {
                temp = groupBoxNGBox.Controls["labelNGBox" + (i + 1).ToString() + "LeftCount"];
                BaseForm.SetControlText(temp, zone.NGBoxCellCount[i, (int)EnumCellIndex.左电芯].ToString());
                temp = groupBoxNGBox.Controls["labelNGBox" + (i + 1).ToString() + "MidCount"];
                BaseForm.SetControlText(temp, zone.NGBoxCellCount[i, (int)EnumCellIndex.中电芯].ToString());
                temp = groupBoxNGBox.Controls["labelNGBox" + (i + 1).ToString() + "RightCount"];
                BaseForm.SetControlText(temp, zone.NGBoxCellCount[i, (int)EnumCellIndex.右电芯].ToString());
                temp = groupBoxNGBox.Controls["labelNGBoxIndex" + (i + 1).ToString()];
                BaseForm.DoInvokeRequired(temp, () => temp.BackColor = zone.CurrentNGBoxRow == i ? Color.SkyBlue : Color.Transparent);
                ClassCommonSetting.UpdateIOStatus(groupBoxNGBox.Controls["labelNGBox" + (i + 1).ToString() + "Full"], zone.NGBoxFullSensor[i]);
            }
            //ClassCommonSetting.UpdateIOStatus(labelNGBox1Full, ClassWorkZones.Instance.WorkZoneNG挑选机械手.ThisInport(ClassZoneNG挑选机械手.EnumInportName.SortingPNPNGBoxFull1));
            //ClassCommonSetting.UpdateIOStatus(labelNGBox2Full, ClassWorkZones.Instance.WorkZoneNG挑选机械手.ThisInport(ClassZoneNG挑选机械手.EnumInportName.SortingPNPNGBoxFull2));
            //ClassCommonSetting.UpdateIOStatus(labelNGBox3Full, ClassWorkZones.Instance.WorkZoneNG挑选机械手.ThisInport(ClassZoneNG挑选机械手.EnumInportName.SortingPNPNGBoxFull3));
            //ClassCommonSetting.UpdateIOStatus(labelNGBox4Full, ClassWorkZones.Instance.WorkZoneNG挑选机械手.ThisInport(ClassZoneNG挑选机械手.EnumInportName.SortingPNPNGBoxFull4));
            ClassCommonSetting.UpdateIOStatus(labelNGBoxBack, zone.NGBoxBackSenser);
            ClassCommonSetting.UpdateIOStatus(labelNGBoxFront, zone.NGBoxFrontSensor);
            BaseForm.SetControlText(labelCurrentUse, zone.IsUseBackNGBox ? "后NG盒" : "前NG盒");
        }