Commit c6ed25ab LN

1

1 个父辈 5dd81603
...@@ -50,8 +50,9 @@ ...@@ -50,8 +50,9 @@
<Reference Include="halcondotnet"> <Reference Include="halcondotnet">
<HintPath>..\..\RC1271-DUOStore\dll\halcondotnet.dll</HintPath> <HintPath>..\..\RC1271-DUOStore\dll\halcondotnet.dll</HintPath>
</Reference> </Reference>
<Reference Include="HuichuanLibrary"> <Reference Include="HuichuanLibrary, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\HuichuanLibrary\HuichuanLibrary\bin\Debug\HuichuanLibrary.dll</HintPath> <SpecificVersion>False</SpecificVersion>
<HintPath>..\SharedDLL\HuichuanLibrary.dll</HintPath>
</Reference> </Reference>
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=AMD64"> <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=AMD64">
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
......
...@@ -341,6 +341,10 @@ namespace DeviceLibrary ...@@ -341,6 +341,10 @@ namespace DeviceLibrary
{ {
AxisManager.SuddenStop(Config.DeviceName, Config.GetAxisValue()); AxisManager.SuddenStop(Config.DeviceName, Config.GetAxisValue());
} }
public void MoveStop()
{
AxisManager.MoveStop(Config.DeviceName, Config.GetAxisValue());
}
/// <summary> /// <summary>
/// 判断轴运动是否安全 /// 判断轴运动是否安全
/// </summary> /// </summary>
......
...@@ -67,6 +67,10 @@ namespace DeviceLibrary ...@@ -67,6 +67,10 @@ namespace DeviceLibrary
{ {
instance.SuddenStop(portName, slvAddr); instance.SuddenStop(portName, slvAddr);
} }
public static void MoveStop(string portName, short slvAddr)
{
instance.MoveStop(portName, slvAddr);
}
public static bool isInPosition(string portName, short slvAddr, int PPosition, int canErrorCount, bool isLog = false) public static bool isInPosition(string portName, short slvAddr, int PPosition, int canErrorCount, bool isLog = false)
{ {
return instance.isInPosition(portName, slvAddr, PPosition, canErrorCount, isLog); return instance.isInPosition(portName, slvAddr, PPosition, canErrorCount, isLog);
......
...@@ -120,6 +120,10 @@ namespace DeviceLibrary ...@@ -120,6 +120,10 @@ namespace DeviceLibrary
{ {
HCBoardManager.AxisStop(slvAddr); HCBoardManager.AxisStop(slvAddr);
} }
public void MoveStop(string portName, short slvAddr )
{
HCBoardManager.AxisStop(slvAddr, 0);
}
public bool AbsMoveIsEnd(string portName, short axisNo, int targetPosition, int canErrorCount, out bool countError) public bool AbsMoveIsEnd(string portName, short axisNo, int targetPosition, int canErrorCount, out bool countError)
{ {
countError = false; countError = false;
......
...@@ -267,6 +267,7 @@ namespace DeviceLibrary ...@@ -267,6 +267,7 @@ namespace DeviceLibrary
/// 料架位置,1-31 /// 料架位置,1-31
/// </summary> /// </summary>
public int rfidLoc = 0; public int rfidLoc = 0;
/// <summary> /// <summary>
/// 虚拟料架号 /// 虚拟料架号
/// </summary> /// </summary>
...@@ -284,6 +285,20 @@ namespace DeviceLibrary ...@@ -284,6 +285,20 @@ namespace DeviceLibrary
/// </summary> /// </summary>
public string usedRfidList = ""; public string usedRfidList = "";
public string getShelfLoc(string name)
{
string reLoc = name + "_B1_" + rfidLoc;
if (rfidLoc <= 13)
{
reLoc = name + "_A1_" + rfidLoc;
}
else if (rfidLoc <= 26)
{
reLoc = name + "_A2_" + rfidLoc;
}
return reLoc;
}
public int w = 7; public int w = 7;
public int h = 8; public int h = 8;
......
...@@ -30,6 +30,7 @@ namespace DeviceLibrary ...@@ -30,6 +30,7 @@ namespace DeviceLibrary
void SpeedMove(string portName, short slvAddr, int speed,int acc,int dec); void SpeedMove(string portName, short slvAddr, int speed,int acc,int dec);
void SuddenStop(string portName, short slvAddr); void SuddenStop(string portName, short slvAddr);
void MoveStop(string portName, short slvAddr);
bool isInPosition(string portName, short slvAddr, int PPosition, int canErrorCount, bool isLog = false); bool isInPosition(string portName, short slvAddr, int PPosition, int canErrorCount, bool isLog = false);
void AbsMove(string portName, short slvAddr, int targetPosition, int targetSpeed , int ptpAcc , int ptpDec ); void AbsMove(string portName, short slvAddr, int targetPosition, int targetSpeed , int ptpAcc , int ptpDec );
......
...@@ -72,7 +72,7 @@ namespace DeviceLibrary ...@@ -72,7 +72,7 @@ namespace DeviceLibrary
CurrShelf.rfid = CurrTray.rfid; CurrShelf.rfid = CurrTray.rfid;
LogUtil.info(Name + "增加虚拟料架号绑定:" + CurrShelf.ToStr()); LogUtil.info(Name + "增加虚拟料架号绑定:" + CurrShelf.ToStr());
} }
ShelfPosId = Name + "_" + +CurrTray.rfidLoc; ShelfPosId = CurrTray.getShelfLoc(Name);
return true; return true;
} }
else if (String.IsNullOrEmpty(CurrTray.realRfid)) else if (String.IsNullOrEmpty(CurrTray.realRfid))
...@@ -80,7 +80,7 @@ namespace DeviceLibrary ...@@ -80,7 +80,7 @@ namespace DeviceLibrary
if ((!CurrShelf.rfid.Equals("")) && CurrShelf.rfid.Equals(CurrTray.rfid)) if ((!CurrShelf.rfid.Equals("")) && CurrShelf.rfid.Equals(CurrTray.rfid))
{ {
CurrTray.realRfid = CurrShelf.realRFID; CurrTray.realRfid = CurrShelf.realRFID;
ShelfPosId = Name + "_" + +CurrTray.rfidLoc; ShelfPosId = CurrTray.getShelfLoc(Name);
return true; return true;
} }
if (!String.IsNullOrEmpty(CurrTray.usedRfidList)) if (!String.IsNullOrEmpty(CurrTray.usedRfidList))
...@@ -97,7 +97,7 @@ namespace DeviceLibrary ...@@ -97,7 +97,7 @@ namespace DeviceLibrary
CurrShelf.rfid = CurrTray.rfid; CurrShelf.rfid = CurrTray.rfid;
CurrTray.realRfid = CurrShelf.realRFID; CurrTray.realRfid = CurrShelf.realRFID;
LogUtil.info(Name + "增加虚拟料架号绑定:" + CurrShelf.ToStr()); LogUtil.info(Name + "增加虚拟料架号绑定:" + CurrShelf.ToStr());
ShelfPosId = Name + "_" + CurrTray.rfidLoc; ShelfPosId = CurrTray.getShelfLoc(Name);
return true; return true;
} }
} }
......
...@@ -27,11 +27,11 @@ namespace DeviceLibrary ...@@ -27,11 +27,11 @@ namespace DeviceLibrary
{ {
InitializeComponent(); InitializeComponent();
crc.OpenResourceLog = true; crc.OpenResourceLog = true;
crc.LanguageChangeEvent += Crc_LanguageChangeEvent; crc.LanguageChangeEvent += Crc_LanguageChangeEvent;
if (Setting_Init.Device_Default_Language != null) //if (Setting_Init.Device_Default_Language != null)
{ //{
crc.CurrLanguage = Setting_Init.Device_Default_Language; // crc.CurrLanguage = Setting_Init.Device_Default_Language;
} //}
} }
private void Crc_LanguageChangeEvent(object sender, EventArgs e) private void Crc_LanguageChangeEvent(object sender, EventArgs e)
...@@ -160,7 +160,7 @@ namespace DeviceLibrary ...@@ -160,7 +160,7 @@ namespace DeviceLibrary
var axis = axisList.Single(a => a.Config.IsSameAxis(PortName, SlvAddr)); var axis = axisList.Single(a => a.Config.IsSameAxis(PortName, SlvAddr));
var targetSpeed = speed; var targetSpeed = speed;
var AddSpeed = axis.Config.AddSpeed > 0 ? axis.Config.AddSpeed : targetSpeed * 4; var AddSpeed = axis.Config.AddSpeed > 0 ? axis.Config.AddSpeed : targetSpeed * 4;
var DelSpeed = axis.Config.DelSpeed > 0 ? axis.Config.DelSpeed : targetSpeed * 4; var DelSpeed = axis.Config.DelSpeed > 0 ? axis.Config.DelSpeed : targetSpeed / 4;
LogUtil.info("" + "点击【匀速运动】,【" + PortName + "_" + SlvAddr + "】 速度【" + speed + "】" + $",AddSpeed:{AddSpeed}, DelSpeed:{DelSpeed}"); LogUtil.info("" + "点击【匀速运动】,【" + PortName + "_" + SlvAddr + "】 速度【" + speed + "】" + $",AddSpeed:{AddSpeed}, DelSpeed:{DelSpeed}");
AxisManager.SpeedMove(PortName, SlvAddr, speed, AddSpeed, DelSpeed); AxisManager.SpeedMove(PortName, SlvAddr, speed, AddSpeed, DelSpeed);
......
位置,类型,备注,优先级,高度,宽度,旋转轴位置P2,升降轴库位入料高点P3,升降轴库位入料低点P4,进出轴库位点取料点P3 位置,类型,备注,优先级,高度,宽度,旋转轴位置P2,升降轴库位入料高点P3,升降轴库位入料低点P4,进出轴库位点取料点P3
U1_1,0,出口1_1,0,24,7,99198,417323,379066,227002 U1A1_1,0,U4A1_1,0,24,7,99198,91377,379066,227002
U1_2,0,出口1_2,0,24,7,219347,91377,80569,206929 U1A1_2,0,U4A1_2,0,24,7,99199,91377,379067,227003
U1_3,0,出口1_3,0,24,7,99198,417323,-99999999,227002 U1A1_3,0,U4A1_3,0,24,7,99200,91377,379068,227004
U1_4,0,出口1_4,0,24,7,219347,91377,-99999999,206929 U1A1_4,0,U4A1_4,0,24,7,99201,91377,379069,227005
U1_5,0,出口1_5,0,24,7,219347,91377,123,206929 U1A1_5,0,U4A1_5,0,24,7,99202,91377,379070,227006
U1_6,0,出口1_6,0,24,7,219347,91377,1231,206929 U1A1_6,0,U4A1_6,0,24,7,99203,91377,379071,227007
U1_7,0,出口1_7,0,24,7,219347,91377,23,206929 U1A1_7,0,U4A1_7,0,24,7,99204,91377,379072,227008
,,,,,,,,, U1A1_8,0,U4A1_8,0,24,7,99205,91377,379073,227009
U2_1,0,出口2_1,0,24,7,99198,417323,379066,227002 U1A1_9,0,U4A1_9,0,24,7,99206,91377,379074,227010
U2_2,0,出口2_2,0,24,7,219347,91377,80569,206929 U1A1_10,0,U4A1_10,0,24,7,99207,91377,379075,227011
U2_3,0,出口2_3,0,24,7,99198,417323,-99999999,227002 U1A1_11,0,U4A1_11,0,24,7,99208,91377,379076,227012
U2_4,0,出口2_4,0,24,7,219347,91377,-99999999,206929 U1A1_12,0,U4A1_12,0,24,7,99209,91377,379077,227013
U2_5,0,出口2_5,0,24,7,219347,91377,123,206929 U1A1_13,0,U4A1_13,0,24,7,99210,91377,379078,227014
U2_6,0,出口2_6,0,24,7,219347,91377,1231,206929 U1A2_1,0,U4A2_1,0,24,7,99211,91377,379079,227015
U2_7,0,出口2_7,0,24,7,219347,91377,23,206929 U1A2_2,0,U4A2_2,0,24,7,99212,91377,379080,227016
,,,,,,,,, U1A2_3,0,U4A2_3,0,24,7,99213,91377,379081,227017
U3_1,0,出口3_1,0,24,7,99198,417323,379066,227002 U1A2_4,0,U4A2_4,0,24,7,99214,91377,379082,227018
U3_2,0,出口3_2,0,24,7,219347,91377,80569,206929 U1A2_5,0,U4A2_5,0,24,7,99215,91377,379083,227019
U3_3,0,出口3_3,0,24,7,99198,417323,-99999999,227002 U1A2_6,0,U4A2_6,0,24,7,99216,91377,379084,227020
U3_4,0,出口3_4,0,24,7,219347,91377,-99999999,206929 U1A2_7,0,U4A2_7,0,24,7,99217,91377,379085,227021
U3_5,0,出口3_5,0,24,7,219347,91377,123,206929 U1A2_8,0,U4A2_8,0,24,7,99218,91377,379086,227022
U3_6,0,出口3_6,0,24,7,219347,91377,1231,206929 U1A2_9,0,U4A2_9,0,24,7,99219,91377,379087,227023
U3_7,0,出口3_7,0,24,7,219347,91377,23,206929 U1A2_10,0,U4A2_10,0,24,7,99220,91377,379088,227024
,,,,,,,,, U1A2_11,0,U4A2_11,0,24,7,99221,91377,379089,227025
U4_1,0,出口4_1,0,24,7,99198,417323,379066,227002 U1A2_12,0,U4A2_12,0,24,7,99222,91377,379090,227026
U4_2,0,出口4_2,0,24,7,219347,91377,80569,206929 U1A2_13,0,U4A2_13,0,24,7,99223,91377,379091,227027
U4_3,0,出口4_3,0,24,7,99198,417323,-99999999,227002 U1B1_1,0,U4B1_1,0,24,7,99224,91377,379092,227028
U4_4,0,出口4_4,0,24,7,219347,91377,-99999999,206929 U1B1_2,0,U4B1_2,0,24,7,99225,91377,379093,227029
U4_5,0,出口4_5,0,24,7,219347,91377,123,206929 U1B1_3,0,U4B1_3,0,24,7,99226,91377,379094,227030
U4_6,0,出口4_6,0,24,7,219347,91377,1231,206929 U1B1_4,0,U4B1_4,0,24,7,99227,91377,379095,227031
U4_7,0,出口4_7,0,24,7,219347,91377,23,206929 U1B1_5,0,U4B1_5,0,24,7,99228,91377,379096,227032
U2A1_1,0,U4A1_1,0,24,7,99229,91377,379097,227033
U2A1_2,0,U4A1_2,0,24,7,99230,91377,379098,227034
U2A1_3,0,U4A1_3,0,24,7,99231,91377,379099,227035
U2A1_4,0,U4A1_4,0,24,7,99232,91377,379100,227036
U2A1_5,0,U4A1_5,0,24,7,99233,91377,379101,227037
U2A1_6,0,U4A1_6,0,24,7,99234,91377,379102,227038
U2A1_7,0,U4A1_7,0,24,7,99235,91377,379103,227039
U2A1_8,0,U4A1_8,0,24,7,99236,91377,379104,227040
U2A1_9,0,U4A1_9,0,24,7,99237,91377,379105,227041
U2A1_10,0,U4A1_10,0,24,7,99238,91377,379106,227042
U2A1_11,0,U4A1_11,0,24,7,99239,91377,379107,227043
U2A1_12,0,U4A1_12,0,24,7,99240,91377,379108,227044
U2A1_13,0,U4A1_13,0,24,7,99241,91377,379109,227045
U2A2_1,0,U4A2_1,0,24,7,99242,91377,379110,227046
U2A2_2,0,U4A2_2,0,24,7,99243,91377,379111,227047
U2A2_3,0,U4A2_3,0,24,7,99244,91377,379112,227048
U2A2_4,0,U4A2_4,0,24,7,99245,91377,379113,227049
U2A2_5,0,U4A2_5,0,24,7,99246,91377,379114,227050
U2A2_6,0,U4A2_6,0,24,7,99247,91377,379115,227051
U2A2_7,0,U4A2_7,0,24,7,99248,91377,379116,227052
U2A2_8,0,U4A2_8,0,24,7,99249,91377,379117,227053
U2A2_9,0,U4A2_9,0,24,7,99250,91377,379118,227054
U2A2_10,0,U4A2_10,0,24,7,99251,91377,379119,227055
U2A2_11,0,U4A2_11,0,24,7,99252,91377,379120,227056
U2A2_12,0,U4A2_12,0,24,7,99253,91377,379121,227057
U2A2_13,0,U4A2_13,0,24,7,99254,91377,379122,227058
U2B1_1,0,U4B1_1,0,24,7,99255,91377,379123,227059
U2B1_2,0,U4B1_2,0,24,7,99256,91377,379124,227060
U2B1_3,0,U4B1_3,0,24,7,99257,91377,379125,227061
U2B1_4,0,U4B1_4,0,24,7,99258,91377,379126,227062
U2B1_5,0,U4B1_5,0,24,7,99259,91377,379127,227063
U3A1_1,0,U4A1_1,0,24,7,99260,91377,379128,227064
U3A1_2,0,U4A1_2,0,24,7,99261,91377,379129,227065
U3A1_3,0,U4A1_3,0,24,7,99262,91377,379130,227066
U3A1_4,0,U4A1_4,0,24,7,99263,91377,379131,227067
U3A1_5,0,U4A1_5,0,24,7,99264,91377,379132,227068
U3A1_6,0,U4A1_6,0,24,7,99265,91377,379133,227069
U3A1_7,0,U4A1_7,0,24,7,99266,91377,379134,227070
U3A1_8,0,U4A1_8,0,24,7,99267,91377,379135,227071
U3A1_9,0,U4A1_9,0,24,7,99268,91377,379136,227072
U3A1_10,0,U4A1_10,0,24,7,99269,91377,379137,227073
U3A1_11,0,U4A1_11,0,24,7,99270,91377,379138,227074
U3A1_12,0,U4A1_12,0,24,7,99271,91377,379139,227075
U3A1_13,0,U4A1_13,0,24,7,99272,91377,379140,227076
U3A2_1,0,U4A2_1,0,24,7,99273,91377,379141,227077
U3A2_2,0,U4A2_2,0,24,7,99274,91377,379142,227078
U3A2_3,0,U4A2_3,0,24,7,99275,91377,379143,227079
U3A2_4,0,U4A2_4,0,24,7,99276,91377,379144,227080
U3A2_5,0,U4A2_5,0,24,7,99277,91377,379145,227081
U3A2_6,0,U4A2_6,0,24,7,99278,91377,379146,227082
U3A2_7,0,U4A2_7,0,24,7,99279,91377,379147,227083
U3A2_8,0,U4A2_8,0,24,7,99280,91377,379148,227084
U3A2_9,0,U4A2_9,0,24,7,99281,91377,379149,227085
U3A2_10,0,U4A2_10,0,24,7,99282,91377,379150,227086
U3A2_11,0,U4A2_11,0,24,7,99283,91377,379151,227087
U3A2_12,0,U4A2_12,0,24,7,99284,91377,379152,227088
U3A2_13,0,U4A2_13,0,24,7,99285,91377,379153,227089
U3B1_1,0,U4B1_1,0,24,7,99286,91377,379154,227090
U3B1_2,0,U4B1_2,0,24,7,99287,91377,379155,227091
U3B1_3,0,U4B1_3,0,24,7,99288,91377,379156,227092
U3B1_4,0,U4B1_4,0,24,7,99289,91377,379157,227093
U3B1_5,0,U4B1_5,0,24,7,99290,91377,379158,227094
U4A1_1,0,U4A1_1,0,24,7,99291,91377,379159,227095
U4A1_2,0,U4A1_2,0,24,7,99292,91377,379160,227096
U4A1_3,0,U4A1_3,0,24,7,99293,91377,379161,227097
U4A1_4,0,U4A1_4,0,24,7,99294,91377,379162,227098
U4A1_5,0,U4A1_5,0,24,7,99295,91377,379163,227099
U4A1_6,0,U4A1_6,0,24,7,99296,91377,379164,227100
U4A1_7,0,U4A1_7,0,24,7,99297,91377,379165,227101
U4A1_8,0,U4A1_8,0,24,7,99298,91377,379166,227102
U4A1_9,0,U4A1_9,0,24,7,99299,91377,379167,227103
U4A1_10,0,U4A1_10,0,24,7,99300,91377,379168,227104
U4A1_11,0,U4A1_11,0,24,7,99301,91377,379169,227105
U4A1_12,0,U4A1_12,0,24,7,99302,91377,379170,227106
U4A1_13,0,U4A1_13,0,24,7,99303,91377,379171,227107
U4A2_1,0,U4A2_1,0,24,7,99304,91377,379172,227108
U4A2_2,0,U4A2_2,0,24,7,99305,91377,379173,227109
U4A2_3,0,U4A2_3,0,24,7,99306,91377,379174,227110
U4A2_4,0,U4A2_4,0,24,7,99307,91377,379175,227111
U4A2_5,0,U4A2_5,0,24,7,99308,91377,379176,227112
U4A2_6,0,U4A2_6,0,24,7,99309,91377,379177,227113
U4A2_7,0,U4A2_7,0,24,7,99310,91377,379178,227114
U4A2_8,0,U4A2_8,0,24,7,99311,91377,379179,227115
U4A2_9,0,U4A2_9,0,24,7,99312,91377,379180,227116
U4A2_10,0,U4A2_10,0,24,7,99313,91377,379181,227117
U4A2_11,0,U4A2_11,0,24,7,99314,91377,379182,227118
U4A2_12,0,U4A2_12,0,24,7,99315,91377,379183,227119
U4A2_13,0,U4A2_13,0,24,7,99316,91377,379184,227120
U4B1_1,0,U4B1_1,0,24,7,99317,91377,379185,227121
U4B1_2,0,U4B1_2,0,24,7,99318,91377,379186,227122
U4B1_3,0,U4B1_3,0,24,7,99319,91377,379187,227123
U4B1_4,0,U4B1_4,0,24,7,99320,91377,379188,227124
U4B1_5,0,U4B1_5,0,24,7,99321,91377,379189,227125
...@@ -34,11 +34,11 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -34,11 +34,11 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary> /// </summary>
[CSVAttribute("进出轴库位点取料点P3"), Editable("2")] [CSVAttribute("进出轴库位点取料点P3"), Editable("2")]
public int InOutAxis_Position_P3 { get; set; } public int InOutAxis_Position_P3 { get; set; }
/// <summary> ///// <summary>
/// 备注 ///// 备注
/// </summary> ///// </summary>
[CSVAttribute("备注")] //[CSVAttribute("备注")]
public string memo { get; set; } //public string memo { get; set; }
} }
} }
此文件类型无法预览
此文件类型无法预览
...@@ -43,7 +43,7 @@ namespace TheMachine ...@@ -43,7 +43,7 @@ namespace TheMachine
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1234, 924); this.panel1.Size = new System.Drawing.Size(1218, 607);
this.panel1.TabIndex = 2; this.panel1.TabIndex = 2;
// //
// axisMoveControl1 // axisMoveControl1
...@@ -58,9 +58,9 @@ namespace TheMachine ...@@ -58,9 +58,9 @@ namespace TheMachine
// //
this.configControl1.Config = null; this.configControl1.Config = null;
this.configControl1.Location = new System.Drawing.Point(568, 3); this.configControl1.Location = new System.Drawing.Point(568, 3);
this.configControl1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.configControl1.Margin = new System.Windows.Forms.Padding(4);
this.configControl1.Name = "configControl1"; this.configControl1.Name = "configControl1";
this.configControl1.Size = new System.Drawing.Size(647, 550); this.configControl1.Size = new System.Drawing.Size(647, 523);
this.configControl1.TabIndex = 1; this.configControl1.TabIndex = 1;
this.configControl1.Tag = "not"; this.configControl1.Tag = "not";
// //
...@@ -71,7 +71,7 @@ namespace TheMachine ...@@ -71,7 +71,7 @@ namespace TheMachine
this.Controls.Add(this.panel1); this.Controls.Add(this.panel1);
this.Font = new System.Drawing.Font("新宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Font = new System.Drawing.Font("新宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Name = "AxisControl"; this.Name = "AxisControl";
this.Size = new System.Drawing.Size(1234, 924); this.Size = new System.Drawing.Size(1218, 607);
this.Load += new System.EventHandler(this.AxisControl_Load); this.Load += new System.EventHandler(this.AxisControl_Load);
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
......
...@@ -20,10 +20,14 @@ namespace TheMachine ...@@ -20,10 +20,14 @@ namespace TheMachine
public AxisControl() public AxisControl()
{ {
InitializeComponent(); InitializeComponent();
}
private void AxisControl_Load(object sender, EventArgs e)
{
RobotManage.LoadFinishEvent += RobotManage_LoadFinishEvent; RobotManage.LoadFinishEvent += RobotManage_LoadFinishEvent;
crc.LanguageChangeEvent += Crc_LanguageChangeEvent; crc.LanguageChangeEvent += Crc_LanguageChangeEvent;
} }
private void Crc_LanguageChangeEvent(object sender, EventArgs e) private void Crc_LanguageChangeEvent(object sender, EventArgs e)
{ {
RobotManage_LoadFinishEvent(true, ""); RobotManage_LoadFinishEvent(true, "");
...@@ -52,9 +56,5 @@ namespace TheMachine ...@@ -52,9 +56,5 @@ namespace TheMachine
private void AxisControl_Load(object sender, EventArgs e)
{
}
} }
} }
using CodeLibrary;
using DeviceLibrary; using DeviceLibrary;
using OnlineStore; using OnlineStore;
using OnlineStore.Common; using OnlineStore.Common;
using OnlineStore.LoadCSVLibrary;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing; using System.Drawing;
...@@ -684,5 +686,25 @@ namespace TheMachine ...@@ -684,5 +686,25 @@ namespace TheMachine
{ {
outSheftReset("U4"); outSheftReset("U4");
} }
private void toolStripMenuItem1_Click(object sender, EventArgs e)
{
IOManager.IOMove(IO_Type.Camera_Led, IO_VALUE.HIGH);
if (Camera._cam != null)
{
Camera._cam.CloseAll();
}
CodeLibrary.CodeResourceControl.GetLanguageEvent += Crc_GetLanguageEvent;
CodeLibrary.FrmCodeDecode frm = new CodeLibrary.FrmCodeDecode();
frm.CurrLanguage = Crc_GetLanguageEvent();
frm.chbZxing.Checked = false;
try
{
frm.ShowDialog();
frm.Dispose();
}
catch { }
}
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -196,13 +196,14 @@ namespace TheMachine ...@@ -196,13 +196,14 @@ namespace TheMachine
for (int i = 0; i < RobotManage.AllPosList.Count; i++) for (int i = 0; i < RobotManage.AllPosList.Count; i++)
{ {
string posname = RobotManage.AllPosList[i]; string posname = RobotManage.AllPosList[i];
string ab = posname.Substring(0, 3); string ab = posname.Substring(0, 2);
if (posname.StartsWith("Sca") || posname.StartsWith("Doo")) //if (posname.StartsWith("Sca") || posname.StartsWith("Doo"))
{ //{
ab = "aa"; // ab = "aa";
} //}
string memo = CSVPositionReader<ACStorePosition>.allPositionMap[posname].memo; //string memo = "";
//string memo = CSVPositionReader<ACStorePosition>.allPositionMap[posname].memo;
var showname = posname; var showname = posname;
if (ab != lastAB) if (ab != lastAB)
...@@ -210,12 +211,13 @@ namespace TheMachine ...@@ -210,12 +211,13 @@ namespace TheMachine
currentRowIndex = 0; currentRowIndex = 0;
currentColIndex++; currentColIndex++;
string headerText = crc.GetString("Res0090", "其他取放料口"); string headerText = crc.GetString("Res0090", "其他取放料口");
headerText = ab;
lastAB = ab; lastAB = ab;
string[] posArray = posname.Split('_'); string[] posArray = posname.Split('_');
if (posArray.Length >= 2) //if (posArray.Length >= 2)
{ //{
headerText = posArray[0]; // headerText = posArray[0];
} //}
//if (posname.StartsWith("L")) //if (posname.StartsWith("L"))
//{ //{
// dataGridView1.Columns[currentColIndex].HeaderText = crc.GetString(memo, memo) + "(" + posname.Substring(0, 2) + ")"; // dataGridView1.Columns[currentColIndex].HeaderText = crc.GetString(memo, memo) + "(" + posname.Substring(0, 2) + ")";
...@@ -228,7 +230,7 @@ namespace TheMachine ...@@ -228,7 +230,7 @@ namespace TheMachine
} }
//if (!posname.StartsWith("L")) //if (!posname.StartsWith("L"))
{ {
showname = posname + "(" + crc.GetString(memo, memo) + ")"; showname = posname ;
} }
var currentRow = dataGridView1.Rows[currentRowIndex]; var currentRow = dataGridView1.Rows[currentRowIndex];
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!