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"); }
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); }
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); }
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); }
// 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); }
//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); }
//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); }
//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); }