예제 #1
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);
 }
예제 #2
0
        private void UpdateSortingNGBox()
        {
            Control temp;

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