private void UserControl_Unloaded(object sender, RoutedEventArgs e)
 {
     if (bgGrp1 != null)
     {
         bgGrp1.Dispose();
         bgGrp1 = null;
     }
     timerToUpdateStatus.Stop();
     timerToUpdateStatus.Dispose();
 }
 private void onAddGroup(BGException ex, BGGroup grp, object tag)
 {
     if (ex == null)
     {
         bgGrp1 = grp;
         OPCItemDef[] itms = new OPCItemDef[1];
         itms[0] = new OPCItemDef(this.MachineChannel + "." + this.MachineCode + "." + OpcTags.PST_Pallet_Count, true, 0, typeof(void));
         grp.AddItems(itms, null, new OnBGGrpAddItems(onAddItems));
     }
 }
Ejemplo n.º 3
0
 private void onAddGroup(BGException ex, BGGroup grp, object tag)
 {
     if (ex == null)
     {
         bgGrp1 = grp;
         OPCItemDef[] itms = new OPCItemDef[2];
         itms[0] = new OPCItemDef(this.MachineChannel + "." + this.MachineCode + "." + OpcTags.PS_Shuttle_Aisle_Position_for_L2, true, 0, typeof(void));
         itms[1] = new OPCItemDef(this.MachineChannel + "." + this.MachineCode + "." + OpcTags.PS_PalletPresent, true, 1, typeof(void));
         grp.AddItems(itms, null, new OnBGGrpAddItems(onAddItems));
     }
 }
 private void onAddGroup(BGException ex, BGGroup grp, object tag)
 {
     if (ex == null)
     {
         bgGrp1 = grp;
         OPCItemDef[] itms = new OPCItemDef[2];
         itms[0] = new OPCItemDef(this.MachineChannel + "." + this.MachineCode + "." + OpcTags.CM_Position_for_L2, true, 0, typeof(void));
         string remCode = getREMCode(this.MachineCode);
         itms[1] = new OPCItemDef(this.MachineChannel + "." + remCode + "." + OpcTags.CM_Pallet_Present_on_REM, true, 1, typeof(void));
         grp.AddItems(itms, null, new OnBGGrpAddItems(onAddItems));
     }
 }
 private void onAddGroup(BGException ex, BGGroup grp, object tag)
 {
     if (ex == null)
     {
         bgGrp1 = grp;
         OPCItemDef[] itms     = new OPCItemDef[2];
         string       deckCode = getDeckCode(MachineCode);
         itms[0] = new OPCItemDef(this.MachineChannel + "." + deckCode + "." + OpcTags.VLC_North_Pallet_Present_Prox, true, 0, typeof(void));
         itms[1] = new OPCItemDef(this.MachineChannel + "." + deckCode + "." + OpcTags.VLC_South_Pallet_Present_Prox, true, 1, typeof(void));
         grp.AddItems(itms, null, new OnBGGrpAddItems(onAddItems));
     }
 }
        private void UserControl_Unloaded(object sender, RoutedEventArgs e)
        {
            try
            {
                if (bgGrp1 != null)
                {
                    bgGrp1.Dispose();
                    bgGrp1 = null;
                }

                timerToUpdateStatus.Stop();
                timerToUpdateStatus.Dispose();
                objCMDba      = null;
                objGeneralDba = null;
            }
            catch (Exception ex)
            {
            }
        }
Ejemplo n.º 7
0
        private void onAddGroup(BGException ex, BGGroup grp, object tag)
        {
            if (ex == null)

            {
                bgGrp1 = grp;
                int size = 2;
                if (this.MachineCode.Contains("LCM"))
                {
                    size = 3;
                }
                OPCItemDef[] itms = new OPCItemDef[size];

                itms[0] = new OPCItemDef(this.MachineChannel + "." + this.MachineCode + "." + OpcTags.CM_Position_for_L2, true, 0, typeof(void));
                string remCode = getREMCode(this.MachineCode);
                itms[1] = new OPCItemDef(this.MachineChannel + "." + remCode + "." + OpcTags.CM_Pallet_Present_on_REM, true, 1, typeof(void));
                if (size == 3)
                {
                    itms[2] = new OPCItemDef(this.MachineChannel + "." + this.MachineCode + "." + OpcTags.LCM_L2_ROT_FALSE_ALARM, true, 2, typeof(void));
                }
                grp.AddItems(itms, null, new OnBGGrpAddItems(onAddItems));
            }
        }