コード例 #1
0
ファイル: FormOption.cs プロジェクト: zoro-008/Works
        public void UpdateEqpOptn(bool _bToTable)
        {
            if (_bToTable == true)
            {
                CConfig.ValToCon(tbEquipName, ref OM.EqpOptn.sEquipName);
                CConfig.ValToCon(tbEquipSerial, ref OM.EqpOptn.sEquipSerial);
                CConfig.ValToCon(sVisnPath, ref OM.EqpOptn.sVisnPath);
            }
            else
            {
                OM.CEqpOptn EqpOptn = OM.EqpOptn;

                CConfig.ConToVal(tbEquipName, ref OM.EqpOptn.sEquipName);
                CConfig.ConToVal(tbEquipSerial, ref OM.EqpOptn.sEquipSerial);
                CConfig.ConToVal(sVisnPath, ref OM.EqpOptn.sVisnPath);

                //Auto Log
                Type        type = EqpOptn.GetType();
                FieldInfo[] f    = type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
                for (int i = 0; i < f.Length; i++)
                {
                    Trace(f[i].Name, f[i].GetValue(EqpOptn).ToString(), f[i].GetValue(OM.EqpOptn).ToString());
                }

                UpdateComOptn(true);
            }
        }
コード例 #2
0
 public void UpdateMstOptn(bool bTable)
 {
     if (bTable)
     {
         CConfig.ValToCon(cbDebug, ref OM.MstOptn.bDebugMode);
         CConfig.ValToCon(cbIdlerun, ref OM.MstOptn.bIdleRun);
         CConfig.ValToCon(tbTrgOfs, ref OM.MstOptn.dTrgOfs);
         CConfig.ValToCon(cbMarkAlign, ref OM.MstOptn.bMarkAlgin);
         //cbDebug        .Checked = OM.MstOptn.bDebugMode   ;
         //cbIdlerun      .Checked = OM.MstOptn.bIdleRun     ;
         //
         //tbTrgOfs       .Text    = OM.MstOptn.dTrgOfs.ToString()  ;
     }
     else
     {
         CConfig.ConToVal(cbDebug, ref OM.MstOptn.bDebugMode);
         CConfig.ConToVal(cbIdlerun, ref OM.MstOptn.bIdleRun);
         CConfig.ConToVal(tbTrgOfs, ref OM.MstOptn.dTrgOfs);
         CConfig.ConToVal(cbMarkAlign, ref OM.MstOptn.bMarkAlgin);
         //OM.MstOptn.bDebugMode     = cbDebug  .Checked   ;
         //OM.MstOptn.bIdleRun       = cbIdlerun.Checked   ;
         //
         //OM.MstOptn.dTrgOfs        = CConfig.StrToDoubleDef(tbTrgOfs.Text, 0.0);
     }
 }
コード例 #3
0
        public void UpdateDevOptn(bool bToTable)
        {
            if (bToTable)
            {
                CConfig.ValToCon(tbPickDelay, ref OM.DevOptn.iPickDelay);
                CConfig.ValToCon(tbPlceDelay, ref OM.DevOptn.iPlceDelay);
                CConfig.ValToCon(tbInspSpeed, ref OM.DevOptn.iInspSpeed);
                CConfig.ValToCon(cbTotalInspCnt, ref OM.DevOptn.iTotalInspCnt);
                CConfig.ValToCon(cbNgInspCnt, ref OM.DevOptn.iNgInspCnt);
                CConfig.ValToCon(cbUseBtmCover, ref OM.DevOptn.bUseBtmCover);
                CConfig.ValToCon(tbTrgOfs, ref OM.DevOptn.dTrgOfs);
                CConfig.ValToCon(cbVisnNGCntErr, ref OM.DevOptn.iVisnNGCntErr);


                CConfig.ValToCon(cbUnitID, ref OM.DevOptn.bUnitID);
                CConfig.ValToCon(cbDuplicateDMC1, ref OM.DevOptn.bDuplicateDMC1);
                CConfig.ValToCon(cbDMC1Grouping, ref OM.DevOptn.bDMC1Grouping);
                CConfig.ValToCon(cbDMC1MonthLimit, ref OM.DevOptn.iDMC1MonthLimit);
                CConfig.ValToCon(cbDMC2, ref OM.DevOptn.iDMC2CheckMathod);                 //DMC2검사는 2가지 방법이 있어서 그거 설정.
                CConfig.ValToCon(cbBrightnessCheck, ref OM.DevOptn.bBrightnessCheck);
                CConfig.ValToCon(cbLDOMCheck, ref OM.DevOptn.bLDOMCheck);
                CConfig.ValToCon(cbCxCy, ref OM.DevOptn.bCxCy);
                CConfig.ValToCon(tbCompareDmc2Cnt, ref OM.DevOptn.iCompareDmc2Cnt);        //DMC2검사일때 String Compare 검사시에 검사하는 캐릭터 카운트 수를 지정.
                CConfig.ValToCon(cbUseDmc2CharLimit, ref OM.DevOptn.bUseDmc2CharLimit);
                CConfig.ValToCon(tbUseDmc2CharLimit, ref OM.DevOptn.iDmc2CharLimit);

                CConfig.ValToCon(cbUseBarcCyl, ref OM.DevOptn.bUseBarcCyl);
            }
            else
            {
                CConfig.ConToVal(tbPickDelay, ref OM.DevOptn.iPickDelay);
                CConfig.ConToVal(tbPlceDelay, ref OM.DevOptn.iPlceDelay);
                CConfig.ConToVal(tbInspSpeed, ref OM.DevOptn.iInspSpeed);


                CConfig.ConToVal(cbTotalInspCnt, ref OM.DevOptn.iTotalInspCnt);
                CConfig.ConToVal(cbNgInspCnt, ref OM.DevOptn.iNgInspCnt);

                CConfig.ConToVal(cbUseBtmCover, ref OM.DevOptn.bUseBtmCover);

                CConfig.ConToVal(tbTrgOfs, ref OM.DevOptn.dTrgOfs);
                CConfig.ConToVal(cbVisnNGCntErr, ref OM.DevOptn.iVisnNGCntErr);

                CConfig.ConToVal(cbUnitID, ref OM.DevOptn.bUnitID);
                CConfig.ConToVal(cbDuplicateDMC1, ref OM.DevOptn.bDuplicateDMC1);
                CConfig.ConToVal(cbDMC1Grouping, ref OM.DevOptn.bDMC1Grouping);
                CConfig.ConToVal(cbDMC1MonthLimit, ref OM.DevOptn.iDMC1MonthLimit);
                CConfig.ConToVal(cbDMC2, ref OM.DevOptn.iDMC2CheckMathod);                 //DMC2검사는 2가지 방법이 있어서 그거 설정.
                CConfig.ConToVal(cbBrightnessCheck, ref OM.DevOptn.bBrightnessCheck);
                CConfig.ConToVal(cbLDOMCheck, ref OM.DevOptn.bLDOMCheck);
                CConfig.ConToVal(cbCxCy, ref OM.DevOptn.bCxCy);
                CConfig.ConToVal(tbCompareDmc2Cnt, ref OM.DevOptn.iCompareDmc2Cnt);        //DMC2검사일때 String Compare 검사시에 검사하는 캐릭터 카운트 수를 지정.
                CConfig.ConToVal(cbUseDmc2CharLimit, ref OM.DevOptn.bUseDmc2CharLimit);
                CConfig.ConToVal(tbUseDmc2CharLimit, ref OM.DevOptn.iDmc2CharLimit);

                CConfig.ConToVal(cbUseBarcCyl, ref OM.DevOptn.bUseBarcCyl);
                UpdateDevOptn(true);
            }
        }
コード例 #4
0
ファイル: LogOption.cs プロジェクト: zoro-008/Works
        public void UpdateOption(bool _bToTable)
        {
            int iRet;

            if (_bToTable == true)
            {
                tbLogPath.Text         = OM.LogInfo.sLogPath;
                tbIgnrSameMsgLine.Text = OM.LogInfo.iIgnrSameMsgLine.ToString();
                tbSaveMaxDate.Text     = OM.LogInfo.iSaveMaxMonths.ToString();
                textBoxCnt.Text        = OM.LogInfo.iTagCnt.ToString();
                tbLogBuPath.Text       = OM.LogInfo.sLogBuPath;

                textBox1.Text  = OM.GetTag(1); CConfig.ValToCon(checkBox1, ref OM.LogInfo.bWithAll1);
                textBox2.Text  = OM.GetTag(2); CConfig.ValToCon(checkBox2, ref OM.LogInfo.bWithAll2);
                textBox3.Text  = OM.GetTag(3); CConfig.ValToCon(checkBox3, ref OM.LogInfo.bWithAll3);
                textBox4.Text  = OM.GetTag(4); CConfig.ValToCon(checkBox4, ref OM.LogInfo.bWithAll4);
                textBox5.Text  = OM.GetTag(5); CConfig.ValToCon(checkBox5, ref OM.LogInfo.bWithAll5);
                textBox6.Text  = OM.GetTag(6); CConfig.ValToCon(checkBox6, ref OM.LogInfo.bWithAll6);
                textBox7.Text  = OM.GetTag(7); CConfig.ValToCon(checkBox7, ref OM.LogInfo.bWithAll7);
                textBox8.Text  = OM.GetTag(8); CConfig.ValToCon(checkBox8, ref OM.LogInfo.bWithAll8);
                textBox9.Text  = OM.GetTag(9); CConfig.ValToCon(checkBox9, ref OM.LogInfo.bWithAll9);
                textBox10.Text = OM.GetTag(10); CConfig.ValToCon(checkBox10, ref OM.LogInfo.bWithAll10);
                textBox11.Text = OM.GetTag(11); CConfig.ValToCon(checkBox11, ref OM.LogInfo.bWithAll11);
                textBox12.Text = OM.GetTag(12); CConfig.ValToCon(checkBox12, ref OM.LogInfo.bWithAll12);
                textBox13.Text = OM.GetTag(13); CConfig.ValToCon(checkBox13, ref OM.LogInfo.bWithAll13);
                textBox14.Text = OM.GetTag(14); CConfig.ValToCon(checkBox14, ref OM.LogInfo.bWithAll14);
                textBox15.Text = OM.GetTag(15); CConfig.ValToCon(checkBox15, ref OM.LogInfo.bWithAll15);
                //textBox16.Text = OM.LogInfo.sTag9; CConfig.ValToCon(checkBox16, ref OM.LogInfo.bWithAll16);
            }
            else
            {
                OM.LogInfo.sLogPath         = tbLogPath.Text;
                OM.LogInfo.iIgnrSameMsgLine = int.TryParse(tbIgnrSameMsgLine.Text, out iRet) ? iRet : 0;
                OM.LogInfo.iSaveMaxMonths   = int.TryParse(tbSaveMaxDate.Text, out iRet) ? iRet : 0;
                OM.LogInfo.iTagCnt          = int.TryParse(textBoxCnt.Text, out iRet) ? iRet : 0;
                OM.LogInfo.sLogBuPath       = tbLogBuPath.Text;

                OM.LogInfo.sTag1  = textBox1.Text;  CConfig.ConToVal(checkBox1, ref OM.LogInfo.bWithAll1);
                OM.LogInfo.sTag2  = textBox2.Text;  CConfig.ConToVal(checkBox2, ref OM.LogInfo.bWithAll2);
                OM.LogInfo.sTag3  = textBox3.Text;  CConfig.ConToVal(checkBox3, ref OM.LogInfo.bWithAll3);
                OM.LogInfo.sTag4  = textBox4.Text;  CConfig.ConToVal(checkBox4, ref OM.LogInfo.bWithAll4);
                OM.LogInfo.sTag5  = textBox5.Text;  CConfig.ConToVal(checkBox5, ref OM.LogInfo.bWithAll5);
                OM.LogInfo.sTag6  = textBox6.Text;  CConfig.ConToVal(checkBox6, ref OM.LogInfo.bWithAll6);
                OM.LogInfo.sTag7  = textBox7.Text;  CConfig.ConToVal(checkBox7, ref OM.LogInfo.bWithAll7);
                OM.LogInfo.sTag8  = textBox8.Text;  CConfig.ConToVal(checkBox8, ref OM.LogInfo.bWithAll8);
                OM.LogInfo.sTag9  = textBox9.Text;  CConfig.ConToVal(checkBox9, ref OM.LogInfo.bWithAll9);
                OM.LogInfo.sTag10 = textBox10.Text; CConfig.ConToVal(checkBox10, ref OM.LogInfo.bWithAll10);
                OM.LogInfo.sTag11 = textBox11.Text; CConfig.ConToVal(checkBox11, ref OM.LogInfo.bWithAll11);
                OM.LogInfo.sTag12 = textBox12.Text; CConfig.ConToVal(checkBox12, ref OM.LogInfo.bWithAll12);
                OM.LogInfo.sTag13 = textBox13.Text; CConfig.ConToVal(checkBox13, ref OM.LogInfo.bWithAll13);
                OM.LogInfo.sTag14 = textBox14.Text; CConfig.ConToVal(checkBox14, ref OM.LogInfo.bWithAll14);
                OM.LogInfo.sTag15 = textBox15.Text; CConfig.ConToVal(checkBox15, ref OM.LogInfo.bWithAll15);
                //OM.LogInfo.sTag16 = textBox16.Text; CConfig.ConToVal(checkBox16, ref OM.LogInfo.bWithAll16);

                UpdateOption(true);
            }
        }
コード例 #5
0
 public void UpdateMstOptn(bool bTable)
 {
     if (bTable)
     {
         CConfig.ValToCon(cbDebug, ref OM.MstOptn.bDebugMode);
         CConfig.ValToCon(cbIdlerun, ref OM.MstOptn.bIdleRun);
     }
     else
     {
         CConfig.ConToVal(cbDebug, ref OM.MstOptn.bDebugMode);
         CConfig.ConToVal(cbIdlerun, ref OM.MstOptn.bIdleRun);
     }
 }
コード例 #6
0
        public void UpdateDevInfo(bool bToTable)
        {
            if (bToTable)
            {
                CConfig.ValToCon(tbTRAY_PcktCntX, ref OM.DevInfo.iTRAY_PcktCntX);
                CConfig.ValToCon(tbTRAY_PcktCntY, ref OM.DevInfo.iTRAY_PcktCntY);
                CConfig.ValToCon(tbTRAY_PcktPitchX, ref OM.DevInfo.dTRAY_PcktPitchX);
                CConfig.ValToCon(tbTRAY_PcktPitchY, ref OM.DevInfo.dTRAY_PcktPitchY);
                CConfig.ValToCon(tbTRAY_StackingCnt, ref OM.DevInfo.iTRAY_StackingCnt);
                CConfig.ValToCon(tbTRAY_BundleCnt, ref OM.DevInfo.iTRAY_BundleCnt);
            }
            else
            {
                CConfig.ConToVal(tbTRAY_PcktCntX, ref OM.DevInfo.iTRAY_PcktCntX);
                CConfig.ConToVal(tbTRAY_PcktCntY, ref OM.DevInfo.iTRAY_PcktCntY);
                CConfig.ConToVal(tbTRAY_PcktPitchX, ref OM.DevInfo.dTRAY_PcktPitchX);
                CConfig.ConToVal(tbTRAY_PcktPitchY, ref OM.DevInfo.dTRAY_PcktPitchY);
                CConfig.ConToVal(tbTRAY_StackingCnt, ref OM.DevInfo.iTRAY_StackingCnt);
                CConfig.ConToVal(tbTRAY_BundleCnt, ref OM.DevInfo.iTRAY_BundleCnt);

                if (OM.DevInfo.iTRAY_PcktCntX < 1)
                {
                    OM.DevInfo.iTRAY_PcktCntX = 1;
                }
                if (OM.DevInfo.iTRAY_PcktCntY < 1)
                {
                    OM.DevInfo.iTRAY_PcktCntY = 1;
                }
                if (OM.DevInfo.dTRAY_PcktPitchX <= 0)
                {
                    OM.DevInfo.dTRAY_PcktPitchX = 0.1;
                }
                if (OM.DevInfo.dTRAY_PcktPitchY <= 0)
                {
                    OM.DevInfo.dTRAY_PcktPitchY = 0.1;
                }
                if (OM.DevInfo.iTRAY_StackingCnt < 2)
                {
                    OM.DevInfo.iTRAY_StackingCnt = 2;
                }
                if (OM.DevInfo.iTRAY_BundleCnt < 1)
                {
                    OM.DevInfo.iTRAY_BundleCnt = 1;
                }


                UpdateDevInfo(true);
            }
        }
コード例 #7
0
        public void UpdateComOptn(bool _bToTable)
        {
            if (_bToTable == true)
            {
                CConfig.ValToCon(cbRewindMode, ref OM.CmnOptn.bRewindMode);
                CConfig.ValToCon(cbUseRear, ref OM.CmnOptn.bUseRear);
                CConfig.ValToCon(cbUseFrnt, ref OM.CmnOptn.bUseFrnt);
                CConfig.ValToCon(cbUseYBfPos, ref OM.CmnOptn.bUseYBfPos);
                CConfig.ValToCon(tbRewindRVel, ref OM.CmnOptn.dRewindRVel);
                CConfig.ValToCon(tbRewindYVel, ref OM.CmnOptn.dRewindYVel);
            }
            else
            {
                OM.CCmnOptn CmnOptn = OM.CmnOptn;

                CConfig.ConToVal(cbRewindMode, ref OM.CmnOptn.bRewindMode);
                CConfig.ConToVal(cbUseRear, ref OM.CmnOptn.bUseRear);
                CConfig.ConToVal(cbUseFrnt, ref OM.CmnOptn.bUseFrnt);
                CConfig.ConToVal(cbUseYBfPos, ref OM.CmnOptn.bUseYBfPos);
                CConfig.ConToVal(tbRewindRVel, ref OM.CmnOptn.dRewindRVel);
                CConfig.ValToCon(tbRewindYVel, ref OM.CmnOptn.dRewindYVel);
                if (OM.CmnOptn.dRewindRVel <= 0)
                {
                    OM.CmnOptn.dRewindRVel = 1;
                }
                if (OM.CmnOptn.dRewindYVel <= 0)
                {
                    OM.CmnOptn.dRewindYVel = 0.001;
                }

                //Auto Log
                Type        type = CmnOptn.GetType();
                FieldInfo[] f    = type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
                for (int i = 0; i < f.Length; i++)
                {
                    Trace(f[i].Name, f[i].GetValue(CmnOptn).ToString(), f[i].GetValue(OM.CmnOptn).ToString());
                }

                UpdateComOptn(true);
                //Trace(cbRewindMode.Checked, CmnOptn.iSetLvNo .ToString(), OM.CmnOptn.iSetLvNo .ToString());
            }
        }
コード例 #8
0
        public void UpdateComOptn(bool _bToTable)
        {
            if (_bToTable == true)
            {
                CConfig.ValToCon(cbLoadingStop, ref OM.CmnOptn.bLoadingStop);
                CConfig.ValToCon(cbVISNSkip, ref OM.CmnOptn.bVisnSkip);
                CConfig.ValToCon(cbMARKSkip, ref OM.CmnOptn.bMarkSkip);

                CConfig.ValToCon(tbPaintName1, ref OM.CmnOptn.sPaintName1);
                CConfig.ValToCon(tbPaintName2, ref OM.CmnOptn.sPaintName2);
                CConfig.ValToCon(tbPaintName3, ref OM.CmnOptn.sPaintName3);
                CConfig.ValToCon(tbPaintName4, ref OM.CmnOptn.sPaintName4);
                CConfig.ValToCon(tbPaintName5, ref OM.CmnOptn.sPaintName5);
            }
            else
            {
                OM.CCmnOptn CmnOptn = OM.CmnOptn;
                CConfig.ConToVal(cbLoadingStop, ref OM.CmnOptn.bLoadingStop);
                CConfig.ConToVal(cbVISNSkip, ref OM.CmnOptn.bVisnSkip);
                CConfig.ConToVal(cbMARKSkip, ref OM.CmnOptn.bMarkSkip);

                CConfig.ConToVal(tbPaintName1, ref OM.CmnOptn.sPaintName1);
                CConfig.ConToVal(tbPaintName2, ref OM.CmnOptn.sPaintName2);
                CConfig.ConToVal(tbPaintName3, ref OM.CmnOptn.sPaintName3);
                CConfig.ConToVal(tbPaintName4, ref OM.CmnOptn.sPaintName4);
                CConfig.ConToVal(tbPaintName5, ref OM.CmnOptn.sPaintName5);

                //Auto Log
                Type        type = CmnOptn.GetType();
                FieldInfo[] f    = type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
                for (int i = 0; i < f.Length; i++)
                {
                    Trace(f[i].Name, f[i].GetValue(CmnOptn).ToString(), f[i].GetValue(OM.CmnOptn).ToString());
                }

                UpdateComOptn(true);
            }
        }
コード例 #9
0
ファイル: FormDeviceSet.cs プロジェクト: zoro-008/Works
        public void UpdateDevInfo(bool bToTable)
        {
            if (bToTable)
            {
                CConfig.ValToCon(tbLODR_BarCntY, ref OM.DevInfo.iLODR_BarCnt);
                CConfig.ValToCon(tbULDR_BarCntY, ref OM.DevInfo.iULDR_BarCnt);
                CConfig.ValToCon(tbLODR_BarPitchY, ref OM.DevInfo.dLODR_BarPitch);
                CConfig.ValToCon(tbULDR_BarPitchY, ref OM.DevInfo.dULDR_BarPitch);
                CConfig.ValToCon(tbWorkEndCnt, ref OM.DevInfo.iWorkEndCnt);
                CConfig.ValToCon(tbPickDelay, ref OM.DevInfo.iPickDelay);
                CConfig.ValToCon(tbPickMissCnt, ref OM.DevInfo.iPickMissCnt);
                CConfig.ValToCon(nrLSR_ProgramNo, ref OM.DevInfo.iProgramNo);
            }
            else
            {
                OM.CDevInfo DevInfo = OM.DevInfo;
                CConfig.ConToVal(tbLODR_BarCntY, ref OM.DevInfo.iLODR_BarCnt);
                CConfig.ConToVal(tbULDR_BarCntY, ref OM.DevInfo.iULDR_BarCnt);
                CConfig.ConToVal(tbLODR_BarPitchY, ref OM.DevInfo.dLODR_BarPitch);
                CConfig.ConToVal(tbULDR_BarPitchY, ref OM.DevInfo.dULDR_BarPitch);
                CConfig.ConToVal(tbWorkEndCnt, ref OM.DevInfo.iWorkEndCnt);
                CConfig.ConToVal(tbPickDelay, ref OM.DevInfo.iPickDelay);
                CConfig.ConToVal(tbPickMissCnt, ref OM.DevInfo.iPickMissCnt);
                CConfig.ConToVal(nrLSR_ProgramNo, ref OM.DevInfo.iProgramNo);

                //Auto Log
                Type        type = DevInfo.GetType();
                FieldInfo[] f    = type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
                for (int i = 0; i < f.Length; i++)
                {
                    Trace(f[i].Name, f[i].GetValue(DevInfo).ToString(), f[i].GetValue(OM.DevInfo).ToString());
                }

                UpdateDevInfo(true);
            }
        }
コード例 #10
0
        public void UpdateComOptn(bool _bToTable)
        {
            if (_bToTable == true)
            {
                CConfig.ValToCon(cbLoadingStop, ref OM.CmnOptn.bLoadingStop);
                CConfig.ValToCon(cbIdleRun, ref OM.CmnOptn.bIdleRun);
                CConfig.ValToCon(cbEmptyCheck, ref OM.CmnOptn.iEmptyCheckPrcs);
                CConfig.ValToCon(tbNG0, ref OM.CmnOptn.sNG0);
                CConfig.ValToCon(tbNG1, ref OM.CmnOptn.sNG1);
                CConfig.ValToCon(tbNG2, ref OM.CmnOptn.sNG2);
                CConfig.ValToCon(tbNG3, ref OM.CmnOptn.sNG3);
                CConfig.ValToCon(tbNG4, ref OM.CmnOptn.sNG4);
                CConfig.ValToCon(tbNG5, ref OM.CmnOptn.sNG5);
                CConfig.ValToCon(tbNG6, ref OM.CmnOptn.sNG6);
                CConfig.ValToCon(tbNG7, ref OM.CmnOptn.sNG7);
                CConfig.ValToCon(tbNG8, ref OM.CmnOptn.sNG8);
                CConfig.ValToCon(tbNG9, ref OM.CmnOptn.sNG9);
                CConfig.ValToCon(tbNG10, ref OM.CmnOptn.sNG10);

                CConfig.ValToCon(cbOracleNotUse, ref OM.CmnOptn.bOracleNotUse);
                CConfig.ValToCon(tbOracleIP, ref OM.CmnOptn.sOracleIP);
                CConfig.ValToCon(tbOraclePort, ref OM.CmnOptn.sOraclePort);
                CConfig.ValToCon(tbOracleID, ref OM.CmnOptn.sOracleID);
                CConfig.ValToCon(tbOraclePassword, ref OM.CmnOptn.sOraclePassword);
                CConfig.ValToCon(tbOracleSID, ref OM.CmnOptn.sOracleSID);

                CConfig.ValToCon(cbNotWriteVIT, ref OM.CmnOptn.bOracleNotWriteVIT);
                CConfig.ValToCon(cbNotWriteUnitInsp, ref OM.CmnOptn.bOracleNotWriteInsp);

                CConfig.ValToCon(cbNotWriteVITFile, ref OM.CmnOptn.bOracleNotWriteVITFile);
                CConfig.ValToCon(cbUseApTestTable, ref OM.CmnOptn.bUseApTestTable);

                CConfig.ValToCon(tbIdxFSplyPos, ref OM.CmnOptn.dIdxFSplyPos);
                CConfig.ValToCon(tbIdxRSplyPos, ref OM.CmnOptn.dIdxRSplyPos);


                CConfig.ValToCon(tbYOffset, ref OM.CmnOptn.iBarcYOffset);
                CConfig.ValToCon(tbToff, ref OM.CmnOptn.iBarcToff);
                CConfig.ValToCon(tbBrcdPickDelay, ref OM.CmnOptn.iBrcdPickDelay);

                CConfig.ValToCon(cbIdxFSkip, ref OM.CmnOptn.bIdxFSkip);
                CConfig.ValToCon(cbIdxRSkip, ref OM.CmnOptn.bIdxRSkip);

                CConfig.ValToCon(tbGoodPickMissCnt, ref OM.CmnOptn.iGoodPickMissCnt);

                CConfig.ValToCon(cbUsedGoldenTray, ref OM.CmnOptn.bGoldenTray);
                CConfig.ValToCon(cbInspCrvrTray, ref OM.CmnOptn.iInspCrvrTray);

                CConfig.ValToCon(tbPickRtryCnt, ref OM.CmnOptn.iPickRtryCnt);
                CConfig.ValToCon(tbLotEndDelay, ref OM.CmnOptn.iLotEndDelay);
                CConfig.ValToCon(tbBackupFolder, ref OM.CmnOptn.sBackupFolder);
                CConfig.ValToCon(tbOracleMachinID, ref OM.CmnOptn.sMachinID);
                CConfig.ValToCon(tbVITFolder, ref OM.CmnOptn.sVITFolder);
                CConfig.ValToCon(cbSkipBarAttach, ref OM.CmnOptn.bSkipBarAttach);
                CConfig.ValToCon(cbIdxDetectVisnZone, ref OM.CmnOptn.bIdxDetectVisnZone);
            }
            else
            {
                CConfig.ConToVal(cbLoadingStop, ref OM.CmnOptn.bLoadingStop);
                CConfig.ConToVal(cbIdleRun, ref OM.CmnOptn.bIdleRun);
                CConfig.ConToVal(cbEmptyCheck, ref OM.CmnOptn.iEmptyCheckPrcs);
                CConfig.ConToVal(tbNG0, ref OM.CmnOptn.sNG0);
                CConfig.ConToVal(tbNG1, ref OM.CmnOptn.sNG1);
                CConfig.ConToVal(tbNG2, ref OM.CmnOptn.sNG2);
                CConfig.ConToVal(tbNG3, ref OM.CmnOptn.sNG3);
                CConfig.ConToVal(tbNG4, ref OM.CmnOptn.sNG4);
                CConfig.ConToVal(tbNG5, ref OM.CmnOptn.sNG5);
                CConfig.ConToVal(tbNG6, ref OM.CmnOptn.sNG6);
                CConfig.ConToVal(tbNG7, ref OM.CmnOptn.sNG7);
                CConfig.ConToVal(tbNG8, ref OM.CmnOptn.sNG8);
                CConfig.ConToVal(tbNG9, ref OM.CmnOptn.sNG9);
                CConfig.ConToVal(tbNG10, ref OM.CmnOptn.sNG10);

                CConfig.ConToVal(cbOracleNotUse, ref OM.CmnOptn.bOracleNotUse);
                CConfig.ConToVal(tbOracleIP, ref OM.CmnOptn.sOracleIP);
                CConfig.ConToVal(tbOraclePort, ref OM.CmnOptn.sOraclePort);
                CConfig.ConToVal(tbOracleID, ref OM.CmnOptn.sOracleID);
                CConfig.ConToVal(tbOraclePassword, ref OM.CmnOptn.sOraclePassword);
                CConfig.ConToVal(tbOracleSID, ref OM.CmnOptn.sOracleSID);
                CConfig.ConToVal(tbOracleMachinID, ref OM.CmnOptn.sMachinID);

                CConfig.ConToVal(cbNotWriteVIT, ref OM.CmnOptn.bOracleNotWriteVIT);
                CConfig.ConToVal(cbNotWriteUnitInsp, ref OM.CmnOptn.bOracleNotWriteInsp);

                CConfig.ConToVal(cbNotWriteVITFile, ref OM.CmnOptn.bOracleNotWriteVITFile);
                CConfig.ConToVal(cbUseApTestTable, ref OM.CmnOptn.bUseApTestTable);

                CConfig.ConToVal(tbIdxFSplyPos, ref OM.CmnOptn.dIdxFSplyPos);
                CConfig.ConToVal(tbIdxRSplyPos, ref OM.CmnOptn.dIdxRSplyPos);


                CConfig.ConToVal(tbYOffset, ref OM.CmnOptn.iBarcYOffset);
                CConfig.ConToVal(tbToff, ref OM.CmnOptn.iBarcToff);
                CConfig.ConToVal(tbBrcdPickDelay, ref OM.CmnOptn.iBrcdPickDelay);

                CConfig.ConToVal(cbIdxFSkip, ref OM.CmnOptn.bIdxFSkip);
                CConfig.ConToVal(cbIdxRSkip, ref OM.CmnOptn.bIdxRSkip);

                CConfig.ConToVal(tbGoodPickMissCnt, ref OM.CmnOptn.iGoodPickMissCnt);

                CConfig.ConToVal(cbUsedGoldenTray, ref OM.CmnOptn.bGoldenTray);
                CConfig.ConToVal(cbInspCrvrTray, ref OM.CmnOptn.iInspCrvrTray);

                CConfig.ConToVal(tbPickRtryCnt, ref OM.CmnOptn.iPickRtryCnt);
                CConfig.ConToVal(tbLotEndDelay, ref OM.CmnOptn.iLotEndDelay);

                CConfig.ConToVal(tbBackupFolder, ref OM.CmnOptn.sBackupFolder);
                CConfig.ConToVal(tbVITFolder, ref OM.CmnOptn.sVITFolder);
                CConfig.ConToVal(cbSkipBarAttach, ref OM.CmnOptn.bSkipBarAttach);
                CConfig.ConToVal(cbIdxDetectVisnZone, ref OM.CmnOptn.bIdxDetectVisnZone);
            }
        }
コード例 #11
0
        public void UpdateDevInfo(bool bToTable)
        {
            if (bToTable)
            {
                CConfig.ValToCon(dColPitch, ref OM.DevInfo.dColPitch);
                CConfig.ValToCon(dRowPitch, ref OM.DevInfo.dRowPitch);
                CConfig.ValToCon(iColGrCnt, ref OM.DevInfo.iColGrCnt);
                CConfig.ValToCon(iRowGrCnt, ref OM.DevInfo.iRowGrCnt);
                CConfig.ValToCon(dColGrGap, ref OM.DevInfo.dColGrGap);
                CConfig.ValToCon(dRowGrGap, ref OM.DevInfo.dRowGrGap);
                CConfig.ValToCon(iColCnt, ref OM.DevInfo.iColCnt);
                CConfig.ValToCon(iRowCnt, ref OM.DevInfo.iRowCnt);

                CConfig.ValToCon(iColSbGrCnt, ref OM.DevInfo.iColSbGrCnt);
                CConfig.ValToCon(dColSbGrGap, ref OM.DevInfo.dColSbGrGap);
                CConfig.ValToCon(iRowSbGrCnt, ref OM.DevInfo.iRowSbGrCnt);
                CConfig.ValToCon(dRowSbGrGap, ref OM.DevInfo.dRowSbGrGap);

                CConfig.ValToCon(sVisnIndexId, ref OM.DevInfo.sVisnIndexId);
                CConfig.ValToCon(iColInspCnt, ref OM.DevInfo.iColInspCnt);
                CConfig.ValToCon(iRowInspCnt, ref OM.DevInfo.iRowInspCnt);

                CConfig.ValToCon(iMgzCntPerLot, ref OM.DevInfo.iMgzCntPerLot);
                CConfig.ValToCon(dMgzPitch, ref OM.DevInfo.dMgzPitch);
                CConfig.ValToCon(iMgzSlotCnt, ref OM.DevInfo.iMgzSlotCnt);
                CConfig.ValToCon(iLdrOutDelay, ref OM.DevInfo.iLdrOutDelay);
                CConfig.ValToCon(iUdrOutDelay, ref OM.DevInfo.iUdrOutDelay);
                CConfig.ValToCon(bVs1_Skip, ref OM.DevInfo.bVs1_Skip);
                CConfig.ValToCon(bVs2_Skip, ref OM.DevInfo.bVs2_Skip);
                CConfig.ValToCon(bVs3_Skip, ref OM.DevInfo.bVs3_Skip);
                CConfig.ValToCon(bVsL_NotUse, ref OM.DevInfo.bVsL_NotUse);
                CConfig.ValToCon(bVsR_NotUse, ref OM.DevInfo.bVsR_NotUse);

                CConfig.ValToCon(iStprDnDelay, ref OM.DevInfo.iStprDnDelay);
            }
            else
            {
                OM.CDevInfo DevInfo = OM.DevInfo;

                CConfig.ConToVal(dColPitch, ref OM.DevInfo.dColPitch, 0.1, 300);
                CConfig.ConToVal(dRowPitch, ref OM.DevInfo.dRowPitch, 0.1, 300);
                CConfig.ConToVal(iColGrCnt, ref OM.DevInfo.iColGrCnt, 1, 99);
                CConfig.ConToVal(iRowGrCnt, ref OM.DevInfo.iRowGrCnt, 1, 99);
                CConfig.ConToVal(dColGrGap, ref OM.DevInfo.dColGrGap, 0, 300);
                CConfig.ConToVal(dRowGrGap, ref OM.DevInfo.dRowGrGap, 0, 300);
                CConfig.ConToVal(iColCnt, ref OM.DevInfo.iColCnt, 1, 99);
                CConfig.ConToVal(iRowCnt, ref OM.DevInfo.iRowCnt, 1, 99);

                CConfig.ConToVal(iColSbGrCnt, ref OM.DevInfo.iColSbGrCnt, 0, 99);
                CConfig.ConToVal(dColSbGrGap, ref OM.DevInfo.dColSbGrGap, 0.0, 300);
                CConfig.ConToVal(iRowSbGrCnt, ref OM.DevInfo.iRowSbGrCnt, 0, 99);
                CConfig.ConToVal(dRowSbGrGap, ref OM.DevInfo.dRowSbGrGap, 0.0, 300);

                CConfig.ConToVal(sVisnIndexId, ref OM.DevInfo.sVisnIndexId);
                CConfig.ConToVal(iColInspCnt, ref OM.DevInfo.iColInspCnt, 1, 99);
                CConfig.ConToVal(iRowInspCnt, ref OM.DevInfo.iRowInspCnt, 1, 99);

                CConfig.ConToVal(iMgzCntPerLot, ref OM.DevInfo.iMgzCntPerLot, 1, 99);
                CConfig.ConToVal(dMgzPitch, ref OM.DevInfo.dMgzPitch, 0.1, 300);
                CConfig.ConToVal(iMgzSlotCnt, ref OM.DevInfo.iMgzSlotCnt, 1, 99);
                CConfig.ConToVal(iLdrOutDelay, ref OM.DevInfo.iLdrOutDelay, 0, 5500);
                CConfig.ConToVal(iUdrOutDelay, ref OM.DevInfo.iUdrOutDelay, 0, 5500);

                CConfig.ConToVal(bVs1_Skip, ref OM.DevInfo.bVs1_Skip);
                CConfig.ConToVal(bVs2_Skip, ref OM.DevInfo.bVs2_Skip);
                CConfig.ConToVal(bVs3_Skip, ref OM.DevInfo.bVs3_Skip);
                CConfig.ConToVal(bVsL_NotUse, ref OM.DevInfo.bVsL_NotUse);
                CConfig.ConToVal(bVsR_NotUse, ref OM.DevInfo.bVsR_NotUse);

                CConfig.ConToVal(iStprDnDelay, ref OM.DevInfo.iStprDnDelay);

                //Auto Log
                Type        type = DevInfo.GetType();
                FieldInfo[] f    = type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
                for (int i = 0; i < f.Length; i++)
                {
                    Trace(f[i].Name, f[i].GetValue(DevInfo).ToString(), f[i].GetValue(OM.DevInfo).ToString());
                }

                UpdateDevInfo(true);
            }
        }
コード例 #12
0
ファイル: FormOption.cs プロジェクト: zoro-008/Works
        public void UpdateComOptn(bool _bToTable)
        {
            if (_bToTable == true)
            {
                CConfig.ValToCon(cbLoadingStop, ref OM.CmnOptn.bLoadStop);
                CConfig.ValToCon(cbIgnrDoor, ref OM.CmnOptn.bIgnrDoor);
                CConfig.ValToCon(cbIgnrVisn, ref OM.CmnOptn.bIgnrVisn);
                CConfig.ValToCon(cbIgnrMark, ref OM.CmnOptn.bIgnrMark);
                CConfig.ValToCon(tbTrgOfs, ref OM.CmnOptn.dTrgOfs);

                CConfig.ValToCon(tbName0, ref OM.CmnOptn.sRsltName0); CConfig.ValToCon(tbLevel0, ref OM.CmnOptn.iRsltLevel0); CConfig.ValToCon(tbLim0, ref OM.CmnOptn.iVsLim0); CConfig.ValToCon(cbNotMark0, ref OM.CmnOptn.bNotMark0);
                CConfig.ValToCon(tbName1, ref OM.CmnOptn.sRsltName1); CConfig.ValToCon(tbLevel1, ref OM.CmnOptn.iRsltLevel1); CConfig.ValToCon(tbLim1, ref OM.CmnOptn.iVsLim1); CConfig.ValToCon(cbNotMark1, ref OM.CmnOptn.bNotMark1);
                CConfig.ValToCon(tbName2, ref OM.CmnOptn.sRsltName2); CConfig.ValToCon(tbLevel2, ref OM.CmnOptn.iRsltLevel2); CConfig.ValToCon(tbLim2, ref OM.CmnOptn.iVsLim2); CConfig.ValToCon(cbNotMark2, ref OM.CmnOptn.bNotMark2);
                CConfig.ValToCon(tbName3, ref OM.CmnOptn.sRsltName3); CConfig.ValToCon(tbLevel3, ref OM.CmnOptn.iRsltLevel3); CConfig.ValToCon(tbLim3, ref OM.CmnOptn.iVsLim3); CConfig.ValToCon(cbNotMark3, ref OM.CmnOptn.bNotMark3);
                CConfig.ValToCon(tbName4, ref OM.CmnOptn.sRsltName4); CConfig.ValToCon(tbLevel4, ref OM.CmnOptn.iRsltLevel4); CConfig.ValToCon(tbLim4, ref OM.CmnOptn.iVsLim4); CConfig.ValToCon(cbNotMark4, ref OM.CmnOptn.bNotMark4);
                CConfig.ValToCon(tbName5, ref OM.CmnOptn.sRsltName5); CConfig.ValToCon(tbLevel5, ref OM.CmnOptn.iRsltLevel5); CConfig.ValToCon(tbLim5, ref OM.CmnOptn.iVsLim5); CConfig.ValToCon(cbNotMark5, ref OM.CmnOptn.bNotMark5);
                CConfig.ValToCon(tbName6, ref OM.CmnOptn.sRsltName6); CConfig.ValToCon(tbLevel6, ref OM.CmnOptn.iRsltLevel6); CConfig.ValToCon(tbLim6, ref OM.CmnOptn.iVsLim6); CConfig.ValToCon(cbNotMark6, ref OM.CmnOptn.bNotMark6);
                CConfig.ValToCon(tbName7, ref OM.CmnOptn.sRsltName7); CConfig.ValToCon(tbLevel7, ref OM.CmnOptn.iRsltLevel7); CConfig.ValToCon(tbLim7, ref OM.CmnOptn.iVsLim7); CConfig.ValToCon(cbNotMark7, ref OM.CmnOptn.bNotMark7);
                CConfig.ValToCon(tbName8, ref OM.CmnOptn.sRsltName8); CConfig.ValToCon(tbLevel8, ref OM.CmnOptn.iRsltLevel8); CConfig.ValToCon(tbLim8, ref OM.CmnOptn.iVsLim8); CConfig.ValToCon(cbNotMark8, ref OM.CmnOptn.bNotMark8);
                CConfig.ValToCon(tbName9, ref OM.CmnOptn.sRsltName9); CConfig.ValToCon(tbLevel9, ref OM.CmnOptn.iRsltLevel9); CConfig.ValToCon(tbLim9, ref OM.CmnOptn.iVsLim9); CConfig.ValToCon(cbNotMark9, ref OM.CmnOptn.bNotMark9);
                CConfig.ValToCon(tbNameA, ref OM.CmnOptn.sRsltNameA); CConfig.ValToCon(tbLevelA, ref OM.CmnOptn.iRsltLevelA); CConfig.ValToCon(tbLimA, ref OM.CmnOptn.iVsLimA); CConfig.ValToCon(cbNotMarkA, ref OM.CmnOptn.bNotMarkA);
                CConfig.ValToCon(tbNameB, ref OM.CmnOptn.sRsltNameB); CConfig.ValToCon(tbLevelB, ref OM.CmnOptn.iRsltLevelB); CConfig.ValToCon(tbLimB, ref OM.CmnOptn.iVsLimB); CConfig.ValToCon(cbNotMarkB, ref OM.CmnOptn.bNotMarkB);
                CConfig.ValToCon(tbNameC, ref OM.CmnOptn.sRsltNameC); CConfig.ValToCon(tbLevelC, ref OM.CmnOptn.iRsltLevelC); CConfig.ValToCon(tbLimC, ref OM.CmnOptn.iVsLimC); CConfig.ValToCon(cbNotMarkC, ref OM.CmnOptn.bNotMarkC);
                CConfig.ValToCon(tbNameD, ref OM.CmnOptn.sRsltNameD); CConfig.ValToCon(tbLevelD, ref OM.CmnOptn.iRsltLevelD); CConfig.ValToCon(tbLimD, ref OM.CmnOptn.iVsLimD); CConfig.ValToCon(cbNotMarkD, ref OM.CmnOptn.bNotMarkD);
                CConfig.ValToCon(tbNameE, ref OM.CmnOptn.sRsltNameE); CConfig.ValToCon(tbLevelE, ref OM.CmnOptn.iRsltLevelE); CConfig.ValToCon(tbLimE, ref OM.CmnOptn.iVsLimE); CConfig.ValToCon(cbNotMarkE, ref OM.CmnOptn.bNotMarkE);
                CConfig.ValToCon(tbNameF, ref OM.CmnOptn.sRsltNameF); CConfig.ValToCon(tbLevelF, ref OM.CmnOptn.iRsltLevelF); CConfig.ValToCon(tbLimF, ref OM.CmnOptn.iVsLimF); CConfig.ValToCon(cbNotMarkF, ref OM.CmnOptn.bNotMarkF);
                CConfig.ValToCon(tbNameG, ref OM.CmnOptn.sRsltNameG); CConfig.ValToCon(tbLevelG, ref OM.CmnOptn.iRsltLevelG); CConfig.ValToCon(tbLimG, ref OM.CmnOptn.iVsLimG); CConfig.ValToCon(cbNotMarkG, ref OM.CmnOptn.bNotMarkG);
                CConfig.ValToCon(tbNameH, ref OM.CmnOptn.sRsltNameH); CConfig.ValToCon(tbLevelH, ref OM.CmnOptn.iRsltLevelH); CConfig.ValToCon(tbLimH, ref OM.CmnOptn.iVsLimH); CConfig.ValToCon(cbNotMarkH, ref OM.CmnOptn.bNotMarkH);
                CConfig.ValToCon(tbNameI, ref OM.CmnOptn.sRsltNameI); CConfig.ValToCon(tbLevelI, ref OM.CmnOptn.iRsltLevelI); CConfig.ValToCon(tbLimI, ref OM.CmnOptn.iVsLimI); CConfig.ValToCon(cbNotMarkI, ref OM.CmnOptn.bNotMarkI);
                CConfig.ValToCon(tbNameJ, ref OM.CmnOptn.sRsltNameJ); CConfig.ValToCon(tbLevelJ, ref OM.CmnOptn.iRsltLevelJ); CConfig.ValToCon(tbLimJ, ref OM.CmnOptn.iVsLimJ); CConfig.ValToCon(cbNotMarkJ, ref OM.CmnOptn.bNotMarkJ);
                CConfig.ValToCon(tbNameK, ref OM.CmnOptn.sRsltNameK); CConfig.ValToCon(tbLevelK, ref OM.CmnOptn.iRsltLevelK); CConfig.ValToCon(tbLimK, ref OM.CmnOptn.iVsLimK); CConfig.ValToCon(cbNotMarkK, ref OM.CmnOptn.bNotMarkK);
                CConfig.ValToCon(tbNameL, ref OM.CmnOptn.sRsltNameL); CConfig.ValToCon(tbLevelL, ref OM.CmnOptn.iRsltLevelL); CConfig.ValToCon(tbLimL, ref OM.CmnOptn.iVsLimL); CConfig.ValToCon(cbNotMarkL, ref OM.CmnOptn.bNotMarkL);
                CConfig.ValToCon(tbLimT, ref OM.CmnOptn.iVsLimT);

                pnColor0.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColor0);
                pnColor1.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColor1);
                pnColor2.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColor2);
                pnColor3.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColor3);
                pnColor4.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColor4);
                pnColor5.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColor5);
                pnColor6.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColor6);
                pnColor7.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColor7);
                pnColor8.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColor8);
                pnColor9.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColor9);
                pnColorA.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColorA);
                pnColorB.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColorB);
                pnColorC.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColorC);
                pnColorD.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColorD);
                pnColorE.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColorE);
                pnColorF.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColorF);
                pnColorG.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColorG);
                pnColorH.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColorH);
                pnColorI.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColorI);
                pnColorJ.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColorJ);
                pnColorK.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColorK);
                pnColorL.BackColor = Color.FromArgb(OM.CmnOptn.iRsltColorL);
            }
            else
            {
                OM.CCmnOptn PreCmnOptn = OM.CmnOptn;
                CConfig.ConToVal(cbLoadingStop, ref OM.CmnOptn.bLoadStop);
                CConfig.ConToVal(cbIgnrDoor, ref OM.CmnOptn.bIgnrDoor);
                CConfig.ConToVal(cbIgnrVisn, ref OM.CmnOptn.bIgnrVisn);
                CConfig.ConToVal(cbIgnrMark, ref OM.CmnOptn.bIgnrMark);
                CConfig.ConToVal(tbTrgOfs, ref OM.CmnOptn.dTrgOfs);

                CConfig.ConToVal(tbName0, ref OM.CmnOptn.sRsltName0); CConfig.ConToVal(tbLevel0, ref OM.CmnOptn.iRsltLevel0); CConfig.ConToVal(tbLim0, ref OM.CmnOptn.iVsLim0); CConfig.ConToVal(cbNotMark0, ref OM.CmnOptn.bNotMark0);
                CConfig.ConToVal(tbName1, ref OM.CmnOptn.sRsltName1); CConfig.ConToVal(tbLevel1, ref OM.CmnOptn.iRsltLevel1); CConfig.ConToVal(tbLim1, ref OM.CmnOptn.iVsLim1); CConfig.ConToVal(cbNotMark1, ref OM.CmnOptn.bNotMark1);
                CConfig.ConToVal(tbName2, ref OM.CmnOptn.sRsltName2); CConfig.ConToVal(tbLevel2, ref OM.CmnOptn.iRsltLevel2); CConfig.ConToVal(tbLim2, ref OM.CmnOptn.iVsLim2); CConfig.ConToVal(cbNotMark2, ref OM.CmnOptn.bNotMark2);
                CConfig.ConToVal(tbName3, ref OM.CmnOptn.sRsltName3); CConfig.ConToVal(tbLevel3, ref OM.CmnOptn.iRsltLevel3); CConfig.ConToVal(tbLim3, ref OM.CmnOptn.iVsLim3); CConfig.ConToVal(cbNotMark3, ref OM.CmnOptn.bNotMark3);
                CConfig.ConToVal(tbName4, ref OM.CmnOptn.sRsltName4); CConfig.ConToVal(tbLevel4, ref OM.CmnOptn.iRsltLevel4); CConfig.ConToVal(tbLim4, ref OM.CmnOptn.iVsLim4); CConfig.ConToVal(cbNotMark4, ref OM.CmnOptn.bNotMark4);
                CConfig.ConToVal(tbName5, ref OM.CmnOptn.sRsltName5); CConfig.ConToVal(tbLevel5, ref OM.CmnOptn.iRsltLevel5); CConfig.ConToVal(tbLim5, ref OM.CmnOptn.iVsLim5); CConfig.ConToVal(cbNotMark5, ref OM.CmnOptn.bNotMark5);
                CConfig.ConToVal(tbName6, ref OM.CmnOptn.sRsltName6); CConfig.ConToVal(tbLevel6, ref OM.CmnOptn.iRsltLevel6); CConfig.ConToVal(tbLim6, ref OM.CmnOptn.iVsLim6); CConfig.ConToVal(cbNotMark6, ref OM.CmnOptn.bNotMark6);
                CConfig.ConToVal(tbName7, ref OM.CmnOptn.sRsltName7); CConfig.ConToVal(tbLevel7, ref OM.CmnOptn.iRsltLevel7); CConfig.ConToVal(tbLim7, ref OM.CmnOptn.iVsLim7); CConfig.ConToVal(cbNotMark7, ref OM.CmnOptn.bNotMark7);
                CConfig.ConToVal(tbName8, ref OM.CmnOptn.sRsltName8); CConfig.ConToVal(tbLevel8, ref OM.CmnOptn.iRsltLevel8); CConfig.ConToVal(tbLim8, ref OM.CmnOptn.iVsLim8); CConfig.ConToVal(cbNotMark8, ref OM.CmnOptn.bNotMark8);
                CConfig.ConToVal(tbName9, ref OM.CmnOptn.sRsltName9); CConfig.ConToVal(tbLevel9, ref OM.CmnOptn.iRsltLevel9); CConfig.ConToVal(tbLim9, ref OM.CmnOptn.iVsLim9); CConfig.ConToVal(cbNotMark9, ref OM.CmnOptn.bNotMark9);
                CConfig.ConToVal(tbNameA, ref OM.CmnOptn.sRsltNameA); CConfig.ConToVal(tbLevelA, ref OM.CmnOptn.iRsltLevelA); CConfig.ConToVal(tbLimA, ref OM.CmnOptn.iVsLimA); CConfig.ConToVal(cbNotMarkA, ref OM.CmnOptn.bNotMarkA);
                CConfig.ConToVal(tbNameB, ref OM.CmnOptn.sRsltNameB); CConfig.ConToVal(tbLevelB, ref OM.CmnOptn.iRsltLevelB); CConfig.ConToVal(tbLimB, ref OM.CmnOptn.iVsLimB); CConfig.ConToVal(cbNotMarkB, ref OM.CmnOptn.bNotMarkB);
                CConfig.ConToVal(tbNameC, ref OM.CmnOptn.sRsltNameC); CConfig.ConToVal(tbLevelC, ref OM.CmnOptn.iRsltLevelC); CConfig.ConToVal(tbLimC, ref OM.CmnOptn.iVsLimC); CConfig.ConToVal(cbNotMarkC, ref OM.CmnOptn.bNotMarkC);
                CConfig.ConToVal(tbNameD, ref OM.CmnOptn.sRsltNameD); CConfig.ConToVal(tbLevelD, ref OM.CmnOptn.iRsltLevelD); CConfig.ConToVal(tbLimD, ref OM.CmnOptn.iVsLimD); CConfig.ConToVal(cbNotMarkD, ref OM.CmnOptn.bNotMarkD);
                CConfig.ConToVal(tbNameE, ref OM.CmnOptn.sRsltNameE); CConfig.ConToVal(tbLevelE, ref OM.CmnOptn.iRsltLevelE); CConfig.ConToVal(tbLimE, ref OM.CmnOptn.iVsLimE); CConfig.ConToVal(cbNotMarkE, ref OM.CmnOptn.bNotMarkE);
                CConfig.ConToVal(tbNameF, ref OM.CmnOptn.sRsltNameF); CConfig.ConToVal(tbLevelF, ref OM.CmnOptn.iRsltLevelF); CConfig.ConToVal(tbLimF, ref OM.CmnOptn.iVsLimF); CConfig.ConToVal(cbNotMarkF, ref OM.CmnOptn.bNotMarkF);
                CConfig.ConToVal(tbNameG, ref OM.CmnOptn.sRsltNameG); CConfig.ConToVal(tbLevelG, ref OM.CmnOptn.iRsltLevelG); CConfig.ConToVal(tbLimG, ref OM.CmnOptn.iVsLimG); CConfig.ConToVal(cbNotMarkG, ref OM.CmnOptn.bNotMarkG);
                CConfig.ConToVal(tbNameH, ref OM.CmnOptn.sRsltNameH); CConfig.ConToVal(tbLevelH, ref OM.CmnOptn.iRsltLevelH); CConfig.ConToVal(tbLimH, ref OM.CmnOptn.iVsLimH); CConfig.ConToVal(cbNotMarkH, ref OM.CmnOptn.bNotMarkH);
                CConfig.ConToVal(tbNameI, ref OM.CmnOptn.sRsltNameI); CConfig.ConToVal(tbLevelI, ref OM.CmnOptn.iRsltLevelI); CConfig.ConToVal(tbLimI, ref OM.CmnOptn.iVsLimI); CConfig.ConToVal(cbNotMarkI, ref OM.CmnOptn.bNotMarkI);
                CConfig.ConToVal(tbNameJ, ref OM.CmnOptn.sRsltNameJ); CConfig.ConToVal(tbLevelJ, ref OM.CmnOptn.iRsltLevelJ); CConfig.ConToVal(tbLimJ, ref OM.CmnOptn.iVsLimJ); CConfig.ConToVal(cbNotMarkJ, ref OM.CmnOptn.bNotMarkJ);
                CConfig.ConToVal(tbNameK, ref OM.CmnOptn.sRsltNameK); CConfig.ConToVal(tbLevelK, ref OM.CmnOptn.iRsltLevelK); CConfig.ConToVal(tbLimK, ref OM.CmnOptn.iVsLimK); CConfig.ConToVal(cbNotMarkK, ref OM.CmnOptn.bNotMarkK);
                CConfig.ConToVal(tbNameL, ref OM.CmnOptn.sRsltNameL); CConfig.ConToVal(tbLevelL, ref OM.CmnOptn.iRsltLevelL); CConfig.ConToVal(tbLimL, ref OM.CmnOptn.iVsLimL); CConfig.ConToVal(cbNotMarkL, ref OM.CmnOptn.bNotMarkL);
                CConfig.ConToVal(tbLimT, ref OM.CmnOptn.iVsLimT);

                OM.CmnOptn.iRsltColor0 = pnColor0.BackColor.ToArgb();
                OM.CmnOptn.iRsltColor1 = pnColor1.BackColor.ToArgb();
                OM.CmnOptn.iRsltColor2 = pnColor2.BackColor.ToArgb();
                OM.CmnOptn.iRsltColor3 = pnColor3.BackColor.ToArgb();
                OM.CmnOptn.iRsltColor4 = pnColor4.BackColor.ToArgb();
                OM.CmnOptn.iRsltColor5 = pnColor5.BackColor.ToArgb();
                OM.CmnOptn.iRsltColor6 = pnColor6.BackColor.ToArgb();
                OM.CmnOptn.iRsltColor7 = pnColor7.BackColor.ToArgb();
                OM.CmnOptn.iRsltColor8 = pnColor8.BackColor.ToArgb();
                OM.CmnOptn.iRsltColor9 = pnColor9.BackColor.ToArgb();
                OM.CmnOptn.iRsltColorA = pnColorA.BackColor.ToArgb();
                OM.CmnOptn.iRsltColorB = pnColorB.BackColor.ToArgb();
                OM.CmnOptn.iRsltColorC = pnColorC.BackColor.ToArgb();
                OM.CmnOptn.iRsltColorD = pnColorD.BackColor.ToArgb();
                OM.CmnOptn.iRsltColorE = pnColorE.BackColor.ToArgb();
                OM.CmnOptn.iRsltColorF = pnColorF.BackColor.ToArgb();
                OM.CmnOptn.iRsltColorG = pnColorG.BackColor.ToArgb();
                OM.CmnOptn.iRsltColorH = pnColorH.BackColor.ToArgb();
                OM.CmnOptn.iRsltColorI = pnColorI.BackColor.ToArgb();
                OM.CmnOptn.iRsltColorJ = pnColorJ.BackColor.ToArgb();
                OM.CmnOptn.iRsltColorK = pnColorK.BackColor.ToArgb();
                OM.CmnOptn.iRsltColorL = pnColorL.BackColor.ToArgb();


                //Auto Log
                Type        type = PreCmnOptn.GetType();
                FieldInfo[] f    = type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
                for (int i = 0; i < f.Length; i++)
                {
                    if (f[i].GetValue(PreCmnOptn) != f[i].GetValue(OM.CmnOptn))
                    {
                        Trace(f[i].Name + " Changed", f[i].GetValue(PreCmnOptn).ToString(), f[i].GetValue(OM.CmnOptn).ToString());
                    }
                    else
                    {
                        Trace(f[i].Name, f[i].GetValue(PreCmnOptn).ToString(), f[i].GetValue(OM.CmnOptn).ToString());
                    }
                }

                UpdateComOptn(true);
            }
        }