Commit ec67183f 张东亮

1

1 个父辈 89af521e
...@@ -44,10 +44,12 @@ ...@@ -44,10 +44,12 @@
<Reference Include="Asa.IOModule.AIOBOX"> <Reference Include="Asa.IOModule.AIOBOX">
<HintPath>..\..\dll\Asa.IOModule.AIOBOX.dll</HintPath> <HintPath>..\..\dll\Asa.IOModule.AIOBOX.dll</HintPath>
</Reference> </Reference>
<Reference Include="Asa.RFID.HiStation"> <Reference Include="Asa.RFID.HiStation, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\Asa.RFID.HiStation.dll</HintPath> <HintPath>..\..\dll\Asa.RFID.HiStation.dll</HintPath>
</Reference> </Reference>
<Reference Include="Asa.RFID.IReadAll"> <Reference Include="Asa.RFID.IReadAll, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\Asa.RFID.IReadAll.dll</HintPath> <HintPath>..\..\dll\Asa.RFID.IReadAll.dll</HintPath>
</Reference> </Reference>
<Reference Include="AsaPL.AgvClient"> <Reference Include="AsaPL.AgvClient">
...@@ -57,12 +59,6 @@ ...@@ -57,12 +59,6 @@
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\Client.dll</HintPath> <HintPath>..\..\dll\Client.dll</HintPath>
</Reference> </Reference>
<Reference Include="CodeLibrary">
<HintPath>..\..\..\RC32-SZBOSCH-ACSingleStore\dll\CodeLibrary.dll</HintPath>
</Reference>
<Reference Include="halcondotnet">
<HintPath>..\..\..\RC32-SZBOSCH-ACSingleStore\dll\halcondotnet.dll</HintPath>
</Reference>
<Reference Include="HFReader9CSharp, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64"> <Reference Include="HFReader9CSharp, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\..\dll\RFID\HFReader9CSharp.dll</HintPath> <HintPath>..\..\dll\RFID\HFReader9CSharp.dll</HintPath>
...@@ -74,9 +70,6 @@ ...@@ -74,9 +70,6 @@
<Reference Include="RestSharp"> <Reference Include="RestSharp">
<HintPath>..\..\dll\RestSharp.dll</HintPath> <HintPath>..\..\dll\RestSharp.dll</HintPath>
</Reference> </Reference>
<Reference Include="RFIDLibrary">
<HintPath>..\..\dll\RFID\RFIDLibrary.dll</HintPath>
</Reference>
<Reference Include="RobotStudio.Services.RobApi"> <Reference Include="RobotStudio.Services.RobApi">
<HintPath>..\..\dll\ABB\RobotStudio.Services.RobApi.dll</HintPath> <HintPath>..\..\dll\ABB\RobotStudio.Services.RobApi.dll</HintPath>
</Reference> </Reference>
...@@ -103,7 +96,6 @@ ...@@ -103,7 +96,6 @@
<Compile Include="doubleLine\DoubleLineBean_lineShelf.cs" /> <Compile Include="doubleLine\DoubleLineBean_lineShelf.cs" />
<Compile Include="doubleLine\DoubleLineBean_S1Shelf.cs" /> <Compile Include="doubleLine\DoubleLineBean_S1Shelf.cs" />
<Compile Include="doubleLine\RobotMoveBean.cs" /> <Compile Include="doubleLine\RobotMoveBean.cs" />
<Compile Include="manager\BenQ_AGV.cs" />
<Compile Include="manager\LineManager.cs" /> <Compile Include="manager\LineManager.cs" />
<Compile Include="bean\WaitUtil.cs" /> <Compile Include="bean\WaitUtil.cs" />
<Compile Include="agvClient\AgvClient.cs" /> <Compile Include="agvClient\AgvClient.cs" />
......
...@@ -48,11 +48,11 @@ DO,右出口轨道电机反转,R_OutLineBackRun,14,PRO_AOI_IP_1,0,右出口轨道电机反转,Y15, ...@@ -48,11 +48,11 @@ DO,右出口轨道电机反转,R_OutLineBackRun,14,PRO_AOI_IP_1,0,右出口轨道电机反转,Y15,
DI,上料位前正阻挡检测,S1_StopCheck2,0,PRO_AOI_IP_2,0,上料位前正阻挡检测,X21,X21,0 DI,上料位前正阻挡检测,S1_StopCheck2,0,PRO_AOI_IP_2,0,上料位前正阻挡检测,X21,X21,0
DI,上料位反定位阻挡检测,S1_StopCheck3,1,PRO_AOI_IP_2,0,上料位反定位阻挡检测,X22,X22,0 DI,上料位反定位阻挡检测,S1_StopCheck3,1,PRO_AOI_IP_2,0,上料位反定位阻挡检测,X22,X22,0
DI,上料位正定位阻挡检测,S1_StopCheck4,2,PRO_AOI_IP_2,0,上料位正定位阻挡检测,X23,X23,0 DI,上料位正定位阻挡检测,S1_StopCheck4,2,PRO_AOI_IP_2,0,上料位正定位阻挡检测,X23,X23,0
DI,上料位后阻挡检测,S2_StopCheck1,3,PRO_AOI_IP_2,0,上料位后阻挡检测,X24,X24,0 DI,上料位后阻挡检测,S1_StopCheck5,3,PRO_AOI_IP_2,0,上料位后阻挡检测,X24,X24,0
DI,上料工位顶升上升端1,S1_TopCylinderUp,4,PRO_AOI_IP_2,0,上料工位顶升上升端1,X25,X25,0 DI,上料工位顶升上升端1,S1_TopCylinderUp1,4,PRO_AOI_IP_2,0,上料工位顶升上升端1,X25,X25,0
DI,上料工位顶升下降端1,S1_TopCylinderDown,5,PRO_AOI_IP_2,0,上料工位顶升下降端1,X26,X26,0 DI,上料工位顶升下降端1,S1_TopCylinderDown1,5,PRO_AOI_IP_2,0,上料工位顶升下降端1,X26,X26,0
DI,上料工位顶升上升端2,S2_TopCylinderUp,6,PRO_AOI_IP_2,0,上料工位顶升上升端2,X27,X27,0 DI,上料工位顶升上升端2,S1_TopCylinderUp2,6,PRO_AOI_IP_2,0,上料工位顶升上升端2,X27,X27,0
DI,上料工位顶升下降端2,S2_TopCylinderDown,7,PRO_AOI_IP_2,0,上料工位顶升下降端2,X28,X28,0 DI,上料工位顶升下降端2,S1_TopCylinderDown2,7,PRO_AOI_IP_2,0,上料工位顶升下降端2,X28,X28,0
DI,J1接驳台有料检测,ABB1_TrayCheck,8,PRO_AOI_IP_2,0,J1接驳台有料检测,X29,X29,0 DI,J1接驳台有料检测,ABB1_TrayCheck,8,PRO_AOI_IP_2,0,J1接驳台有料检测,X29,X29,0
DI,J2接驳台有料检测,ABB2_TrayCheck,9,PRO_AOI_IP_2,0,J2接驳台有料检测,X30,X30,0 DI,J2接驳台有料检测,ABB2_TrayCheck,9,PRO_AOI_IP_2,0,J2接驳台有料检测,X30,X30,0
DI,右升降气缸上升端,R_Updown_Up,10,PRO_AOI_IP_2,0,右侧升降气缸上升端,X31,X31,0 DI,右升降气缸上升端,R_Updown_Up,10,PRO_AOI_IP_2,0,右侧升降气缸上升端,X31,X31,0
...@@ -77,7 +77,7 @@ DO,上料位前反阻挡下降,S1_StopCylinder1,11,PRO_AOI_IP_2,0,上料位前反阻挡下降,Y32, ...@@ -77,7 +77,7 @@ DO,上料位前反阻挡下降,S1_StopCylinder1,11,PRO_AOI_IP_2,0,上料位前反阻挡下降,Y32,
DO,上料位前正阻挡下降,S1_StopCylinder2,12,PRO_AOI_IP_2,0,上料位前正阻挡下降,Y33,Y33,0 DO,上料位前正阻挡下降,S1_StopCylinder2,12,PRO_AOI_IP_2,0,上料位前正阻挡下降,Y33,Y33,0
DO,上料位反定位阻挡下降,S1_StopCylinder3,13,PRO_AOI_IP_2,0,上料位反定位阻挡下降,Y34,Y34,0 DO,上料位反定位阻挡下降,S1_StopCylinder3,13,PRO_AOI_IP_2,0,上料位反定位阻挡下降,Y34,Y34,0
DO,上料位正定位阻挡下降,S1_StopCylinder4,14,PRO_AOI_IP_2,0,上料位正定位阻挡下降,Y35,Y35,0 DO,上料位正定位阻挡下降,S1_StopCylinder4,14,PRO_AOI_IP_2,0,上料位正定位阻挡下降,Y35,Y35,0
DO,上料位后阻挡下降,S2_StopCylinder1,15,PRO_AOI_IP_2,0,上料位后阻挡下降,Y36,Y36,0 DO,上料位后阻挡下降,S1_StopCylinder5,15,PRO_AOI_IP_2,0,上料位后阻挡下降,Y36,Y36,0
,,,,,,,,, ,,,,,,,,,
,,,,,,,,, ,,,,,,,,,
,,,,,,,,, ,,,,,,,,,
...@@ -161,11 +161,11 @@ DO,右升降气缸下降,R_Updown_Down,9,PRO_AOI_IP_3,0,右升降气缸下降,Y50,Y50,0 ...@@ -161,11 +161,11 @@ DO,右升降气缸下降,R_Updown_Down,9,PRO_AOI_IP_3,0,右升降气缸下降,Y50,Y50,0
,,,,,,,,, ,,,,,,,,,
,,,,,,,,, ,,,,,,,,,
,,,,,,,,, ,,,,,,,,,
PRO,ABB机器人1IP,ABB1_IP,192.168.103.51,,,,,, PRO,ABB机器人1IP,ABB1_IP,192.168.101.21,,,,,,
PRO,ABB机器人2IP,ABB2_IP,192.168.103.52,,,,,, PRO,ABB机器人2IP,ABB2_IP,192.168.102.21,,,,,,
,,,,,,,,, ,,,,,,,,,
PRO,双层线左侧提升机,L_Updown_Rfid,192.168.103.101,,,,,, PRO,双层线左侧提升机,L_Updown_Rfid,192.168.103.51,,,,,,
PRO,双层线中间提升机,M_Updown_Rfid,192.168.103.102,,,,,, PRO,双层线中间提升机,M_Updown_Rfid,192.168.103.52,,,,,,
PRO,双层线上料工位1,S1_Rfid,192.168.103.103,,,,,, PRO,双层线上料工位1,S1_Rfid,192.168.103.53,,,,,,
PRO,双层线右侧提升机,R_Updown_Rfid,192.168.103.105,,,,,, PRO,双层线右侧提升机,R_Updown_Rfid,192.168.103.54,,,,,,
PRO,双层线上层右侧RFID,RHigh_Rfid,192.168.103.109,,,,,, PRO,双层线上层右侧RFID,RHigh_Rfid,192.168.103.55,,,,,,
...@@ -49,11 +49,9 @@ namespace OnlineStore.DeviceLibrary ...@@ -49,11 +49,9 @@ namespace OnlineStore.DeviceLibrary
RfidIpList = new List<string>(){ RfidIpList = new List<string>(){
config.L_Updown_Rfid, config.L_Updown_Rfid,
config.M_Updown_Rfid, config.M_Updown_Rfid,
config.S1_Rfid,
config.R_Updown_Rfid, config.R_Updown_Rfid,
config.S1_Rfid, config.RHigh_Rfid
//config.S2_Rfid,
//config.Pkg_Rfid,
config.RHigh_Rfid
}; };
//benQ_AGV = new BenQ_AGV(); //benQ_AGV = new BenQ_AGV();
// AgvClient.Init(); // AgvClient.Init();
...@@ -72,6 +70,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -72,6 +70,13 @@ namespace OnlineStore.DeviceLibrary
WarnMsg = ""; WarnMsg = "";
if (IOValue(IO_Type.SuddenStop_BTN).Equals(IO_VALUE.HIGH)) if (IOValue(IO_Type.SuddenStop_BTN).Equals(IO_VALUE.HIGH))
{ {
S1_RightShelfId = "";
S1_CurrShelfId = "";
S1_LeftShelfId = "";
RealRfidMap = new Dictionary<string, string>();
mainTimer.Enabled = false;
// AgvClient.SetCancelState(false);
RFIDManager.Open(RfidIpList.ToArray());
if (ABBControl.GetControllerByIP(Config.ABB1_IP) == null) if (ABBControl.GetControllerByIP(Config.ABB1_IP) == null)
{ {
SetWarnMsg("启动失败:机器人[" + Config.ABB1_IP + "]加载失败"); SetWarnMsg("启动失败:机器人[" + Config.ABB1_IP + "]加载失败");
...@@ -87,13 +92,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -87,13 +92,7 @@ namespace OnlineStore.DeviceLibrary
// SetWarnMsg("启动失败:机器人[" + Config.ABB3_IP + "]加载失败"); // SetWarnMsg("启动失败:机器人[" + Config.ABB3_IP + "]加载失败");
// return false; // return false;
//} //}
S1_RightShelfId = "";
S1_CurrShelfId = "";
S1_LeftShelfId = "";
RealRfidMap = new Dictionary<string, string>();
mainTimer.Enabled = false;
// AgvClient.SetCancelState(false);
RFIDManager.Open(RfidIpList.ToArray());
runStatus = RunStatus.HomeMoving; runStatus = RunStatus.HomeMoving;
LineManager.packageLine.StartRun(); LineManager.packageLine.StartRun();
MoveInfo.NewMove(LineMoveType.ReturnHome); MoveInfo.NewMove(LineMoveType.ReturnHome);
...@@ -139,6 +138,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -139,6 +138,8 @@ namespace OnlineStore.DeviceLibrary
ResetStopMove(); ResetStopMove();
//工位顶升下降 //工位顶升下降
CylinderMove(MoveInfo, IO_Type.S1_TopCylinderUp, IO_Type.S1_TopCylinderDown); CylinderMove(MoveInfo, IO_Type.S1_TopCylinderUp, IO_Type.S1_TopCylinderDown);
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_TopCylinderDown1, IO_VALUE.HIGH));
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_TopCylinderDown2, IO_VALUE.HIGH));
//CylinderMove(MoveInfo, IO_Type.S2_TopCylinderUp, IO_Type.S2_TopCylinderDown); //CylinderMove(MoveInfo, IO_Type.S2_TopCylinderUp, IO_Type.S2_TopCylinderDown);
mainTimer.Enabled = true; mainTimer.Enabled = true;
...@@ -175,7 +176,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -175,7 +176,7 @@ namespace OnlineStore.DeviceLibrary
CheckAndMove(IO_Type.S1_StopCylinder1, value); CheckAndMove(IO_Type.S1_StopCylinder1, value);
CheckAndMove(IO_Type.S1_StopCylinder2, value); CheckAndMove(IO_Type.S1_StopCylinder2, value);
CheckAndMove(IO_Type.S2_StopCylinder1, value); CheckAndMove(IO_Type.S1_StopCylinder5, value);
} }
......
...@@ -66,7 +66,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -66,7 +66,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil.info(Name + "启动检测到左侧有料架,开始处理料架"); LogUtil.info(Name + "启动检测到左侧有料架,开始处理料架");
SOneMoveInfo.NewMove(LineMoveType.S1Shelf, MoveStep.S1_C06_SaveLeft); SOneMoveInfo.NewMove(LineMoveType.S1Shelf, MoveStep.S1_C06_SaveLeft);
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(200)); SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(200));
IOMove(IO_Type.S1_StopCheck1, IO_VALUE.HIGH); IOMove(IO_Type.S1_StopCylinder1, IO_VALUE.HIGH);
IOMove(IO_Type.S1_StopCylinder2, IO_VALUE.LOW); IOMove(IO_Type.S1_StopCylinder2, IO_VALUE.LOW);
IOMove(IO_Type.S1_StopCylinder3, IO_VALUE.HIGH); IOMove(IO_Type.S1_StopCylinder3, IO_VALUE.HIGH);
IOMove(IO_Type.S1_StopCylinder4, IO_VALUE.HIGH); IOMove(IO_Type.S1_StopCylinder4, IO_VALUE.HIGH);
...@@ -133,10 +133,9 @@ namespace OnlineStore.DeviceLibrary ...@@ -133,10 +133,9 @@ namespace OnlineStore.DeviceLibrary
IOValue(IO_Type.S1_StopCheck1).Equals(IO_VALUE.LOW) && IOValue(IO_Type.S1_StopCheck1).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.S1_StopCheck2).Equals(IO_VALUE.LOW) && IOValue(IO_Type.S1_StopCheck2).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.S1_StopCheck4).Equals(IO_VALUE.LOW) && IOValue(IO_Type.S1_StopCheck4).Equals(IO_VALUE.LOW) &&
CylinderIsOk(IO_Type.S1_TopCylinderUp, IO_Type.S1_TopCylinderDown) && CylinderIsOk(IO_Type.S1_TopCylinderUp1, IO_Type.S1_TopCylinderDown1) &&
IOValue(IO_Type.S2_StopCheck1).Equals(IO_VALUE.LOW) && CylinderIsOk(IO_Type.S1_TopCylinderUp2, IO_Type.S1_TopCylinderDown2) &&
CylinderIsOk(IO_Type.S2_TopCylinderUp, IO_Type.S2_TopCylinderDown) && IOValue(IO_Type.S1_StopCheck5).Equals(IO_VALUE.LOW)
IOManager.DOValue(IO_Type.S2_TopCylinderUp).Equals(IO_VALUE.LOW) && IOManager.DOValue(IO_Type.S2_TopCylinderDown).Equals(IO_VALUE.HIGH)
) )
{ {
return true; return true;
...@@ -147,21 +146,21 @@ namespace OnlineStore.DeviceLibrary ...@@ -147,21 +146,21 @@ namespace OnlineStore.DeviceLibrary
{ {
if (moveInfo != null) if (moveInfo != null)
{ {
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCylinder1, iovalue)); SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCylinder2, iovalue));
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCylinder3, iovalue)); SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCylinder3, iovalue));
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCylinder4, iovalue)); SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCylinder5, iovalue));
if (stop2Move) if (stop2Move)
{ {
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCylinder2, iovalue)); SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCylinder4, iovalue));
} }
} }
CheckAndMove(IO_Type.S1_StopCylinder1, iovalue); CheckAndMove(IO_Type.S1_StopCylinder5, iovalue);
CheckAndMove(IO_Type.S1_StopCylinder2, iovalue);
CheckAndMove(IO_Type.S1_StopCylinder3, iovalue); CheckAndMove(IO_Type.S1_StopCylinder3, iovalue);
CheckAndMove(IO_Type.S1_StopCylinder4, iovalue);
if (stop2Move) if (stop2Move)
{ {
CheckAndMove(IO_Type.S1_StopCylinder2, iovalue); CheckAndMove(IO_Type.S1_StopCylinder4, iovalue);
} }
} }
private void S1Log(string msg) private void S1Log(string msg)
...@@ -340,11 +339,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -340,11 +339,11 @@ namespace OnlineStore.DeviceLibrary
{ {
S1_LeftShelfId = ""; S1_LeftShelfId = "";
SOneMoveInfo.NextMoveStep(MoveStep.S1_C07_ToS1); SOneMoveInfo.NextMoveStep(MoveStep.S1_C07_ToS1);
S1Log(" S1阻挡2上升,其他组的下降,下层线体停止,S1正转, 等待料架到达S1"); S1Log(" S1阻挡4上升,其他组的下降,下层线体停止,S1正转, 等待料架到达S1");
SOneMoveInfo.TimeOutSeconds = 15; SOneMoveInfo.TimeOutSeconds = 15;
S1_StopMove(SOneMoveInfo, IO_VALUE.HIGH); S1_StopMove(SOneMoveInfo, IO_VALUE.HIGH);
IOMove(IO_Type.S1_StopCylinder2, IO_VALUE.LOW); IOMove(IO_Type.S1_StopCylinder4, IO_VALUE.LOW);
IOMove(IO_Type.LLown_LineRun, IO_VALUE.LOW); IOMove(IO_Type.LLown_LineRun, IO_VALUE.LOW);
IOMove(IO_Type.LLow_StopCylinder2, IO_VALUE.LOW); IOMove(IO_Type.LLow_StopCylinder2, IO_VALUE.LOW);
// IOMove(IO_Type.S1_LineRun, IO_VALUE.HIGH); // IOMove(IO_Type.S1_LineRun, IO_VALUE.HIGH);
...@@ -505,10 +504,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -505,10 +504,10 @@ namespace OnlineStore.DeviceLibrary
{ {
S1_LeftShelfId = ""; S1_LeftShelfId = "";
SOneMoveInfo.NextMoveStep(MoveStep.S1_D19_ToS1); SOneMoveInfo.NextMoveStep(MoveStep.S1_D19_ToS1);
S1Log(" S1阻挡2上升,其他阻挡下降,转动工位链条等待料架到达"); S1Log(" S1阻挡4上升,其他阻挡下降,转动工位链条等待料架到达");
S1_StopMove(SOneMoveInfo, IO_VALUE.HIGH); S1_StopMove(SOneMoveInfo, IO_VALUE.HIGH);
IOMove(IO_Type.S1_StopCylinder2, IO_VALUE.LOW); IOMove(IO_Type.S1_StopCylinder4, IO_VALUE.LOW);
// IOMove(IO_Type.S1_LineRun, IO_VALUE.HIGH); // IOMove(IO_Type.S1_LineRun, IO_VALUE.HIGH);
S1LineRun(SOneMoveInfo); S1LineRun(SOneMoveInfo);
...@@ -638,7 +637,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -638,7 +637,7 @@ namespace OnlineStore.DeviceLibrary
S2CanGetShelf = false; S2CanGetShelf = false;
//SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S2_LineRun, IO_VALUE.LOW)); //SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S2_LineRun, IO_VALUE.LOW));
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S2_StopCheck1, IO_VALUE.HIGH)); SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCheck5, IO_VALUE.HIGH));
CheckAndMove(IO_Type.S1_StopCylinder4, IO_VALUE.LOW); CheckAndMove(IO_Type.S1_StopCylinder4, IO_VALUE.LOW);
CheckAndMove(IO_Type.S1_StopCylinder2, IO_VALUE.HIGH); CheckAndMove(IO_Type.S1_StopCylinder2, IO_VALUE.HIGH);
CheckAndMove(IO_Type.S1_StopCylinder1, IO_VALUE.HIGH); CheckAndMove(IO_Type.S1_StopCylinder1, IO_VALUE.HIGH);
...@@ -695,7 +694,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -695,7 +694,8 @@ namespace OnlineStore.DeviceLibrary
// IOMove(IO_Type.S1_LineRun, IO_VALUE.LOW); // IOMove(IO_Type.S1_LineRun, IO_VALUE.LOW);
S1LineStop(); S1LineStop();
//左侧料架到位,转到Ready状态 //左侧料架到位,转到Ready状态
if (CylinderIsOk(IO_Type.S1_TopCylinderDown, IO_Type.S1_TopCylinderUp) && (S1_CurrShelfId != "")) if (CylinderIsOk(IO_Type.S1_TopCylinderDown1, IO_Type.S1_TopCylinderUp1) &&
CylinderIsOk(IO_Type.S1_TopCylinderDown2, IO_Type.S1_TopCylinderUp2) && (S1_CurrShelfId != ""))
{ {
SOneMoveInfo.NextMoveStep(MoveStep.S1_24_Ready); SOneMoveInfo.NextMoveStep(MoveStep.S1_24_Ready);
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(3000)); SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(3000));
...@@ -882,6 +882,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -882,6 +882,8 @@ namespace OnlineStore.DeviceLibrary
SOneMoveInfo.NextMoveStep(MoveStep.S1_23_ToReady); SOneMoveInfo.NextMoveStep(MoveStep.S1_23_ToReady);
S1Log(" " + S1SName + "到达S1,顶升气缸上升," + S1_ShelfTask.ToStr()); S1Log(" " + S1SName + "到达S1,顶升气缸上升," + S1_ShelfTask.ToStr());
CylinderMove(SOneMoveInfo, IO_Type.S1_TopCylinderDown, IO_Type.S1_TopCylinderUp); CylinderMove(SOneMoveInfo, IO_Type.S1_TopCylinderDown, IO_Type.S1_TopCylinderUp);
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_TopCylinderUp1, IO_VALUE.HIGH));
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_TopCylinderUp2, IO_VALUE.HIGH));
} }
private bool CheckS1NeedGo() private bool CheckS1NeedGo()
{ {
...@@ -931,7 +933,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -931,7 +933,8 @@ namespace OnlineStore.DeviceLibrary
S1Log(" 右->S1切换 ,等待" + S1SName + " 可以移动到左侧,顶升下降,等待左侧无料架"); S1Log(" 右->S1切换 ,等待" + S1SName + " 可以移动到左侧,顶升下降,等待左侧无料架");
CylinderMove(SOneMoveInfo, IO_Type.S1_TopCylinderUp, IO_Type.S1_TopCylinderDown); CylinderMove(SOneMoveInfo, IO_Type.S1_TopCylinderUp, IO_Type.S1_TopCylinderDown);
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_TopCylinderDown1, IO_VALUE.HIGH));
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_TopCylinderDown2, IO_VALUE.HIGH));
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCheck1, IO_VALUE.LOW)); SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCheck1, IO_VALUE.LOW));
CheckAndMove(IO_Type.S1_StopCylinder1, IO_VALUE.HIGH); CheckAndMove(IO_Type.S1_StopCylinder1, IO_VALUE.HIGH);
...@@ -956,9 +959,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -956,9 +959,11 @@ namespace OnlineStore.DeviceLibrary
S2CanGetShelf = false; S2CanGetShelf = false;
} }
CylinderMove(null, IO_Type.S1_TopCylinderUp, IO_Type.S1_TopCylinderDown); CylinderMove(null, IO_Type.S1_TopCylinderUp, IO_Type.S1_TopCylinderDown);
// SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S2_LineRun, IO_VALUE.LOW)); SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_TopCylinderDown1, IO_VALUE.HIGH));
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S2_StopCheck1, IO_VALUE.LOW)); SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_TopCylinderDown2, IO_VALUE.HIGH));
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S2_StopCylinder1, IO_VALUE.LOW)); // SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S2_LineRun, IO_VALUE.LOW));
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCheck5, IO_VALUE.LOW));
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCylinder5, IO_VALUE.LOW));
} }
private void Start_S1ShelfToRight(MoveStep nextStep, string movetype, bool ShelfIsCanGo = false) private void Start_S1ShelfToRight(MoveStep nextStep, string movetype, bool ShelfIsCanGo = false)
...@@ -973,10 +978,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -973,10 +978,12 @@ namespace OnlineStore.DeviceLibrary
IOMove(IO_Type.S1_StopCylinder3, IO_VALUE.LOW); IOMove(IO_Type.S1_StopCylinder3, IO_VALUE.LOW);
} }
CylinderMove(SOneMoveInfo, IO_Type.S1_TopCylinderUp, IO_Type.S1_TopCylinderDown); CylinderMove(SOneMoveInfo, IO_Type.S1_TopCylinderUp, IO_Type.S1_TopCylinderDown);
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_TopCylinderDown1, IO_VALUE.HIGH));
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_TopCylinderDown2, IO_VALUE.HIGH));
S1LineRun(); S1LineRun();
//S2LineRun(); //S2LineRun();
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCheck2, IO_VALUE.LOW)); SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCheck2, IO_VALUE.LOW));
SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S2_StopCheck1, IO_VALUE.HIGH)); SOneMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.S1_StopCheck5, IO_VALUE.HIGH));
} }
private void Start_LeftShelfToS1(MoveStep nextStep, string movetype) private void Start_LeftShelfToS1(MoveStep nextStep, string movetype)
...@@ -1003,7 +1010,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -1003,7 +1010,8 @@ namespace OnlineStore.DeviceLibrary
return false; return false;
} }
if ((S1_CurrShelfId != "") && CylinderIsOk(IO_Type.S1_TopCylinderDown, IO_Type.S1_TopCylinderUp)) if ((S1_CurrShelfId != "") && CylinderIsOk(IO_Type.S1_TopCylinderDown1, IO_Type.S1_TopCylinderUp1)
&& CylinderIsOk(IO_Type.S1_TopCylinderDown2, IO_Type.S1_TopCylinderUp2))
{ {
if (SOneMoveInfo.MoveStep.Equals(MoveStep.S1_24_Ready)) if (SOneMoveInfo.MoveStep.Equals(MoveStep.S1_24_Ready))
{ {
......
...@@ -27,32 +27,32 @@ namespace OnlineStore.DeviceLibrary ...@@ -27,32 +27,32 @@ namespace OnlineStore.DeviceLibrary
public static string updateDeviceAlarmMsg(List<AlarmMsg> msgList) public static string updateDeviceAlarmMsg(List<AlarmMsg> msgList)
{ {
string msg = ""; string msg = "";
//try try
//{ {
// Dictionary<string, string> paramMap = new Dictionary<string, string>(); Dictionary<string, string> paramMap = new Dictionary<string, string>();
// string msgListStr = JsonHelper.SerializeObject(msgList); string msgListStr = JsonHelper.SerializeObject(msgList);
// paramMap.Add("deviceAlarmList", msgListStr); paramMap.Add("deviceAlarmList", msgListStr);
// string server = GetAddr(Addr_updateDeviceAlarmMsg, paramMap); string server = GetAddr(Addr_updateDeviceAlarmMsg, paramMap);
// DateTime startTime = DateTime.Now; DateTime startTime = DateTime.Now;
// string resultStr = HttpHelper.Post(server, "", 2000); string resultStr = HttpHelper.Post(server, "", 2000);
// LogUtil.debug("updateDeviceAlarmMsg " + FormUtil.GetSpanStr(DateTime.Now - startTime) + " 【" + server + "】【" + resultStr + "】"); LogUtil.debug("updateDeviceAlarmMsg " + FormUtil.GetSpanStr(DateTime.Now - startTime) + " 【" + server + "】【" + resultStr + "】");
// RfidData data = JsonHelper.DeserializeJsonToObject<RfidData>(resultStr); RfidData data = JsonHelper.DeserializeJsonToObject<RfidData>(resultStr);
// if (data == null) if (data == null)
// { {
// return msg = " updateDeviceAlarmMsg 没有收到服务器反馈"; return msg = " updateDeviceAlarmMsg 没有收到服务器反馈";
// } }
// else if (data.code.Equals(0).Equals(false)) else if (data.code.Equals(0).Equals(false))
// { {
// return msg = " updateDeviceAlarmMsg 【" + server + "】【" + resultStr + "】" + data.msg; return msg = " updateDeviceAlarmMsg 【" + server + "】【" + resultStr + "】" + data.msg;
// } }
// return ""; return "";
//} }
//catch (Exception ex) catch (Exception ex)
//{ {
// LogUtil.error(" updateDeviceAlarmMsg Error: " + ex.ToString()); LogUtil.error(" updateDeviceAlarmMsg Error: " + ex.ToString());
//} }
return msg; return msg;
} }
private static string GetAddr(string addr, Dictionary<string, string> paramsMap) private static string GetAddr(string addr, Dictionary<string, string> paramsMap)
......
...@@ -76,7 +76,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -76,7 +76,7 @@ namespace OnlineStore.DeviceLibrary
{ {
try try
{ {
if (String.IsNullOrEmpty(ip).Equals(false)) if (String.IsNullOrEmpty(ip).Equals(false) && read!=null)
{ {
if (isClear) if (isClear)
{ {
...@@ -102,10 +102,15 @@ namespace OnlineStore.DeviceLibrary ...@@ -102,10 +102,15 @@ namespace OnlineStore.DeviceLibrary
{ {
try try
{ {
read.Stop(); if(IsOpen)
{
read.Stop();
IsOpen = false;
}
} }
catch (Exception ex) catch (Exception ex)
{ {
IsOpen = false;
LogUtil.error("关闭RFID出错:" + ex.ToString()); LogUtil.error("关闭RFID出错:" + ex.ToString());
} }
} }
......
...@@ -168,7 +168,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -168,7 +168,7 @@ namespace OnlineStore.DeviceLibrary
//IOMove(IO_Type.Pkg_Line3_Forward, IO_VALUE.LOW); //IOMove(IO_Type.Pkg_Line3_Forward, IO_VALUE.LOW);
//S2工位 //S2工位
IOMove(IO_Type.S2_StopCylinder1, IO_VALUE.LOW); IOMove(IO_Type.S1_StopCylinder5, IO_VALUE.LOW);
//IOMove(IO_Type.S2_StopCylinder2, IO_VALUE.LOW); //IOMove(IO_Type.S2_StopCylinder2, IO_VALUE.LOW);
//双层线出料口 //双层线出料口
......
...@@ -312,6 +312,7 @@ ...@@ -312,6 +312,7 @@
this.btnReload.TabIndex = 199; this.btnReload.TabIndex = 199;
this.btnReload.Text = "重新加载"; this.btnReload.Text = "重新加载";
this.btnReload.UseVisualStyleBackColor = false; this.btnReload.UseVisualStyleBackColor = false;
this.btnReload.Visible = false;
this.btnReload.Click += new System.EventHandler(this.btnReload_Click); this.btnReload.Click += new System.EventHandler(this.btnReload_Click);
// //
// chbUseAbb // chbUseAbb
......
...@@ -131,7 +131,7 @@ namespace OnlineStore.DoubleLineClient ...@@ -131,7 +131,7 @@ namespace OnlineStore.DoubleLineClient
int esValue = ABBControl.GetSingalState(SelConIp); int esValue = ABBControl.GetSingalState(SelConIp);
if (ABBControl.IsAutoMove) if (ABBControl.IsAutoMove)
{ {
lblCurrMove.Text = "连续运动中:" + ABBControl. LastAutoP; lblCurrMove.Text = "连续运动中:" + ABBControl.LastAutoP;
btnStartAuto.Text = "停止连续运动"; btnStartAuto.Text = "停止连续运动";
} }
else else
...@@ -164,7 +164,7 @@ namespace OnlineStore.DoubleLineClient ...@@ -164,7 +164,7 @@ namespace OnlineStore.DoubleLineClient
SetMsg("机器人[" + SelConIp + "]程序未运行", Color.Red); SetMsg("机器人[" + SelConIp + "]程序未运行", Color.Red);
} }
} }
if (isOk && ABBControl.IsConnected(SelConIp)&&chbUseAbb.Checked) if (isOk && ABBControl.IsConnected(SelConIp) && chbUseAbb.Checked)
{ {
if (!groupMove.Enabled) if (!groupMove.Enabled)
{ {
...@@ -304,7 +304,7 @@ namespace OnlineStore.DoubleLineClient ...@@ -304,7 +304,7 @@ namespace OnlineStore.DoubleLineClient
{ {
if (!comMoveCmd.Text.Equals(ABBControl.Cmd_moveput)) if (!comMoveCmd.Text.Equals(ABBControl.Cmd_moveput))
{ {
MessageBox.Show("运动方式="+ABBControl.Cmd_moveput+" 时,才能连续运动","提示",MessageBoxButtons.OK,MessageBoxIcon.Error); MessageBox.Show("运动方式=" + ABBControl.Cmd_moveput + " 时,才能连续运动", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
return; return;
} }
if (SelConIp.Equals("")) if (SelConIp.Equals(""))
...@@ -330,19 +330,18 @@ namespace OnlineStore.DoubleLineClient ...@@ -330,19 +330,18 @@ namespace OnlineStore.DoubleLineClient
PointList.Add(comMoveP.Items[i].ToString()); PointList.Add(comMoveP.Items[i].ToString());
} }
ABBControl.StartConMove(SelConIp, PointList, "L", "p1", speed); ABBControl.StartConMove(SelConIp, PointList, "L", "p1", speed);
lblCurrMove.Text = "连续运动中:" + ABBControl. LastAutoP; lblCurrMove.Text = "连续运动中:" + ABBControl.LastAutoP;
btnStartAuto.Text = "停止连续运动"; btnStartAuto.Text = "停止连续运动";
} }
} }
private void btnReload_Click(object sender, EventArgs e) private void btnReload_Click(object sender, EventArgs e)
{ {
LogUtil.info("点击:重新加载机器人"); LogUtil.info("点击:重新加载机器人");
ABBControl.Dispose(); ABBControl.Dispose();
Thread.Sleep(10); Thread.Sleep(10);
LoadController(); LoadController();
} }
} }
} }
...@@ -56,6 +56,9 @@ ...@@ -56,6 +56,9 @@
this.S2_LineBackRun = new System.Windows.Forms.Button(); this.S2_LineBackRun = new System.Windows.Forms.Button();
this.S2_TopCylinderUp = new System.Windows.Forms.Label(); this.S2_TopCylinderUp = new System.Windows.Forms.Label();
this.groupBox4 = new System.Windows.Forms.GroupBox(); this.groupBox4 = new System.Windows.Forms.GroupBox();
this.S1_StopCheck3 = new System.Windows.Forms.Label();
this.S1_StopCylinder5 = new System.Windows.Forms.Button();
this.S1_StopCheck5 = new System.Windows.Forms.Label();
this.S1_StopCylinder4 = new System.Windows.Forms.Button(); this.S1_StopCylinder4 = new System.Windows.Forms.Button();
this.S1_StopCheck4 = new System.Windows.Forms.Label(); this.S1_StopCheck4 = new System.Windows.Forms.Label();
this.S1_StopCylinder3 = new System.Windows.Forms.Button(); this.S1_StopCylinder3 = new System.Windows.Forms.Button();
...@@ -120,8 +123,18 @@ ...@@ -120,8 +123,18 @@
this.groupBox8 = new System.Windows.Forms.GroupBox(); this.groupBox8 = new System.Windows.Forms.GroupBox();
this.ABB1_TrayCheck = new System.Windows.Forms.Label(); this.ABB1_TrayCheck = new System.Windows.Forms.Label();
this.groupBox9 = new System.Windows.Forms.GroupBox(); this.groupBox9 = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button(); this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.grpBxState = new System.Windows.Forms.GroupBox();
this.lblA5State = new System.Windows.Forms.Label();
this.lblA6State = new System.Windows.Forms.Label();
this.lblA6 = new System.Windows.Forms.Label();
this.lblA5 = new System.Windows.Forms.Label();
this.btnOpenRFID = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.groupBox6.SuspendLayout(); this.groupBox6.SuspendLayout();
this.groupBox5.SuspendLayout(); this.groupBox5.SuspendLayout();
this.groupBox4.SuspendLayout(); this.groupBox4.SuspendLayout();
...@@ -131,6 +144,7 @@ ...@@ -131,6 +144,7 @@
this.groupBox3.SuspendLayout(); this.groupBox3.SuspendLayout();
this.groupBox8.SuspendLayout(); this.groupBox8.SuspendLayout();
this.groupBox9.SuspendLayout(); this.groupBox9.SuspendLayout();
this.grpBxState.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// groupBox6 // groupBox6
...@@ -348,7 +362,7 @@ ...@@ -348,7 +362,7 @@
this.groupBox5.Controls.Add(this.S2_LineRun); this.groupBox5.Controls.Add(this.S2_LineRun);
this.groupBox5.Controls.Add(this.S2_LineBackRun); this.groupBox5.Controls.Add(this.S2_LineBackRun);
this.groupBox5.Controls.Add(this.S2_TopCylinderUp); this.groupBox5.Controls.Add(this.S2_TopCylinderUp);
this.groupBox5.Location = new System.Drawing.Point(997, 367); this.groupBox5.Location = new System.Drawing.Point(17, 323);
this.groupBox5.Name = "groupBox5"; this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(252, 33); this.groupBox5.Size = new System.Drawing.Size(252, 33);
this.groupBox5.TabIndex = 46; this.groupBox5.TabIndex = 46;
...@@ -487,6 +501,9 @@ ...@@ -487,6 +501,9 @@
// groupBox4 // groupBox4
// //
this.groupBox4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.groupBox4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
this.groupBox4.Controls.Add(this.S1_StopCheck3);
this.groupBox4.Controls.Add(this.S1_StopCylinder5);
this.groupBox4.Controls.Add(this.S1_StopCheck5);
this.groupBox4.Controls.Add(this.S1_StopCylinder4); this.groupBox4.Controls.Add(this.S1_StopCylinder4);
this.groupBox4.Controls.Add(this.S1_StopCheck4); this.groupBox4.Controls.Add(this.S1_StopCheck4);
this.groupBox4.Controls.Add(this.S1_StopCylinder3); this.groupBox4.Controls.Add(this.S1_StopCylinder3);
...@@ -502,10 +519,45 @@ ...@@ -502,10 +519,45 @@
this.groupBox4.Controls.Add(this.S1_TopCylinderUp); this.groupBox4.Controls.Add(this.S1_TopCylinderUp);
this.groupBox4.Location = new System.Drawing.Point(883, 21); this.groupBox4.Location = new System.Drawing.Point(883, 21);
this.groupBox4.Name = "groupBox4"; this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(375, 270); this.groupBox4.Size = new System.Drawing.Size(375, 300);
this.groupBox4.TabIndex = 45; this.groupBox4.TabIndex = 45;
this.groupBox4.TabStop = false; this.groupBox4.TabStop = false;
this.groupBox4.Text = "上料工位1"; this.groupBox4.Text = "上料工位";
//
// S1_StopCheck3
//
this.S1_StopCheck3.BackColor = System.Drawing.Color.LightGray;
this.S1_StopCheck3.Location = new System.Drawing.Point(80, 186);
this.S1_StopCheck3.Margin = new System.Windows.Forms.Padding(3);
this.S1_StopCheck3.Name = "S1_StopCheck3";
this.S1_StopCheck3.Size = new System.Drawing.Size(68, 20);
this.S1_StopCheck3.TabIndex = 36;
this.S1_StopCheck3.Text = "检测3";
this.S1_StopCheck3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// S1_StopCylinder5
//
this.S1_StopCylinder5.FlatAppearance.BorderColor = System.Drawing.Color.Black;
this.S1_StopCylinder5.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Aqua;
this.S1_StopCylinder5.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.S1_StopCylinder5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.S1_StopCylinder5.Location = new System.Drawing.Point(276, 242);
this.S1_StopCylinder5.Name = "S1_StopCylinder5";
this.S1_StopCylinder5.Size = new System.Drawing.Size(76, 31);
this.S1_StopCylinder5.TabIndex = 35;
this.S1_StopCylinder5.Text = "▉ 阻挡5";
this.S1_StopCylinder5.UseVisualStyleBackColor = true;
//
// S1_StopCheck5
//
this.S1_StopCheck5.BackColor = System.Drawing.Color.LightGray;
this.S1_StopCheck5.Location = new System.Drawing.Point(273, 203);
this.S1_StopCheck5.Margin = new System.Windows.Forms.Padding(3);
this.S1_StopCheck5.Name = "S1_StopCheck5";
this.S1_StopCheck5.Size = new System.Drawing.Size(68, 20);
this.S1_StopCheck5.TabIndex = 34;
this.S1_StopCheck5.Text = "检测5";
this.S1_StopCheck5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// S1_StopCylinder4 // S1_StopCylinder4
// //
...@@ -513,7 +565,7 @@ ...@@ -513,7 +565,7 @@
this.S1_StopCylinder4.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Aqua; this.S1_StopCylinder4.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Aqua;
this.S1_StopCylinder4.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.S1_StopCylinder4.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.S1_StopCylinder4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.S1_StopCylinder4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.S1_StopCylinder4.Location = new System.Drawing.Point(19, 107); this.S1_StopCylinder4.Location = new System.Drawing.Point(187, 242);
this.S1_StopCylinder4.Name = "S1_StopCylinder4"; this.S1_StopCylinder4.Name = "S1_StopCylinder4";
this.S1_StopCylinder4.Size = new System.Drawing.Size(76, 31); this.S1_StopCylinder4.Size = new System.Drawing.Size(76, 31);
this.S1_StopCylinder4.TabIndex = 13; this.S1_StopCylinder4.TabIndex = 13;
...@@ -524,7 +576,7 @@ ...@@ -524,7 +576,7 @@
// S1_StopCheck4 // S1_StopCheck4
// //
this.S1_StopCheck4.BackColor = System.Drawing.Color.LightGray; this.S1_StopCheck4.BackColor = System.Drawing.Color.LightGray;
this.S1_StopCheck4.Location = new System.Drawing.Point(23, 49); this.S1_StopCheck4.Location = new System.Drawing.Point(170, 186);
this.S1_StopCheck4.Margin = new System.Windows.Forms.Padding(3); this.S1_StopCheck4.Margin = new System.Windows.Forms.Padding(3);
this.S1_StopCheck4.Name = "S1_StopCheck4"; this.S1_StopCheck4.Name = "S1_StopCheck4";
this.S1_StopCheck4.Size = new System.Drawing.Size(68, 20); this.S1_StopCheck4.Size = new System.Drawing.Size(68, 20);
...@@ -538,7 +590,7 @@ ...@@ -538,7 +590,7 @@
this.S1_StopCylinder3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Aqua; this.S1_StopCylinder3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Aqua;
this.S1_StopCylinder3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.S1_StopCylinder3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.S1_StopCylinder3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.S1_StopCylinder3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.S1_StopCylinder3.Location = new System.Drawing.Point(17, 192); this.S1_StopCylinder3.Location = new System.Drawing.Point(101, 242);
this.S1_StopCylinder3.Name = "S1_StopCylinder3"; this.S1_StopCylinder3.Name = "S1_StopCylinder3";
this.S1_StopCylinder3.Size = new System.Drawing.Size(77, 31); this.S1_StopCylinder3.Size = new System.Drawing.Size(77, 31);
this.S1_StopCylinder3.TabIndex = 13; this.S1_StopCylinder3.TabIndex = 13;
...@@ -552,7 +604,7 @@ ...@@ -552,7 +604,7 @@
this.S1_StopCylinder2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Aqua; this.S1_StopCylinder2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Aqua;
this.S1_StopCylinder2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.S1_StopCylinder2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.S1_StopCylinder2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.S1_StopCylinder2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.S1_StopCylinder2.Location = new System.Drawing.Point(263, 192); this.S1_StopCylinder2.Location = new System.Drawing.Point(6, 242);
this.S1_StopCylinder2.Name = "S1_StopCylinder2"; this.S1_StopCylinder2.Name = "S1_StopCylinder2";
this.S1_StopCylinder2.Size = new System.Drawing.Size(77, 31); this.S1_StopCylinder2.Size = new System.Drawing.Size(77, 31);
this.S1_StopCylinder2.TabIndex = 10; this.S1_StopCylinder2.TabIndex = 10;
...@@ -563,7 +615,7 @@ ...@@ -563,7 +615,7 @@
// S1_StopCheck1 // S1_StopCheck1
// //
this.S1_StopCheck1.BackColor = System.Drawing.Color.LightGray; this.S1_StopCheck1.BackColor = System.Drawing.Color.LightGray;
this.S1_StopCheck1.Location = new System.Drawing.Point(23, 78); this.S1_StopCheck1.Location = new System.Drawing.Point(14, 71);
this.S1_StopCheck1.Margin = new System.Windows.Forms.Padding(3); this.S1_StopCheck1.Margin = new System.Windows.Forms.Padding(3);
this.S1_StopCheck1.Name = "S1_StopCheck1"; this.S1_StopCheck1.Name = "S1_StopCheck1";
this.S1_StopCheck1.Size = new System.Drawing.Size(68, 20); this.S1_StopCheck1.Size = new System.Drawing.Size(68, 20);
...@@ -577,7 +629,7 @@ ...@@ -577,7 +629,7 @@
this.S1_StopCylinder1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Aqua; this.S1_StopCylinder1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Aqua;
this.S1_StopCylinder1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.S1_StopCylinder1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.S1_StopCylinder1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.S1_StopCylinder1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.S1_StopCylinder1.Location = new System.Drawing.Point(97, 192); this.S1_StopCylinder1.Location = new System.Drawing.Point(10, 102);
this.S1_StopCylinder1.Name = "S1_StopCylinder1"; this.S1_StopCylinder1.Name = "S1_StopCylinder1";
this.S1_StopCylinder1.Size = new System.Drawing.Size(77, 31); this.S1_StopCylinder1.Size = new System.Drawing.Size(77, 31);
this.S1_StopCylinder1.TabIndex = 9; this.S1_StopCylinder1.TabIndex = 9;
...@@ -627,7 +679,7 @@ ...@@ -627,7 +679,7 @@
// S1_StopCheck2 // S1_StopCheck2
// //
this.S1_StopCheck2.BackColor = System.Drawing.Color.LightGray; this.S1_StopCheck2.BackColor = System.Drawing.Color.LightGray;
this.S1_StopCheck2.Location = new System.Drawing.Point(267, 227); this.S1_StopCheck2.Location = new System.Drawing.Point(6, 203);
this.S1_StopCheck2.Margin = new System.Windows.Forms.Padding(3); this.S1_StopCheck2.Margin = new System.Windows.Forms.Padding(3);
this.S1_StopCheck2.Name = "S1_StopCheck2"; this.S1_StopCheck2.Name = "S1_StopCheck2";
this.S1_StopCheck2.Size = new System.Drawing.Size(68, 20); this.S1_StopCheck2.Size = new System.Drawing.Size(68, 20);
...@@ -965,9 +1017,9 @@ ...@@ -965,9 +1017,9 @@
this.btnBack.BackColor = System.Drawing.Color.White; this.btnBack.BackColor = System.Drawing.Color.White;
this.btnBack.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnBack.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnBack.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnBack.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnBack.Location = new System.Drawing.Point(1101, 462); this.btnBack.Location = new System.Drawing.Point(910, 625);
this.btnBack.Name = "btnBack"; this.btnBack.Name = "btnBack";
this.btnBack.Size = new System.Drawing.Size(103, 37); this.btnBack.Size = new System.Drawing.Size(121, 43);
this.btnBack.TabIndex = 289; this.btnBack.TabIndex = 289;
this.btnBack.Text = "返回"; this.btnBack.Text = "返回";
this.btnBack.UseVisualStyleBackColor = false; this.btnBack.UseVisualStyleBackColor = false;
...@@ -1271,7 +1323,7 @@ ...@@ -1271,7 +1323,7 @@
this.btnS1StopDown.BackColor = System.Drawing.Color.White; this.btnS1StopDown.BackColor = System.Drawing.Color.White;
this.btnS1StopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnS1StopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnS1StopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnS1StopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnS1StopDown.Location = new System.Drawing.Point(928, 297); this.btnS1StopDown.Location = new System.Drawing.Point(909, 338);
this.btnS1StopDown.Name = "btnS1StopDown"; this.btnS1StopDown.Name = "btnS1StopDown";
this.btnS1StopDown.Size = new System.Drawing.Size(103, 37); this.btnS1StopDown.Size = new System.Drawing.Size(103, 37);
this.btnS1StopDown.TabIndex = 292; this.btnS1StopDown.TabIndex = 292;
...@@ -1284,7 +1336,7 @@ ...@@ -1284,7 +1336,7 @@
this.S1StopDown.BackColor = System.Drawing.Color.White; this.S1StopDown.BackColor = System.Drawing.Color.White;
this.S1StopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.S1StopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.S1StopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.S1StopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.S1StopDown.Location = new System.Drawing.Point(1037, 297); this.S1StopDown.Location = new System.Drawing.Point(1018, 338);
this.S1StopDown.Name = "S1StopDown"; this.S1StopDown.Name = "S1StopDown";
this.S1StopDown.Size = new System.Drawing.Size(103, 37); this.S1StopDown.Size = new System.Drawing.Size(103, 37);
this.S1StopDown.TabIndex = 293; this.S1StopDown.TabIndex = 293;
...@@ -1297,7 +1349,7 @@ ...@@ -1297,7 +1349,7 @@
this.btnS1Stop.BackColor = System.Drawing.Color.White; this.btnS1Stop.BackColor = System.Drawing.Color.White;
this.btnS1Stop.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnS1Stop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnS1Stop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnS1Stop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnS1Stop.Location = new System.Drawing.Point(1146, 297); this.btnS1Stop.Location = new System.Drawing.Point(1132, 338);
this.btnS1Stop.Name = "btnS1Stop"; this.btnS1Stop.Name = "btnS1Stop";
this.btnS1Stop.Size = new System.Drawing.Size(103, 37); this.btnS1Stop.Size = new System.Drawing.Size(103, 37);
this.btnS1Stop.TabIndex = 294; this.btnS1Stop.TabIndex = 294;
...@@ -1312,7 +1364,7 @@ ...@@ -1312,7 +1364,7 @@
this.groupBox8.Controls.Add(this.ABB2_TrayCheck); this.groupBox8.Controls.Add(this.ABB2_TrayCheck);
this.groupBox8.Location = new System.Drawing.Point(306, 317); this.groupBox8.Location = new System.Drawing.Point(306, 317);
this.groupBox8.Name = "groupBox8"; this.groupBox8.Name = "groupBox8";
this.groupBox8.Size = new System.Drawing.Size(573, 58); this.groupBox8.Size = new System.Drawing.Size(554, 58);
this.groupBox8.TabIndex = 295; this.groupBox8.TabIndex = 295;
this.groupBox8.TabStop = false; this.groupBox8.TabStop = false;
this.groupBox8.Text = "接驳台信号"; this.groupBox8.Text = "接驳台信号";
...@@ -1332,43 +1384,156 @@ ...@@ -1332,43 +1384,156 @@
// groupBox9 // groupBox9
// //
this.groupBox9.BackColor = System.Drawing.Color.Aqua; this.groupBox9.BackColor = System.Drawing.Color.Aqua;
this.groupBox9.Controls.Add(this.label5);
this.groupBox9.Controls.Add(this.label4);
this.groupBox9.Controls.Add(this.label3);
this.groupBox9.Controls.Add(this.label2);
this.groupBox9.Controls.Add(this.label1); this.groupBox9.Controls.Add(this.label1);
this.groupBox9.Controls.Add(this.button1);
this.groupBox9.Location = new System.Drawing.Point(657, 408); this.groupBox9.Location = new System.Drawing.Point(657, 408);
this.groupBox9.Name = "groupBox9"; this.groupBox9.Name = "groupBox9";
this.groupBox9.Size = new System.Drawing.Size(275, 188); this.groupBox9.Size = new System.Drawing.Size(222, 176);
this.groupBox9.TabIndex = 296; this.groupBox9.TabIndex = 296;
this.groupBox9.TabStop = false; this.groupBox9.TabStop = false;
this.groupBox9.Text = "RFID读取"; this.groupBox9.Text = "RFID读取";
// //
// button1 // label5
// //
this.button1.BackColor = System.Drawing.Color.White; this.label5.AutoSize = true;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.label5.Location = new System.Drawing.Point(6, 127);
this.button1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label5.Name = "label5";
this.button1.Location = new System.Drawing.Point(80, 19); this.label5.Size = new System.Drawing.Size(35, 17);
this.button1.Name = "button1"; this.label5.TabIndex = 4;
this.button1.Size = new System.Drawing.Size(103, 37); this.label5.Tag = "192.168.103.55";
this.button1.TabIndex = 290; this.label5.Text = "RFID";
this.button1.Text = "读取"; //
this.button1.UseVisualStyleBackColor = false; // label4
this.button1.Click += new System.EventHandler(this.btnInitRFID_Click); //
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(6, 100);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(35, 17);
this.label4.TabIndex = 3;
this.label4.Tag = "192.168.103.54";
this.label4.Text = "RFID";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(6, 77);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(35, 17);
this.label3.TabIndex = 2;
this.label3.Tag = "192.168.103.53";
this.label3.Text = "RFID";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 54);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(35, 17);
this.label2.TabIndex = 1;
this.label2.Tag = "192.168.103.52";
this.label2.Text = "RFID";
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(6, 80); this.label1.Location = new System.Drawing.Point(6, 27);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(35, 17); this.label1.Size = new System.Drawing.Size(35, 17);
this.label1.TabIndex = 0; this.label1.TabIndex = 0;
this.label1.Tag = "192.168.103.51"; this.label1.Tag = "192.168.103.51";
this.label1.Text = "RFID"; this.label1.Text = "RFID";
// //
// grpBxState
//
this.grpBxState.BackColor = System.Drawing.Color.Aquamarine;
this.grpBxState.Controls.Add(this.lblA5State);
this.grpBxState.Controls.Add(this.lblA6State);
this.grpBxState.Controls.Add(this.lblA6);
this.grpBxState.Controls.Add(this.lblA5);
this.grpBxState.Location = new System.Drawing.Point(885, 408);
this.grpBxState.Name = "grpBxState";
this.grpBxState.Size = new System.Drawing.Size(333, 133);
this.grpBxState.TabIndex = 297;
this.grpBxState.TabStop = false;
this.grpBxState.Text = "状态显示";
//
// lblA5State
//
this.lblA5State.AutoSize = true;
this.lblA5State.Location = new System.Drawing.Point(12, 54);
this.lblA5State.Name = "lblA5State";
this.lblA5State.Size = new System.Drawing.Size(23, 17);
this.lblA5State.TabIndex = 3;
this.lblA5State.Tag = "";
this.lblA5State.Text = "A5";
//
// lblA6State
//
this.lblA6State.AutoSize = true;
this.lblA6State.Location = new System.Drawing.Point(12, 105);
this.lblA6State.Name = "lblA6State";
this.lblA6State.Size = new System.Drawing.Size(23, 17);
this.lblA6State.TabIndex = 2;
this.lblA6State.Tag = "";
this.lblA6State.Text = "A6";
//
// lblA6
//
this.lblA6.AutoSize = true;
this.lblA6.Location = new System.Drawing.Point(5, 77);
this.lblA6.Name = "lblA6";
this.lblA6.Size = new System.Drawing.Size(104, 17);
this.lblA6.TabIndex = 1;
this.lblA6.Tag = "";
this.lblA6.Text = "双层线出口状态:";
//
// lblA5
//
this.lblA5.AutoSize = true;
this.lblA5.Location = new System.Drawing.Point(6, 27);
this.lblA5.Name = "lblA5";
this.lblA5.Size = new System.Drawing.Size(104, 17);
this.lblA5.TabIndex = 0;
this.lblA5.Tag = "";
this.lblA5.Text = "双层线入口状态:";
//
// btnOpenRFID
//
this.btnOpenRFID.BackColor = System.Drawing.Color.White;
this.btnOpenRFID.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpenRFID.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenRFID.Location = new System.Drawing.Point(657, 597);
this.btnOpenRFID.Name = "btnOpenRFID";
this.btnOpenRFID.Size = new System.Drawing.Size(82, 43);
this.btnOpenRFID.TabIndex = 298;
this.btnOpenRFID.Text = "开启RFID";
this.btnOpenRFID.UseVisualStyleBackColor = false;
this.btnOpenRFID.Click += new System.EventHandler(this.btnOpenRFID_Click);
//
// button2
//
this.button2.BackColor = System.Drawing.Color.White;
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button2.Location = new System.Drawing.Point(797, 597);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(82, 43);
this.button2.TabIndex = 299;
this.button2.Text = "关闭RFID";
this.button2.UseVisualStyleBackColor = false;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// FrmDbLineIO // FrmDbLineIO
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1284, 721); this.ClientSize = new System.Drawing.Size(1284, 721);
this.Controls.Add(this.button2);
this.Controls.Add(this.btnOpenRFID);
this.Controls.Add(this.grpBxState);
this.Controls.Add(this.groupBox9); this.Controls.Add(this.groupBox9);
this.Controls.Add(this.groupBox8); this.Controls.Add(this.groupBox8);
this.Controls.Add(this.btnS1Stop); this.Controls.Add(this.btnS1Stop);
...@@ -1397,6 +1562,8 @@ ...@@ -1397,6 +1562,8 @@
this.groupBox8.PerformLayout(); this.groupBox8.PerformLayout();
this.groupBox9.ResumeLayout(false); this.groupBox9.ResumeLayout(false);
this.groupBox9.PerformLayout(); this.groupBox9.PerformLayout();
this.grpBxState.ResumeLayout(false);
this.grpBxState.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
...@@ -1495,6 +1662,19 @@ ...@@ -1495,6 +1662,19 @@
private System.Windows.Forms.Label ABB1_TrayCheck; private System.Windows.Forms.Label ABB1_TrayCheck;
private System.Windows.Forms.GroupBox groupBox9; private System.Windows.Forms.GroupBox groupBox9;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
internal System.Windows.Forms.Button button1; private System.Windows.Forms.GroupBox grpBxState;
private System.Windows.Forms.Label lblA5;
private System.Windows.Forms.Label lblA5State;
private System.Windows.Forms.Label lblA6State;
private System.Windows.Forms.Label lblA6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button S1_StopCylinder5;
private System.Windows.Forms.Label S1_StopCheck5;
private System.Windows.Forms.Label S1_StopCheck3;
internal System.Windows.Forms.Button btnOpenRFID;
internal System.Windows.Forms.Button button2;
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -20,6 +20,7 @@ namespace OnlineStore.DoubleLineClient ...@@ -20,6 +20,7 @@ namespace OnlineStore.DoubleLineClient
} }
private List<Control> DILabel = new List<Control>(); private List<Control> DILabel = new List<Control>();
private List<Control> doList = new List<Control>(); private List<Control> doList = new List<Control>();
private List<Control> rfidList = new List<Control>();
private void FrmDbLineIO_Load(object sender, EventArgs e) private void FrmDbLineIO_Load(object sender, EventArgs e)
{ {
...@@ -31,6 +32,7 @@ namespace OnlineStore.DoubleLineClient ...@@ -31,6 +32,7 @@ namespace OnlineStore.DoubleLineClient
{ {
DILabel = new List<Control>(); DILabel = new List<Control>();
doList = new List<Control>(); doList = new List<Control>();
rfidList = new List<Control>();
foreach (Control con in this.Controls) foreach (Control con in this.Controls)
{ {
if (con is GroupBox) if (con is GroupBox)
...@@ -43,6 +45,10 @@ namespace OnlineStore.DoubleLineClient ...@@ -43,6 +45,10 @@ namespace OnlineStore.DoubleLineClient
{ {
DILabel.Add(c); DILabel.Add(c);
} }
else if( c.Tag !=null && LineManager.Line.RfidIpList.Contains(c.Tag.ToString()))
{
rfidList.Add(c);
}
} }
else if (c is Button) else if (c is Button)
{ {
...@@ -63,7 +69,15 @@ namespace OnlineStore.DoubleLineClient ...@@ -63,7 +69,15 @@ namespace OnlineStore.DoubleLineClient
if (!this.Visible) if (!this.Visible)
{ {
return; return;
} }
//Task.Factory.StartNew();
this.Invoke(new Action(() =>
{
if (!lblA5State.Text.Equals(LineManager.packageLine.A5_State))
lblA5State.Text = LineManager.packageLine.A5_State;
if (!lblA6State.Text.Equals(LineManager.packageLine.A6_State))
lblA6State.Text = LineManager.packageLine.A6_State;
}));
foreach (Control labl in DILabel) foreach (Control labl in DILabel)
{ {
IO_VALUE value = LineManager.Line.IOValue(labl.Name); IO_VALUE value = LineManager.Line.IOValue(labl.Name);
...@@ -89,16 +103,13 @@ namespace OnlineStore.DoubleLineClient ...@@ -89,16 +103,13 @@ namespace OnlineStore.DoubleLineClient
//labl.BackColor = Color.LightGray; //labl.BackColor = Color.LightGray;
} }
} }
if (LineManager.Line.RfidIpList != null && LineManager.Line.RfidIpList.Count > 0) foreach (Control lbl in rfidList)
{ {
string tmp = ""; string tmpRfid = RFIDManager.ReadRFID(lbl.Tag.ToString()).NumStr();
foreach (string con in LineManager.Line.RfidIpList) if(!tmpRfid.Equals(lbl.Text))
{ {
tmp += con + ":" + RFIDManager.ReadRFID(con).NumStr() + "\r\t"; lbl.Text = string.Format("{0}:{1}", lbl.Tag.ToString(), tmpRfid);
} }
this.Invoke(new Action(() => {
label1.Text = tmp;
}));
} }
} }
...@@ -155,13 +166,13 @@ namespace OnlineStore.DoubleLineClient ...@@ -155,13 +166,13 @@ namespace OnlineStore.DoubleLineClient
private void btnS2Up_Click(object sender, EventArgs e) private void btnS2Up_Click(object sender, EventArgs e)
{ {
// LineManager.Line.CylinderMove(null, IO_Type.S2_TopCylinderDown, IO_Type.S2_TopCylinderUp); // LineManager.Line.CylinderMove(null, IO_Type.S2_TopCylinderDown, IO_Type.S2_TopCylinderUp);
} }
private void btnS2Down_Click(object sender, EventArgs e) private void btnS2Down_Click(object sender, EventArgs e)
{ {
// LineManager.Line.CylinderMove(null, IO_Type.S2_TopCylinderUp, IO_Type.S2_TopCylinderDown); // LineManager.Line.CylinderMove(null, IO_Type.S2_TopCylinderUp, IO_Type.S2_TopCylinderDown);
} }
private void btnRUp_Click(object sender, EventArgs e) private void btnRUp_Click(object sender, EventArgs e)
...@@ -193,9 +204,16 @@ namespace OnlineStore.DoubleLineClient ...@@ -193,9 +204,16 @@ namespace OnlineStore.DoubleLineClient
LineManager.Line.IOMove(IO_Type.S1_LineRun, IO_VALUE.LOW); LineManager.Line.IOMove(IO_Type.S1_LineRun, IO_VALUE.LOW);
} }
private void btnInitRFID_Click(object sender, EventArgs e) private void btnOpenRFID_Click(object sender, EventArgs e)
{ {
RFIDManager.Open(LineManager.Line.RfidIpList.ToArray());
Common.LogUtil.info("手动开启RFID");
}
private void button2_Click(object sender, EventArgs e)
{
RFIDManager.Close();
Common.LogUtil.info("手动关闭RFID");
} }
} }
} }
...@@ -360,7 +360,7 @@ ...@@ -360,7 +360,7 @@
this.btnSw1Location.Name = "btnSw1Location"; this.btnSw1Location.Name = "btnSw1Location";
this.btnSw1Location.Size = new System.Drawing.Size(153, 37); this.btnSw1Location.Size = new System.Drawing.Size(153, 37);
this.btnSw1Location.TabIndex = 281; this.btnSw1Location.TabIndex = 281;
this.btnSw1Location.Text = "工位2顶升下降"; this.btnSw1Location.Text = "右侧升降机下降";
this.btnSw1Location.UseVisualStyleBackColor = true; this.btnSw1Location.UseVisualStyleBackColor = true;
this.btnSw1Location.Click += new System.EventHandler(this.btnSw1Location_Click); this.btnSw1Location.Click += new System.EventHandler(this.btnSw1Location_Click);
// //
......
...@@ -290,7 +290,7 @@ namespace OnlineStore.DoubleLineClient ...@@ -290,7 +290,7 @@ namespace OnlineStore.DoubleLineClient
private void btnSw1Location_Click(object sender, EventArgs e) private void btnSw1Location_Click(object sender, EventArgs e)
{ {
// BtnMove(btnSw1Location, "工位2顶升下降", "工位2顶升上升", IO_Type.S2_TopCylinderUp, IO_Type.S2_TopCylinderDown); BtnMove(btnNGCylinder, "右侧升降机下降", "右侧升降机上升", IO_Type.R_Updown_Up, IO_Type.R_Updown_Down);
} }
private void btnSw4Location_Click(object sender, EventArgs e) private void btnSw4Location_Click(object sender, EventArgs e)
......
...@@ -89,7 +89,7 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -89,7 +89,7 @@ namespace OnlineStore.LoadCSVLibrary
/// <summary> /// <summary>
/// DI,上料位前反阻挡检测,S1_StopCheck1,15,PRO_AOI_IP_1,0,上料位前反阻挡检测,X16,X16,0 /// DI,上料位前反阻挡检测,S1_StopCheck1,15,PRO_AOI_IP_1,0,上料位前反阻挡检测,X16,X16,0
/// </summary> /// </summary>
public static string S1_StopCheck1 = "M_RightStopCheck"; public static string S1_StopCheck1 = "S1_StopCheck1";
/// <summary> /// <summary>
...@@ -168,25 +168,25 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -168,25 +168,25 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary> /// </summary>
public static string S1_StopCheck4 = "S1_StopCheck4"; public static string S1_StopCheck4 = "S1_StopCheck4";
/// <summary> /// <summary>
///DI,上料位后阻挡检测,S2_StopCheck1,3,PRO_AOI_IP_2,0,上料位后阻挡检测,X24,X24,0 ///DI,上料位后阻挡检测,S1_StopCheck5,3,PRO_AOI_IP_2,0,上料位后阻挡检测,X24,X24,0
/// </summary> /// </summary>
public static string S2_StopCheck1 = "S2_StopCheck1"; public static string S1_StopCheck5 = "S1_StopCheck5";
///// <summary> ///// <summary>
/////DI,上料工位顶升上升端1,S1_TopCylinderUp,4,PRO_AOI_IP_2,0,上料工位顶升上升端1,X25,X25,0 /////DI,上料工位顶升上升端1,S1_TopCylinderUp1,4,PRO_AOI_IP_2,0,上料工位顶升上升端1,X25,X25,0
///// </summary> ///// </summary>
public static string S1_TopCylinderUp = "S1_TopCylinderUp"; public static string S1_TopCylinderUp1 = "S1_TopCylinderUp1";
/// <summary> /// <summary>
///DI,上料工位顶升下降端1,S1_TopCylinderDown,5,PRO_AOI_IP_2,0,上料工位顶升下降端1,X26,X26,0 ///DI,上料工位顶升下降端1,S1_TopCylinderDown1,5,PRO_AOI_IP_2,0,上料工位顶升下降端1,X26,X26,0
/// </summary> /// </summary>
public static string S1_TopCylinderDown = "S1_TopCylinderDown"; public static string S1_TopCylinderDown1 = "S1_TopCylinderDown1";
/// <summary> /// <summary>
///DI,上料工位顶升上升端2,S2_TopCylinderUp,6,PRO_AOI_IP_2,0,上料工位顶升上升端2,X27,X27,0 ///DI,上料工位顶升上升端2,S1_TopCylinderUp2,6,PRO_AOI_IP_2,0,上料工位顶升上升端2,X27,X27,0
/// </summary> /// </summary>
public static string S2_TopCylinderUp = "S2_TopCylinderUp"; public static string S1_TopCylinderUp2 = "S1_TopCylinderUp2";
/// <summary> /// <summary>
///DI,上料工位顶升下降端2,S2_TopCylinderDown,7,PRO_AOI_IP_2,0,上料工位顶升下降端2,X28,X28,0 ///DI,上料工位顶升下降端2,S1_TopCylinderDown2,7,PRO_AOI_IP_2,0,上料工位顶升下降端2,X28,X28,0
/// <summary> /// <summary>
public static string S2_TopCylinderDown = "S2_TopCylinderDown"; public static string S1_TopCylinderDown2 = "S1_TopCylinderDown2";
/// <summary> /// <summary>
///DI,J1接驳台有料检测,ABB1_TrayCheck,8,PRO_AOI_IP_2,0,J1接驳台有料检测,X29,X29,0 ///DI,J1接驳台有料检测,ABB1_TrayCheck,8,PRO_AOI_IP_2,0,J1接驳台有料检测,X29,X29,0
/// </summary> /// </summary>
...@@ -282,9 +282,9 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -282,9 +282,9 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary> /// </summary>
public static string S1_StopCylinder4 = "S1_StopCylinder4"; public static string S1_StopCylinder4 = "S1_StopCylinder4";
/// <summary> /// <summary>
///DO,上料位后阻挡下降,S2_StopCylinder1,15,PRO_AOI_IP_2,0,上料位后阻挡下降,Y36,Y36,0 ///DO,上料位后阻挡下降,S1_StopCylinder5,15,PRO_AOI_IP_2,0,上料位后阻挡下降,Y36,Y36,0
/// </summary> /// </summary>
public static string S2_StopCylinder1 = "S2_StopCylinder1"; public static string S1_StopCylinder5 = "S1_StopCylinder5";
#endregion #endregion
#region PRO_AOI_IP_3 #region PRO_AOI_IP_3
...@@ -314,11 +314,11 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -314,11 +314,11 @@ namespace OnlineStore.LoadCSVLibrary
/// <summary> /// <summary>
/// DO,上料工位顶升上升,S1_TopCylinderUp,0,PRO_AOI_IP_3,0,上料工位顶升上升,Y41,Y41,0 /// DO,上料工位顶升上升,S1_TopCylinderUp,0,PRO_AOI_IP_3,0,上料工位顶升上升,Y41,Y41,0
/// </summary> /// </summary>
//public static string S1_TopCylinderUp = "S1_TopCylinderUp"; public static string S1_TopCylinderUp = "S1_TopCylinderUp";
/// <summary> /// <summary>
/// DO,上料工位顶升下降,S1_TopCylinderDown,1,PRO_AOI_IP_3,0,上料工位顶升下降,Y42,Y42,0 /// DO,上料工位顶升下降,S1_TopCylinderDown,1,PRO_AOI_IP_3,0,上料工位顶升下降,Y42,Y42,0
/// </summary> /// </summary>
//public static string S1_TopCylinderDown = "S1_TopCylinderDown"; public static string S1_TopCylinderDown = "S1_TopCylinderDown";
/// <summary> /// <summary>
///DO,右下层线体阻挡1下降,R_StopCylinder1,2,PRO_AOI_IP_3,0,右下层线体阻挡1下降,Y43,Y43,0 ///DO,右下层线体阻挡1下降,R_StopCylinder1,2,PRO_AOI_IP_3,0,右下层线体阻挡1下降,Y43,Y43,0
/// </summary> /// </summary>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!