Пример #1
0
        //---------------------------------------------------------------------------
        public TOOL_PICK_INFO GetPickInfoStoragebyType(int FindMode, int type)
        {
            int Where = (int)EN_STOR_ID.POLISH;

            TOOL_PICK_INFO Pick = new TOOL_PICK_INFO(false);

            //Init
            InitPickInfo(ref Pick);

            Pick.nFindMode = FindMode;
            Pick.nBtmStor  = Where;

            //Find Pin
            if (DM.STOR[Where].FindFirstRowCol(Pick.nFindMode, ref Pick.nFindRow, ref Pick.nFindCol, type))
            {
                Pick.bFind = true;
            }

            if (Pick.bFind)
            {
                //Tool Kind Check
            }

            return(Pick);
        }
Пример #2
0
 //---------------------------------------------------------------------------
 //Pick Info Clear
 public void InitPickInfo(ref TOOL_PICK_INFO Info)
 {
     Info.bFind     = false;
     Info.nBtmStor  = -1;
     Info.nFindRow  = -1;
     Info.nFindCol  = -1;
     Info.nFindMode = -1;
     Info.dXpos     = 0.0;
     Info.dYpos     = 0.0;
 }
Пример #3
0
        //---------------------------------------------------------------------------
        public TOOL_PICK_INFO GetPickInfoStorage(int FindMode)
        {
            int Where = 0;

            TOOL_PICK_INFO Pick = new TOOL_PICK_INFO(false);

            //Init
            InitPickInfo(ref Pick);

            if (_MCTYPE == _MCTYPE_18)
            {
                Where = -1;
                if (FindMode == (int)EN_PIN_FIND_MODE.fmNewPol)
                {
                    Where = (int)EN_STOR_ID.POLISH;
                }
                else if (FindMode == (int)EN_PIN_FIND_MODE.fmNewCln)
                {
                    Where = (int)EN_STOR_ID.CLEAN;
                }

                if (Where < 0)
                {
                    return(Pick);
                }
            }


            Pick.nFindMode = FindMode;
            Pick.nBtmStor  = Where;

            //Find Pin - First Row/Col <-- Option 처리 필요...
            if (DM.STOR[Where].FindFirstRowCol(Pick.nFindMode, ref Pick.nFindRow, ref Pick.nFindCol))
            {
                Pick.bFind = true;
            }

            if (Pick.bFind)
            {
                //Tool Kind Check
            }

            return(Pick);
        }
Пример #4
0
        /************************************************************************/
        /* 생성자                                                                */
        /************************************************************************/
        public Tool()
        {
            //
            PINS = new Pin  [MAX_TOOL_PIN];
            for (int i = 0; i < PINS.Length; i++)
            {
                PINS[i] = new Pin();
            }

            PLATES = new Plate[MAX_TOOL_PLATE];
            for (int i = 0; i < PLATES.Length; i++)
            {
                PLATES[i] = new Plate();
            }

            //Structure
            PICK_INFO = new TOOL_PICK_INFO(false);


            Init();
        }
Пример #5
0
        public TOOL_PICK_INFO GetPickInfoStorage(int Where, int FindMode)
        {
            TOOL_PICK_INFO Pick = new TOOL_PICK_INFO(false);

            //Init
            InitPickInfo(ref Pick);


            Pick.nFindMode = FindMode;
            Pick.nBtmStor  = Where;

            //Find Pin - First Row/Col
            if (DM.STOR[Where].FindFirstRowCol(Pick.nFindMode, ref Pick.nFindRow, ref Pick.nFindCol))
            {
                Pick.bFind = true;
            }

            if (Pick.bFind)
            {
            }

            return(Pick);
        }