示例#1
0
 //定位agv
 public void focusAgv(int index)
 {
     try
     {
         int index1 = GetIdex.getDicOutputIndex("color01_Key");
         int index2 = GetIdex.getDicOutputIndex("color01_Key02");
         int index3 = GetIdex.getDicOutputIndex("color01_Key03");
         int index4 = GetIdex.getDicOutputIndex("color01_Key04");
         int index5 = GetIdex.getDicOutputIndex("color01_Key05");
         ComTCPLib.SetOutputAsUINT(1, index1, 0);
         ComTCPLib.SetOutputAsUINT(1, index2, 0);
         ComTCPLib.SetOutputAsUINT(1, index3, 0);
         ComTCPLib.SetOutputAsUINT(1, index4, 0);
         ComTCPLib.SetOutputAsUINT(1, index5, 0);
         if (index == 1)
         {
             ComTCPLib.SetOutputAsUINT(1, GetIdex.getDicOutputIndex("color01_Key"), 1);
         }
         else
         {
             ComTCPLib.SetOutputAsUINT(1, GetIdex.getDicOutputIndex("color01_Key0" + index.ToString()), 1);
         }
     }catch (Exception ex)
     {
         return;
     }
 }
示例#2
0
 public ControlClickLight()
 {
     IsStart           = true;
     gi                = new GetIdex();
     Click_Type_index  = GetIdex.getDicInputIndex("ATTRIBUTE01_CLICK_TYPE");
     Click_Num_index   = GetIdex.getDicInputIndex("ATTRIBUTE01_CLICK_NUM");
     Click_Reset_index = GetIdex.getDicOutputIndex("ATTRIBUTE01_CLICK_RETURN");
 }
示例#3
0
 private int[] getXmlIndex(int index)
 {
     int[] indexArr = new int[4];
     indexArr[0] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_OcsArea_" + index.ToString("000"));
     indexArr[1] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_OcsPath_" + index.ToString("000"));
     indexArr[2] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_OcsPos_" + index.ToString("000"));
     indexArr[3] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_OcsFtv_" + index.ToString("000"));
     return(indexArr);
 }
示例#4
0
 private int[] getPlatFormXmlIndex(int PlatFormCount)
 {
     int[] index = new int[PlatFormCount];
     for (int i = 0; i < PlatFormCount; i++)
     {
         index[i] = GetIdex.getDicOutputIndex("ATTRIBUTE01_IN_Key" + (i + 1).ToString("00"));
     }
     return(index);
 }
        public void setLightState(string num)
        {
            //return;
            string indexstr = MachineCountStr.Replace("**", num);
            int    index    = GetIdex.getDicOutputIndex(indexstr);
            int    state    = ControlInterfaceMethod.getMachineLightState(num);

            //gi.updateValue(indexstr,state.ToString (),1,handle);
            ComTCPLib.SetOutputAsUINT(1, index, (uint)state);
        }
示例#6
0
 private int[] getXmlIndex(int i)
 {
     int[] index = new int[6];
     index[0] = GetIdex.getDicOutputIndex("ATTRIBUTE01_DIR" + i.ToString());
     index[1] = GetIdex.getDicOutputIndex("ATTRIBUTE01_CAR_STATE" + i.ToString());
     index[2] = GetIdex.getDicOutputIndex("ATTRIBUTE01_ISLASTLINE" + i.ToString());
     index[3] = GetIdex.getDicOutputIndex("ATTRIBUTE01_IN_Path" + i.ToString());
     index[4] = GetIdex.getDicOutputIndex("ATTRIBUTE01_TASK_STATE" + i.ToString());
     index[5] = GetIdex.getDicOutputIndex("ATTRIBUTE01_PALLERT_STATE" + i.ToString());
     return(index);
 }
 private int[] getXmlIndex()
 {
     int[] index = new int[6];
     index[0] = GetIdex.getDicOutputIndex("PCC_ATTRI01_IN_TGT");
     index[1] = GetIdex.getDicOutputIndex("PCC_ATTRI01_IN_ORI");
     index[2] = GetIdex.getDicOutputIndex("PCC_ATTRI01_IN_L_OR_R");
     index[3] = GetIdex.getDicOutputIndex("PCC_ATTRI01_IN_STATE");
     index[4] = GetIdex.getDicOutputIndex("PCC_ATTRI01_IN_TASK_STATE");
     index[5] = GetIdex.getDicOutputIndex("PCC_ATTRI01_IN_PALLET_STATE");
     return(index);
 }
示例#8
0
        // i (1 - 3)
        private int[] getDdjXmlIndex(int i)
        {
            int[] index = new int[6];
            index[0] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_DDJ" + i.ToString() + "_DDJ_STATE");
            index[1] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_DDJ" + i.ToString() + "_DDJ_CARTGT");
            index[2] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_DDJ" + i.ToString() + "_DDJ_CARORI");
            index[3] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_DDJ" + i.ToString() + "_DDJ_FORK_TGT");
            index[4] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_DDJ" + i.ToString() + "_DDJ_LIFT_TGT");
            index[5] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_DDJ" + i.ToString() + "_DDJ_PALLET");

            return(index);
        }
示例#9
0
        //i (1-9)
        private int[] getOcsLiftXmlIndex()
        {
            string str = "";

            int[] arr = new int[9];
            int   m;

            for (int i = 1; i < 10; i++)
            {
                if (i == 1)
                {
                    str = "TCP_ATTRIBUTE01_IN_OcsLiftState_B1";
                }
                else if (i == 2)
                {
                    str = "TCP_ATTRIBUTE01_IN_OcsLiftState_B2";
                }
                else if (i == 3)
                {
                    str = "TCP_ATTRIBUTE01_IN_OcsLiftState_B3";
                }
                else if (i == 4)
                {
                    str = "TCP_ATTRIBUTE01_IN_OcsLiftState_A1";
                }
                else if (i == 5)
                {
                    str = "TCP_ATTRIBUTE01_IN_OcsLiftState_A2";
                }
                else if (i == 6)
                {
                    str = "TCP_ATTRIBUTE01_IN_OcsLiftState_C1";
                }
                else if (i == 7)
                {
                    str = "TCP_ATTRIBUTE01_IN_OcsLiftState_C2";
                }
                else if (i == 8)
                {
                    str = "TCP_ATTRIBUTE01_IN_OcsLiftState_C3";
                }
                else if (i == 9)
                {
                    str = "TCP_ATTRIBUTE01_IN_OcsLiftState_C4";
                }
                m          = GetIdex.getDicOutputIndex(str);
                arr[i - 1] = m;
            }

            return(arr);
        }
示例#10
0
        //i (1-50)
        private int[] getPallertXmlIndex()
        {
            string str = "";

            int[] arr = new int[44];
            int   m;

            for (int i = 1; i < 45; i++)
            {
                if (i < 11)
                {
                    str = "TCP_ATTRIBUTE01_IN_RK_INSTATE" + i.ToString();
                }
                else if (i < 17)
                {
                    str = "TCP_ATTRIBUTE01_IN_RK_INSTATE" + (i - 10).ToString() + "02";
                }
                else if (i < 23)
                {
                    str = "TCP_ATTRIBUTE01_IN_RK_INSTATE" + (i - 16).ToString() + "03";
                }
                else if (i < 33)
                {
                    str = "TCP_ATTRIBUTE01_IN_CK_INSTATE" + (i - 22).ToString();
                }
                else if (i < 39)
                {
                    str = "TCP_ATTRIBUTE01_IN_CK_INSTATE" + (i - 32).ToString() + "02";
                }
                else if (i < 45)
                {
                    str = "TCP_ATTRIBUTE01_IN_CK_INSTATE" + (i - 38).ToString() + "03";
                }
                //else if (i < 51)
                //{
                //    str = "TCP_ATTRIBUTE01_IN_CK_INSTATE" + (i - 44).ToString() + "04";
                //}
                m          = GetIdex.getDicOutputIndex(str);
                arr[i - 1] = m;
            }

            return(arr);
        }
示例#11
0
        //i (1 2)
        private int[] getCarXmlIndex(int i)
        {
            string str = "";

            if (i == 1)
            {
                str = "RUKU";
            }
            else if (i == 2)
            {
                str = "CHUKU";
            }
            int[] index = new int[4];
            index[0] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_" + str + "_STATE");
            index[1] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_" + str + "_TGT");
            index[2] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_" + str + "_ORI");
            index[3] = GetIdex.getDicOutputIndex("TCP_ATTRIBUTE01_IN_" + str + "_PALLET_STATE");

            return(index);
        }