From 10f06d99cd9240271f2bd7c22070037ecef06e64 Mon Sep 17 00:00:00 2001
From: XingCheng3 <1773407212@qq.com>
Date: Mon, 8 Jun 2026 17:06:10 +0800
Subject: [PATCH] =?UTF-8?q?init:=20=E5=8C=97=E8=88=AA=E5=A4=A7=E5=AD=A6BH-?=
=?UTF-8?q?DAS=E9=A1=B9=E7=9B=AE=E9=A6=96=E6=AC=A1=E5=85=A5=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.gitignore | 12 +
BH.sln | 43 +
CCYQ_JieFang/App.config | 65 +
CCYQ_JieFang/BH.csproj | 394 +
CCYQ_JieFang/BusinessCode/AppConfig.cs | 409 +
CCYQ_JieFang/BusinessCode/B_DB_Opera.cs | 268 +
CCYQ_JieFang/BusinessCode/DispatchSql.cs | 31 +
CCYQ_JieFang/BusinessCode/Heartbeat.cs | 26 +
CCYQ_JieFang/BusinessCode/MIS_Funtion.cs | 196 +
CCYQ_JieFang/BusinessCode/MesRead.cs | 144 +
CCYQ_JieFang/BusinessCode/PLC_State.cs | 26 +
CCYQ_JieFang/BusinessCode/WorkStart.cs | 37 +
CCYQ_JieFang/Core/ExecSqlServer.cs | 28 +
CCYQ_JieFang/Core/LogRecord.Designer.cs | 222 +
CCYQ_JieFang/Core/LogRecord.cs | 144 +
CCYQ_JieFang/Core/LogRecord.resx | 135 +
CCYQ_JieFang/Core/Remote.Receive.cs | 45 +
CCYQ_JieFang/Core/TagTypeCodeID.cs | 466 +
CCYQ_JieFang/MW.OnStart.cs | 22 +
CCYQ_JieFang/MesWork.Designer.cs | 181 +
CCYQ_JieFang/MesWork.cs | 224 +
CCYQ_JieFang/MesWork.resx | 472 +
CCYQ_JieFang/OP/AgvTest.Designer.cs | 256 +
CCYQ_JieFang/OP/AgvTest.cs | 688 +
CCYQ_JieFang/OP/AgvTest.resx | 120 +
CCYQ_JieFang/OP/MeasureRangeSet.Designer.cs | 181 +
CCYQ_JieFang/OP/MeasureRangeSet.cs | 121 +
CCYQ_JieFang/OP/MeasureRangeSet.resx | 162 +
CCYQ_JieFang/OP/OP10/DAS_OP10.Designer.cs | 1179 +
CCYQ_JieFang/OP/OP10/DAS_OP10.cs | 654 +
CCYQ_JieFang/OP/OP10/DAS_OP10.resx | 144 +
CCYQ_JieFang/OP/OP20/DAS_OP20.Designer.cs | 1064 +
CCYQ_JieFang/OP/OP20/DAS_OP20.cs | 648 +
CCYQ_JieFang/OP/OP20/DAS_OP20.resx | 144 +
CCYQ_JieFang/OP/OP30/DAS_OP30.Designer.cs | 610 +
CCYQ_JieFang/OP/OP30/DAS_OP30.cs | 626 +
CCYQ_JieFang/OP/OP30/DAS_OP30.resx | 144 +
CCYQ_JieFang/OP/OP40/DAS_OP40.Designer.cs | 1002 +
CCYQ_JieFang/OP/OP40/DAS_OP40.cs | 648 +
CCYQ_JieFang/OP/OP40/DAS_OP40.resx | 144 +
CCYQ_JieFang/OP/OP50/DAS_OP50.Designer.cs | 1179 +
CCYQ_JieFang/OP/OP50/DAS_OP50.cs | 654 +
CCYQ_JieFang/OP/OP50/DAS_OP50.resx | 144 +
CCYQ_JieFang/OP/logInfo.Designer.cs | 171 +
CCYQ_JieFang/OP/logInfo.cs | 56 +
CCYQ_JieFang/OP/logInfo.resx | 138 +
CCYQ_JieFang/OP/partInfo.Designer.cs | 305 +
CCYQ_JieFang/OP/partInfo.cs | 79 +
CCYQ_JieFang/OP/partInfo.resx | 156 +
CCYQ_JieFang/OP/publicCore.cs | 676 +
CCYQ_JieFang/Properties/AssemblyInfo.cs | 36 +
CCYQ_JieFang/Properties/Resources.Designer.cs | 193 +
CCYQ_JieFang/Properties/Resources.resx | 160 +
CCYQ_JieFang/Properties/Settings.Designer.cs | 26 +
CCYQ_JieFang/Properties/Settings.settings | 7 +
CCYQ_JieFang/app.manifest | 79 +
CCYQ_JieFang/icon/01-微型减速机.png | Bin 0 -> 88158 bytes
CCYQ_JieFang/icon/02 涡喷发动机.png | Bin 0 -> 150169 bytes
CCYQ_JieFang/icon/03-卫星模型.png | Bin 0 -> 70659 bytes
CCYQ_JieFang/icon/04-微型减速机.png | Bin 0 -> 134860 bytes
CCYQ_JieFang/icon/05-微型减速机.png | Bin 0 -> 78766 bytes
CCYQ_JieFang/icon/OP10OP50.ico | Bin 0 -> 541 bytes
CCYQ_JieFang/icon/StartWorkCircle.gif | Bin 0 -> 38489 bytes
CCYQ_JieFang/icon/green.png | Bin 0 -> 18553 bytes
CCYQ_JieFang/icon/red.png | Bin 0 -> 18569 bytes
CCYQ_JieFang/icon/下压.gif | Bin 0 -> 2012 bytes
CCYQ_JieFang/icon/下压OK.png | Bin 0 -> 403 bytes
CCYQ_JieFang/icon/关闭系统.png | Bin 0 -> 3899 bytes
CCYQ_JieFang/icon/断开连接.png | Bin 0 -> 9934 bytes
CCYQ_JieFang/icon/连接.png | Bin 0 -> 10743 bytes
CCYQ_JieFang/webApi/AnalysisMsg.cs | 719 +
.../webApi/Controller/FSSController.cs | 67 +
.../webApi/Controller/IpcController.cs | 78 +
CCYQ_JieFang/webApi/IPC_product.cs | 126 +
CCYQ_JieFang/webApi/InitServer.cs | 68 +
CCYQ_JieFang/webApi/msgResHeader.cs | 15 +
CCYQ_JieFang/任务管理.ico | Bin 0 -> 4286 bytes
CallWebApi/03_CallWebApi.csproj | 62 +
CallWebApi/App.config | 57 +
CallWebApi/CallWebApi.cs | 205 +
CallWebApi/Program.cs | 32 +
CallWebApi/Properties/AssemblyInfo.cs | 36 +
CallWebApi/packages.config | 4 +
DK_DC_Tool/.gitignore | 43 +
DK_DC_Tool/App.config | 53 +
DK_DC_Tool/DK_DC_Tool.csproj | 104 +
DK_DC_Tool/DK_DC_Tool.sln | 25 +
DK_DC_Tool/Form1.Designer.cs | 483 +
DK_DC_Tool/Form1.cs | 812 +
DK_DC_Tool/Form1.resx | 120 +
DK_DC_Tool/Program.cs | 22 +
DK_DC_Tool/Properties/AssemblyInfo.cs | 36 +
DK_DC_Tool/Properties/Resources.Designer.cs | 63 +
DK_DC_Tool/Properties/Resources.resx | 117 +
DK_DC_Tool/Properties/Settings.Designer.cs | 26 +
DK_DC_Tool/Properties/Settings.settings | 7 +
DK_DC_Tool/Tighten.cs | 482 +
DK_DC_Tool/ToolPacket.cs | 290 +
DK_DC_Tool/packages.config | 4 +
DLL/ABB.Robotics.Controllers.PC.dll | Bin 0 -> 507672 bytes
DLL/BasicData.dll | Bin 0 -> 60416 bytes
DLL/BasicEdit.dll | Bin 0 -> 111104 bytes
DLL/BouncyCastle.Crypto.dll | Bin 0 -> 2740824 bytes
DLL/ConLink.dll | Bin 0 -> 5154816 bytes
DLL/ConLink19.dll | Bin 0 -> 932864 bytes
DLL/DataLinkMesWork.dll | Bin 0 -> 224256 bytes
DLL/DoWhatPlc.dll | Bin 0 -> 11776 bytes
DLL/EnBaseM.dll | Bin 0 -> 2139136 bytes
DLL/Fanuc.Interface.dll | Bin 0 -> 3283456 bytes
DLL/Fwlib32.dll | Bin 0 -> 544768 bytes
DLL/HslCommunication.dll | Bin 0 -> 2869248 bytes
DLL/ICSharpCode.SharpZipLib.dll | Bin 0 -> 227328 bytes
DLL/MQTT.dll | Bin 0 -> 46080 bytes
DLL/MQTTnet.Extensions.ManagedClient.dll | Bin 0 -> 45568 bytes
DLL/MQTTnet.dll | Bin 0 -> 293376 bytes
DLL/MW_Log.dll | Bin 0 -> 40960 bytes
DLL/MesControl.dll | Bin 0 -> 104960 bytes
DLL/MesWork.DeviceDriver.dll | Bin 0 -> 1401344 bytes
...sions.DependencyInjection.Abstractions.dll | Bin 0 -> 36360 bytes
...rosoft.Extensions.Logging.Abstractions.dll | Bin 0 -> 46600 bytes
DLL/Microsoft.Extensions.Logging.dll | Bin 0 -> 30728 bytes
DLL/Microsoft.Extensions.Options.dll | Bin 0 -> 26120 bytes
DLL/Microsoft.Extensions.Primitives.dll | Bin 0 -> 33288 bytes
DLL/Microsoft.Win32.Primitives.dll | Bin 0 -> 21216 bytes
DLL/ModelBasic.dll | Bin 0 -> 359424 bytes
DLL/Monitor.MesWork.dll | Bin 0 -> 242688 bytes
DLL/MySql.Data.dll | Bin 0 -> 1730048 bytes
DLL/MySql.Data.xml | 17803 ++++++++++++++++
DLL/NPOI.OOXML.dll | Bin 0 -> 596480 bytes
DLL/NPOI.OpenXml4Net.dll | Bin 0 -> 98816 bytes
DLL/NPOI.OpenXmlFormats.dll | Bin 0 -> 2356224 bytes
DLL/NPOI.dll | Bin 0 -> 1882112 bytes
DLL/Nai.Communication.Robot.FanucVarProxy.dll | Bin 0 -> 81920 bytes
DLL/Newtonsoft.Json.dll | Bin 0 -> 701992 bytes
DLL/Opc.Ua.Client.dll | Bin 0 -> 123792 bytes
DLL/Opc.Ua.Configuration.dll | Bin 0 -> 67464 bytes
DLL/Opc.Ua.Core.dll | Bin 0 -> 5484944 bytes
DLL/OpcUaHelper.dll | Bin 0 -> 173056 bytes
DLL/Rhino3dm.dll | Bin 0 -> 979968 bytes
DLL/Robot.Common.dll | Bin 0 -> 16896 bytes
DLL/Robot.MessageBus.dll | Bin 0 -> 9728 bytes
DLL/RobotMapper.dll | Bin 0 -> 27136 bytes
DLL/RobotStudio.Services.RobApi.Desktop.dll | Bin 0 -> 305432 bytes
DLL/RobotStudio.Services.RobApi.dll | Bin 0 -> 361240 bytes
DLL/Robots.dll | Bin 0 -> 177152 bytes
DLL/Serilog.Extensions.Logging.dll | Bin 0 -> 17408 bytes
DLL/Serilog.dll | Bin 0 -> 126464 bytes
DLL/SqlCmd.dll | Bin 0 -> 8704 bytes
DLL/System.Net.Http.Formatting.dll | Bin 0 -> 179680 bytes
DLL/System.Net.Http.dll | Bin 0 -> 198472 bytes
...ime.InteropServices.RuntimeInformation.dll | Bin 0 -> 33256 bytes
DLL/System.Web.Cors.dll | Bin 0 -> 28648 bytes
DLL/System.Web.Http.Cors.dll | Bin 0 -> 40416 bytes
DLL/System.Web.Http.SelfHost.dll | Bin 0 -> 91112 bytes
DLL/System.Web.Http.dll | Bin 0 -> 456168 bytes
DLL/Ubiety.Dns.Core.dll | Bin 0 -> 58880 bytes
DLL/WeifenLuo.WinFormsUI.Docking.dll | Bin 0 -> 436224 bytes
DLL/Zstandard.Net.dll | Bin 0 -> 14848 bytes
DLL/fwlibe1.dll | Bin 0 -> 851968 bytes
DLL/log4net.dll | Bin 0 -> 270336 bytes
DLL/netstandard.dll | Bin 0 -> 98616 bytes
DatabaseClient/01_DatabaseClient.csproj | 134 +
DatabaseClient/App.config | 14 +
DatabaseClient/DBClient.cs | 62 +
DatabaseClient/DBClientFactory.cs | 45 +
DatabaseClient/DBClientLog4net.config | 34 +
DatabaseClient/DatabaseFactory.cs | 37 +
DatabaseClient/GlobalVar.cs | 9 +
DatabaseClient/MssqlClient.cs | 75 +
DatabaseClient/MysqlClient.cs | 126 +
DatabaseClient/Program.cs | 40 +
DatabaseClient/Properties/AssemblyInfo.cs | 38 +
DatabaseClient/SqliteClient.cs | 83 +
DatabaseClient/packages.config | 16 +
GlobalVar/07_GlobalVar.csproj | 75 +
GlobalVar/App.config | 18 +
GlobalVar/AppConfig.cs | 85 +
GlobalVar/GlobalVar.cs | 83 +
GlobalVar/Program.cs | 16 +
GlobalVar/Properties/AssemblyInfo.cs | 36 +
GlobalVar/config.json | 35 +
GlobalVar/packages.config | 5 +
MyLog4Net/01_MyLog4Net.csproj | 61 +
MyLog4Net/MyLogEventArgs.cs | 14 +
MyLog4Net/MyLogHelper.cs | 65 +
MyLog4Net/Properties/AssemblyInfo.cs | 37 +
MyLog4Net/log4net.config | 35 +
MyLog4Net/packages.config | 4 +
WebApi/02_WebApi.csproj | 115 +
WebApi/AnalysisMsg.cs | 177 +
WebApi/ApiTools.cs | 46 +
WebApi/App.config | 61 +
WebApi/Controller/IpcController.cs | 51 +
WebApi/Controller/ZSavePositionController.cs | 119 +
WebApi/Controller/ZSaveTagController.cs | 122 +
WebApi/GlobalVar.cs | 16 +
WebApi/IPC_product.cs | 26 +
WebApi/InitServer.cs | 68 +
WebApi/Program.cs | 82 +
WebApi/Properties/AssemblyInfo.cs | 39 +
WebApi/Properties/app.manifest | 75 +
WebApi/Z_Save_Position.cs | 40 +
WebApi/Z_Save_Tag.cs | 46 +
WebApi/log4net.config | 34 +
WebApi/msgResHeader.cs | 15 +
WebApi/mysql.sql | 30 +
WebApi/packages.config | 10 +
207 files changed, 40597 insertions(+)
create mode 100644 .gitignore
create mode 100644 BH.sln
create mode 100644 CCYQ_JieFang/App.config
create mode 100644 CCYQ_JieFang/BH.csproj
create mode 100644 CCYQ_JieFang/BusinessCode/AppConfig.cs
create mode 100644 CCYQ_JieFang/BusinessCode/B_DB_Opera.cs
create mode 100644 CCYQ_JieFang/BusinessCode/DispatchSql.cs
create mode 100644 CCYQ_JieFang/BusinessCode/Heartbeat.cs
create mode 100644 CCYQ_JieFang/BusinessCode/MIS_Funtion.cs
create mode 100644 CCYQ_JieFang/BusinessCode/MesRead.cs
create mode 100644 CCYQ_JieFang/BusinessCode/PLC_State.cs
create mode 100644 CCYQ_JieFang/BusinessCode/WorkStart.cs
create mode 100644 CCYQ_JieFang/Core/ExecSqlServer.cs
create mode 100644 CCYQ_JieFang/Core/LogRecord.Designer.cs
create mode 100644 CCYQ_JieFang/Core/LogRecord.cs
create mode 100644 CCYQ_JieFang/Core/LogRecord.resx
create mode 100644 CCYQ_JieFang/Core/Remote.Receive.cs
create mode 100644 CCYQ_JieFang/Core/TagTypeCodeID.cs
create mode 100644 CCYQ_JieFang/MW.OnStart.cs
create mode 100644 CCYQ_JieFang/MesWork.Designer.cs
create mode 100644 CCYQ_JieFang/MesWork.cs
create mode 100644 CCYQ_JieFang/MesWork.resx
create mode 100644 CCYQ_JieFang/OP/AgvTest.Designer.cs
create mode 100644 CCYQ_JieFang/OP/AgvTest.cs
create mode 100644 CCYQ_JieFang/OP/AgvTest.resx
create mode 100644 CCYQ_JieFang/OP/MeasureRangeSet.Designer.cs
create mode 100644 CCYQ_JieFang/OP/MeasureRangeSet.cs
create mode 100644 CCYQ_JieFang/OP/MeasureRangeSet.resx
create mode 100644 CCYQ_JieFang/OP/OP10/DAS_OP10.Designer.cs
create mode 100644 CCYQ_JieFang/OP/OP10/DAS_OP10.cs
create mode 100644 CCYQ_JieFang/OP/OP10/DAS_OP10.resx
create mode 100644 CCYQ_JieFang/OP/OP20/DAS_OP20.Designer.cs
create mode 100644 CCYQ_JieFang/OP/OP20/DAS_OP20.cs
create mode 100644 CCYQ_JieFang/OP/OP20/DAS_OP20.resx
create mode 100644 CCYQ_JieFang/OP/OP30/DAS_OP30.Designer.cs
create mode 100644 CCYQ_JieFang/OP/OP30/DAS_OP30.cs
create mode 100644 CCYQ_JieFang/OP/OP30/DAS_OP30.resx
create mode 100644 CCYQ_JieFang/OP/OP40/DAS_OP40.Designer.cs
create mode 100644 CCYQ_JieFang/OP/OP40/DAS_OP40.cs
create mode 100644 CCYQ_JieFang/OP/OP40/DAS_OP40.resx
create mode 100644 CCYQ_JieFang/OP/OP50/DAS_OP50.Designer.cs
create mode 100644 CCYQ_JieFang/OP/OP50/DAS_OP50.cs
create mode 100644 CCYQ_JieFang/OP/OP50/DAS_OP50.resx
create mode 100644 CCYQ_JieFang/OP/logInfo.Designer.cs
create mode 100644 CCYQ_JieFang/OP/logInfo.cs
create mode 100644 CCYQ_JieFang/OP/logInfo.resx
create mode 100644 CCYQ_JieFang/OP/partInfo.Designer.cs
create mode 100644 CCYQ_JieFang/OP/partInfo.cs
create mode 100644 CCYQ_JieFang/OP/partInfo.resx
create mode 100644 CCYQ_JieFang/OP/publicCore.cs
create mode 100644 CCYQ_JieFang/Properties/AssemblyInfo.cs
create mode 100644 CCYQ_JieFang/Properties/Resources.Designer.cs
create mode 100644 CCYQ_JieFang/Properties/Resources.resx
create mode 100644 CCYQ_JieFang/Properties/Settings.Designer.cs
create mode 100644 CCYQ_JieFang/Properties/Settings.settings
create mode 100644 CCYQ_JieFang/app.manifest
create mode 100644 CCYQ_JieFang/icon/01-微型减速机.png
create mode 100644 CCYQ_JieFang/icon/02 涡喷发动机.png
create mode 100644 CCYQ_JieFang/icon/03-卫星模型.png
create mode 100644 CCYQ_JieFang/icon/04-微型减速机.png
create mode 100644 CCYQ_JieFang/icon/05-微型减速机.png
create mode 100644 CCYQ_JieFang/icon/OP10OP50.ico
create mode 100644 CCYQ_JieFang/icon/StartWorkCircle.gif
create mode 100644 CCYQ_JieFang/icon/green.png
create mode 100644 CCYQ_JieFang/icon/red.png
create mode 100644 CCYQ_JieFang/icon/下压.gif
create mode 100644 CCYQ_JieFang/icon/下压OK.png
create mode 100644 CCYQ_JieFang/icon/关闭系统.png
create mode 100644 CCYQ_JieFang/icon/断开连接.png
create mode 100644 CCYQ_JieFang/icon/连接.png
create mode 100644 CCYQ_JieFang/webApi/AnalysisMsg.cs
create mode 100644 CCYQ_JieFang/webApi/Controller/FSSController.cs
create mode 100644 CCYQ_JieFang/webApi/Controller/IpcController.cs
create mode 100644 CCYQ_JieFang/webApi/IPC_product.cs
create mode 100644 CCYQ_JieFang/webApi/InitServer.cs
create mode 100644 CCYQ_JieFang/webApi/msgResHeader.cs
create mode 100644 CCYQ_JieFang/任务管理.ico
create mode 100644 CallWebApi/03_CallWebApi.csproj
create mode 100644 CallWebApi/App.config
create mode 100644 CallWebApi/CallWebApi.cs
create mode 100644 CallWebApi/Program.cs
create mode 100644 CallWebApi/Properties/AssemblyInfo.cs
create mode 100644 CallWebApi/packages.config
create mode 100644 DK_DC_Tool/.gitignore
create mode 100644 DK_DC_Tool/App.config
create mode 100644 DK_DC_Tool/DK_DC_Tool.csproj
create mode 100644 DK_DC_Tool/DK_DC_Tool.sln
create mode 100644 DK_DC_Tool/Form1.Designer.cs
create mode 100644 DK_DC_Tool/Form1.cs
create mode 100644 DK_DC_Tool/Form1.resx
create mode 100644 DK_DC_Tool/Program.cs
create mode 100644 DK_DC_Tool/Properties/AssemblyInfo.cs
create mode 100644 DK_DC_Tool/Properties/Resources.Designer.cs
create mode 100644 DK_DC_Tool/Properties/Resources.resx
create mode 100644 DK_DC_Tool/Properties/Settings.Designer.cs
create mode 100644 DK_DC_Tool/Properties/Settings.settings
create mode 100644 DK_DC_Tool/Tighten.cs
create mode 100644 DK_DC_Tool/ToolPacket.cs
create mode 100644 DK_DC_Tool/packages.config
create mode 100644 DLL/ABB.Robotics.Controllers.PC.dll
create mode 100644 DLL/BasicData.dll
create mode 100644 DLL/BasicEdit.dll
create mode 100644 DLL/BouncyCastle.Crypto.dll
create mode 100644 DLL/ConLink.dll
create mode 100644 DLL/ConLink19.dll
create mode 100644 DLL/DataLinkMesWork.dll
create mode 100644 DLL/DoWhatPlc.dll
create mode 100644 DLL/EnBaseM.dll
create mode 100644 DLL/Fanuc.Interface.dll
create mode 100644 DLL/Fwlib32.dll
create mode 100644 DLL/HslCommunication.dll
create mode 100644 DLL/ICSharpCode.SharpZipLib.dll
create mode 100644 DLL/MQTT.dll
create mode 100644 DLL/MQTTnet.Extensions.ManagedClient.dll
create mode 100644 DLL/MQTTnet.dll
create mode 100644 DLL/MW_Log.dll
create mode 100644 DLL/MesControl.dll
create mode 100644 DLL/MesWork.DeviceDriver.dll
create mode 100644 DLL/Microsoft.Extensions.DependencyInjection.Abstractions.dll
create mode 100644 DLL/Microsoft.Extensions.Logging.Abstractions.dll
create mode 100644 DLL/Microsoft.Extensions.Logging.dll
create mode 100644 DLL/Microsoft.Extensions.Options.dll
create mode 100644 DLL/Microsoft.Extensions.Primitives.dll
create mode 100644 DLL/Microsoft.Win32.Primitives.dll
create mode 100644 DLL/ModelBasic.dll
create mode 100644 DLL/Monitor.MesWork.dll
create mode 100644 DLL/MySql.Data.dll
create mode 100644 DLL/MySql.Data.xml
create mode 100644 DLL/NPOI.OOXML.dll
create mode 100644 DLL/NPOI.OpenXml4Net.dll
create mode 100644 DLL/NPOI.OpenXmlFormats.dll
create mode 100644 DLL/NPOI.dll
create mode 100644 DLL/Nai.Communication.Robot.FanucVarProxy.dll
create mode 100644 DLL/Newtonsoft.Json.dll
create mode 100644 DLL/Opc.Ua.Client.dll
create mode 100644 DLL/Opc.Ua.Configuration.dll
create mode 100644 DLL/Opc.Ua.Core.dll
create mode 100644 DLL/OpcUaHelper.dll
create mode 100644 DLL/Rhino3dm.dll
create mode 100644 DLL/Robot.Common.dll
create mode 100644 DLL/Robot.MessageBus.dll
create mode 100644 DLL/RobotMapper.dll
create mode 100644 DLL/RobotStudio.Services.RobApi.Desktop.dll
create mode 100644 DLL/RobotStudio.Services.RobApi.dll
create mode 100644 DLL/Robots.dll
create mode 100644 DLL/Serilog.Extensions.Logging.dll
create mode 100644 DLL/Serilog.dll
create mode 100644 DLL/SqlCmd.dll
create mode 100644 DLL/System.Net.Http.Formatting.dll
create mode 100644 DLL/System.Net.Http.dll
create mode 100644 DLL/System.Runtime.InteropServices.RuntimeInformation.dll
create mode 100644 DLL/System.Web.Cors.dll
create mode 100644 DLL/System.Web.Http.Cors.dll
create mode 100644 DLL/System.Web.Http.SelfHost.dll
create mode 100644 DLL/System.Web.Http.dll
create mode 100644 DLL/Ubiety.Dns.Core.dll
create mode 100644 DLL/WeifenLuo.WinFormsUI.Docking.dll
create mode 100644 DLL/Zstandard.Net.dll
create mode 100644 DLL/fwlibe1.dll
create mode 100644 DLL/log4net.dll
create mode 100644 DLL/netstandard.dll
create mode 100644 DatabaseClient/01_DatabaseClient.csproj
create mode 100644 DatabaseClient/App.config
create mode 100644 DatabaseClient/DBClient.cs
create mode 100644 DatabaseClient/DBClientFactory.cs
create mode 100644 DatabaseClient/DBClientLog4net.config
create mode 100644 DatabaseClient/DatabaseFactory.cs
create mode 100644 DatabaseClient/GlobalVar.cs
create mode 100644 DatabaseClient/MssqlClient.cs
create mode 100644 DatabaseClient/MysqlClient.cs
create mode 100644 DatabaseClient/Program.cs
create mode 100644 DatabaseClient/Properties/AssemblyInfo.cs
create mode 100644 DatabaseClient/SqliteClient.cs
create mode 100644 DatabaseClient/packages.config
create mode 100644 GlobalVar/07_GlobalVar.csproj
create mode 100644 GlobalVar/App.config
create mode 100644 GlobalVar/AppConfig.cs
create mode 100644 GlobalVar/GlobalVar.cs
create mode 100644 GlobalVar/Program.cs
create mode 100644 GlobalVar/Properties/AssemblyInfo.cs
create mode 100644 GlobalVar/config.json
create mode 100644 GlobalVar/packages.config
create mode 100644 MyLog4Net/01_MyLog4Net.csproj
create mode 100644 MyLog4Net/MyLogEventArgs.cs
create mode 100644 MyLog4Net/MyLogHelper.cs
create mode 100644 MyLog4Net/Properties/AssemblyInfo.cs
create mode 100644 MyLog4Net/log4net.config
create mode 100644 MyLog4Net/packages.config
create mode 100644 WebApi/02_WebApi.csproj
create mode 100644 WebApi/AnalysisMsg.cs
create mode 100644 WebApi/ApiTools.cs
create mode 100644 WebApi/App.config
create mode 100644 WebApi/Controller/IpcController.cs
create mode 100644 WebApi/Controller/ZSavePositionController.cs
create mode 100644 WebApi/Controller/ZSaveTagController.cs
create mode 100644 WebApi/GlobalVar.cs
create mode 100644 WebApi/IPC_product.cs
create mode 100644 WebApi/InitServer.cs
create mode 100644 WebApi/Program.cs
create mode 100644 WebApi/Properties/AssemblyInfo.cs
create mode 100644 WebApi/Properties/app.manifest
create mode 100644 WebApi/Z_Save_Position.cs
create mode 100644 WebApi/Z_Save_Tag.cs
create mode 100644 WebApi/log4net.config
create mode 100644 WebApi/msgResHeader.cs
create mode 100644 WebApi/mysql.sql
create mode 100644 WebApi/packages.config
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b48f252
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,12 @@
+.vs/
+packages/
+bin/
+obj/
+*.user
+*.suo
+*.cache
+*.log
+*.zip
+*.rar
+*.7z
+_system~.ini
diff --git a/BH.sln b/BH.sln
new file mode 100644
index 0000000..f196570
--- /dev/null
+++ b/BH.sln
@@ -0,0 +1,43 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.5.33516.290
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BH", "CCYQ_JieFang\BH.csproj", "{A8D0B4EF-E223-4B9A-B2D9-0156B7B8B073}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01_MyLog4Net", "MyLog4Net\01_MyLog4Net.csproj", "{1DC48C83-1842-4DE8-ACAF-26E1E7F7C58F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "03_CallWebApi", "CallWebApi\03_CallWebApi.csproj", "{727A1B50-D83A-4319-BDF6-E923F4BD41B3}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DK_DC_Tool", "DK_DC_Tool\DK_DC_Tool.csproj", "{3C6FEF50-2014-4157-A12B-93FB4AD20FE7}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {A8D0B4EF-E223-4B9A-B2D9-0156B7B8B073}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A8D0B4EF-E223-4B9A-B2D9-0156B7B8B073}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A8D0B4EF-E223-4B9A-B2D9-0156B7B8B073}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A8D0B4EF-E223-4B9A-B2D9-0156B7B8B073}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1DC48C83-1842-4DE8-ACAF-26E1E7F7C58F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1DC48C83-1842-4DE8-ACAF-26E1E7F7C58F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1DC48C83-1842-4DE8-ACAF-26E1E7F7C58F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1DC48C83-1842-4DE8-ACAF-26E1E7F7C58F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {727A1B50-D83A-4319-BDF6-E923F4BD41B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {727A1B50-D83A-4319-BDF6-E923F4BD41B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {727A1B50-D83A-4319-BDF6-E923F4BD41B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {727A1B50-D83A-4319-BDF6-E923F4BD41B3}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3C6FEF50-2014-4157-A12B-93FB4AD20FE7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3C6FEF50-2014-4157-A12B-93FB4AD20FE7}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3C6FEF50-2014-4157-A12B-93FB4AD20FE7}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3C6FEF50-2014-4157-A12B-93FB4AD20FE7}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {9338DC32-EA20-43C9-9073-F048C086886F}
+ EndGlobalSection
+EndGlobal
diff --git a/CCYQ_JieFang/App.config b/CCYQ_JieFang/App.config
new file mode 100644
index 0000000..22488ae
--- /dev/null
+++ b/CCYQ_JieFang/App.config
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/BH.csproj b/CCYQ_JieFang/BH.csproj
new file mode 100644
index 0000000..4d06e01
--- /dev/null
+++ b/CCYQ_JieFang/BH.csproj
@@ -0,0 +1,394 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {A8D0B4EF-E223-4B9A-B2D9-0156B7B8B073}
+ WinExe
+ CCYQ_JieFang
+ BH-DAS
+ v4.8
+ 512
+ true
+ true
+ publish\
+ true
+ Disk
+ false
+ Foreground
+ 7
+ Days
+ false
+ false
+ true
+ 0
+ 1.0.0.%2a
+ false
+ false
+ true
+
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+ 任务管理.ico
+
+
+
+ app.manifest
+
+
+
+ ..\DLL\BasicData.dll
+
+
+ False
+ ..\DLL\BouncyCastle.Crypto.dll
+
+
+ False
+ ..\DLL\ConLink.dll
+
+
+ ..\DLL\ConLink19.dll
+
+
+ ..\DLL\DataLinkMesWork.dll
+
+
+ ..\DLL\Fanuc.Interface.dll
+
+
+ False
+ ..\DLL\ICSharpCode.SharpZipLib.dll
+
+
+ False
+ ..\DLL\MesControl.dll
+
+
+ False
+ ..\DLL\MesWork.DeviceDriver.dll
+
+
+ False
+ ..\DLL\MesWork.PLC.dll
+
+
+ False
+ ..\DLL\Monitor.MesWork.dll
+
+
+ False
+ ..\DLL\MQTTnet.dll
+
+
+ False
+ ..\DLL\MQTTnet.Extensions.ManagedClient.dll
+
+
+ ..\DLL\MySql.Data.dll
+
+
+ False
+ ..\DLL\NPOI.dll
+
+
+ False
+ ..\DLL\NPOI.OOXML.dll
+
+
+ False
+ ..\DLL\NPOI.OpenXml4Net.dll
+
+
+ False
+ ..\DLL\NPOI.OpenXmlFormats.dll
+
+
+ False
+ ..\DLL\Opc.Ua.Client.dll
+
+
+ False
+ ..\DLL\Opc.Ua.Configuration.dll
+
+
+ False
+ ..\DLL\Opc.Ua.Core.dll
+
+
+ False
+ ..\DLL\OpcUaHelper.dll
+
+
+ False
+ ..\DLL\SqlCmd.dll
+
+
+
+
+
+ ..\DLL\System.Net.Http.Formatting.dll
+
+
+ ..\DLL\System.Web.Cors.dll
+
+
+
+ ..\DLL\System.Web.Http.dll
+
+
+ ..\DLL\System.Web.Http.Cors.dll
+
+
+ ..\DLL\System.Web.Http.SelfHost.dll
+
+
+
+
+
+
+
+
+
+
+
+ False
+ ..\DLL\Ubiety.Dns.Core.dll
+
+
+ ..\DLL\WeifenLuo.WinFormsUI.Docking.dll
+
+
+
+
+ Form
+
+
+ logInfo.cs
+
+
+ Form
+
+
+ DAS_OP20.cs
+
+
+ Form
+
+
+ DAS_OP30.cs
+
+
+ Form
+
+
+ DAS_OP40.cs
+
+
+ Form
+
+
+ DAS_OP50.cs
+
+
+ Form
+
+
+ AgvTest.cs
+
+
+ Form
+
+
+ MeasureRangeSet.cs
+
+
+ Form
+
+
+ partInfo.cs
+
+
+
+
+
+
+
+
+ Form
+
+
+ MesWork.cs
+
+
+ Form
+
+
+ DAS_OP10.cs
+
+
+
+
+
+
+ Form
+
+
+ LogRecord.cs
+
+
+
+ Form
+
+
+
+
+
+
+
+
+
+
+ LogRecord.cs
+
+
+ logInfo.cs
+
+
+ MesWork.cs
+ Designer
+
+
+ DAS_OP10.cs
+
+
+ DAS_OP20.cs
+
+
+ DAS_OP30.cs
+
+
+ DAS_OP40.cs
+
+
+ DAS_OP50.cs
+
+
+ AgvTest.cs
+
+
+ MeasureRangeSet.cs
+
+
+ partInfo.cs
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+ True
+ Resources.resx
+ True
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ False
+ Microsoft .NET Framework 4.6.1 %28x86 和 x64%29
+ true
+
+
+ False
+ .NET Framework 3.5 SP1
+ false
+
+
+
+
+ 1.2.0
+
+
+ 13.0.1
+
+
+ 2.1.0
+
+
+ 1.0.3
+
+
+ 2.5.2
+
+
+ 1.1.10
+
+
+ 3.1.0
+
+
+
+
+ {3c6fef50-2014-4157-a12b-93fb4ad20fe7}
+ DK_DC_Tool
+
+
+ {1dc48c83-1842-4de8-acaf-26e1e7f7c58f}
+ 01_MyLog4Net
+
+
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/BusinessCode/AppConfig.cs b/CCYQ_JieFang/BusinessCode/AppConfig.cs
new file mode 100644
index 0000000..e6086d9
--- /dev/null
+++ b/CCYQ_JieFang/BusinessCode/AppConfig.cs
@@ -0,0 +1,409 @@
+using CCYQ_JieFang;
+using DeviceDriver_BasicData;
+using DK_DC_Tool;
+using NJ_ZC;
+using OpcBasic;
+using System;
+using System.Collections;
+using System.Collections.Concurrent;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Diagnostics;
+using System.IO;
+using System.Threading;
+using System.Windows.Forms;
+using SystemFramework;
+using static System.Configuration.ConfigurationManager;
+
+namespace MesWork
+{
+ public partial class Temp {
+ public static MesWorkForm mesWorkForm = null;
+ public static DAS_OP10 mesWorkForm1 = null;
+ public static DAS_OP20 mesWorkForm2 = null;
+ public static DAS_OP30 mesWorkForm3 = null;
+ public static DAS_OP40 mesWorkForm4 = null;
+ public static DAS_OP50 mesWorkForm5 = null;
+ }
+ public partial class MesWorkForm
+ {
+ public static string BasicDataTableFile = AppSettings["BasicDataTableFile"];
+ public static int IsDemoMesServer = Convert.ToInt32(AppSettings["IsDemoMesServer"]);
+ public static int IsWriteMonitorLog = Convert.ToInt32(AppSettings["IsWriteMonitorLog"]);
+
+ public static string ConnectionString = AppSettings["ConnectionString"];
+
+ public static string MesServer_IpPortName = AppSettings["MesServer_IpPortName"];
+ public static string MesServer_SendProtocol = AppSettings["MesServer_SendProtocol"];
+ public static string MesServer_SendTagProtocol = AppSettings["MesServer_SendTagProtocol"];
+ public static string MesServer_SendTagProtocol_MES = AppSettings["MesServer_SendTagProtocol_MES"];
+
+ //
+ public static string MeasureDataString = AppSettings["MeasureDataString"];
+ public static string ProgramDataString = AppSettings["ProgramDataString"];
+
+ public static string WebSvrUrlPort = AppSettings["WebSvrUrlPort"];
+
+
+ public static string ResponseEnterOrLeaveUrl = AppSettings["ResponseEnterOrLeaveUrl"];
+ public static string FinishCallUrl = AppSettings["FinishCallUrl"];
+ public static string DeviceStatusUrl = AppSettings["DeviceStatusUrl"];
+
+ public static string IPC_product = AppSettings["IPC_product"];
+ public static string IPC_RequestEnterOrLeave = AppSettings["IPC_RequestEnterOrLeave"];
+ public static string IPC_WorkFinsih = AppSettings["IPC_WorkFinsih"];
+
+ // MQTT
+ // public static int connectType = Convert.ToInt32(AppSettings["connectType"]);
+ // public static string MqttUrl = AppSettings["MqttUrl"];
+ // public static string MqttTargetTopic = AppSettings["MqttTargetTopic"];
+
+ public static int TimerUpdateSql = Convert.ToInt32(AppSettings["TimerUpdateSql"]);
+ public static int StationStatus_Interval_Read = Convert.ToInt32(AppSettings["StationStatus_Interval_Read"]);
+ public static int StationStatus_Interval_Update = Convert.ToInt32(AppSettings["StationStatus_Interval_Update"]);
+ public static int StationStatus_Interval_Insert = Convert.ToInt32(AppSettings["StationStatus_Interval_Insert"]);
+
+ public static int ExecSql_Interval = Convert.ToInt32(AppSettings["ExecSql_Interval"]);
+
+ public static string IsLogFilePath = AppSettings["IsLogFilePath"];
+ public static string LogFilePath = AppSettings["LogFilePath"];
+ public static string IpcConfigPath = AppSettings["IpcConfigPath"];
+
+ private static StreamWriter streamWriter;
+ ///
+ ///
+ ///
+ public static ConcurrentQueue taskSql = new ConcurrentQueue();
+ ///
+ ///
+ ///
+ public static string StationName = "DDV";
+ ///
+ ///
+ ///
+ public static DataTable dt_Robot = null;
+ ///
+ ///
+ ///
+ public static DataTable dt_EEM = null;
+ ///
+ ///
+ ///
+ public static DataTable dt_EEM_PLC = null;
+ ///
+ ///
+ ///
+ public static DataTable dt_CNC = null;
+ ///
+ ///
+ ///
+ public static DataTable dt_pmc = null;
+ ///
+ ///
+ ///
+ public static DataTable dt_pmc_Simplify = null;
+ ///
+ ///
+ ///
+ public static DataTable dt_PLC_Data = null;
+ ///
+ ///
+ ///
+ public static Hashtable ht_PLM_Old = new Hashtable();
+ ///
+ ///
+ ///
+ public static Hashtable ht_PLM_Curr = new Hashtable();
+ ///
+ ///
+ ///
+ public static Hashtable ht_OpName_Status = new Hashtable();
+ ///
+ ///
+ ///
+ public static Hashtable ht_OpName_PMCReadTagIDArray = new Hashtable();
+ ///
+ /// ݵб仯
+ ///
+ ///
+ ///
+ public override void OPCTagData_TagDataOnChangeMIS(object sender, CustomeEvetnArgs e)
+ {
+ ThreadPool.QueueUserWorkItem(MIS_Funtion, e);
+ }
+
+
+ public void Tighten_E_ScanContent(string hex_str, string raw_str)
+ {
+ ThreadPool.QueueUserWorkItem(MIS_Tighten, new TightenParam
+ {
+ hex = hex_str ,
+ raw = raw_str
+ });
+ }
+ ///
+ /// ʱPLC״̬ڣ3 s
+ ///
+ ///
+ ///
+ public override void PlcStateEvent(object sender, PlcStateEvetnArgs eState)
+ {
+
+ }
+
+ public static string currentOpName = "";
+ ///
+ ///
+ ///
+ [STAThread]
+ static void Main()
+ {
+
+ new System.Threading.Mutex(true, "Device Data SCADA", out bool bCanRun);
+ if (!bCanRun)
+ {
+ MessageBox.Show("豸ݲɼ ѾУظ");
+ return;
+ }
+
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(Temp.mesWorkForm = new MesWorkForm());
+
+ }
+
+ ///
+ /// дȡ
+ ///
+ ///
+ ///
+ private void DemoRead(string doWhat, string opOrIp)
+ {
+ try
+ {
+ string opName = "OP1010";
+ object tagValue = 1;
+ bool result = false;
+ ConcurrentDictionary tagAdrListTagFormat = null;
+
+ switch (doWhat)
+ {
+ case "TagID":
+ tagValue = ReadPLC("71010001");
+ result = WritePLC("71010001", tagValue);
+ break;
+ case "TagTypeCodeID":
+ tagValue = ReadPLC(10, opName);
+ result = WritePLC(10, opName, tagValue);
+ break;
+ //case "Cmd":
+ // tagValue = ReadPLC((int)EnumTagTypeCodeID.EngineID, opName);
+ // result = WritePLC((int)EnumTagTypeCodeID.EngineID, opName, tagValue);
+ // break;
+ case "OpAllTag"://OPе
+ tagAdrListTagFormat = ReadPLC_GroupData(opOrIp);
+ break;
+ case "OpMonitorTag"://OPص
+ tagAdrListTagFormat = ReadPLC_GroupMonitor(opOrIp);
+ break;
+ case "IpAllTag"://IPе
+ tagAdrListTagFormat = ReadPLC_IpTag(opOrIp);
+ break;
+ case "IpMonitorTag"://IPص
+ tagAdrListTagFormat = ReadPLC_IpMonitorTag(opOrIp);
+ break;
+ case "RegionRead"://ȡʼַ + ȣ
+ {
+ string tagStartAdr = "DB411.10";
+ ushort tagAdrListMaxLength = 100;
+ GetDbAndMaxLengthByOpName(opOrIp, out tagStartAdr, out tagAdrListMaxLength);
+ tagAdrListTagFormat = ReadQualityDataList(opOrIp, tagStartAdr, tagAdrListMaxLength);
+ }
+ break;
+ case "ReadBytes"://ȡʼַ + ȣ
+ {
+ string tagStartAdr = "DB411.10";
+ ushort tagAdrListMaxLength = 100;
+ var bates1 = ReadByteData_Op(opOrIp, tagStartAdr, tagAdrListMaxLength);
+ var bates2 = ReadByteData_Ip(opOrIp, tagStartAdr, tagAdrListMaxLength);
+ }
+ break;
+ case "WriteBytes"://ȡʼַ + ȣ
+ {
+ string tagStartAdr = "DB411.10";
+ var result1 = WritePLC_Bytes_Op(opOrIp, tagStartAdr, new byte[1024]);
+ var result2 = WritePLC_Bytes_Ip(opOrIp, tagStartAdr, new byte[1024]);
+ }
+ break;
+ default:
+ break;
+ }
+ //ReadByteData_Op(string opName, string startAdrr, ushort length)
+ foreach (System.Collections.Generic.KeyValuePair de in tagAdrListTagFormat)//õλصϣ
+ {
+ TagFormat TF = (TagFormat)de.Value;
+ string recResult = TF.OpName + " (" + TF.TagTypeCodeID + ")" + TF.TagValue.ToString(); ;
+ }
+ }
+ catch (System.Exception err)
+ {
+ ApplicationLog.WriteLog("listView_ShowQualityData_Init" + err);
+ }
+
+ }
+
+ public string Hello_You_All_Never_Know(string[] args)
+ {
+ return Guid.NewGuid().ToString()+ Guid.NewGuid().ToString();
+ }
+
+
+ private void Button1_Click(object sender, System.EventArgs e)
+ {
+ ConcurrentDictionary tagTypeCodeIDList = DriverCache[CacheType.Cache_OpTagTypeCodeIDList];
+ }
+
+
+ public static void SavePrintLog(int type, string message)
+ {
+ try
+ {
+ if (IsLogFilePath == "0") return;
+ string directPath = LogFilePath.Trim();
+ if (!Directory.Exists(directPath)) //жļǷڣ
+ {
+ Directory.CreateDirectory(directPath);
+ }
+ directPath += string.Format(@"\{0}.log", DateTime.Now.ToString("yyyy-MM-dd"));
+ if (streamWriter == null)
+ {
+ streamWriter = !File.Exists(directPath) ? File.CreateText(directPath) : File.AppendText(directPath); //жļǷӡ
+ }
+ streamWriter.WriteLine("***********************************************************************");
+ streamWriter.WriteLine(DateTime.Now.ToString("HH:mm:ss"));
+ if (message != null)
+ {
+ if (type == 0)
+ {
+ streamWriter.WriteLine("¼Ϣ\r\n" + message);
+ }
+ else
+ {
+ streamWriter.WriteLine("쳣Ϣ\r\n" + message);
+ }
+ }
+ }
+ finally
+ {
+ if (streamWriter != null)
+ {
+ streamWriter.Flush();
+ streamWriter.Dispose();
+ streamWriter = null;
+ }
+ }
+ }
+
+
+ static private void Loop()
+ {
+ while (true)
+ {
+ taskSql.TryDequeue(out ParamT tp);
+ if (tp != null)
+ {
+ var procedureName = tp.procedureName;
+ var sqlParameter = tp.sqlParameter;
+ DataLinkMesWork.SQLCommon.ExecuteStoredProcedure(procedureName, MesWorkForm.ConnectionString, ref sqlParameter, out string errorMessage);
+ if (errorMessage.Length > 0)
+ {
+ errorMessage = errorMessage.Replace("'","**");
+ LogRecord.LogRecord.Insert_Log(LogRecord.LogRecord.Type_Log.Alarm, errorMessage);
+ }
+ }
+ if (taskSql.Count < 5)
+ {
+ Thread.Sleep(15);
+ }
+ }
+ }
+
+
+ private void DatatableCol_Simplify(DataTable dt_pmc)
+ {
+ dt_pmc_Simplify = new DataTable();
+ dt_pmc_Simplify.Columns.Add("TagID");
+ dt_pmc_Simplify.Columns.Add("TagName");
+ dt_pmc_Simplify.Columns.Add("TagValue");
+ dt_pmc_Simplify.Columns.Add("λ");
+ dt_pmc_Simplify.Columns.Add("Դ");
+ dt_pmc_Simplify.Columns.Add("IP");
+ dt_pmc_Simplify.Columns.Add("TagTypeID");
+ dt_pmc_Simplify.Columns.Add("TagLong");
+ dt_pmc_Simplify.Columns.Add("DbName");
+ dt_pmc_Simplify.Columns.Add("");
+ dt_pmc_Simplify.Columns.Add("ַ");
+ dt_pmc_Simplify.Columns.Add("");
+ dt_pmc_Simplify.Columns.Add("λ");
+ dt_pmc_Simplify.Columns.Add("ʹ");
+ dt_pmc_Simplify.Columns.Add("");
+ dt_pmc_Simplify.Columns.Add("Ƿ");
+ dt_pmc_Simplify.Columns.Add("Ƿ");
+
+ var dt_pmcT = dt_pmc.Copy();
+
+ for (int i = 0; i < dt_pmcT.Rows.Count; i++)
+ {
+ var TagID = dt_pmcT.Rows[i]["TagID"].ToString();
+ var TagName = dt_pmcT.Rows[i]["TagName"].ToString();
+ var TagValue = "0";
+ var λ = dt_pmcT.Rows[i]["λ"].ToString();
+ var Դ = dt_pmcT.Rows[i]["Դ"].ToString();
+ var IP = dt_pmcT.Rows[i]["IP"].ToString();
+ var TagTypeID = dt_pmcT.Rows[i]["TagTypeID"].ToString();
+ var TagLong = dt_pmcT.Rows[i]["TagLong"].ToString();
+ var DbName = dt_pmcT.Rows[i]["DbName"].ToString();
+ var = dt_pmcT.Rows[i][""].ToString();
+ var ַ = dt_pmcT.Rows[i]["ַ"].ToString();
+ var = dt_pmcT.Rows[i][""].ToString();
+ var λ = dt_pmcT.Rows[i]["λ"].ToString();
+ var ʹ = dt_pmcT.Rows[i]["ʹ"].ToString();
+ var = dt_pmcT.Rows[i][""].ToString();
+ var Ƿ = dt_pmcT.Rows[i]["Ƿ"].ToString();
+ var Ƿ = dt_pmcT.Rows[i]["Ƿ"].ToString();
+
+ ht_PLM_Old.Add(TagID, "0");
+
+ dt_pmc_Simplify.Rows.Add(
+ TagID,
+ TagName,
+ TagValue,
+ λ ,
+ Դ ,
+ IP ,
+ TagTypeID ,
+ TagLong ,
+ DbName ,
+ ,
+ ַ ,
+ ,
+ λ,
+ ʹ,
+ ,
+ Ƿ,
+ Ƿ
+ );
+
+
+
+ }
+
+
+
+
+
+ }
+
+ }
+}
diff --git a/CCYQ_JieFang/BusinessCode/B_DB_Opera.cs b/CCYQ_JieFang/BusinessCode/B_DB_Opera.cs
new file mode 100644
index 0000000..71e2ebd
--- /dev/null
+++ b/CCYQ_JieFang/BusinessCode/B_DB_Opera.cs
@@ -0,0 +1,268 @@
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Diagnostics.Eventing.Reader;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MesWork
+{
+ ///
+ ///
+ ///
+ public class B_DB_Opera
+ {
+
+ public static void Event_WorkStart(string opName, int tagTypeCodeID, string partType, string tagID)
+ {
+ return;
+ var ChangeTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ {
+ procedureName = "Event_WorkStart",
+ sqlParameter = new SqlParameter[] {
+ new SqlParameter("@OpName", opName),
+ new SqlParameter("@TagTypeCodeID", tagTypeCodeID),
+ new SqlParameter("@PartType", partType),
+ new SqlParameter("@ChangeTime",ChangeTime),
+ new SqlParameter("@TagID", tagID)
+ }
+ });
+
+ }
+
+ public static void Event_WorkEnd(string opName, int tagTypeCodeID, string partType
+ , string barCode, int qualityMask, int outCount, int duration
+ , string tagID)
+ {
+ return;
+ /*
+@OpName nvarchar(50) = null,
+@TagTypeCodeID int = 0,
+@PartType int = 0,
+@BarCode nvarchar(2048) = null,
+@QualityMask int = 0,
+@OutCount int = 0,
+@Duration int = 0,
+@ChangeTime datetime = null,
+@TagID nvarchar(200) = null
+ */
+
+ var ChangeTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ {
+ procedureName = "Event_WorkEnd",
+ sqlParameter = new SqlParameter[] {
+ new SqlParameter("@OpName", opName),
+ new SqlParameter("@TagTypeCodeID", tagTypeCodeID),
+ new SqlParameter("@PartType", partType),
+ new SqlParameter("@BarCode", barCode),
+ new SqlParameter("@QualityMask", qualityMask),
+ new SqlParameter("@OutCount", outCount),
+ new SqlParameter("@Duration", duration),
+ new SqlParameter("@ChangeTime",ChangeTime),
+ new SqlParameter("@TagID", tagID)
+ }
+ });
+ }
+
+
+
+
+
+ public static void Event_Signal_Log(string opName, int tagTypeCodeID, string value, string tagID)
+ {
+ return;
+ var ChangeTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ {
+ procedureName = "Event_Signal_Log",
+ sqlParameter = new SqlParameter[] {
+ new SqlParameter("@OpName", opName),
+ new SqlParameter("@TagTypeCodeID", tagTypeCodeID),
+ new SqlParameter("@Value", value),
+ new SqlParameter("@ChangeTime",ChangeTime),
+ new SqlParameter("@TagID", tagID)
+ }
+ });
+ }
+
+
+ public static void Event_Alarm_Start(string opName, int tagTypeCodeID, string alarmText, string tagID)
+ {
+ return;
+ var ChangeTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ {
+ procedureName = "Event_Alarm_Start",
+ sqlParameter = new SqlParameter[] {
+ new SqlParameter("@OpName", opName),
+ new SqlParameter("@TagTypeCodeID", tagTypeCodeID),
+ new SqlParameter("@AlarmText", alarmText),
+ new SqlParameter("@ChangeTime",ChangeTime),
+ new SqlParameter("@TagID", tagID)
+ }
+ });
+
+ }
+
+
+ public static void Event_Alarm_End(string opName, int tagTypeCodeID, string alarmText, string tagID)
+ {
+ return;
+ var ChangeTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ {
+ procedureName = "Event_Alarm_End",
+ sqlParameter = new SqlParameter[] {
+ new SqlParameter("@OpName", opName),
+ new SqlParameter("@TagTypeCodeID", tagTypeCodeID),
+ new SqlParameter("@AlarmText", alarmText),
+ new SqlParameter("@ChangeTime",ChangeTime),
+ new SqlParameter("@TagID", tagID)
+ }
+ });
+
+ }
+
+ //public static void MES_ToolDataSave(string opName, string toolNum, string toolLife, string toolCount)
+ //{
+ // SqlParameter[] thisParms = new SqlParameter[4];
+ // thisParms[0] = new SqlParameter("@opName", opName);
+ // thisParms[1] = new SqlParameter("@刀具代码", toolNum);
+ // thisParms[2] = new SqlParameter("@刀具额定寿命", Convert.ToInt32(toolLife));
+ // thisParms[3] = new SqlParameter("@已用寿命", Convert.ToInt32(toolCount));
+
+ // MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ // {
+ // procedureName = "LG_刀具管理_刀具设备台账编辑",
+ // sqlParameter = thisParms
+ // });
+ //}
+ //public static void MES_MeasureDataSave(string opName, string partId, decimal value, string time, string measureDataAddress, string monitorData)
+ //{
+ // SqlParameter[] thisParms = new SqlParameter[6];
+ // thisParms[0] = new SqlParameter("@opName", opName);
+ // thisParms[1] = new SqlParameter("@partId", partId);
+ // thisParms[2] = new SqlParameter("@recordTime", time);
+ // thisParms[3] = new SqlParameter("@Value", value);
+ // thisParms[4] = new SqlParameter("@measureDataAddress", measureDataAddress);
+ // thisParms[5] = new SqlParameter("@monitorData", monitorData);
+
+ // MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ // {
+ // procedureName = "LG_临工看板_质量管理_增加数据",
+ // sqlParameter = thisParms
+ // });
+ //}
+
+ //public static void MES_ProgramStatusDataSave(string opName, string serialNumber, int status, string time)
+ //{
+ // SqlParameter[] thisParms = new SqlParameter[4];
+ // thisParms[0] = new SqlParameter("@opName", opName);
+ // thisParms[1] = new SqlParameter("@serialNumber", serialNumber);
+ // thisParms[2] = new SqlParameter("@recordTime", time);
+ // thisParms[3] = new SqlParameter("@status", status);
+
+ // MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ // {
+ // procedureName = "LG_临工看板_程序状态管理_增加数据",
+ // sqlParameter = thisParms
+ // });
+ //}
+
+ //public static void MES_PartDataSave(string opName, string partId, string time, int type, int isOk, string FLOW_NUM, string passTime, int durationTime)
+ //{
+ // SqlParameter[] thisParms = new SqlParameter[8];
+ // thisParms[0] = new SqlParameter("@opName", opName);
+ // thisParms[1] = new SqlParameter("@partId", partId);
+ // thisParms[2] = new SqlParameter("@scanTime", time);
+ // thisParms[3] = new SqlParameter("@type", type);
+ // thisParms[4] = new SqlParameter("@是否合格", isOk);
+ // thisParms[5] = new SqlParameter("@FLOW_NUM", FLOW_NUM);
+ // thisParms[6] = new SqlParameter("@passTime", passTime);
+ // thisParms[7] = new SqlParameter("@durationTime", durationTime);
+
+ // MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ // {
+ // procedureName = "LG_临工看板_产量管理_增加数据",
+ // sqlParameter = thisParms
+ // });
+ //}
+ public static void MES_StatusChange(string opName, int StatusCode, string TriggerTime)
+ {
+ return;
+ SqlParameter[] thisParms = new SqlParameter[3];
+ thisParms[0] = new SqlParameter("@opName", opName);
+ thisParms[1] = new SqlParameter("@StatusCode", StatusCode);
+ thisParms[2] = new SqlParameter("@TriggerTime", TriggerTime);
+
+ MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ {
+ procedureName = "设备管理_状态变化新增",
+ sqlParameter = thisParms
+ });
+ }
+ //public static void MES_StatusChange_WorkModel(string opName, int shutdown, int emergency, int auto, int debug, int manual, string TriggerTime)
+ //{
+ // SqlParameter[] thisParms = new SqlParameter[7];
+ // thisParms[0] = new SqlParameter("@opName", opName);
+ // thisParms[1] = new SqlParameter("@shutdown", shutdown);
+ // thisParms[2] = new SqlParameter("@emergency", emergency);
+ // thisParms[3] = new SqlParameter("@auto", auto);
+ // thisParms[4] = new SqlParameter("@debug", debug);
+ // thisParms[5] = new SqlParameter("@manual", manual);
+ // thisParms[6] = new SqlParameter("@TriggerTime", TriggerTime);
+
+ // MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ // {
+ // procedureName = "LG_临工看板_设备管理_状态变化新增数据_工作模式",
+ // sqlParameter = thisParms
+ // });
+ //}
+ //public static void MES_MachineParamsSave(string opName, float feedRate, float spindleSpeed, string recordTime)
+ //{
+ // SqlParameter[] thisParms = new SqlParameter[4];
+ // thisParms[0] = new SqlParameter("@opName", opName);
+ // thisParms[1] = new SqlParameter("@feedRate", feedRate);
+ // thisParms[2] = new SqlParameter("@spindleSpeed", spindleSpeed);
+ // thisParms[3] = new SqlParameter("@recordTime", recordTime);
+
+ // MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ // {
+ // procedureName = "LG_临工看板_设备管理_增加数据",
+ // sqlParameter = thisParms
+ // });
+ //}
+
+ public static void ClearLog()
+ {
+ return;
+ MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ {
+ procedureName = "Event_Delete_Station_记录_日志_运行日志",
+ sqlParameter = new SqlParameter[] {
+ new SqlParameter("@工位号", "DDV")
+ }
+ });
+ }
+
+ public static void Exec_DispatchSql()
+ {
+ return;
+ MesWorkForm.taskSql.Enqueue(new NJ_ZC.ParamT
+ {
+ procedureName = "Event_Delete_部分历史数据",
+ sqlParameter = new SqlParameter[] {
+ }
+ });
+ }
+
+ }
+
+
+
+
+}
diff --git a/CCYQ_JieFang/BusinessCode/DispatchSql.cs b/CCYQ_JieFang/BusinessCode/DispatchSql.cs
new file mode 100644
index 0000000..258568f
--- /dev/null
+++ b/CCYQ_JieFang/BusinessCode/DispatchSql.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+
+namespace MesWork
+{
+ public partial class Temp { }
+ public partial class MesWorkForm
+ {
+
+ private void Task_DispatchSql()
+ {
+ while (true)
+ {
+ try
+ {
+ B_DB_Opera.Exec_DispatchSql();
+ LogRecord.LogRecord.Insert_Log(LogRecord.LogRecord.Type_Log.Tip, "执行一次数据库调度【Task_DispatchSql】");
+ }
+ catch (Exception err)
+ {
+ }
+ Thread.Sleep(ExecSql_Interval*60*60*1000);
+ }
+ }
+
+ }
+}
diff --git a/CCYQ_JieFang/BusinessCode/Heartbeat.cs b/CCYQ_JieFang/BusinessCode/Heartbeat.cs
new file mode 100644
index 0000000..ca3434b
--- /dev/null
+++ b/CCYQ_JieFang/BusinessCode/Heartbeat.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MesWork
+{
+ public partial class Temp { }
+ public partial class MesWorkForm
+ {
+
+ private static void Heartbeat(string opName, string tagValue)
+ {
+ if (tagValue == "1")
+ {
+ WritePLC((int)EnumTagTypeCodeID.HeartBeatMIS, opName, true);
+ }
+ else
+ {
+ WritePLC((int)EnumTagTypeCodeID.HeartBeatMIS, opName, false);
+ }
+ }
+
+ }
+}
diff --git a/CCYQ_JieFang/BusinessCode/MIS_Funtion.cs b/CCYQ_JieFang/BusinessCode/MIS_Funtion.cs
new file mode 100644
index 0000000..0b3a0fb
--- /dev/null
+++ b/CCYQ_JieFang/BusinessCode/MIS_Funtion.cs
@@ -0,0 +1,196 @@
+using DK_DC_Tool;
+using NPOI.SS.Formula.Functions;
+using OpcBasic;
+using Robots.Commands;
+using System;
+using System.Collections;
+using System.Collections.Concurrent;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using SystemFramework;
+
+///
+///
+///
+namespace MesWork
+{
+ ///
+ ///
+ public partial class MesWorkForm
+ {
+ ///
+ ///
+ ///
+ ///
+ private void MIS_Tighten(object e)
+ {
+ var param = (TightenParam)e;
+ var hex = param.hex;
+ var raw = param.raw;
+ try
+ {
+ /*
+ . . . . . T 0 2 0 2 0 0 0 1 0 = 0 . 1 1 8 , 0 . 0 0 0 , 3 . 0 0 0 , 6 8 8 . 1 2 2 ; 0 0 0 1 1 = 2 ; 0 0 0 1 2 = 5 2 ; 0 1 0 1 0 = 0 . 0 0 0 , 0 . 0 0 0 , 0 . 0 0 0 ; 0 1 0 1 1 = 1 ; 0 1 0 2 0 = 0 . 0 0 0 , 0 . 0 0 0 , 0 . 0 0 0 ; 0 1 0 2 1 = 1 ; 0 1 0 3 0 = 0 . 0 0 0 , 0 . 0 0 0 , 0 . 0 0 0 ; 0 1 0 3 1 = 1 ; 0 1 0 4 0 = 0 . 0 0 0 , 0 . 0 0 0 , 0 . 0 0 0 ; 0 1 0 4 1 = 1 ; 0 1 0 5 0 = 0 . 1 1 8 , 6 8 8 . 1 2 2 , 2 . 9 9 9 ; 0 1 0 5 1 = 6 ; .
+ 1.去除所有空格
+ .....T020200010=0.118,0.000,3.000,688.122;00011=2;00012=52;01010=0.000,0.000,0.000;01011=1;01020=0.000,0.000,0.000;01021=1;01030=0.000,0.000,0.000;01031=1;01040=0.000,0.000,0.000;01041=1;01050=0.118,688.122,2.999;01051=6;.
+ 2.从索引10开始截取,最后一位不要
+ 00010=0.118,0.000,3.000,688.122;00011=2;00012=52;01010=0.000,0.000,0.000;01011=1;01020=0.000,0.000,0.000;01021=1;01030=0.000,0.000,0.000;01031=1;01040=0.000,0.000,0.000;01041=1;01050=0.118,688.122,2.999;01051=6;
+ 3.按照分号拆分,留前三组
+ 00010=0.118,0.000,3.000,688.122 最终扭矩 ;监测角度 ;最终时间 ;最终角度 ;
+ 00011=2 0= 无定意;1=OK,拧紧合格;2=NG,拧紧不合格;
+ 00012=52 00= 无定意;01= 最终扭矩过大;02= 最终扭矩过大;03= 最终角度过大;04= 最终角度过小;n1= 第 n 步扭矩过大;n2= 第 n 步时间超限;1 20)
+ {
+ // 3.按照分号拆分,留前三组
+ var arr = str.Split(';');
+ if (arr.Length > 3)
+ {
+ // 无效数据
+ string 最终扭矩 = arr[0].Split('=')[1].Split(',')[0];
+ string 监测角度 = arr[0].Split('=')[1].Split(',')[1];
+ string 最终时间 = arr[0].Split('=')[1].Split(',')[2];
+ string 最终角度 = arr[0].Split('=')[1].Split(',')[3];
+ string isOk = arr[1].Split('=')[1];
+ string NG_Code = arr[2].Split('=')[1];
+ string NG_CodeStr = "";
+ if (isOk == "2") NG_CodeStr = Tighten.TightenNG_Code[NG_Code];
+
+ // 第几个孔位
+ int MeasurePosition = Convert.ToInt32(MesWorkForm.ReadPLC(55, currentOpName));
+ int partPosition = Convert.ToInt32(MesWorkForm.ReadPLC(54, currentOpName));
+ string IsOK = isOk;
+
+ publicCore.LogInsert("Tighten", "Info", $"【保存拧紧枪数据】工件位置{partPosition},拧紧位置{MeasurePosition}" + raw);
+ // 保存质量数
+ publicCore.QualityData_MobyInsert(partPosition, MeasurePosition, currentOpName, 最终扭矩, IsOK, NG_CodeStr, out string errMsg);
+ MesWorkForm.WritePLC(83, currentOpName, true);
+ publicCore.LogInsert(currentOpName, "Info", "【IPC_读电批完成置位】");
+ // 拧紧状态显示
+ if (MIS_Funtion_PLC_MeasureFinish != null)
+ {
+ MIS_Funtion_PLC_MeasureFinish();
+ }
+ }
+ }
+ }
+ else
+ {
+ if (str.Length > 20)
+ {
+ publicCore.LogInsert(currentOpName, "Error", "拧紧枪发送数据,但是PLC读电批值为:" + isStartTighten);
+ }
+ else
+ {
+ publicCore.LogInsert(currentOpName, "Info", "订阅拧紧枪数据!");
+ }
+ }
+ break;
+
+ }
+ }
+ }
+ }
+ catch (Exception err)
+ {
+ publicCore.LogInsert("Tighten", "Error", "【拧紧枪数据错误】" + err);
+ }
+
+ }
+
+ ///
+ /// 处理MIS逻辑
+ ///
+ ///
+ private void MIS_Funtion(object e)
+ {
+ try
+ {
+ var msgEvent = (DeviceDriver_BasicData.CustomeEvetnArgs)e;
+ if (msgEvent.TagValue == null) return;
+
+ var tagID = msgEvent.TagID.ToString ();
+ var opName = msgEvent.OpName.ToString();
+ var tagTypeCodeID = (int)msgEvent.TagTypeCodeID;
+ var tagTypeID = (EnumTagTypeID)msgEvent.TagTypeID;
+ // EnumTagTypeCodeID TagTypeCodeID = (EnumTagTypeCodeID)tagTypeCodeID;
+ string tagValue;
+ switch (tagTypeID)
+ {
+ case EnumTagTypeID.BOOL:
+ tagValue = (Convert.ToInt32(msgEvent.TagValue)).ToString();
+ break;
+ default:
+ tagValue = msgEvent.TagValue.ToString();
+ break;
+ }
+ switch(opName)
+ {
+ // PLC心跳
+ case "OP10":
+ if (DAS_OP10.MIS_Funtion_PLC_OP != null)
+ {
+ DAS_OP10.MIS_Funtion_PLC_OP(msgEvent);
+ }
+ break;
+ case "OP20":
+ if (DAS_OP20.MIS_Funtion_PLC_OP != null)
+ {
+ DAS_OP20.MIS_Funtion_PLC_OP(msgEvent);
+ }
+ break;
+ case "OP30":
+ if (DAS_OP30.MIS_Funtion_PLC_OP != null)
+ {
+ DAS_OP30.MIS_Funtion_PLC_OP(msgEvent);
+ }
+ break;
+ case "OP40":
+ if (DAS_OP40.MIS_Funtion_PLC_OP != null)
+ {
+ DAS_OP40.MIS_Funtion_PLC_OP(msgEvent);
+ }
+ break;
+ case "OP50":
+ if (DAS_OP50.MIS_Funtion_PLC_OP != null)
+ {
+ DAS_OP50.MIS_Funtion_PLC_OP(msgEvent);
+ }
+ break;
+ }
+ }
+ catch (Exception err)
+ { }
+
+ }
+ }
+}
diff --git a/CCYQ_JieFang/BusinessCode/MesRead.cs b/CCYQ_JieFang/BusinessCode/MesRead.cs
new file mode 100644
index 0000000..71016e6
--- /dev/null
+++ b/CCYQ_JieFang/BusinessCode/MesRead.cs
@@ -0,0 +1,144 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MesWork
+{
+ public partial class Temp { }
+ public partial class MesWorkForm
+ {
+
+ ///
+ /// 允许保存(针对半自动和手动压装工位)
+ ///
+ ///
+ ///
+ private static void MesRead(string opName, string tagValue, int tagID)
+ {
+ if (tagValue == "1")
+ {
+ // Hashtable valueList = ReadPLC_Sync_DataList_MesRead(opName);
+
+ // long id_tagCF;
+ // InsertQualityDataIndex(out id_tagCF);
+
+ //InsertQualityData(id_tagCF);
+ //// //Insert(System.Data.DataTable dt);
+ }
+ else
+ {
+ }
+ }
+
+
+ //static public void InsertQualityDataIndex(out long id_tagCF)
+ //{
+ // string tableName;
+ // ParamData[] paramWhere;
+
+ // int tagID = 81010003;
+ // int engineTypeID = 1;
+ // string engineID = "TestEn0001";
+ // string engineType = "Type001";
+
+ // paramWhere = new ParamData[4];
+
+
+ // tableName = "测量数据合格索引";
+ // paramWhere[0].name = "TagID_CF";
+ // paramWhere[0].value = tagID.ToString();
+ // paramWhere[1].name = "EngineTypeID";
+ // paramWhere[1].value = engineTypeID.ToString();
+ // paramWhere[2].name = "EngineID";
+ // paramWhere[2].value = engineID.ToString();
+ // paramWhere[3].name = "EngineType";
+ // paramWhere[3].value = engineType.ToString();
+
+ // Insert(tableName, paramWhere, out id_tagCF);
+ //}
+
+
+ //static public void InsertQualityData(long id_tagCF)
+ //{
+ // int tagID = 81010003;
+ // int engineTypeID = 1;
+ // string engineID = "TestEn0001";
+ // string engineType = "Type001";
+ // string tagValue;
+ // int isgood = 1;
+ // string tableName;
+ // tableName = "测量数据合格";
+
+ // DataTable dt = BuildDataTables_WWW(tableName);
+ // object[] value = new object[10];
+
+ // tagValue = "10001";
+
+ // value[0] = id_tagCF;
+ // value[1] = engineTypeID;
+ // value[2] = engineID;
+ // value[3] = tagID;
+ // value[4] = tagValue;
+ // value[5] = isgood;
+ // value[6] = "测量位置01";
+ // value[7] = "测量项目01";
+ // value[8] = "工位号01";
+ // value[9] = "理论值01";
+ // dt.Rows.Add(value);
+
+ // tagValue = "10002";
+
+ // value[0] = id_tagCF;
+ // value[1] = engineTypeID;
+ // value[2] = engineID;
+ // value[3] = tagID;
+ // value[4] = tagValue;
+ // value[5] = isgood;
+ // value[6] = "测量位置02";
+ // value[7] = "测量项目02";
+ // value[8] = "工位号02";
+ // value[9] = "理论值02";
+ // dt.Rows.Add(value);
+
+ // Insert(dt);
+ //}
+
+
+ static public DataTable BuildDataTables_WWW(string tableName)
+ {
+ DataTable table;
+ DataColumnCollection columns;
+ table = new DataTable(tableName);
+ columns = table.Columns;
+ table.Columns.Add("Id_tagCF", typeof(System.Int32));
+ table.Columns.Add("EngineTypeID", typeof(System.Int32));
+ table.Columns.Add("EngineID", typeof(System.String));
+ table.Columns.Add("TagID", typeof(System.String));
+ table.Columns.Add("TagValue", typeof(System.String));
+ table.Columns.Add("IsGoodBad", typeof(System.Int32));
+ table.Columns.Add("测量位置", typeof(System.String));
+ table.Columns.Add("测量项目", typeof(System.String));
+ table.Columns.Add("工位号", typeof(System.String));
+ table.Columns.Add("理论值", typeof(System.String));
+ table.Columns.Add("上限值", typeof(System.String));
+ table.Columns.Add("下限值", typeof(System.String));
+ table.Columns.Add("测量单位", typeof(System.String));
+ table.Columns.Add("列位置", typeof(System.Int32));
+ table.Columns.Add("变量排序", typeof(System.Int32));
+
+ return table;
+ }
+
+
+
+
+
+
+
+
+ }
+}
diff --git a/CCYQ_JieFang/BusinessCode/PLC_State.cs b/CCYQ_JieFang/BusinessCode/PLC_State.cs
new file mode 100644
index 0000000..42fbcbc
--- /dev/null
+++ b/CCYQ_JieFang/BusinessCode/PLC_State.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MesWork
+{
+ public partial class Temp { }
+ public partial class MesWorkForm
+ {
+ ///
+ /// PLC状态展示
+ ///
+ ///
+ void ShowPlcStateList(object obj)
+ {
+ OpcData.PlcStateEvetnArgs eState = (OpcData.PlcStateEvetnArgs)obj;
+ string ip = eState.IP.ToString();
+ string onState = eState.OnLine.ToString();
+ }
+
+
+
+ }
+}
diff --git a/CCYQ_JieFang/BusinessCode/WorkStart.cs b/CCYQ_JieFang/BusinessCode/WorkStart.cs
new file mode 100644
index 0000000..a4f5e2b
--- /dev/null
+++ b/CCYQ_JieFang/BusinessCode/WorkStart.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MesWork
+{
+ public partial class Temp { }
+ public partial class MesWorkForm
+ {
+ ///
+ /// 工件到位与离开时,清空MES自身信号
+ ///
+ ///
+ ///
+ private static void WorkStart(string opName, string tagValue)
+ {
+ if (tagValue == "1")
+ {
+
+ }
+ else
+ {
+ WritePLC((int)EnumTagTypeCodeID.EngineTypeGetOverMES, opName, false);//MES传递机型5
+ WritePLC((int)EnumTagTypeCodeID.FixAllow, opName, false);//允许工作66
+ WritePLC((int)EnumTagTypeCodeID.ConfirmOkGo, opName, false);//合格放行51
+ WritePLC((int)EnumTagTypeCodeID.FalseGo, opName, false);//不合格放行8
+ WritePLC((int)EnumTagTypeCodeID.MaterialVerifyOver, opName, false);//工作完成7
+ WritePLC((int)EnumTagTypeCodeID.MesReadOver, opName, false);//保存完成20
+ }
+
+ }
+
+
+ }
+}
diff --git a/CCYQ_JieFang/Core/ExecSqlServer.cs b/CCYQ_JieFang/Core/ExecSqlServer.cs
new file mode 100644
index 0000000..cc38749
--- /dev/null
+++ b/CCYQ_JieFang/Core/ExecSqlServer.cs
@@ -0,0 +1,28 @@
+using MesWork;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace NJ_ZC
+{
+
+ public class ParamT
+ {
+ public string procedureName
+ {
+ get;
+ set;
+ } = "";
+
+ public SqlParameter[] sqlParameter
+ {
+ get;
+ set;
+ }
+ }
+
+
+}
diff --git a/CCYQ_JieFang/Core/LogRecord.Designer.cs b/CCYQ_JieFang/Core/LogRecord.Designer.cs
new file mode 100644
index 0000000..700f3c5
--- /dev/null
+++ b/CCYQ_JieFang/Core/LogRecord.Designer.cs
@@ -0,0 +1,222 @@
+
+namespace LogRecord
+{
+ partial class LogRecord
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows 窗体设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.dgv_Log = new System.Windows.Forms.DataGridView();
+ this.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.button3 = new System.Windows.Forms.Button();
+ this.btn_Refresh = new System.Windows.Forms.Button();
+ this.序号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.工位号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.内容 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ ((System.ComponentModel.ISupportInitialize)(this.dgv_Log)).BeginInit();
+ this.SuspendLayout();
+ //
+ // dgv_Log
+ //
+ this.dgv_Log.AllowUserToAddRows = false;
+ this.dgv_Log.AllowUserToDeleteRows = false;
+ this.dgv_Log.AllowUserToResizeRows = false;
+ this.dgv_Log.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.dgv_Log.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
+ dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.dgv_Log.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+ this.dgv_Log.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgv_Log.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.序号,
+ this.工位号,
+ this.类型,
+ this.时间,
+ this.内容});
+ this.dgv_Log.Location = new System.Drawing.Point(12, 51);
+ this.dgv_Log.MultiSelect = false;
+ this.dgv_Log.Name = "dgv_Log";
+ this.dgv_Log.ReadOnly = true;
+ this.dgv_Log.RowHeadersVisible = false;
+ this.dgv_Log.RowTemplate.Height = 26;
+ this.dgv_Log.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dgv_Log.Size = new System.Drawing.Size(1277, 745);
+ this.dgv_Log.TabIndex = 72;
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(358, 12);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(75, 23);
+ this.button1.TabIndex = 73;
+ this.button1.Text = "报警";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Visible = false;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(439, 12);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(75, 23);
+ this.button2.TabIndex = 73;
+ this.button2.Text = "登录";
+ this.button2.UseVisualStyleBackColor = true;
+ this.button2.Visible = false;
+ this.button2.Click += new System.EventHandler(this.button2_Click);
+ //
+ // button3
+ //
+ this.button3.Location = new System.Drawing.Point(520, 12);
+ this.button3.Name = "button3";
+ this.button3.Size = new System.Drawing.Size(75, 23);
+ this.button3.TabIndex = 73;
+ this.button3.Text = "提示";
+ this.button3.UseVisualStyleBackColor = true;
+ this.button3.Visible = false;
+ this.button3.Click += new System.EventHandler(this.button3_Click);
+ //
+ // btn_Refresh
+ //
+ this.btn_Refresh.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.btn_Refresh.Location = new System.Drawing.Point(12, 10);
+ this.btn_Refresh.Name = "btn_Refresh";
+ this.btn_Refresh.Size = new System.Drawing.Size(320, 35);
+ this.btn_Refresh.TabIndex = 74;
+ this.btn_Refresh.Text = "刷新";
+ this.btn_Refresh.UseVisualStyleBackColor = true;
+ this.btn_Refresh.Click += new System.EventHandler(this.btn_Refresh_Click);
+ //
+ // 序号
+ //
+ this.序号.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+ this.序号.DataPropertyName = "序号";
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
+ this.序号.DefaultCellStyle = dataGridViewCellStyle2;
+ this.序号.HeaderText = "序号";
+ this.序号.Name = "序号";
+ this.序号.ReadOnly = true;
+ this.序号.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.序号.Width = 60;
+ //
+ // 工位号
+ //
+ this.工位号.DataPropertyName = "工位号";
+ dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
+ this.工位号.DefaultCellStyle = dataGridViewCellStyle3;
+ this.工位号.HeaderText = "工位号";
+ this.工位号.Name = "工位号";
+ this.工位号.ReadOnly = true;
+ this.工位号.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.工位号.Visible = false;
+ this.工位号.Width = 250;
+ //
+ // 类型
+ //
+ this.类型.DataPropertyName = "类型";
+ dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
+ this.类型.DefaultCellStyle = dataGridViewCellStyle4;
+ this.类型.HeaderText = "类型";
+ this.类型.Name = "类型";
+ this.类型.ReadOnly = true;
+ this.类型.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.类型.Width = 90;
+ //
+ // 时间
+ //
+ this.时间.DataPropertyName = "时间";
+ dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
+ dataGridViewCellStyle5.Format = "G";
+ this.时间.DefaultCellStyle = dataGridViewCellStyle5;
+ this.时间.HeaderText = "时间";
+ this.时间.Name = "时间";
+ this.时间.ReadOnly = true;
+ this.时间.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ this.时间.Width = 190;
+ //
+ // 内容
+ //
+ this.内容.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.内容.DataPropertyName = "内容";
+ dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold);
+ this.内容.DefaultCellStyle = dataGridViewCellStyle6;
+ this.内容.HeaderText = "内容";
+ this.内容.Name = "内容";
+ this.内容.ReadOnly = true;
+ this.内容.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+ //
+ // LogRecord
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1298, 808);
+ this.Controls.Add(this.btn_Refresh);
+ this.Controls.Add(this.button3);
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Controls.Add(this.dgv_Log);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.Name = "LogRecord";
+ this.ShowIcon = false;
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.Text = "日志";
+ this.Load += new System.EventHandler(this.LogRecord_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.dgv_Log)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.DataGridView dgv_Log;
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
+ private System.Windows.Forms.Button button3;
+ private System.Windows.Forms.Button btn_Refresh;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 序号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 工位号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 内容;
+ }
+}
+
diff --git a/CCYQ_JieFang/Core/LogRecord.cs b/CCYQ_JieFang/Core/LogRecord.cs
new file mode 100644
index 0000000..837d3f1
--- /dev/null
+++ b/CCYQ_JieFang/Core/LogRecord.cs
@@ -0,0 +1,144 @@
+using MesWork;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using static System.Configuration.ConfigurationManager;
+
+namespace LogRecord
+{
+ public partial class LogRecord : Form
+ {
+ public LogRecord()
+ {
+ InitializeComponent();
+ this.WindowState = FormWindowState.Maximized;
+ }
+ public LogRecord(int _Width,int _Height)
+ {
+ InitializeComponent();
+ this.Width = _Width;
+ this.Height = _Height;
+ }
+
+ private void LogRecord_Load(object sender, EventArgs e)
+ {
+ Refresh_Log();
+ }
+
+ private void Refresh_Log()
+ {
+ var dt = Select_Log();
+ dgv_Log.DataSource = dt;
+
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ var 类型 = (Type_Log)Enum.Parse(typeof(Type_Log),dt.Rows[i]["类型"].ToString());
+ switch (类型)
+ {
+ case Type_Log.Alarm:
+ RowsColor(i, Color.Red, dgv_Log);
+ break;
+ case Type_Log.Login:
+ RowsColor(i, Color.Green, dgv_Log);
+ break;
+ case Type_Log.Tip:
+ RowsColor(i, Color.Yellow, dgv_Log);
+ break;
+ default:
+ RowsColor(i, Color.Gray, dgv_Log);
+ break;
+ }
+ }
+ dgv_Log.ClearSelection();
+ //dgv_Log.CurrentCell = null;
+ //dgv_Log.Rows[0].Selected = false;
+ }
+ private void RowsColor(int row, Color color, DataGridView dgv)
+ {
+ var dt = (System.Data.DataTable)dgv.DataSource;
+ for (int i = 0; i < dt.Columns.Count; i++)
+ {
+ dgv.Rows[row].Cells[i].Style.BackColor = color;
+ }
+ }
+
+ public static bool Insert_Log(Type_Log LogType, string Log_Content)
+ {
+ return true;
+ /*
+SELECT [IDG],[Log_Station],[Log_Type],[Log_Time],[Log_Content] FROM [记录_日志_运行日志]
+ */
+ bool success = false;
+ var sql =
+$" INSERT INTO [记录_日志_运行日志]([Log_Station],[Log_Type],[Log_Time],[Log_Content])" +
+$" VALUES('{MesWorkForm.StationName}','{LogType.ToString()}',getdate(),'{Log_Content}')";
+ success = DataLinkMesWork.SQLCommon.ExecuteSql(sql, MesWorkForm.ConnectionString, out string err2);
+
+ return success;
+
+ }
+ public static DataTable Select_Log()
+ {
+ /*
+SELECT [IDG],[Log_Station],[Log_Type],[Log_Time],[Log_Content] FROM [记录_日志_运行日志]
+ */
+ var sql =
+$" (SELECT " +
+$" row_number() over(order by [Log_Time]) AS 序号" +
+$" ,[Log_Station] AS 工位号" +
+$" ,[Log_Type] AS 类型" +
+$" ,[Log_Time] AS 时间" +
+$" ,[Log_Content] AS 内容" +
+
+$" FROM [记录_日志_运行日志]" +
+$" WHERE [Log_Station] = '{MesWorkForm.StationName}')" +
+$" ORDER BY 序号 DESC";
+ DataLinkMesWork.SQLCommon.ExecuteDataTable(sql, MesWorkForm.ConnectionString,out DataTable dt, out string err2);
+ return dt;
+
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ Insert_Log(Type_Log.Alarm, "dfghjkjfdfghjk法国红酒看官方一股好久哦i反对牛v军方肯定没得查看你的孙女i的女哦i的妇女哦看v哦对妇女的发");
+ }
+
+ private void button2_Click(object sender, EventArgs e)
+ {
+ Insert_Log(Type_Log.Login, "废物");
+ }
+
+ private void button3_Click(object sender, EventArgs e)
+ {
+ Insert_Log(Type_Log.Tip, "滚");
+ }
+
+ public enum Type_Log
+ {
+ ///
+ /// 报警
+ ///
+ Alarm = 1,
+ ///
+ /// 登录
+ ///
+ Login = 2,
+ ///
+ /// 提示
+ ///
+ Tip = 3
+ }
+
+ private void btn_Refresh_Click(object sender, EventArgs e)
+ {
+ Refresh_Log();
+ }
+ }
+}
diff --git a/CCYQ_JieFang/Core/LogRecord.resx b/CCYQ_JieFang/Core/LogRecord.resx
new file mode 100644
index 0000000..2a7ec94
--- /dev/null
+++ b/CCYQ_JieFang/Core/LogRecord.resx
@@ -0,0 +1,135 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/Core/Remote.Receive.cs b/CCYQ_JieFang/Core/Remote.Receive.cs
new file mode 100644
index 0000000..299eeff
--- /dev/null
+++ b/CCYQ_JieFang/Core/Remote.Receive.cs
@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MesWork
+{
+ public partial class QingYa_OP0010 { }
+ public partial class MesWorkForm
+ {
+ ///
+ ///
+ ///
+ ///
+ public void LoadClientInfo(object _Msg)
+ {
+ try
+ {
+ string recStr = (string)_Msg;
+ string m_Source = recStr.Split('|')[0];
+ string cmd = recStr.Split('|')[1];
+ //string OpName = recStr.Split('|')[2];
+ //string tagValue = recStr.Split('|')[3];
+
+ switch (m_Source)
+ {
+ case "DT":
+ break;
+ case "MES":
+ break;
+ }
+
+ }
+ catch (Exception err) { }
+ }
+
+
+
+
+
+ }
+}
diff --git a/CCYQ_JieFang/Core/TagTypeCodeID.cs b/CCYQ_JieFang/Core/TagTypeCodeID.cs
new file mode 100644
index 0000000..a10b044
--- /dev/null
+++ b/CCYQ_JieFang/Core/TagTypeCodeID.cs
@@ -0,0 +1,466 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+///1 X WorkStart 2 工件到位(PLC) 工件到位。托盘到达工位,并且托盘上有工件。
+///2 X RepairPartStatusPLC 3 RepairPartStatusPLC 备用
+///3 STRING RepairPathString 4 RepairPathString "工位返修字符串(121211112222111),前2位是西门子字符串格式,第一位是总长度,第二位是实际长度"
+///4 X EngineTypeGetOverMES 5 传递机型(MES) MES传递总成信息给PLC(上线工位)
+///5 X PartPalletGoOver 6 PartPalletGoOver 上线工位。0:正常工作;1:空托盘放行,PLC读取到此标志不走申请上线逻辑。
+///6 X MaterialVerifyOver 7 MaterialVerifyOver MES保存完质量数据,物料数据等与PLC信号交互完成后通知PLC,所以工步都完成,才可以放行工件,正常工作时工件放行的必要条件。
+///7 X FalseGo 8 FalseGo 按MES界面[不合格放行]按钮,MES发送此信号。操作者判断工件不合格,通知设备,按不合格方式放行工件,工件流转到返修下线工位后,返修下线。MES工作完成MES0.3=1,MES合格放行MES0.5=0,MES0.4=1
+///8 INT EngineTypeID 9 EngineTypeID MES发动机机型标志(必须PLC)
+///9 STRING EngineID 10 EngineID MES发动机编号(必须PLC)
+///10 STRING EngineType 11 机型(MES) MES发动机机型(必须PLC)
+///11 X PartPalletStatus 13 PartPalletStatus MES激发变量托盘到位离开(必须PLC)
+///12 X HeartBeatPLC 14 HeartBeatPLC 心跳处理:PLC收到MES心跳信号后,PLC延时5秒后,数值取反再写回PLC,写回PLC开始计时,如果5秒钟MES无反馈报通讯故障。
+///13 X HeartBeatMIS 15 HeartBeatMIS 间隔时间5S,心跳处理。收到PLC心跳信号后,MES按原值回写。PLC收到MES信号后延时5秒,取反写入,以此循环。
+///14 X TargetTimeRead 16 TargetTimeRead MES允许可读工位运行时间
+///15 Int MachineTargetTime 17 MachineTargetTime 目标运行时间
+///16 Int MachineActualTime 18 MachineActualTime 实际运行时间
+///17 X MesRead 19 允许保存(PLC) 质量数据可以读数据
+///18 X MesReadOver 20 保存完成(MES) MES保存完数据(必须MIS)
+///19 INT QualityMask 21 合格标志(PLC) 质量数据工位合格标志0:没有工作;1:合格 ;2 :不合格(必须PLC)
+///20 B PalletInfo 22 PalletInfo 0空托盘,1合格件,2不合格件
+///21 INT RepairStatusPLC 23 RepairStatusPLC 0正常件,1返修件
+///22 INT OrderNo 24 订单号(MES) 订单号(MES)
+///23 X StorageNo 25 库位号(MES) 库位号(MES)
+///24 X AllowPass 26 允许放行(MES) 允许放行
+///25 X PartLoadFinish 27 PartLoadFinish PartLoadFinish
+///26 X Reserved_7 28 Reserved_7 备用
+///27 X Reserved_8 29 Reserved_8 备用
+///28 X Reserved_9 30 Reserved_9 备用
+///29 X Reserved_10 31 Reserved_10 备用
+///30 X Reserved_11 32 Reserved_11 备用
+///31 X Reserved_12 33 Reserved_12 备用
+///32 X Reserved_13 34 Reserved_13 备用
+///33 X Reserved_14 35 Reserved_14 备用
+///34 Int PLCSPareint1 36 PLCSPareint1 备用
+///35 Int PLCSPareint2 37 PLCSPareint2 备用
+///36 Int PLCSPareint3 38 PLCSPareint3 备用
+///37 STRING PLCSarestring1 39 PLCSarestring1 备用
+///38 STRING PLCSarestring2 40 PLCSarestring2 备用
+///39 STRING MarkID 42 MarkID 机体打标号(MES)前2位是西门子字符串格式,第一位是总长度,第二位是实际长度
+///40 X PartLoad 43 PartLoad 上线工位,PLC向MES申请总成编号。收到该信号后,MES将机型标志(DBB22 ~23)、总成号(DBB24 ~63)、总成机型DBB64 ~103写入PLC。之后MES通过信号“传递机型(DBX0.1)”通知PLC。
+///41 X EngineTypeGetOverPLC 44 传递机型(PLC) PLC将机型标志(DBB50…51)、工件编号(DBB52…101)、产品型号(DBB102…187)、托盘编号(DBB188…189)准备完毕后,通知MES。
+///42 X PartLoadOK 48 PartLoadOK 备用
+///43 X Reserved_18 49 Reserved_18 备用
+///44 X PalletDown 50 PalletDown 暂时保留,项目未使用
+///45 X ConfirmOkGo 51 ConfirmOkGo 按MES界面[合格放行]按钮,MES发送此信号。操作者判断工件合格,通知设备,工件按合格方式放行工件。MES工作完成MES0.3=1,MES合格放行MES0.5=1,MES0.4=0
+///46 X ResetDevice 52 ResetDevice 针对手动工位,无HMI,需要复位设备在MES页面操作。
+///47 X UnloadCompleted 53 UnloadCompleted 暂时保留,项目未使用
+///48 X MachineTime_ReadOver 54 MachineTime_ReadOver 备用
+///49 X Reserved_19 58 Reserved_19 备用
+///50 X FixOK 59 FixOK 手动拧紧工位,单工步螺栓拧紧完成,通知PC读取数据。
+///51 X Reserved_21 61 Reserved_21 备用
+///52 X Reserved_22 62 Reserved_22 备用
+///53 X Reserved_23 63 Reserved_23 备用
+///54 X Reserved_24 64 Reserved_24 备用
+///55 X Reserved_25 65 Reserved_25 备用
+///56 X FixAllow 66 FixAllow "设备工作的必须信号,对于有物料验证的工位,MES验证完成给出此信号,对于无物料验证工位,MES直接给出此信号。"
+///57 X FixOver 67 FixOver 用于手动拧紧且有质量数据工位。通知设备当前工步拧紧螺钉工作结束。
+///58 X MatchingCompleted 68 MatchingCompleted 分线上总线,匹配成功是1;不成功是0。
+///59 X Match 69 Match 分线上总线,匹配成功是1;不成功是0。
+///60 X Reserved_2 70 Reserved_2 备用
+///61 X IsAutoGetEngineID 71 IsAutoGetEngineID 自动手动申请工件编号。0是自动方式;1:手动方式。暂时保留,生成流水号方式是在数据库中实现的
+///62 X RepairUplineMES 72 RepairUplineMES 上线清空MOBY(针对上线工位):通知PLC从新开始申请上线流程
+///63 INT EngineTypeID_MES 73 机型代码(MES) MES发动机机型标志(必须MES)
+///64 STRING EngineID_MES 74 工件编号(MES) MES发动机编号(必须MES)
+///65 STRING EngineType_MES 75 EngineType_MES MES发动机机型(必须MES)
+///66 X Reserved_20 76 Reserved_20 备用
+///67 INT ProcessCode 77 ProcessCode 手动拧紧工位:由MES通知PLC拧紧序号
+///68 B OnLineState 79 OnLineState 通过线体工位PC实现下达工位工作状态:工位有三种状态:在线、离线、屏蔽。在线:0正常状态,实现正常功能。1离线:设备脱离MES工作,进入不交互模式。
+///69 INT PartPalletCode 80 托盘号(MES) 托盘编号(B5A)
+///70 INT BoltCode 88 BoltCode 手动拧紧工位:指导PLC所用套筒
+///71 INT RepairStatus 93 RepairStatus "0正常件,1返修件。对于上线工位MES给出是正常上线还是返修上线,返修路径"
+///72 DInt Reserved_15 110 Reserved_15 备用
+///73 DInt Reserved_16 111 Reserved_16 备用
+///74 B Reserved_17 112 Reserved_17 备用
+///75 INT SPareint1 113 SPareint1 备用int1
+///76 INT SPareint2 114 SPareint2 备用int2
+///77 INT SPareint3 115 SPareint3 备用int3
+///78 STRING Sparestring1 116 Sparestring1 备用字符串1
+///79 STRING Sparestring2 117 Sparestring2 备用字符串2
+///80 X MachineStatusPutOn 1000 机床上电(PLC) 机床上电(必须PLC)
+///81 X MachineStatusWorkOn 1001 循环开始(PLC) 循环开始(必须PLC)
+///82 X MachineStatusAlarm 1002 设备报警(PLC) 机床故障(必须PLC)
+///83 X MachineStatusNoPart 1003 MachineStatusNoPart 上料无件(必须PLC)
+///84 X MachineStatusBlock 1004 MachineStatusBlock 下料堵塞(必须PLC)
+
+
+namespace MesWork
+{
+ ///
+ /// 这是变量类型代码的配置,几乎是不变的
+ /// 请不要随意修改,为了保证变量版本同一,并且方便维护,请联系发行人修改!
+ /// 请注意,此修改为全局修改!
+ ///
+ public enum EnumTagTypeCodeID
+ {
+ ///
+ /// 工件到位(PLC)
+ /// 变量类型:Bool
+ /// 解释:托盘到达工位,并且托盘上有工件。
+ ///
+ WorkStart = 2,
+ ///
+ ///
+ ///
+ RepairPartStatusPLC = 3,
+ ///
+ /// 工位返修字符串
+ /// 变量类型:String
+ /// 解释:工位返修字符串
+ ///
+ RepairPathString = 4,
+ ///
+ /// 传递机型(MES)
+ /// 变量类型:Bool
+ /// 解释:MES传递总成信息给PLC(上线工位)
+ ///
+ EngineTypeGetOverMES = 5,
+ ///
+ ///
+ ///
+ PartPalletGoOver = 6,
+ ///
+ ///
+ ///
+ MaterialVerifyOver = 7,
+ ///
+ ///
+ ///
+ FalseGo = 8,
+ ///
+ ///
+ ///
+ EngineTypeID = 9,
+ ///
+ ///
+ ///
+ EngineID = 10,
+ ///
+ /// 机型(MES)
+ /// 变量类型:String
+ ///
+ EngineType = 11,
+ ///
+ ///
+ ///
+ PartPalletStatus = 13,
+ ///
+ ///
+ ///
+ HeartBeatPLC = 14,
+ ///
+ ///
+ ///
+ HeartBeatMIS = 15,
+ ///
+ ///
+ ///
+ TargetTimeRead = 16,
+ ///
+ ///
+ ///
+ MachineTargetTime = 17,
+ ///
+ ///
+ ///
+ MachineActualTime = 18,
+ ///
+ /// 允许保存(PLC)
+ /// 变量类型:Bool
+ ///
+ MesRead = 19,
+ ///
+ /// 保存完成(MES)
+ /// 变量类型:Bool
+ ///
+ MesReadOver = 20,
+ ///
+ /// 合格标志(PLC)
+ /// 变量类型:Int
+ ///
+ QualityMask = 21,
+ ///
+ ///
+ ///
+ PalletInfo = 22,
+ ///
+ ///
+ ///
+ RepairStatusPLC = 23,
+ ///
+ /// 订单号(MES)
+ /// 变量类型:Int
+ ///
+ OrderNo = 24,
+ ///
+ /// 库位号(MES)
+ /// 变量类型:Bool
+ ///
+ StorageNo = 25,
+ ///
+ /// 允许放行(MES)
+ /// 变量类型:Bool
+ ///
+ AllowPass = 26,
+ ///
+ ///
+ ///
+ PartLoadFinish = 27,
+ ///
+ ///
+ ///
+ Reserved_7 = 28,
+ ///
+ ///
+ ///
+ Reserved_8 = 29,
+ ///
+ ///
+ ///
+ Reserved_9 = 30,
+ ///
+ ///
+ ///
+ Reserved_10 = 31,
+ ///
+ ///
+ ///
+ Reserved_11 = 32,
+ ///
+ ///
+ ///
+ Reserved_12 = 33,
+ ///
+ ///
+ ///
+ Reserved_13 = 34,
+ ///
+ ///
+ ///
+ Reserved_14 = 35,
+ ///
+ ///
+ ///
+ PLCSPareint1 = 36,
+ ///
+ ///
+ ///
+ PLCSPareint2 = 37,
+ ///
+ ///
+ ///
+ PLCSPareint3 = 38,
+ ///
+ ///
+ ///
+ PLCSarestring1 = 39,
+ ///
+ ///
+ ///
+ PLCSarestring2 = 40,
+ ///
+ ///
+ ///
+ MarkID = 42,
+ ///
+ ///
+ ///
+ PartLoad = 43,
+ ///
+ /// 传递机型(PLC)
+ /// 变量类型:Bool
+ ///
+ EngineTypeGetOverPLC = 44,
+ ///
+ ///
+ ///
+ PartLoadOK = 48,
+ ///
+ ///
+ ///
+ Reserved_18 = 49,
+ ///
+ ///
+ ///
+ PalletDown = 50,
+ ///
+ ///
+ ///
+ ConfirmOkGo = 51,
+ ///
+ ///
+ ///
+ ResetDevice = 52,
+ ///
+ ///
+ ///
+ UnloadCompleted = 53,
+ ///
+ ///
+ ///
+ MachineTime_ReadOver = 54,
+ ///
+ ///
+ ///
+ Reserved_19 = 58,
+ ///
+ ///
+ ///
+ FixOK = 59,
+ ///
+ ///
+ ///
+ Reserved_21 = 61,
+ ///
+ ///
+ ///
+ Reserved_22 = 62,
+ ///
+ ///
+ ///
+ Reserved_23 = 63,
+ ///
+ ///
+ ///
+ Reserved_24 = 64,
+ ///
+ ///
+ ///
+ Reserved_25 = 65,
+ ///
+ ///
+ ///
+ FixAllow = 66,
+ ///
+ ///
+ ///
+ FixOver = 67,
+ ///
+ ///
+ ///
+ MatchingCompleted = 68,
+ ///
+ ///
+ ///
+ Match = 69,
+ ///
+ ///
+ ///
+ Reserved_2 = 70,
+ ///
+ ///
+ ///
+ IsAutoGetEngineID = 71,
+ ///
+ ///
+ ///
+ RepairUplineMES = 72,
+ ///
+ /// 机型代码(MES)
+ /// 变量类型:Int
+ ///
+ EngineTypeID_MES = 73,
+ ///
+ /// 工件编号(MES)
+ /// 变量类型:String
+ ///
+ EngineID_MES = 74,
+ ///
+ ///
+ ///
+ EngineType_MES = 75,
+ ///
+ ///
+ ///
+ Reserved_20 = 76,
+ ///
+ ///
+ ///
+ ProcessCode = 77,
+ ///
+ ///
+ ///
+ OnLineState = 79,
+ ///
+ /// 托盘号(MES)
+ /// 变量类型:Int
+ ///
+ PartPalletCode = 80,
+ ///
+ ///
+ ///
+ BoltCode = 88,
+ ///
+ ///
+ ///
+ RepairStatus = 93,
+ ///
+ ///
+ ///
+ Reserved_15 = 110,
+ ///
+ ///
+ ///
+ Reserved_16 = 111,
+ ///
+ ///
+ ///
+ Reserved_17 = 112,
+ ///
+ ///
+ ///
+ SPareint1 = 113,
+ ///
+ ///
+ ///
+ SPareint2 = 114,
+ ///
+ ///
+ ///
+ SPareint3 = 115,
+ ///
+ ///
+ ///
+ Sparestring1 = 116,
+ ///
+ ///
+ ///
+ Sparestring2 = 117,
+ ///
+ /// 机床上电(PLC)
+ /// 变量类型:Bool
+ ///
+ MachineStatusPutOn = 1000,
+ ///
+ /// 循环开始(PLC)
+ /// 变量类型:Bool
+ ///
+ MachineStatusWorkOn = 1001,
+ ///
+ /// 设备报警(PLC)
+ /// 变量类型:Bool
+ ///
+ MachineStatusAlarm = 1002,
+ ///
+ /// 上料无件(PLC)
+ /// 变量类型:Bool
+ ///
+ MachineStatusNoPart = 1003,
+ ///
+ /// 下料堵塞(PLC)
+ /// 变量类型:Bool
+ ///
+ MachineStatusBlock = 1004,
+ ///
+ /// 下料堵塞(PLC)
+ /// 变量类型:Bool
+ ///
+ havePart70 = 10003,
+ }
+}
diff --git a/CCYQ_JieFang/MW.OnStart.cs b/CCYQ_JieFang/MW.OnStart.cs
new file mode 100644
index 0000000..24581a5
--- /dev/null
+++ b/CCYQ_JieFang/MW.OnStart.cs
@@ -0,0 +1,22 @@
+
+using Newtonsoft.Json;
+using System;
+using System.Threading;
+using SystemFramework;
+
+namespace MesWork
+{
+ public partial class Temp { }
+ public partial class MesWorkForm
+ {
+ protected override void OnShown(EventArgs e)
+ {
+ //ThreadPool.SetMaxThreads(2000, 800);
+ //Never_Know.Hello_You_All_Never_Know = Hello_You_All_Never_Know;
+ //new ApplicationLog();
+ //LoadOPCData(MesWorkForm.BasicDataTableFile, MesWorkForm.IsDemoMesServer, MesWorkForm.IsWriteMonitorLog, true);
+ //initServer = new InitServer(MesWorkForm.WebSvrUrlPort);
+ }
+
+ }
+}
diff --git a/CCYQ_JieFang/MesWork.Designer.cs b/CCYQ_JieFang/MesWork.Designer.cs
new file mode 100644
index 0000000..a475c91
--- /dev/null
+++ b/CCYQ_JieFang/MesWork.Designer.cs
@@ -0,0 +1,181 @@
+using System.Windows.Forms;
+using global::Init;
+namespace MesWork
+{
+ partial class MesWorkForm : PlcLinkForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+
+ }
+
+ #region Windows 窗体设计器生成的代码
+
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MesWorkForm));
+ this.panel_Page = new System.Windows.Forms.Panel();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.menuStrip1 = new System.Windows.Forms.MenuStrip();
+ this.文件ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.上下限设置ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
+ this.系统日志ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.ToolStripMenuItem_exit = new System.Windows.Forms.ToolStripMenuItem();
+ this.监控ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.pLC监控ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.查询ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.aGV调试ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.button1 = new System.Windows.Forms.Button();
+ this.tableLayoutPanel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.menuStrip1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panel_Page
+ //
+ resources.ApplyResources(this.panel_Page, "panel_Page");
+ this.panel_Page.Name = "panel_Page";
+ //
+ // tableLayoutPanel1
+ //
+ resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
+ this.tableLayoutPanel1.Controls.Add(this.panel_Page, 0, 1);
+ this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ //
+ // panel2
+ //
+ this.panel2.Controls.Add(this.button1);
+ this.panel2.Controls.Add(this.menuStrip1);
+ resources.ApplyResources(this.panel2, "panel2");
+ this.panel2.Name = "panel2";
+ //
+ // menuStrip1
+ //
+ resources.ApplyResources(this.menuStrip1, "menuStrip1");
+ this.menuStrip1.GripMargin = new System.Windows.Forms.Padding(2, 2, 0, 2);
+ this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
+ this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.文件ToolStripMenuItem,
+ this.监控ToolStripMenuItem,
+ this.查询ToolStripMenuItem,
+ this.aGV调试ToolStripMenuItem});
+ this.menuStrip1.Name = "menuStrip1";
+ //
+ // 文件ToolStripMenuItem
+ //
+ this.文件ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.上下限设置ToolStripMenuItem1,
+ this.系统日志ToolStripMenuItem,
+ this.ToolStripMenuItem_exit});
+ this.文件ToolStripMenuItem.Name = "文件ToolStripMenuItem";
+ resources.ApplyResources(this.文件ToolStripMenuItem, "文件ToolStripMenuItem");
+ //
+ // 上下限设置ToolStripMenuItem1
+ //
+ this.上下限设置ToolStripMenuItem1.Name = "上下限设置ToolStripMenuItem1";
+ resources.ApplyResources(this.上下限设置ToolStripMenuItem1, "上下限设置ToolStripMenuItem1");
+ this.上下限设置ToolStripMenuItem1.Click += new System.EventHandler(this.上下限设置ToolStripMenuItem1_Click);
+ //
+ // 系统日志ToolStripMenuItem
+ //
+ this.系统日志ToolStripMenuItem.Name = "系统日志ToolStripMenuItem";
+ resources.ApplyResources(this.系统日志ToolStripMenuItem, "系统日志ToolStripMenuItem");
+ this.系统日志ToolStripMenuItem.Click += new System.EventHandler(this.系统日志ToolStripMenuItem_Click);
+ //
+ // ToolStripMenuItem_exit
+ //
+ this.ToolStripMenuItem_exit.Name = "ToolStripMenuItem_exit";
+ resources.ApplyResources(this.ToolStripMenuItem_exit, "ToolStripMenuItem_exit");
+ this.ToolStripMenuItem_exit.Click += new System.EventHandler(this.ToolStripMenuItem_exit_Click);
+ //
+ // 监控ToolStripMenuItem
+ //
+ this.监控ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.pLC监控ToolStripMenuItem});
+ this.监控ToolStripMenuItem.Name = "监控ToolStripMenuItem";
+ resources.ApplyResources(this.监控ToolStripMenuItem, "监控ToolStripMenuItem");
+ //
+ // pLC监控ToolStripMenuItem
+ //
+ this.pLC监控ToolStripMenuItem.Name = "pLC监控ToolStripMenuItem";
+ resources.ApplyResources(this.pLC监控ToolStripMenuItem, "pLC监控ToolStripMenuItem");
+ this.pLC监控ToolStripMenuItem.Click += new System.EventHandler(this.pLC监控ToolStripMenuItem_Click);
+ //
+ // 查询ToolStripMenuItem
+ //
+ this.查询ToolStripMenuItem.Name = "查询ToolStripMenuItem";
+ resources.ApplyResources(this.查询ToolStripMenuItem, "查询ToolStripMenuItem");
+ this.查询ToolStripMenuItem.Click += new System.EventHandler(this.查询ToolStripMenuItem_Click);
+ //
+ // aGV调试ToolStripMenuItem
+ //
+ this.aGV调试ToolStripMenuItem.Name = "aGV调试ToolStripMenuItem";
+ resources.ApplyResources(this.aGV调试ToolStripMenuItem, "aGV调试ToolStripMenuItem");
+ this.aGV调试ToolStripMenuItem.Click += new System.EventHandler(this.aGV调试ToolStripMenuItem_Click);
+ //
+ // button1
+ //
+ resources.ApplyResources(this.button1, "button1");
+ this.button1.Name = "button1";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // MesWorkForm
+ //
+ resources.ApplyResources(this, "$this");
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+ this.BackColor = System.Drawing.Color.White;
+ this.Controls.Add(this.tableLayoutPanel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.MainMenuStrip = this.menuStrip1;
+ this.Name = "MesWorkForm";
+ this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MesWorkForm_FormClosing);
+ this.Load += new System.EventHandler(this.MesWorkForm_Load);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ this.menuStrip1.ResumeLayout(false);
+ this.menuStrip1.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private Panel panel_Page;
+ private TableLayoutPanel tableLayoutPanel1;
+ private Panel panel2;
+ private MenuStrip menuStrip1;
+ private ToolStripMenuItem 文件ToolStripMenuItem;
+ private ToolStripMenuItem ToolStripMenuItem_exit;
+ private ToolStripMenuItem 监控ToolStripMenuItem;
+ private ToolStripMenuItem pLC监控ToolStripMenuItem;
+ private ToolStripMenuItem 查询ToolStripMenuItem;
+ private ToolStripMenuItem 上下限设置ToolStripMenuItem1;
+ private ToolStripMenuItem 系统日志ToolStripMenuItem;
+ private ToolStripMenuItem aGV调试ToolStripMenuItem;
+ private Button button1;
+ }
+}
+
diff --git a/CCYQ_JieFang/MesWork.cs b/CCYQ_JieFang/MesWork.cs
new file mode 100644
index 0000000..1cefc55
--- /dev/null
+++ b/CCYQ_JieFang/MesWork.cs
@@ -0,0 +1,224 @@
+namespace MesWork
+{
+ using CCYQ_JieFang;
+ using DK_DC_Tool;
+ using MQTTnet.Server;
+ using Robots;
+ using System;
+ using System.Data;
+ using System.Diagnostics;
+ using System.IO;
+ using System.Net;
+ using System.Threading;
+ using System.Windows.Forms;
+ using SystemFramework;
+
+ public partial class MesWorkForm
+ {
+ InitServer initServer = null;
+
+ ///
+ /// 测量完成委托
+ ///
+ public static Action MIS_Funtion_PLC_MeasureFinish = null;
+
+ ///
+ ///
+ ///
+ public MesWorkForm()
+ {
+ InitializeComponent();
+
+ CheckForIllegalCrossThreadCalls = false;
+ currentOpName = File.ReadAllText(IpcConfigPath).ToString();
+ Never_Know.Hello_You_All_Never_Know = Hello_You_All_Never_Know;
+
+ publicCore.LogInsert(currentOpName, "Info", "开启程序!");
+
+ ThreadPool.SetMaxThreads(2000, 800);
+ LoadOPCData(MesWorkForm.BasicDataTableFile, MesWorkForm.IsDemoMesServer, MesWorkForm.IsWriteMonitorLog, false, false, out string err);
+ if (err.Length > 0)
+ {
+ MessageBox.Show($"LoadOPCData报错:{err}");
+ Process.GetCurrentProcess().Kill();
+ }
+ switch (currentOpName)
+ {
+ case "OP10":
+ {
+ Temp.mesWorkForm1 = new DAS_OP10(currentOpName);
+ Temp.mesWorkForm1.FormBorderStyle = FormBorderStyle.None; //隐藏子窗体边框(去除最小花,最大化,关闭等按钮)
+ Temp.mesWorkForm1.TopLevel = false; //指示子窗体非顶级窗体
+ Temp.mesWorkForm1.Dock = DockStyle.Fill;//将窗体最大化填充
+ panel_Page.Controls.Add(Temp.mesWorkForm1);
+ Temp.mesWorkForm1.Show();
+ Temp.mesWorkForm1.Load -= OpFormLoad;
+ Temp.mesWorkForm1.Load += OpFormLoad;
+ }
+ break;
+ case "OP20":
+ Temp.mesWorkForm2 = new DAS_OP20(currentOpName);
+ Temp.mesWorkForm2.FormBorderStyle = FormBorderStyle.None; //隐藏子窗体边框(去除最小花,最大化,关闭等按钮)
+ Temp.mesWorkForm2.TopLevel = false; //指示子窗体非顶级窗体
+ Temp.mesWorkForm2.Dock = DockStyle.Fill;//将窗体最大化填充
+ panel_Page.Controls.Add(Temp.mesWorkForm2);
+ Temp.mesWorkForm2.Show();
+ Temp.mesWorkForm2.Load -= OpFormLoad;
+ Temp.mesWorkForm2.Load += OpFormLoad;
+ break;
+ case "OP30":
+ Temp.mesWorkForm3 = new DAS_OP30(currentOpName);
+ Temp.mesWorkForm3.FormBorderStyle = FormBorderStyle.None; //隐藏子窗体边框(去除最小花,最大化,关闭等按钮)
+ Temp.mesWorkForm3.TopLevel = false; //指示子窗体非顶级窗体
+ Temp.mesWorkForm3.Dock = DockStyle.Fill;//将窗体最大化填充
+ panel_Page.Controls.Add(Temp.mesWorkForm3);
+ Temp.mesWorkForm3.Show();
+ Temp.mesWorkForm3.Load -= OpFormLoad;
+ Temp.mesWorkForm3.Load += OpFormLoad;
+ break;
+ case "OP40":
+ Temp.mesWorkForm4 = new DAS_OP40(currentOpName);
+ Temp.mesWorkForm4.FormBorderStyle = FormBorderStyle.None; //隐藏子窗体边框(去除最小花,最大化,关闭等按钮)
+ Temp.mesWorkForm4.TopLevel = false; //指示子窗体非顶级窗体
+ Temp.mesWorkForm4.Dock = DockStyle.Fill;//将窗体最大化填充
+ panel_Page.Controls.Add(Temp.mesWorkForm4);
+ Temp.mesWorkForm4.Show();
+ Temp.mesWorkForm4.Load -= OpFormLoad;
+ Temp.mesWorkForm4.Load += OpFormLoad;
+ break;
+ case "OP50":
+ Temp.mesWorkForm5 = new DAS_OP50(currentOpName);
+ Temp.mesWorkForm5.FormBorderStyle = FormBorderStyle.None; //隐藏子窗体边框(去除最小花,最大化,关闭等按钮)
+ Temp.mesWorkForm5.TopLevel = false; //指示子窗体非顶级窗体
+ Temp.mesWorkForm5.Dock = DockStyle.Fill;//将窗体最大化填充
+ panel_Page.Controls.Add(Temp.mesWorkForm5);
+ Temp.mesWorkForm5.Show();
+ Temp.mesWorkForm5.Load -= OpFormLoad;
+ Temp.mesWorkForm5.Load += OpFormLoad;
+ break;
+ default:
+ MessageBox.Show("未找到对应工位!");
+ break;
+ }
+ }
+
+ private void OpFormLoad(object sender, EventArgs e)
+ {
+ // 开启PLC监控
+ StartServer();
+
+ // 开启webApi
+ initServer = new InitServer(MesWorkForm.WebSvrUrlPort);
+
+ Tighten.E_LogInsert -= publicCore.LogInsert;
+ Tighten.E_LogInsert += publicCore.LogInsert;
+
+ Tighten.E_ScanContent -= Tighten_E_ScanContent;
+ Tighten.E_ScanContent += Tighten_E_ScanContent;
+
+ //string hex_str = "";
+ //string raw_str = " . . . . . A 0 2 0 4 A C K . . . . . Z T 0 2 0 4 0 1 0 1 = 1 ; 0 2 0 1 = 0 , 2 . 0 0 , 2 . 1 0 , 1 . 0 0 , 0 . 6 0 , 2 . 0 0 , 5 0 0 0 , 0 , 3 0 . 0 0 , - 2 0 0 , 1 0 0 , 3 , 5 , - 1 0 0 , - 1 8 0 , - 3 . 6 0 , 3 . 0 0 , 1 0 0 , 9 0 , 3 . 6 0 , 3 . 0 0 , 6 0 0 , 3 6 0 0 , 3 . 6 0 , 6 . 0 0 , 8 0 , 0 . 4 0 , 3 . 6 0 , 3 . 0 0 , 6 0 0 , 2 . 0 0 , 2 . 1 0 , 3 . 0 0 , - 1 0 0 , - 1 8 0 , - 3 . 6 0 , 3 . 0 0 , 2 0 0 , 9 0 , 3 . 6 0 , 3 . 0 0 , 8 0 0 , 2 6 0 0 , 3 . 6 0 , 3 . 0 0 , 8 0 , 0 . 2 0 , 0 . 6 0 , 3 . 0 0 , 3 0 , 2 . 0 0 , 2 . 1 0 , 3 . 0 0 , 2 0 , 9 0 , 0 . 7 2 , 3 . 0 0 , 3 0 0 , 5 7 , 0 . 7 2 , 3 . 0 0 , 2 0 0 , 1 4 4 4 , 0 . 7 2 , 3 . 0 0 , 1 0 0 , 0 . 2 0 , 0 . 7 2 , 3 . 0 0 , 4 0 , 2 . 0 0 , 2 . 1 0 , 3 . 0 0 ; . . . . . . T 0 2 0 2 0 0 0 1 0 = 0 . 1 1 6 , 0 . 0 0 0 , 1 . 7 5 9 , 3 4 1 5 . 9 7 4 ; 0 0 0 1 1 = 2 ; 0 0 0 1 2 = 0 2 ; 0 1 0 1 0 = 0 . 1 8 8 , - 1 7 9 . 9 0 9 , 0 . 3 5 9 ; 0 1 0 1 1 = 1 ; 0 1 0 2 0 = 0 . 0 0 0 , 0 . 0 0 0 , 0 . 0 0 0 ; 0 1 0 2 1 = 1 ; 0 1 0 3 0 = 0 . 1 1 6 , 3 5 9 6 . 4 5 6 , 1 . 3 6 9 ; 0 1 0 3 1 = 1 ; 0 1 0 4 0 = 0 . 0 0 0 , 0 . 0 0 0 , 0 . 0 0 0 ; 0 1 0 4 1 = 1 ; 0 1 0 5 0 = 0 . 0 0 0 , 0 . 0 0 0 , 0 . 0 0 0 ; 0 1 0 5 1 = 1 ; . ";
+ //// string raw_str = " . . . . . T 0 2 0 2 0 0 0 1 0 = 0 . 1 0 1 , 0 . 0 0 0 , 1 . 7 5 9 , 3 4 1 5 . 9 7 4 ; 0 0 0 1 1 = 2 ; 0 0 0 1 2 = 0 2 ; 0 1 0 1 0 = 0 . 1 6 7 , - 1 8 0 . 4 8 2 , 0 . 3 5 8 ; 0 1 0 1 1 = 1 ; 0 1 0 2 0 = 0 . 0 0 0 , 0 . 0 0 0 , 0 . 0 0 0 ; 0 1 0 2 1 = 1 ; 0 1 0 3 0 = 0 . 1 0 1 , 3 5 9 7 . 0 2 9 , 1 . 3 6 9 ; 0 1 0 3 1 = 1 ; 0 1 0 4 0 = 0 . 0 0 0 , 0 . 0 0 0 , 0 . 0 0 0 ; 0 1 0 4 1 = 1 ; 0 1 0 5 0 = 0 . 0 0 0 , 0 . 0 0 0 , 0 . 0 0 0 ; 0 1 0 5 1 = 1 ; .";
+ //Tighten.E_ScanContent.Invoke(hex_str, raw_str);
+
+ var dt_Tighten = NPOITest.ExeclHelper.ExcelToDataTable(BasicDataTableFile, "拧紧枪", true);
+ //OpName IP Port IsEnable
+ var dataTable = dt_Tighten.Select($"OpName='{currentOpName}' and IsEnable='1'");
+ if(dataTable.Length > 0)
+ {
+ dt_Tighten = dt_Tighten.Select($"OpName='{currentOpName}' and IsEnable='1'").CopyToDataTable();
+ if (dt_Tighten.Rows.Count > 0)
+ {
+ var IP = dt_Tighten.Rows[0]["IP"].ToString();
+ var Port = Convert.ToInt32(dt_Tighten.Rows[0]["Port"]);
+ var tighten = new Tighten();
+ tighten.Start(IP, Port, currentOpName);
+ }
+ }
+
+ }
+
+ private void MesWorkForm_FormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e)
+ {
+ if (MessageBox.Show("是否确认退出程序?", "退出", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
+ {
+ publicCore.LogInsert(currentOpName, "Info", "退出程序!");
+
+ e.Cancel = false;
+ StopServer(2000);
+ Thread.Sleep(500);
+ System.Diagnostics.Process.GetCurrentProcess().Kill();
+ }
+ else
+ {
+ e.Cancel = true;
+ }
+ }
+
+ private void label_ExitSys_Click(object sender, EventArgs e)
+ {
+ if (MessageBox.Show("是否确认退出程序?", "退出", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
+ {
+ CloseDeviceConn();
+ System.Diagnostics.Process.GetCurrentProcess().Kill();
+ }
+ }
+
+ private void MesWorkForm_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ private void ToolStripMenuItem_exit_Click(object sender, EventArgs e)
+ {
+ if (MessageBox.Show("是否确认退出程序?", "退出", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
+ {
+ StopServer(2000);
+ Thread.Sleep(500);
+ System.Diagnostics.Process.GetCurrentProcess().Kill();
+ }
+ }
+
+ private void pLC监控ToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ new OpcForm(IsDemoMesServer).Show(this);
+ }
+
+ private void 关于ToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ MessageBox.Show("关于信息!");
+ }
+
+ private void 系统日志ToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ new logInfo(currentOpName).Show(this);
+ }
+
+ private void 查询ToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ new partInfo(currentOpName).Show(this);
+ }
+
+ private void aGV调试ToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ new AgvTest(currentOpName).Show(this);
+
+ }
+
+ private void 上下限设置ToolStripMenuItem1_Click(object sender, EventArgs e)
+ {
+ new MeasureRangeSet(currentOpName).Show(this);
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+
+ if (MessageBox.Show("是否确认跳过本次拧紧?\r\n仅适用于上位机拧紧确认失败的操作", "拧紧确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
+ {
+ MesWorkForm.WritePLC(83, currentOpName, true);
+ MessageBox.Show("操作完成!");
+ }
+ }
+ }
+}
+
diff --git a/CCYQ_JieFang/MesWork.resx b/CCYQ_JieFang/MesWork.resx
new file mode 100644
index 0000000..356fa76
--- /dev/null
+++ b/CCYQ_JieFang/MesWork.resx
@@ -0,0 +1,472 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+ Fill
+
+
+
+ 2, 45
+
+
+ 2, 2, 2, 2
+
+
+ 2022, 1046
+
+
+
+ 0
+
+
+ panel_Page
+
+
+ System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ tableLayoutPanel1
+
+
+ 0
+
+
+ 1
+
+
+ 402, -2
+
+
+ 104, 41
+
+
+ 2
+
+
+ 拧紧确认
+
+
+ button1
+
+
+ System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ panel2
+
+
+ 0
+
+
+ 17, 17
+
+
+ Fill
+
+
+ 0, 0
+
+
+ 7, 2, 0, 2
+
+
+ 2022, 39
+
+
+ 1
+
+
+ menuStrip1
+
+
+ menuStrip1
+
+
+ System.Windows.Forms.MenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ panel2
+
+
+ 1
+
+
+ Fill
+
+
+ 2, 2
+
+
+ 2, 2, 2, 2
+
+
+ 2022, 39
+
+
+ 1
+
+
+ panel2
+
+
+ System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ tableLayoutPanel1
+
+
+ 1
+
+
+ Fill
+
+
+ 0, 0
+
+
+ 2, 2, 2, 2
+
+
+ 2
+
+
+ 2026, 1093
+
+
+ 1
+
+
+ tableLayoutPanel1
+
+
+ System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
+ 0
+
+
+ <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="panel_Page" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="panel2" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /></Controls><Columns Styles="Percent,100" /><Rows Styles="Absolute,43,Percent,100" /></TableLayoutSettings>
+
+
+ 62, 35
+
+
+ 系统
+
+
+ 200, 34
+
+
+ 上下限设置
+
+
+ 200, 34
+
+
+ 系统日志
+
+
+ 200, 34
+
+
+ 退出
+
+
+ 62, 35
+
+
+ 监控
+
+
+ 178, 34
+
+
+ PLC监控
+
+
+ 134, 35
+
+
+ 查询生产信息
+
+
+ 100, 35
+
+
+ AGV调试
+
+
+ True
+
+
+ 49
+
+
+ 144, 144
+
+
+ True
+
+
+ 2026, 1093
+
+
+
+ AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAA
+ AAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+ /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+ /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+ /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+ /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AxodGBciJSHLKjEuYyoxMlsqM
+ TJbKjEyWyoxMlsqMTJbKjEyWyoxMlsqMTJbKjEyWyoxMlsqMTJbKjEyWyoxMlsqMTJbKjEuYyIlIcsaH
+ RgX///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wC+fToHzI5OuOix
+ eP/wvIX/8LuE//C7hP/wu4T/8LuE//C7hP/wu4T/8LuE//C7hP/wu4T/8LuE//C7hP/wu4T/8LyF/+ix
+ eP/Mjk64v306B////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+ /wDIiUhk3KNn9e+6g//wu4T/8LuE//C8hP/wvIX/77uE/++7hP/vu4T/77uE//C8hf/wvIT/8LuE//C7
+ hP/vuoP/3KNn9ciJSGT///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+ /wD///8A////AMWFQwbGh0ZUyotLk8qMTJbKjEyUyYtKsNKWWPvfp2v/36Zr/9+ma//fp2v/0pZY+8mL
+ SrDKjEyUyoxMlsqLS5PGh0ZUxYVEB////wD///8A////AP///wD///8A////AP///wDIiUgCwoI/CLt5
+ NQm7eTUJu3k1Cbt5NQm7eTUJung0CLNvKga0cCoHtHArB6BWDAPCgT9E3aNo9vvKlf/7yZX/+8mV//vK
+ lf/do2j2woE/RKBWDAO0cCsHtHAqB7NvKQa6eDQIu3k1Cbt5NQm7eTUJu3k1Cbt5NQnCgj8IyIlIAsaH
+ RjbLjUy40JNUwNCTVMDQk1TA0JNUwNCTVMDQk1TA0JNUwNCTVMDQk1TA0JNUv8+SUtDTl1n926Fl/9uh
+ Zf/boWX/26Fl/9OXWf3PklLQ0JNUv9CTVMDQk1TA0JNUwNCTVMDQk1TA0JNUwM+SUsDPklLA0JJTwMuN
+ TLjGh0Y2xIRCSNuhZfT2w47/9sON//bDjf/2w43/9sON//bDjf/2w43/9sON//bDjf/2w43/9sOO//bD
+ jv/2w43/9sON//bDjf/2w43/9sOO//bDjv/2w43/9sON//bDjf/2w43/9sON//bDjf/2w47/9syf//bR
+ qf/2ypv/26Fl9MSEQkjDg0FI3qVq9P7Nmf/+zZn//s2Z//7Nmf/+zZn//s2Z//7Nmf/+zZn//s2Z//7N
+ mf/+zZn//s2Z//7Nmf/+zZn//s2Z//7Nmf/+zZn//s2Z//7Nmf/+zZn//s2Z//7Nmf/+zZn//s2Z//7N
+ mv/+4MD//+rU//7btv/epWn0w4NBSMWGREjRllj036hv/9+ob//fqG//36hv/9+ob//fqG//36hv/9+o
+ b//fqG//36hv/9+ob//fqG//36hv/9+ob//fqG//36hv/9+ob//fqG//36hv/9+ob//fqG//36hv/9+o
+ b//fqG//36hv/9+obv/fqG7/36hu/9GWWPTFhkRIxII9SNmugfTw4dH/8ODQ//Dg0P/w4ND/8ODQ//Dg
+ 0P/w4ND/8ODQ//Dg0P/w4ND/8ODQ//Dg0P/w4ND/8ODQ//Dg0P/w4ND/8ODQ//Dg0P/w4ND/8ODQ//Dg
+ 0P/w4ND/8ODQ//Dg0P/w4ND/8ODQ//Dg0P/w4dH/2a6B9MSCPUjDfzpI37uV9P//////////////////
+ ////////////////////////////////////////////////////////////////////////////////
+ ///////////////////////////////////////////////////fu5X0w386SMN/Okjfu5X0////////
+ ////////////////////////////////////////////////////////////////////////+vXv//v2
+ 8f///////////////////////////////////////////////////////////9+7lfTDfzpIw386SN+7
+ lfT/////////////////////////////////////////////////////////////////////////////
+ ///jxKP/4b+c////////////////////////////////////////////////////////////37uV9MN/
+ OkjDfzpI37uV9P//////////////////////////////////////////////////////////////////
+ ////////+PDo/9eqe//Vp3b/9ere////////////////////////////////////////////////////
+ ///fu5X0w386SMN/Okjfu5X0////////////////////////////////////////////////////////
+ ///////////////////myq3/5cip/+vUvP/hvpv//v79////////////////////////////////////
+ /////////////9+7lfTDfzpIw386SN+7lfT/////////////////////////////////////////////
+ ////////////////////////+vXv/9qxh//27OL//Pn2/9y1jP/y5NX/////////////////////////
+ ////////////////////////37uV9MN/OkjDgDpI3rmS9P36+P/9+vf//fr3//369//9+vf//fr3//36
+ 9//9+vf//vz6///////////////////////r1Lz/4sKh////////////7dnF/964kv/8+PT//fr3//36
+ 9//9+vf//fr3//369//9+vf//fr3//36+P/euZL0w4A6SMaFQkjQm2T03LSL/9y0iv/ctIr/3LSK/9y0
+ iv/ctIr/3LSK/9uyiP/eupT/+/fy/////////////Pj1/9y1jf/06Nv////////////9+/j/37yX/9qw
+ hf/ctIv/3LSK/9y0iv/ctIr/3LSK/9y0iv/ctIr/3LSL/9CbZPTGhUJIxIE8SNy0i/T48Of/+O/m//jv
+ 5v/47+b/+O/m//jv5v/47+b/9+/m/9+6lP/q0bn////////////t2cT/3rqU//79/P//////////////
+ ///8+PT/9+/m//jv5v/47+b/+O/m//jv5v/47+b/+O/m//jv5v/48Of/3LSL9MSBPEjDfzpI37uV9P//
+ ////////////////////////////////////////9erf/9qvhP/58+3//fz6/922jv/x4dD/////////
+ ///////////////////////////////////////////////////////////////////fu5X0w386SMN/
+ Okjfu5X0////////////////////////////////////////////////48Oi/+bKrv/x4ND/3beP//37
+ +v///////////////////////////////////////////////////////////////////////////9+7
+ lfTDfzpIw386SN+7lfT////////////////////////////////////////////////37+b/2a6C/9er
+ ff/u28f/////////////////////////////////////////////////////////////////////////
+ ////////37uV9MN/OkjDfzpI37uV9P//////////////////////////////////////////////////
+ ///myaz/16p8//z59v//////////////////////////////////////////////////////////////
+ ///////////////////fu5X0w386SMN/Okjfu5X0////////////////////////////////////////
+ //////////////r17//16dz/////////////////////////////////////////////////////////
+ /////////////////////////////9+7lfTDfzpIw386SN+7lfT/////////////////////////////
+ ////////////////////////////////////////////////////////////////////////////////
+ ////////////////////////////////////////37uV9MN/OkjEgTxI3LSL9Pjw5//47+f/+O/n//jv
+ 5//47+f/+O/n//jv5//47+f/+O/n//jv5//47+f/+O/n//jv5//47+f/+O/n//jv5//47+f/+O/n//jv
+ 5//47+f/+O/n//jv5//47+f/+O/n//jv5//47+f/+O/n//jw5//ctIv0xIE8SMaHRTbLkFO40JtkwNCb
+ ZMDQm2TA0JtkwNCbZMDQm2TA0JtkwNCbZMDQm2TA0JtkwNCbZMDQm2TA0JtkwNCbZMDQm2TA0JtkwNCb
+ ZMDQm2TA0JtkwNCbZMDQm2TA0JtkwNCbZMDQm2TA0JtkwNCbZMDQm2TA0JtkwMuQU7jGh0U2yIpKAsJ9
+ NQi6bR4Jum0eCbptHgm6bR4Jum0eCbptHgm6bR4Jum0eCbptHgm6bR4Jum0eCbptHgm6bR4Jum0eCbpt
+ Hgm6bR4Jum0eCbptHgm6bR4Jum0eCbptHgm6bR4Jum0eCbptHgm6bR4Jum0eCbptHgm6bR4Jwn01CMiK
+ SgL///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+ /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+ /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+ /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+ /wD///8A////AP///wD///8A///////////8AAA//AAAP/4AAH/+AAB/AAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAA//////////8=
+
+
+
+ 2, 2, 2, 2
+
+
+ CenterScreen
+
+
+ 监控系统( 2023.1213)
+
+
+ 文件ToolStripMenuItem
+
+
+ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 上下限设置ToolStripMenuItem1
+
+
+ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 系统日志ToolStripMenuItem
+
+
+ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ ToolStripMenuItem_exit
+
+
+ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 监控ToolStripMenuItem
+
+
+ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ pLC监控ToolStripMenuItem
+
+
+ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 查询ToolStripMenuItem
+
+
+ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ aGV调试ToolStripMenuItem
+
+
+ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ MesWorkForm
+
+
+ MesWork.PlcLinkForm, MesWork.PLC, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/AgvTest.Designer.cs b/CCYQ_JieFang/OP/AgvTest.Designer.cs
new file mode 100644
index 0000000..ab62d36
--- /dev/null
+++ b/CCYQ_JieFang/OP/AgvTest.Designer.cs
@@ -0,0 +1,256 @@
+namespace CCYQ_JieFang
+{
+ partial class AgvTest
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.button5 = new System.Windows.Forms.Button();
+ this.button4 = new System.Windows.Forms.Button();
+ this.button3 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.button1 = new System.Windows.Forms.Button();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.checkBox4_position4 = new System.Windows.Forms.CheckBox();
+ this.checkBox1_position1 = new System.Windows.Forms.CheckBox();
+ this.checkBox3_position3 = new System.Windows.Forms.CheckBox();
+ this.checkBox2_position2 = new System.Windows.Forms.CheckBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // button5
+ //
+ this.button5.Font = new System.Drawing.Font("宋体", 11F);
+ this.button5.Location = new System.Drawing.Point(364, 334);
+ this.button5.Name = "button5";
+ this.button5.Size = new System.Drawing.Size(317, 57);
+ this.button5.TabIndex = 12;
+ this.button5.Text = "4.AGV已经离开工位(下料)";
+ this.button5.UseVisualStyleBackColor = true;
+ this.button5.Click += new System.EventHandler(this.button5_Click);
+ //
+ // button4
+ //
+ this.button4.Font = new System.Drawing.Font("宋体", 11F);
+ this.button4.Location = new System.Drawing.Point(29, 334);
+ this.button4.Name = "button4";
+ this.button4.Size = new System.Drawing.Size(309, 57);
+ this.button4.TabIndex = 13;
+ this.button4.Text = "4.AGV已经离开工位(上料)";
+ this.button4.UseVisualStyleBackColor = true;
+ this.button4.Click += new System.EventHandler(this.button4_Click);
+ //
+ // button3
+ //
+ this.button3.Font = new System.Drawing.Font("宋体", 11F);
+ this.button3.Location = new System.Drawing.Point(364, 193);
+ this.button3.Name = "button3";
+ this.button3.Size = new System.Drawing.Size(317, 57);
+ this.button3.TabIndex = 14;
+ this.button3.Text = "3.AGV请求离开工位";
+ this.button3.UseVisualStyleBackColor = true;
+ this.button3.Click += new System.EventHandler(this.button3_Click);
+ //
+ // button2
+ //
+ this.button2.Font = new System.Drawing.Font("宋体", 11F);
+ this.button2.Location = new System.Drawing.Point(29, 193);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(317, 57);
+ this.button2.TabIndex = 15;
+ this.button2.Text = "2.AGV请求进入工位";
+ this.button2.UseVisualStyleBackColor = true;
+ this.button2.Click += new System.EventHandler(this.button2_Click);
+ //
+ // button1
+ //
+ this.button1.Font = new System.Drawing.Font("宋体", 11F);
+ this.button1.Location = new System.Drawing.Point(29, 50);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(317, 57);
+ this.button1.TabIndex = 16;
+ this.button1.Text = "1.AGV进行送料(允许工作)";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // panel1
+ //
+ this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel1.Controls.Add(this.checkBox4_position4);
+ this.panel1.Controls.Add(this.checkBox1_position1);
+ this.panel1.Controls.Add(this.checkBox3_position3);
+ this.panel1.Controls.Add(this.checkBox2_position2);
+ this.panel1.Location = new System.Drawing.Point(364, 31);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(259, 90);
+ this.panel1.TabIndex = 18;
+ //
+ // checkBox4_position4
+ //
+ this.checkBox4_position4.AutoSize = true;
+ this.checkBox4_position4.Checked = true;
+ this.checkBox4_position4.CheckState = System.Windows.Forms.CheckState.Checked;
+ this.checkBox4_position4.Location = new System.Drawing.Point(133, 56);
+ this.checkBox4_position4.Name = "checkBox4_position4";
+ this.checkBox4_position4.Size = new System.Drawing.Size(115, 22);
+ this.checkBox4_position4.TabIndex = 19;
+ this.checkBox4_position4.Text = "位置4有料";
+ this.checkBox4_position4.UseVisualStyleBackColor = true;
+ this.checkBox4_position4.CheckedChanged += new System.EventHandler(this.checkBox4_position4_CheckedChanged);
+ //
+ // checkBox1_position1
+ //
+ this.checkBox1_position1.AutoSize = true;
+ this.checkBox1_position1.Checked = true;
+ this.checkBox1_position1.CheckState = System.Windows.Forms.CheckState.Checked;
+ this.checkBox1_position1.Location = new System.Drawing.Point(12, 15);
+ this.checkBox1_position1.Name = "checkBox1_position1";
+ this.checkBox1_position1.Size = new System.Drawing.Size(115, 22);
+ this.checkBox1_position1.TabIndex = 19;
+ this.checkBox1_position1.Text = "位置1有料";
+ this.checkBox1_position1.UseVisualStyleBackColor = true;
+ this.checkBox1_position1.CheckedChanged += new System.EventHandler(this.checkBox1_position1_CheckedChanged);
+ //
+ // checkBox3_position3
+ //
+ this.checkBox3_position3.AutoSize = true;
+ this.checkBox3_position3.Checked = true;
+ this.checkBox3_position3.CheckState = System.Windows.Forms.CheckState.Checked;
+ this.checkBox3_position3.Location = new System.Drawing.Point(12, 56);
+ this.checkBox3_position3.Name = "checkBox3_position3";
+ this.checkBox3_position3.Size = new System.Drawing.Size(115, 22);
+ this.checkBox3_position3.TabIndex = 19;
+ this.checkBox3_position3.Text = "位置3有料";
+ this.checkBox3_position3.UseVisualStyleBackColor = true;
+ this.checkBox3_position3.CheckedChanged += new System.EventHandler(this.checkBox3_position3_CheckedChanged);
+ //
+ // checkBox2_position2
+ //
+ this.checkBox2_position2.AutoSize = true;
+ this.checkBox2_position2.Checked = true;
+ this.checkBox2_position2.CheckState = System.Windows.Forms.CheckState.Checked;
+ this.checkBox2_position2.Location = new System.Drawing.Point(133, 15);
+ this.checkBox2_position2.Name = "checkBox2_position2";
+ this.checkBox2_position2.Size = new System.Drawing.Size(115, 22);
+ this.checkBox2_position2.TabIndex = 19;
+ this.checkBox2_position2.Text = "位置2有料";
+ this.checkBox2_position2.UseVisualStyleBackColor = true;
+ this.checkBox2_position2.CheckedChanged += new System.EventHandler(this.checkBox2_position2_CheckedChanged);
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(57, 114);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(17, 18);
+ this.label1.TabIndex = 19;
+ this.label1.Text = ".";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(57, 253);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(17, 18);
+ this.label2.TabIndex = 19;
+ this.label2.Text = ".";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(361, 253);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(17, 18);
+ this.label3.TabIndex = 19;
+ this.label3.Text = ".";
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(57, 394);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(17, 18);
+ this.label4.TabIndex = 19;
+ this.label4.Text = ".";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(361, 394);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(17, 18);
+ this.label5.TabIndex = 19;
+ this.label5.Text = ".";
+ //
+ // AgvTest
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(718, 465);
+ this.Controls.Add(this.label5);
+ this.Controls.Add(this.label4);
+ this.Controls.Add(this.label3);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.panel1);
+ this.Controls.Add(this.button5);
+ this.Controls.Add(this.button4);
+ this.Controls.Add(this.button3);
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Name = "AgvTest";
+ this.Text = "AGV调试";
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button button5;
+ private System.Windows.Forms.Button button4;
+ private System.Windows.Forms.Button button3;
+ private System.Windows.Forms.Button button2;
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.CheckBox checkBox1_position1;
+ private System.Windows.Forms.CheckBox checkBox2_position2;
+ private System.Windows.Forms.CheckBox checkBox3_position3;
+ private System.Windows.Forms.CheckBox checkBox4_position4;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label5;
+ }
+}
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/AgvTest.cs b/CCYQ_JieFang/OP/AgvTest.cs
new file mode 100644
index 0000000..7a354ac
--- /dev/null
+++ b/CCYQ_JieFang/OP/AgvTest.cs
@@ -0,0 +1,688 @@
+using MesWork;
+using Newtonsoft.Json;
+using Opc.Ua;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Data.SqlClient;
+using System.Drawing;
+using System.IO;
+using System.Linq;
+using System.Net;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace CCYQ_JieFang
+{
+ public partial class AgvTest : Form
+ {
+ string currentOpName;
+ public AgvTest(string opName)
+ {
+ currentOpName = opName;
+ InitializeComponent();
+ InitPartInfo();
+ }
+
+ private void InitPartInfo()
+ {
+ if(publicCore.partCount == 1)
+ {
+ checkBox1_position1.Visible = true;
+ checkBox2_position2.Visible = false;
+ checkBox3_position3.Visible = false;
+ checkBox4_position4.Visible = false;
+ }
+ else if(publicCore.partCount == 2)
+ {
+ checkBox1_position1.Visible = true;
+ checkBox2_position2.Visible = true;
+ checkBox3_position3.Visible = false;
+ checkBox4_position4.Visible = false;
+ }
+ else if(publicCore.partCount == 3)
+ {
+ checkBox1_position1.Visible = true;
+ checkBox2_position2.Visible = true;
+ checkBox3_position3.Visible = true;
+ checkBox4_position4.Visible = false;
+ }
+ else if(publicCore.partCount == 4)
+ {
+ checkBox1_position1.Visible = true;
+ checkBox2_position2.Visible = true;
+ checkBox3_position3.Visible = true;
+ checkBox4_position4.Visible = true;
+ }
+
+
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ label1.Text = "正在发送请求,请稍后...";
+ publicCore.LogInsert("IPC_product", "Info", "正在发送请求,请稍后...");
+ try
+ {
+ IPC_product iPC_product = new IPC_product();
+ iPC_product.MsgId = AnalysisMsg.UuidUtil();
+ iPC_product.Location = currentOpName;
+ iPC_product.MsgSource = 2;
+ iPC_product.SendTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
+ iPC_product.AssemblyInformation = SolveProductCount();
+
+ //准备上传的数据 反序列化
+ string bodydata = JsonConvert.SerializeObject(iPC_product);
+
+ publicCore.LogInsert(currentOpName, "Info", bodydata);
+
+ string urlstr = MesWorkForm.IPC_product;
+ string retString;
+ HttpWebRequest request = (HttpWebRequest)WebRequest.Create(urlstr);
+ request.Method = "post";
+ byte[] bytes = Encoding.UTF8.GetBytes(bodydata);
+ request.Accept = "*/*";
+ request.ContentType = "application/json;charset=utf-8";
+
+ // 反序列化后先把JSON做接口记录
+ //存储日志
+ int AID = -1;
+ var CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ //Event_MOM_Log_Insert,@创建时间,@内容
+ var reqParam = new SqlParameter[] {
+ new SqlParameter("@接口地址",urlstr),
+ new SqlParameter("@接口类型",1), // 1. 主动调用接口 2. 被调用接口
+ new SqlParameter("@请求内容",bodydata),
+ new SqlParameter("@请求时间",CreateTime)
+ };
+ DataLinkMesWork.SQLCommon.ExecuteStoredProcedure("接口_IOT接口交互日志_请求记录", MesWorkForm.ConnectionString, ref reqParam, out DataTable reqDt, out string errorMessage);
+ if (reqDt.Rows.Count > 0)
+ {
+ AID = Convert.ToInt32(reqDt.Rows[0]["AID"]);
+ }
+
+ request.ContentLength = bytes.Length;
+
+ // 准备请求体
+ Stream myResponseStream = request.GetRequestStream();
+ myResponseStream.Write(bytes, 0, bytes.Length);
+ //发送webapi请求 等待相应
+ HttpWebResponse response = (HttpWebResponse)request.GetResponse();
+ StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
+ retString = myStreamReader.ReadToEnd();
+
+ //响应结果
+ CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ var resParam = new SqlParameter[] {
+ new SqlParameter("@AID",AID),
+ new SqlParameter("@响应时间",CreateTime),
+ new SqlParameter("@响应内容",retString)
+ };
+ DataLinkMesWork.SQLCommon.ExecuteStoredProcedure("接口_IOT接口交互日志_响应记录", MesWorkForm.ConnectionString, ref resParam, out errorMessage);
+
+ // 序列化响应内容
+ msgResHeader mrh = JsonConvert.DeserializeObject(retString);
+ int statusCode = (int)response.StatusCode;
+ // 对响应内容进行处理 更新数据库标志
+ if (statusCode == 200)
+ {
+ myStreamReader.Close();
+ myResponseStream.Close();
+ label1.Text = "请求发送成功!详细信息查看日志";
+ publicCore.LogInsert("IPC_product", "Info", "请求发送成功!详细信息查看日志");
+
+ if (response != null)
+ {
+ // 失败
+ if (mrh.Code != "200")
+ {
+ publicCore.LogInsert(currentOpName, "Error", "接口【IPC-接收装配信息】失败!" + mrh.Message);
+ }
+ response.Close();
+ }
+ if (request != null)
+ {
+ request.Abort();
+ }
+ publicCore.LogInsert(currentOpName, "Info", retString);
+ }
+ else
+ {
+ label1.Text = "正在发送请求,请稍后...";
+ publicCore.LogInsert("IPC_product", "Error", "接口【IPC-接收装配信息】失败!" + statusCode);
+ }
+ }
+ catch (Exception err)
+ {
+ publicCore.LogInsert("IPC_product", "Error", "接口【IPC-接收装配信息】失败!" + err.Message);
+ }
+
+ }
+
+ private void button2_Click(object sender, EventArgs e)
+ {
+ label2.Text = "正在发送请求,请稍后...";
+ publicCore.LogInsert("IPC_RequestEnterOrLeave_Enter", "Info", "正在发送请求,请稍后...");
+ try
+ {
+ IPC_RequestEnterOrLeave iPC_RequestEnterOrLeave = new IPC_RequestEnterOrLeave();
+ iPC_RequestEnterOrLeave.MsgId = AnalysisMsg.UuidUtil();
+ iPC_RequestEnterOrLeave.Location = currentOpName;
+ iPC_RequestEnterOrLeave.MsgSource = 2;
+ iPC_RequestEnterOrLeave.RequestType = 1;
+ iPC_RequestEnterOrLeave.SendTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
+
+ //准备上传的数据 反序列化
+ string bodydata = JsonConvert.SerializeObject(iPC_RequestEnterOrLeave);
+
+ publicCore.LogInsert("IPC_RequestEnterOrLeave_Enter", "Info", bodydata);
+
+ string urlstr = MesWorkForm.IPC_RequestEnterOrLeave;
+ string retString;
+ HttpWebRequest request = (HttpWebRequest)WebRequest.Create(urlstr);
+ request.Method = "post";
+ byte[] bytes = Encoding.UTF8.GetBytes(bodydata);
+ request.Accept = "*/*";
+ request.ContentType = "application/json;charset=utf-8";
+
+ // 反序列化后先把JSON做接口记录
+ //存储日志
+ int AID = -1;
+ var CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ //Event_MOM_Log_Insert,@创建时间,@内容
+ var reqParam = new SqlParameter[] {
+ new SqlParameter("@接口地址",urlstr),
+ new SqlParameter("@接口类型",1), // 1. 主动调用接口 2. 被调用接口
+ new SqlParameter("@请求内容",bodydata),
+ new SqlParameter("@请求时间",CreateTime)
+ };
+ DataLinkMesWork.SQLCommon.ExecuteStoredProcedure("接口_IOT接口交互日志_请求记录", MesWorkForm.ConnectionString, ref reqParam, out DataTable reqDt, out string errorMessage);
+ if (reqDt.Rows.Count > 0)
+ {
+ AID = Convert.ToInt32(reqDt.Rows[0]["AID"]);
+ }
+
+ request.ContentLength = bytes.Length;
+
+ // 准备请求体
+ Stream myResponseStream = request.GetRequestStream();
+ myResponseStream.Write(bytes, 0, bytes.Length);
+ //发送webapi请求 等待相应
+ HttpWebResponse response = (HttpWebResponse)request.GetResponse();
+ StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
+ retString = myStreamReader.ReadToEnd();
+
+ //响应结果
+ CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ var resParam = new SqlParameter[] {
+ new SqlParameter("@AID",AID),
+ new SqlParameter("@响应时间",CreateTime),
+ new SqlParameter("@响应内容",retString)
+ };
+ DataLinkMesWork.SQLCommon.ExecuteStoredProcedure("接口_IOT接口交互日志_响应记录", MesWorkForm.ConnectionString, ref resParam, out errorMessage);
+
+ // 序列化响应内容
+ msgResHeader mrh = JsonConvert.DeserializeObject(retString);
+ int statusCode = (int)response.StatusCode;
+ // 对响应内容进行处理 更新数据库标志
+ if (statusCode == 200)
+ {
+ myStreamReader.Close();
+ myResponseStream.Close();
+ label2.Text = "请求发送成功!详细信息查看日志";
+ publicCore.LogInsert("IPC_RequestEnterOrLeave_Enter", "Info", "请求发送成功!详细信息查看日志");
+
+ if (response != null)
+ {
+ // 失败
+ if (mrh.Code != "200")
+ {
+ publicCore.LogInsert("IPC_RequestEnterOrLeave_Enter", "Error", "接口【IPC-AGV请求进入/离开】失败!" + mrh.Message);
+ }
+ response.Close();
+ }
+ if (request != null)
+ {
+ request.Abort();
+ }
+ publicCore.LogInsert("IPC_RequestEnterOrLeave_Enter", "Info", retString);
+ }
+ else
+ {
+ label2.Text = "正在发送请求,请稍后...";
+ publicCore.LogInsert("IPC_RequestEnterOrLeave_Enter", "Error", "接口【IPC-AGV请求进入/离开】失败!" + statusCode);
+ }
+ }
+ catch (Exception err)
+ {
+ publicCore.LogInsert(currentOpName, "Error", "接口【IPC-接收装配信息】失败!" + err.Message);
+ }
+ }
+
+ private void button3_Click(object sender, EventArgs e)
+ {
+ label3.Text = "正在发送请求,请稍后...";
+ publicCore.LogInsert("IPC_RequestEnterOrLeave_Leave", "Info", "正在发送请求,请稍后...");
+ try
+ {
+ IPC_RequestEnterOrLeave iPC_RequestEnterOrLeave = new IPC_RequestEnterOrLeave();
+ iPC_RequestEnterOrLeave.MsgId = AnalysisMsg.UuidUtil();
+ iPC_RequestEnterOrLeave.Location = currentOpName;
+ iPC_RequestEnterOrLeave.MsgSource = 2;
+ iPC_RequestEnterOrLeave.RequestType = 2;
+ iPC_RequestEnterOrLeave.SendTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
+
+ //准备上传的数据 反序列化
+ string bodydata = JsonConvert.SerializeObject(iPC_RequestEnterOrLeave);
+
+ publicCore.LogInsert("IPC_RequestEnterOrLeave_Leave", "Info", bodydata);
+
+ string urlstr = MesWorkForm.IPC_RequestEnterOrLeave;
+ string retString;
+ HttpWebRequest request = (HttpWebRequest)WebRequest.Create(urlstr);
+ request.Method = "post";
+ byte[] bytes = Encoding.UTF8.GetBytes(bodydata);
+ request.Accept = "*/*";
+ request.ContentType = "application/json;charset=utf-8";
+
+ // 反序列化后先把JSON做接口记录
+ //存储日志
+ int AID = -1;
+ var CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ //Event_MOM_Log_Insert,@创建时间,@内容
+ var reqParam = new SqlParameter[] {
+ new SqlParameter("@接口地址",urlstr),
+ new SqlParameter("@接口类型",1), // 1. 主动调用接口 2. 被调用接口
+ new SqlParameter("@请求内容",bodydata),
+ new SqlParameter("@请求时间",CreateTime)
+ };
+ DataLinkMesWork.SQLCommon.ExecuteStoredProcedure("接口_IOT接口交互日志_请求记录", MesWorkForm.ConnectionString, ref reqParam, out DataTable reqDt, out string errorMessage);
+ if (reqDt.Rows.Count > 0)
+ {
+ AID = Convert.ToInt32(reqDt.Rows[0]["AID"]);
+ }
+
+ request.ContentLength = bytes.Length;
+
+ // 准备请求体
+ Stream myResponseStream = request.GetRequestStream();
+ myResponseStream.Write(bytes, 0, bytes.Length);
+ //发送webapi请求 等待相应
+ HttpWebResponse response = (HttpWebResponse)request.GetResponse();
+ StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
+ retString = myStreamReader.ReadToEnd();
+
+ //响应结果
+ CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ var resParam = new SqlParameter[] {
+ new SqlParameter("@AID",AID),
+ new SqlParameter("@响应时间",CreateTime),
+ new SqlParameter("@响应内容",retString)
+ };
+ DataLinkMesWork.SQLCommon.ExecuteStoredProcedure("接口_IOT接口交互日志_响应记录", MesWorkForm.ConnectionString, ref resParam, out errorMessage);
+
+ // 序列化响应内容
+ msgResHeader mrh = JsonConvert.DeserializeObject(retString);
+ int statusCode = (int)response.StatusCode;
+ // 对响应内容进行处理 更新数据库标志
+ if (statusCode == 200)
+ {
+ myStreamReader.Close();
+ myResponseStream.Close();
+ label3.Text = "请求发送成功!详细信息查看日志";
+ publicCore.LogInsert("IPC_RequestEnterOrLeave_Leave", "Info", "请求发送成功!详细信息查看日志");
+
+ if (response != null)
+ {
+ // 失败
+ if (mrh.Code != "200")
+ {
+ publicCore.LogInsert("IPC_RequestEnterOrLeave_Leave", "Error", "接口【IPC-AGV请求进入/离开】失败!" + mrh.Message);
+ }
+ response.Close();
+ }
+ if (request != null)
+ {
+ request.Abort();
+ }
+ publicCore.LogInsert("IPC_RequestEnterOrLeave_Leave", "Info", retString);
+ }
+ else
+ {
+ label3.Text = "正在发送请求,请稍后...";
+ publicCore.LogInsert("IPC_RequestEnterOrLeave_Leave", "Error", "接口【IPC-AGV请求进入/离开】失败!" + statusCode);
+ }
+ }
+ catch (Exception err)
+ {
+ publicCore.LogInsert("IPC_RequestEnterOrLeave_Leave", "Error", "接口【IPC-AGV请求进入/离开】失败!" + err.Message);
+ }
+ }
+
+ private void button4_Click(object sender, EventArgs e)
+ {
+ label4.Text = "正在发送请求,请稍后...";
+ publicCore.LogInsert("IPC_WorkFinsih_Up", "Info", "正在发送请求,请稍后...");
+ try
+ {
+ IPC_WorkFinsih iPC_WorkFinsih = new IPC_WorkFinsih();
+ iPC_WorkFinsih.MsgId = AnalysisMsg.UuidUtil();
+ iPC_WorkFinsih.Location = currentOpName;
+ iPC_WorkFinsih.MsgSource = 2;
+ iPC_WorkFinsih.FinishType = 1;
+ iPC_WorkFinsih.SendTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
+
+ //准备上传的数据 反序列化
+ string bodydata = JsonConvert.SerializeObject(iPC_WorkFinsih);
+
+ publicCore.LogInsert("IPC_WorkFinsih_Up", "Info", bodydata);
+
+ string urlstr = MesWorkForm.IPC_WorkFinsih;
+ string retString;
+ HttpWebRequest request = (HttpWebRequest)WebRequest.Create(urlstr);
+ request.Method = "post";
+ byte[] bytes = Encoding.UTF8.GetBytes(bodydata);
+ request.Accept = "*/*";
+ request.ContentType = "application/json;charset=utf-8";
+
+ // 反序列化后先把JSON做接口记录
+ //存储日志
+ int AID = -1;
+ var CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ //Event_MOM_Log_Insert,@创建时间,@内容
+ var reqParam = new SqlParameter[] {
+ new SqlParameter("@接口地址",urlstr),
+ new SqlParameter("@接口类型",1), // 1. 主动调用接口 2. 被调用接口
+ new SqlParameter("@请求内容",bodydata),
+ new SqlParameter("@请求时间",CreateTime)
+ };
+ DataLinkMesWork.SQLCommon.ExecuteStoredProcedure("接口_IOT接口交互日志_请求记录", MesWorkForm.ConnectionString, ref reqParam, out DataTable reqDt, out string errorMessage);
+ if (reqDt.Rows.Count > 0)
+ {
+ AID = Convert.ToInt32(reqDt.Rows[0]["AID"]);
+ }
+
+ request.ContentLength = bytes.Length;
+
+ // 准备请求体
+ Stream myResponseStream = request.GetRequestStream();
+ myResponseStream.Write(bytes, 0, bytes.Length);
+ //发送webapi请求 等待相应
+ HttpWebResponse response = (HttpWebResponse)request.GetResponse();
+ StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
+ retString = myStreamReader.ReadToEnd();
+
+ //响应结果
+ CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ var resParam = new SqlParameter[] {
+ new SqlParameter("@AID",AID),
+ new SqlParameter("@响应时间",CreateTime),
+ new SqlParameter("@响应内容",retString)
+ };
+ DataLinkMesWork.SQLCommon.ExecuteStoredProcedure("接口_IOT接口交互日志_响应记录", MesWorkForm.ConnectionString, ref resParam, out errorMessage);
+
+ // 序列化响应内容
+ msgResHeader mrh = JsonConvert.DeserializeObject(retString);
+ int statusCode = (int)response.StatusCode;
+ // 对响应内容进行处理 更新数据库标志
+ if (statusCode == 200)
+ {
+ myStreamReader.Close();
+ myResponseStream.Close();
+ label4.Text = "请求发送成功!详细信息查看日志";
+ publicCore.LogInsert("IPC_WorkFinsih_Up", "Info", "请求发送成功!详细信息查看日志");
+
+ if (response != null)
+ {
+ // 失败
+ if (mrh.Code != "200")
+ {
+ publicCore.LogInsert("IPC_WorkFinsih_Up", "Error", "接口【IPC-AGV上料完成离开】失败!" + mrh.Message);
+ }
+ response.Close();
+ }
+ if (request != null)
+ {
+ request.Abort();
+ }
+ publicCore.LogInsert("IPC_WorkFinsih_Up", "Info", retString);
+ }
+ else
+ {
+ label4.Text = "正在发送请求,请稍后...";
+ publicCore.LogInsert("IPC_WorkFinsih_Up", "Error", "接口【IPC-AGV上料完成离开】失败!" + statusCode);
+ }
+ }
+ catch (Exception err)
+ {
+ publicCore.LogInsert("IPC_WorkFinsih_Up", "Error", "接口【IPC-AGV上料完成离开】失败!" + err.Message);
+ }
+ }
+
+ private void button5_Click(object sender, EventArgs e)
+ {
+ label5.Text = "正在发送请求,请稍后...";
+ publicCore.LogInsert("IPC_WorkFinsih_Down", "Info", "正在发送请求,请稍后...");
+ try
+ {
+ IPC_WorkFinsih iPC_WorkFinsih = new IPC_WorkFinsih();
+ iPC_WorkFinsih.MsgId = AnalysisMsg.UuidUtil();
+ iPC_WorkFinsih.Location = currentOpName;
+ iPC_WorkFinsih.MsgSource = 2;
+ iPC_WorkFinsih.FinishType = 2;
+ iPC_WorkFinsih.SendTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
+
+ //准备上传的数据 反序列化
+ string bodydata = JsonConvert.SerializeObject(iPC_WorkFinsih);
+
+ publicCore.LogInsert("IPC_WorkFinsih_Down", "Info", bodydata);
+
+ string urlstr = MesWorkForm.IPC_WorkFinsih;
+ string retString;
+ HttpWebRequest request = (HttpWebRequest)WebRequest.Create(urlstr);
+ request.Method = "post";
+ byte[] bytes = Encoding.UTF8.GetBytes(bodydata);
+ request.Accept = "*/*";
+ request.ContentType = "application/json;charset=utf-8";
+
+ // 反序列化后先把JSON做接口记录
+ //存储日志
+ int AID = -1;
+ var CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ //Event_MOM_Log_Insert,@创建时间,@内容
+ var reqParam = new SqlParameter[] {
+ new SqlParameter("@接口地址",urlstr),
+ new SqlParameter("@接口类型",1), // 1. 主动调用接口 2. 被调用接口
+ new SqlParameter("@请求内容",bodydata),
+ new SqlParameter("@请求时间",CreateTime)
+ };
+ DataLinkMesWork.SQLCommon.ExecuteStoredProcedure("接口_IOT接口交互日志_请求记录", MesWorkForm.ConnectionString, ref reqParam, out DataTable reqDt, out string errorMessage);
+ if (reqDt.Rows.Count > 0)
+ {
+ AID = Convert.ToInt32(reqDt.Rows[0]["AID"]);
+ }
+
+ request.ContentLength = bytes.Length;
+
+ // 准备请求体
+ Stream myResponseStream = request.GetRequestStream();
+ myResponseStream.Write(bytes, 0, bytes.Length);
+ //发送webapi请求 等待相应
+ HttpWebResponse response = (HttpWebResponse)request.GetResponse();
+ StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
+ retString = myStreamReader.ReadToEnd();
+
+ //响应结果
+ CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
+ var resParam = new SqlParameter[] {
+ new SqlParameter("@AID",AID),
+ new SqlParameter("@响应时间",CreateTime),
+ new SqlParameter("@响应内容",retString)
+ };
+ DataLinkMesWork.SQLCommon.ExecuteStoredProcedure("接口_IOT接口交互日志_响应记录", MesWorkForm.ConnectionString, ref resParam, out errorMessage);
+
+ // 序列化响应内容
+ msgResHeader mrh = JsonConvert.DeserializeObject(retString);
+ int statusCode = (int)response.StatusCode;
+ // 对响应内容进行处理 更新数据库标志
+ if (statusCode == 200)
+ {
+ myStreamReader.Close();
+ myResponseStream.Close();
+ label5.Text = "请求发送成功!详细信息查看日志";
+ publicCore.LogInsert("IPC_WorkFinsih_Down", "Info", "请求发送成功!详细信息查看日志");
+
+ if (response != null)
+ {
+ // 失败
+ if (mrh.Code != "200")
+ {
+ publicCore.LogInsert("IPC_WorkFinsih_Down", "Error", "接口【IPC-AGV上料完成离开】失败!" + mrh.Message);
+ }
+ response.Close();
+ }
+ if (request != null)
+ {
+ request.Abort();
+ }
+ publicCore.LogInsert("IPC_WorkFinsih_Down", "Info", retString);
+ }
+ else
+ {
+ label4.Text = "正在发送请求,请稍后...";
+ publicCore.LogInsert("IPC_WorkFinsih_Down", "Error", "接口【IPC-AGV上料完成离开】失败!" + statusCode);
+ }
+ }
+ catch (Exception err)
+ {
+ publicCore.LogInsert("IPC_WorkFinsih_Down", "Error", "接口【IPC-AGV上料完成离开】失败!" + err.Message);
+ }
+ }
+
+
+
+ private List SolveProductCount()
+ {
+ List AssemblyInformation = new List();
+ string currentTime = DateTime.Now.ToString("yyyyMMddHHmmss");
+ if (publicCore.partCount == 1)
+ {
+ if(checkBox1_position1.Checked)
+ {
+ IPC_product_AssemblyInformation product_AssemblyInformation1 = new IPC_product_AssemblyInformation();
+ product_AssemblyInformation1.productPosition = 1;
+ product_AssemblyInformation1.productNo = currentTime + "_part1";
+ product_AssemblyInformation1.productName = "装配件01";
+ AssemblyInformation.Add(product_AssemblyInformation1);
+ }
+
+
+ }
+ else if (publicCore.partCount == 2)
+ {
+ if (checkBox1_position1.Checked)
+ {
+ IPC_product_AssemblyInformation product_AssemblyInformation1 = new IPC_product_AssemblyInformation();
+ product_AssemblyInformation1.productPosition = 1;
+ product_AssemblyInformation1.productNo = currentTime + "_part1";
+ product_AssemblyInformation1.productName = "装配件01";
+ AssemblyInformation.Add(product_AssemblyInformation1);
+ }
+ if (checkBox2_position2.Checked)
+ {
+ IPC_product_AssemblyInformation product_AssemblyInformation2 = new IPC_product_AssemblyInformation();
+ product_AssemblyInformation2.productPosition = 2;
+ product_AssemblyInformation2.productNo = currentTime + "_part2";
+ product_AssemblyInformation2.productName = "装配件02";
+ AssemblyInformation.Add(product_AssemblyInformation2);
+ }
+
+ }
+ else if (publicCore.partCount == 3)
+ {
+ if (checkBox1_position1.Checked)
+ {
+ IPC_product_AssemblyInformation product_AssemblyInformation1 = new IPC_product_AssemblyInformation();
+ product_AssemblyInformation1.productPosition = 1;
+ product_AssemblyInformation1.productNo = currentTime + "_part1";
+ product_AssemblyInformation1.productName = "装配件01";
+ AssemblyInformation.Add(product_AssemblyInformation1);
+ }
+ if (checkBox2_position2.Checked)
+ {
+ IPC_product_AssemblyInformation product_AssemblyInformation2 = new IPC_product_AssemblyInformation();
+ product_AssemblyInformation2.productPosition = 2;
+ product_AssemblyInformation2.productNo = currentTime + "_part2";
+ product_AssemblyInformation2.productName = "装配件02";
+ AssemblyInformation.Add(product_AssemblyInformation2);
+ }
+ if (checkBox3_position3.Checked)
+ {
+ IPC_product_AssemblyInformation product_AssemblyInformation3 = new IPC_product_AssemblyInformation();
+ product_AssemblyInformation3.productPosition = 3;
+ product_AssemblyInformation3.productNo = currentTime + "_part3";
+ product_AssemblyInformation3.productName = "装配件03";
+ AssemblyInformation.Add(product_AssemblyInformation3);
+ }
+ }
+ else if (publicCore.partCount == 4)
+ {
+ if (checkBox1_position1.Checked)
+ {
+ IPC_product_AssemblyInformation product_AssemblyInformation1 = new IPC_product_AssemblyInformation();
+ product_AssemblyInformation1.productPosition = 1;
+ product_AssemblyInformation1.productNo = currentTime + "_part1";
+ product_AssemblyInformation1.productName = "装配件01";
+ AssemblyInformation.Add(product_AssemblyInformation1);
+ }
+ if (checkBox2_position2.Checked)
+ {
+ IPC_product_AssemblyInformation product_AssemblyInformation2 = new IPC_product_AssemblyInformation();
+ product_AssemblyInformation2.productPosition = 2;
+ product_AssemblyInformation2.productNo = currentTime + "_part2";
+ product_AssemblyInformation2.productName = "装配件02";
+ AssemblyInformation.Add(product_AssemblyInformation2);
+ }
+ if (checkBox3_position3.Checked)
+ {
+ IPC_product_AssemblyInformation product_AssemblyInformation3 = new IPC_product_AssemblyInformation();
+ product_AssemblyInformation3.productPosition = 3;
+ product_AssemblyInformation3.productNo = currentTime + "_part3";
+ product_AssemblyInformation3.productName = "装配件03";
+ AssemblyInformation.Add(product_AssemblyInformation3);
+ }
+ if (checkBox4_position4.Checked)
+ {
+ IPC_product_AssemblyInformation product_AssemblyInformation4 = new IPC_product_AssemblyInformation();
+ product_AssemblyInformation4.productPosition = 4;
+ product_AssemblyInformation4.productNo = currentTime + "_part4";
+ product_AssemblyInformation4.productName = "装配件04";
+ AssemblyInformation.Add(product_AssemblyInformation4);
+ }
+ }
+ return AssemblyInformation;
+ }
+
+ private void checkBox1_position1_CheckedChanged(object sender, EventArgs e)
+ {
+ SolveProductCount();
+ }
+
+ private void checkBox2_position2_CheckedChanged(object sender, EventArgs e)
+ {
+ SolveProductCount();
+ }
+
+ private void checkBox3_position3_CheckedChanged(object sender, EventArgs e)
+ {
+ SolveProductCount();
+ }
+
+ private void checkBox4_position4_CheckedChanged(object sender, EventArgs e)
+ {
+ SolveProductCount();
+ }
+ }
+}
diff --git a/CCYQ_JieFang/OP/AgvTest.resx b/CCYQ_JieFang/OP/AgvTest.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/CCYQ_JieFang/OP/AgvTest.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/MeasureRangeSet.Designer.cs b/CCYQ_JieFang/OP/MeasureRangeSet.Designer.cs
new file mode 100644
index 0000000..57856fc
--- /dev/null
+++ b/CCYQ_JieFang/OP/MeasureRangeSet.Designer.cs
@@ -0,0 +1,181 @@
+namespace CCYQ_JieFang
+{
+ partial class MeasureRangeSet
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.button1_search = new System.Windows.Forms.Button();
+ this.dataGridView1_part = new System.Windows.Forms.DataGridView();
+ this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.工位号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.测量项目 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.测量位置 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.单位 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.上限值 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.下限值 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.label1 = new System.Windows.Forms.Label();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1_part)).BeginInit();
+ this.SuspendLayout();
+ //
+ // button1_search
+ //
+ this.button1_search.FlatStyle = System.Windows.Forms.FlatStyle.System;
+ this.button1_search.Location = new System.Drawing.Point(12, 10);
+ this.button1_search.Name = "button1_search";
+ this.button1_search.Size = new System.Drawing.Size(75, 32);
+ this.button1_search.TabIndex = 6;
+ this.button1_search.Text = "查询";
+ this.button1_search.UseVisualStyleBackColor = true;
+ this.button1_search.Click += new System.EventHandler(this.button1_search_Click);
+ //
+ // dataGridView1_part
+ //
+ this.dataGridView1_part.AllowUserToAddRows = false;
+ this.dataGridView1_part.AllowUserToDeleteRows = false;
+ this.dataGridView1_part.AllowUserToResizeRows = false;
+ this.dataGridView1_part.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.dataGridView1_part.ColumnHeadersHeight = 29;
+ this.dataGridView1_part.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.dataGridView1_part.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.ID,
+ this.工位号,
+ this.测量项目,
+ this.测量位置,
+ this.单位,
+ this.上限值,
+ this.下限值});
+ this.dataGridView1_part.Location = new System.Drawing.Point(12, 49);
+ this.dataGridView1_part.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.dataGridView1_part.Name = "dataGridView1_part";
+ this.dataGridView1_part.RowHeadersVisible = false;
+ this.dataGridView1_part.RowHeadersWidth = 51;
+ this.dataGridView1_part.RowTemplate.Height = 27;
+ this.dataGridView1_part.Size = new System.Drawing.Size(1364, 604);
+ this.dataGridView1_part.TabIndex = 5;
+ this.dataGridView1_part.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dataGridView1_part_CellBeginEdit);
+ this.dataGridView1_part.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_part_CellEndEdit);
+ this.dataGridView1_part.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dataGridView1_part_DataError);
+ //
+ // ID
+ //
+ this.ID.DataPropertyName = "Id";
+ this.ID.HeaderText = "ID";
+ this.ID.MinimumWidth = 6;
+ this.ID.Name = "ID";
+ this.ID.ReadOnly = true;
+ this.ID.Width = 80;
+ //
+ // 工位号
+ //
+ this.工位号.DataPropertyName = "工位号";
+ this.工位号.HeaderText = "工位号";
+ this.工位号.MinimumWidth = 6;
+ this.工位号.Name = "工位号";
+ this.工位号.ReadOnly = true;
+ //
+ // 测量项目
+ //
+ this.测量项目.DataPropertyName = "测量项目";
+ this.测量项目.HeaderText = "测量项目";
+ this.测量项目.MinimumWidth = 6;
+ this.测量项目.Name = "测量项目";
+ this.测量项目.ReadOnly = true;
+ this.测量项目.Width = 150;
+ //
+ // 测量位置
+ //
+ this.测量位置.DataPropertyName = "测量位置";
+ this.测量位置.HeaderText = "测量位置";
+ this.测量位置.MinimumWidth = 6;
+ this.测量位置.Name = "测量位置";
+ this.测量位置.ReadOnly = true;
+ //
+ // 单位
+ //
+ this.单位.DataPropertyName = "测量单位";
+ this.单位.HeaderText = "单位";
+ this.单位.MinimumWidth = 8;
+ this.单位.Name = "单位";
+ this.单位.Width = 150;
+ //
+ // 上限值
+ //
+ this.上限值.DataPropertyName = "上限值";
+ this.上限值.HeaderText = "上限值";
+ this.上限值.MinimumWidth = 8;
+ this.上限值.Name = "上限值";
+ this.上限值.Width = 150;
+ //
+ // 下限值
+ //
+ this.下限值.DataPropertyName = "下限值";
+ this.下限值.HeaderText = "下限值";
+ this.下限值.MinimumWidth = 8;
+ this.下限值.Name = "下限值";
+ this.下限值.Width = 150;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(132, 17);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(242, 18);
+ this.label1.TabIndex = 7;
+ this.label1.Text = "可调整单位、上限值、下限值";
+ //
+ // MeasureRangeSet
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1388, 659);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.button1_search);
+ this.Controls.Add(this.dataGridView1_part);
+ this.Name = "MeasureRangeSet";
+ this.Text = "测量数据设定";
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1_part)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button button1_search;
+ private System.Windows.Forms.DataGridView dataGridView1_part;
+ private System.Windows.Forms.DataGridViewTextBoxColumn ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 工位号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 测量项目;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 测量位置;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 单位;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 上限值;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 下限值;
+ private System.Windows.Forms.Label label1;
+ }
+}
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/MeasureRangeSet.cs b/CCYQ_JieFang/OP/MeasureRangeSet.cs
new file mode 100644
index 0000000..cf126fd
--- /dev/null
+++ b/CCYQ_JieFang/OP/MeasureRangeSet.cs
@@ -0,0 +1,121 @@
+using MesWork;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Data.SqlClient;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace CCYQ_JieFang
+{
+ public partial class MeasureRangeSet : Form
+ {
+ string currentOpName;
+ object oldValue = null;
+ public MeasureRangeSet(string opName)
+ {
+ currentOpName = opName;
+ InitializeComponent();
+ dataGridView1_part.AutoGenerateColumns = false;
+ SearchPartInit(currentOpName);
+ }
+
+ private void button1_search_Click(object sender, EventArgs e)
+ {
+ SearchPartInit(Name);
+ }
+
+
+
+ private void SearchPartInit(string opName)
+ {
+ try
+ {
+ SearchMeasureInfo(opName, out DataTable dt, out string errorMsg);
+ if (dt.Rows.Count > 0)
+ {
+ dataGridView1_part.DataSource = dt;
+ }
+ }
+ catch (Exception err)
+ {
+
+ }
+
+ }
+ private bool UpdateMeasureInfo(string ID, string upVlaue, string downVlaue, string unit, out string errorMsg)
+ {
+ string procedureName;
+ procedureName = "基础数据_质量数据_编辑";
+ SqlParameter[] thisParms = new SqlParameter[4];
+ thisParms[0] = new System.Data.SqlClient.SqlParameter("@ID", ID);
+ thisParms[1] = new System.Data.SqlClient.SqlParameter("@上限值", upVlaue);
+ thisParms[2] = new System.Data.SqlClient.SqlParameter("@下限值", downVlaue);
+ thisParms[3] = new System.Data.SqlClient.SqlParameter("@测量单位", unit);
+ return publicCore.ExecuteStoredProcedure(procedureName, MesWorkForm.ConnectionString, ref thisParms, out errorMsg);
+ }
+ private bool SearchMeasureInfo(string opName, out DataTable dt, out string errorMsg)
+ {
+ string procedureName;
+ procedureName = "基础数据_质量数据_查询";
+ SqlParameter[] thisParms = new SqlParameter[1];
+ thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
+ return publicCore.ExecuteStoredProcedure(procedureName, MesWorkForm.ConnectionString, ref thisParms, out dt, out errorMsg);
+ }
+
+ private void dataGridView1_part_CellEndEdit(object sender, DataGridViewCellEventArgs e)
+ {
+ object newValue = dataGridView1_part.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
+
+ if(oldValue != newValue)
+ {
+ try
+ {
+ string ID = GetDgvSVal(e, "ID");
+ string upVlaue = GetDgvSVal(e, "上限值");
+ string downVlaue = GetDgvSVal(e, "下限值");
+
+ if (Convert.ToDouble(upVlaue) < Convert.ToDouble(downVlaue))
+ {
+ MessageBox.Show("上限值应大于下限值!");
+ return;
+ }
+
+ string unit = GetDgvSVal(e, "测量单位");
+ if (UpdateMeasureInfo(ID, upVlaue, downVlaue, unit, out string errMsg))
+ {
+ MessageBox.Show("设置成功!");
+ }
+ else
+ {
+ MessageBox.Show("设置失败!");
+ }
+ }
+ catch (Exception err)
+ {
+ MessageBox.Show("设置错误!");
+ }
+ SearchPartInit(currentOpName);
+ }
+
+ }
+ private string GetDgvSVal(DataGridViewCellEventArgs e, string cellName)
+ {
+ return ((DataTable)dataGridView1_part.DataSource).Rows[e.RowIndex][cellName].ToString();
+ }
+
+ private void dataGridView1_part_DataError(object sender, DataGridViewDataErrorEventArgs e)
+ {
+ MessageBox.Show(e.Exception.Message.ToString());
+ }
+
+ private void dataGridView1_part_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
+ {
+ oldValue = dataGridView1_part.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
+ }
+ }
+}
diff --git a/CCYQ_JieFang/OP/MeasureRangeSet.resx b/CCYQ_JieFang/OP/MeasureRangeSet.resx
new file mode 100644
index 0000000..1716753
--- /dev/null
+++ b/CCYQ_JieFang/OP/MeasureRangeSet.resx
@@ -0,0 +1,162 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/OP10/DAS_OP10.Designer.cs b/CCYQ_JieFang/OP/OP10/DAS_OP10.Designer.cs
new file mode 100644
index 0000000..591670a
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP10/DAS_OP10.Designer.cs
@@ -0,0 +1,1179 @@
+namespace MesWork
+{
+ partial class DAS_OP10: PlcLinkForm
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DAS_OP10));
+ this.timHSCZ = new System.Windows.Forms.Timer(this.components);
+ this.label9 = new System.Windows.Forms.Label();
+ this.timUI = new System.Windows.Forms.Timer(this.components);
+ this.labelTime = new System.Windows.Forms.Label();
+ this.label18 = new System.Windows.Forms.Label();
+ this.panel7 = new System.Windows.Forms.Panel();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.pictureBox12_end_9 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_9 = new System.Windows.Forms.PictureBox();
+ this.textBox_MeasureValue_3 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_2 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_4 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_1 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_7 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_6 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_5 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_12 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_11 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_10 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_9 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_8 = new System.Windows.Forms.TextBox();
+ this.pictureBox12_end_10 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_4 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_2 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_12 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_11 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_2 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_12 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_11 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_10 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_3 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_1 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_8 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_7 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_6 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_5 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_4 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_5 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_6 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_7 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_8 = new System.Windows.Forms.PictureBox();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label10 = new System.Windows.Forms.Label();
+ this.pictureBox2_start_3 = new System.Windows.Forms.PictureBox();
+ this.label14 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.label13 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label12 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label11 = new System.Windows.Forms.Label();
+ this.pictureBox2_start_1 = new System.Windows.Forms.PictureBox();
+ this.label2 = new System.Windows.Forms.Label();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.label16 = new System.Windows.Forms.Label();
+ this.button_running = new System.Windows.Forms.Button();
+ this.button_alarm = new System.Windows.Forms.Button();
+ this.button_finished = new System.Windows.Forms.Button();
+ this.button_empty = new System.Windows.Forms.Button();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.label_AgvLeaved = new System.Windows.Forms.Label();
+ this.label19 = new System.Windows.Forms.Label();
+ this.label_AgvCanLeave = new System.Windows.Forms.Label();
+ this.label15 = new System.Windows.Forms.Label();
+ this.label_AgvRequestLeave = new System.Windows.Forms.Label();
+ this.button5_heartBeat_Ning = new System.Windows.Forms.Button();
+ this.button5_heartBeat = new System.Windows.Forms.Button();
+ this.label_AgvCanEnter = new System.Windows.Forms.Label();
+ this.textBox1_PartPosition = new System.Windows.Forms.TextBox();
+ this.label_AgvSongliao = new System.Windows.Forms.Label();
+ this.label_AgvRequestEnter = new System.Windows.Forms.Label();
+ this.label17 = new System.Windows.Forms.Label();
+ this.textBox1_EngineID = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.panel7.SuspendLayout();
+ this.panel3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_9)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_9)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_10)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_12)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_11)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_12)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_11)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_10)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_8)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_7)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_6)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_6)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_7)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_8)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // timHSCZ
+ //
+ this.timHSCZ.Enabled = true;
+ //
+ // label9
+ //
+ this.label9.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Bold);
+ this.label9.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.label9.Location = new System.Drawing.Point(-153, -198);
+ this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(771, 60);
+ this.label9.TabIndex = 22;
+ this.label9.Text = "微型减速机";
+ this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // timUI
+ //
+ this.timUI.Enabled = true;
+ //
+ // labelTime
+ //
+ this.labelTime.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F);
+ this.labelTime.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.labelTime.Location = new System.Drawing.Point(1010, -198);
+ this.labelTime.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.labelTime.Name = "labelTime";
+ this.labelTime.Size = new System.Drawing.Size(728, 69);
+ this.labelTime.TabIndex = 23;
+ this.labelTime.Text = "2021-03-09 12:30:30";
+ this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label18
+ //
+ this.label18.BackColor = System.Drawing.Color.Transparent;
+ this.label18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label18.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.label18.Font = new System.Drawing.Font("微软雅黑", 10.5F);
+ this.label18.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.label18.Location = new System.Drawing.Point(212, 212);
+ this.label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label18.Name = "label18";
+ this.label18.Size = new System.Drawing.Size(104, 64);
+ this.label18.TabIndex = 1;
+ this.label18.Text = "查询";
+ this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label18.Visible = false;
+ //
+ // panel7
+ //
+ this.panel7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
+ this.panel7.Controls.Add(this.label18);
+ this.panel7.Location = new System.Drawing.Point(-162, -134);
+ this.panel7.Margin = new System.Windows.Forms.Padding(4);
+ this.panel7.Name = "panel7";
+ this.panel7.Size = new System.Drawing.Size(1899, 82);
+ this.panel7.TabIndex = 24;
+ //
+ // panel3
+ //
+ this.panel3.Controls.Add(this.pictureBox12_end_9);
+ this.panel3.Controls.Add(this.pictureBox2_start_9);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_3);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_2);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_4);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_1);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_7);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_6);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_5);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_12);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_11);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_10);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_9);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_8);
+ this.panel3.Controls.Add(this.pictureBox12_end_10);
+ this.panel3.Controls.Add(this.pictureBox12_end_4);
+ this.panel3.Controls.Add(this.pictureBox12_end_2);
+ this.panel3.Controls.Add(this.pictureBox12_end_12);
+ this.panel3.Controls.Add(this.pictureBox12_end_11);
+ this.panel3.Controls.Add(this.pictureBox2_start_2);
+ this.panel3.Controls.Add(this.pictureBox2_start_12);
+ this.panel3.Controls.Add(this.pictureBox2_start_11);
+ this.panel3.Controls.Add(this.pictureBox2_start_10);
+ this.panel3.Controls.Add(this.pictureBox12_end_3);
+ this.panel3.Controls.Add(this.pictureBox12_end_1);
+ this.panel3.Controls.Add(this.pictureBox12_end_8);
+ this.panel3.Controls.Add(this.pictureBox12_end_7);
+ this.panel3.Controls.Add(this.pictureBox12_end_6);
+ this.panel3.Controls.Add(this.pictureBox12_end_5);
+ this.panel3.Controls.Add(this.pictureBox2_start_4);
+ this.panel3.Controls.Add(this.pictureBox2_start_5);
+ this.panel3.Controls.Add(this.pictureBox2_start_6);
+ this.panel3.Controls.Add(this.pictureBox2_start_7);
+ this.panel3.Controls.Add(this.pictureBox2_start_8);
+ this.panel3.Controls.Add(this.label6);
+ this.panel3.Controls.Add(this.label4);
+ this.panel3.Controls.Add(this.label5);
+ this.panel3.Controls.Add(this.label10);
+ this.panel3.Controls.Add(this.pictureBox2_start_3);
+ this.panel3.Controls.Add(this.label14);
+ this.panel3.Controls.Add(this.label8);
+ this.panel3.Controls.Add(this.label13);
+ this.panel3.Controls.Add(this.label3);
+ this.panel3.Controls.Add(this.label12);
+ this.panel3.Controls.Add(this.label7);
+ this.panel3.Controls.Add(this.label11);
+ this.panel3.Controls.Add(this.pictureBox2_start_1);
+ this.panel3.Controls.Add(this.label2);
+ this.panel3.Controls.Add(this.pictureBox1);
+ this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel3.Location = new System.Drawing.Point(3, 93);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(1989, 820);
+ this.panel3.TabIndex = 4;
+ //
+ // pictureBox12_end_9
+ //
+ this.pictureBox12_end_9.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_9.Location = new System.Drawing.Point(1335, 544);
+ this.pictureBox12_end_9.Name = "pictureBox12_end_9";
+ this.pictureBox12_end_9.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_9.TabIndex = 8;
+ this.pictureBox12_end_9.TabStop = false;
+ //
+ // pictureBox2_start_9
+ //
+ this.pictureBox2_start_9.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_9.Location = new System.Drawing.Point(1335, 543);
+ this.pictureBox2_start_9.Name = "pictureBox2_start_9";
+ this.pictureBox2_start_9.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_9.TabIndex = 8;
+ this.pictureBox2_start_9.TabStop = false;
+ //
+ // textBox_MeasureValue_3
+ //
+ this.textBox_MeasureValue_3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_3.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_3.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_3.Location = new System.Drawing.Point(1738, 513);
+ this.textBox_MeasureValue_3.Name = "textBox_MeasureValue_3";
+ this.textBox_MeasureValue_3.ReadOnly = true;
+ this.textBox_MeasureValue_3.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_3.TabIndex = 4;
+ this.textBox_MeasureValue_3.Text = "0";
+ //
+ // textBox_MeasureValue_2
+ //
+ this.textBox_MeasureValue_2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_2.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_2.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_2.Location = new System.Drawing.Point(280, 513);
+ this.textBox_MeasureValue_2.Name = "textBox_MeasureValue_2";
+ this.textBox_MeasureValue_2.ReadOnly = true;
+ this.textBox_MeasureValue_2.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_2.TabIndex = 4;
+ this.textBox_MeasureValue_2.Text = "0";
+ //
+ // textBox_MeasureValue_4
+ //
+ this.textBox_MeasureValue_4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_4.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_4.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_4.Location = new System.Drawing.Point(280, 314);
+ this.textBox_MeasureValue_4.Name = "textBox_MeasureValue_4";
+ this.textBox_MeasureValue_4.ReadOnly = true;
+ this.textBox_MeasureValue_4.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_4.TabIndex = 4;
+ this.textBox_MeasureValue_4.Text = "0";
+ //
+ // textBox_MeasureValue_1
+ //
+ this.textBox_MeasureValue_1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_1.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_1.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_1.Location = new System.Drawing.Point(1738, 314);
+ this.textBox_MeasureValue_1.Name = "textBox_MeasureValue_1";
+ this.textBox_MeasureValue_1.ReadOnly = true;
+ this.textBox_MeasureValue_1.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_1.TabIndex = 4;
+ this.textBox_MeasureValue_1.Text = "0";
+ //
+ // textBox_MeasureValue_7
+ //
+ this.textBox_MeasureValue_7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_7.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_7.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_7.Location = new System.Drawing.Point(1118, 8);
+ this.textBox_MeasureValue_7.Name = "textBox_MeasureValue_7";
+ this.textBox_MeasureValue_7.ReadOnly = true;
+ this.textBox_MeasureValue_7.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_7.TabIndex = 4;
+ this.textBox_MeasureValue_7.Text = "0";
+ //
+ // textBox_MeasureValue_6
+ //
+ this.textBox_MeasureValue_6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_6.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_6.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_6.Location = new System.Drawing.Point(903, 8);
+ this.textBox_MeasureValue_6.Name = "textBox_MeasureValue_6";
+ this.textBox_MeasureValue_6.ReadOnly = true;
+ this.textBox_MeasureValue_6.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_6.TabIndex = 4;
+ this.textBox_MeasureValue_6.Text = "0";
+ //
+ // textBox_MeasureValue_5
+ //
+ this.textBox_MeasureValue_5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_5.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_5.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_5.Location = new System.Drawing.Point(692, 8);
+ this.textBox_MeasureValue_5.Name = "textBox_MeasureValue_5";
+ this.textBox_MeasureValue_5.ReadOnly = true;
+ this.textBox_MeasureValue_5.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_5.TabIndex = 4;
+ this.textBox_MeasureValue_5.Text = "0";
+ //
+ // textBox_MeasureValue_12
+ //
+ this.textBox_MeasureValue_12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_12.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_12.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_12.Location = new System.Drawing.Point(704, 771);
+ this.textBox_MeasureValue_12.Name = "textBox_MeasureValue_12";
+ this.textBox_MeasureValue_12.ReadOnly = true;
+ this.textBox_MeasureValue_12.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_12.TabIndex = 4;
+ this.textBox_MeasureValue_12.Text = "0";
+ //
+ // textBox_MeasureValue_11
+ //
+ this.textBox_MeasureValue_11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_11.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_11.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_11.Location = new System.Drawing.Point(915, 771);
+ this.textBox_MeasureValue_11.Name = "textBox_MeasureValue_11";
+ this.textBox_MeasureValue_11.ReadOnly = true;
+ this.textBox_MeasureValue_11.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_11.TabIndex = 4;
+ this.textBox_MeasureValue_11.Text = "0";
+ //
+ // textBox_MeasureValue_10
+ //
+ this.textBox_MeasureValue_10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_10.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_10.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_10.Location = new System.Drawing.Point(1130, 771);
+ this.textBox_MeasureValue_10.Name = "textBox_MeasureValue_10";
+ this.textBox_MeasureValue_10.ReadOnly = true;
+ this.textBox_MeasureValue_10.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_10.TabIndex = 4;
+ this.textBox_MeasureValue_10.Text = "0";
+ //
+ // textBox_MeasureValue_9
+ //
+ this.textBox_MeasureValue_9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_9.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_9.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_9.Location = new System.Drawing.Point(1354, 771);
+ this.textBox_MeasureValue_9.Name = "textBox_MeasureValue_9";
+ this.textBox_MeasureValue_9.ReadOnly = true;
+ this.textBox_MeasureValue_9.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_9.TabIndex = 4;
+ this.textBox_MeasureValue_9.Text = "0";
+ //
+ // textBox_MeasureValue_8
+ //
+ this.textBox_MeasureValue_8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_8.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_8.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_8.Location = new System.Drawing.Point(1342, 8);
+ this.textBox_MeasureValue_8.Name = "textBox_MeasureValue_8";
+ this.textBox_MeasureValue_8.ReadOnly = true;
+ this.textBox_MeasureValue_8.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_8.TabIndex = 4;
+ this.textBox_MeasureValue_8.Text = "0";
+ //
+ // pictureBox12_end_10
+ //
+ this.pictureBox12_end_10.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_10.Location = new System.Drawing.Point(1184, 544);
+ this.pictureBox12_end_10.Name = "pictureBox12_end_10";
+ this.pictureBox12_end_10.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_10.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_10.TabIndex = 8;
+ this.pictureBox12_end_10.TabStop = false;
+ //
+ // pictureBox12_end_4
+ //
+ this.pictureBox12_end_4.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_4.Location = new System.Drawing.Point(574, 345);
+ this.pictureBox12_end_4.Name = "pictureBox12_end_4";
+ this.pictureBox12_end_4.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_4.TabIndex = 8;
+ this.pictureBox12_end_4.TabStop = false;
+ //
+ // pictureBox12_end_2
+ //
+ this.pictureBox12_end_2.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_2.Location = new System.Drawing.Point(574, 448);
+ this.pictureBox12_end_2.Name = "pictureBox12_end_2";
+ this.pictureBox12_end_2.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_2.TabIndex = 8;
+ this.pictureBox12_end_2.TabStop = false;
+ //
+ // pictureBox12_end_12
+ //
+ this.pictureBox12_end_12.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_12.Location = new System.Drawing.Point(740, 544);
+ this.pictureBox12_end_12.Name = "pictureBox12_end_12";
+ this.pictureBox12_end_12.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_12.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_12.TabIndex = 8;
+ this.pictureBox12_end_12.TabStop = false;
+ //
+ // pictureBox12_end_11
+ //
+ this.pictureBox12_end_11.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_11.Location = new System.Drawing.Point(969, 544);
+ this.pictureBox12_end_11.Name = "pictureBox12_end_11";
+ this.pictureBox12_end_11.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_11.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_11.TabIndex = 8;
+ this.pictureBox12_end_11.TabStop = false;
+ //
+ // pictureBox2_start_2
+ //
+ this.pictureBox2_start_2.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_2.Location = new System.Drawing.Point(576, 447);
+ this.pictureBox2_start_2.Name = "pictureBox2_start_2";
+ this.pictureBox2_start_2.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_2.TabIndex = 8;
+ this.pictureBox2_start_2.TabStop = false;
+ //
+ // pictureBox2_start_12
+ //
+ this.pictureBox2_start_12.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_12.Location = new System.Drawing.Point(740, 543);
+ this.pictureBox2_start_12.Name = "pictureBox2_start_12";
+ this.pictureBox2_start_12.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_12.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_12.TabIndex = 8;
+ this.pictureBox2_start_12.TabStop = false;
+ //
+ // pictureBox2_start_11
+ //
+ this.pictureBox2_start_11.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_11.Location = new System.Drawing.Point(969, 543);
+ this.pictureBox2_start_11.Name = "pictureBox2_start_11";
+ this.pictureBox2_start_11.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_11.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_11.TabIndex = 8;
+ this.pictureBox2_start_11.TabStop = false;
+ //
+ // pictureBox2_start_10
+ //
+ this.pictureBox2_start_10.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_10.Location = new System.Drawing.Point(1184, 543);
+ this.pictureBox2_start_10.Name = "pictureBox2_start_10";
+ this.pictureBox2_start_10.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_10.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_10.TabIndex = 8;
+ this.pictureBox2_start_10.TabStop = false;
+ //
+ // pictureBox12_end_3
+ //
+ this.pictureBox12_end_3.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_3.Location = new System.Drawing.Point(1503, 448);
+ this.pictureBox12_end_3.Name = "pictureBox12_end_3";
+ this.pictureBox12_end_3.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_3.TabIndex = 8;
+ this.pictureBox12_end_3.TabStop = false;
+ //
+ // pictureBox12_end_1
+ //
+ this.pictureBox12_end_1.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_1.Location = new System.Drawing.Point(1503, 345);
+ this.pictureBox12_end_1.Name = "pictureBox12_end_1";
+ this.pictureBox12_end_1.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_1.TabIndex = 8;
+ this.pictureBox12_end_1.TabStop = false;
+ //
+ // pictureBox12_end_8
+ //
+ this.pictureBox12_end_8.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_8.Location = new System.Drawing.Point(1335, 273);
+ this.pictureBox12_end_8.Name = "pictureBox12_end_8";
+ this.pictureBox12_end_8.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_8.TabIndex = 8;
+ this.pictureBox12_end_8.TabStop = false;
+ //
+ // pictureBox12_end_7
+ //
+ this.pictureBox12_end_7.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_7.Location = new System.Drawing.Point(1184, 273);
+ this.pictureBox12_end_7.Name = "pictureBox12_end_7";
+ this.pictureBox12_end_7.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_7.TabIndex = 8;
+ this.pictureBox12_end_7.TabStop = false;
+ //
+ // pictureBox12_end_6
+ //
+ this.pictureBox12_end_6.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_6.Location = new System.Drawing.Point(969, 273);
+ this.pictureBox12_end_6.Name = "pictureBox12_end_6";
+ this.pictureBox12_end_6.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_6.TabIndex = 8;
+ this.pictureBox12_end_6.TabStop = false;
+ //
+ // pictureBox12_end_5
+ //
+ this.pictureBox12_end_5.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_5.Location = new System.Drawing.Point(724, 273);
+ this.pictureBox12_end_5.Name = "pictureBox12_end_5";
+ this.pictureBox12_end_5.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_5.TabIndex = 8;
+ this.pictureBox12_end_5.TabStop = false;
+ //
+ // pictureBox2_start_4
+ //
+ this.pictureBox2_start_4.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_4.Location = new System.Drawing.Point(574, 344);
+ this.pictureBox2_start_4.Name = "pictureBox2_start_4";
+ this.pictureBox2_start_4.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_4.TabIndex = 8;
+ this.pictureBox2_start_4.TabStop = false;
+ //
+ // pictureBox2_start_5
+ //
+ this.pictureBox2_start_5.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_5.Location = new System.Drawing.Point(724, 273);
+ this.pictureBox2_start_5.Name = "pictureBox2_start_5";
+ this.pictureBox2_start_5.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_5.TabIndex = 8;
+ this.pictureBox2_start_5.TabStop = false;
+ //
+ // pictureBox2_start_6
+ //
+ this.pictureBox2_start_6.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_6.Location = new System.Drawing.Point(969, 273);
+ this.pictureBox2_start_6.Name = "pictureBox2_start_6";
+ this.pictureBox2_start_6.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_6.TabIndex = 8;
+ this.pictureBox2_start_6.TabStop = false;
+ //
+ // pictureBox2_start_7
+ //
+ this.pictureBox2_start_7.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_7.Location = new System.Drawing.Point(1184, 273);
+ this.pictureBox2_start_7.Name = "pictureBox2_start_7";
+ this.pictureBox2_start_7.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_7.TabIndex = 8;
+ this.pictureBox2_start_7.TabStop = false;
+ //
+ // pictureBox2_start_8
+ //
+ this.pictureBox2_start_8.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_8.Location = new System.Drawing.Point(1335, 273);
+ this.pictureBox2_start_8.Name = "pictureBox2_start_8";
+ this.pictureBox2_start_8.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_8.TabIndex = 8;
+ this.pictureBox2_start_8.TabStop = false;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.BackColor = System.Drawing.Color.White;
+ this.label6.Font = new System.Drawing.Font("宋体", 15F);
+ this.label6.Location = new System.Drawing.Point(274, 480);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(73, 30);
+ this.label6.TabIndex = 6;
+ this.label6.Text = "扭矩";
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.BackColor = System.Drawing.Color.White;
+ this.label4.Font = new System.Drawing.Font("宋体", 15F);
+ this.label4.Location = new System.Drawing.Point(1732, 480);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(73, 30);
+ this.label4.TabIndex = 6;
+ this.label4.Text = "扭矩";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.BackColor = System.Drawing.Color.White;
+ this.label5.Font = new System.Drawing.Font("宋体", 15F);
+ this.label5.Location = new System.Drawing.Point(274, 280);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(73, 30);
+ this.label5.TabIndex = 6;
+ this.label5.Text = "扭矩";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.BackColor = System.Drawing.Color.White;
+ this.label10.Font = new System.Drawing.Font("宋体", 15F);
+ this.label10.Location = new System.Drawing.Point(1038, 10);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(73, 30);
+ this.label10.TabIndex = 6;
+ this.label10.Text = "扭矩";
+ //
+ // pictureBox2_start_3
+ //
+ this.pictureBox2_start_3.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_3.Location = new System.Drawing.Point(1503, 447);
+ this.pictureBox2_start_3.Name = "pictureBox2_start_3";
+ this.pictureBox2_start_3.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_3.TabIndex = 8;
+ this.pictureBox2_start_3.TabStop = false;
+ //
+ // label14
+ //
+ this.label14.AutoSize = true;
+ this.label14.BackColor = System.Drawing.Color.White;
+ this.label14.Font = new System.Drawing.Font("宋体", 15F);
+ this.label14.Location = new System.Drawing.Point(624, 777);
+ this.label14.Name = "label14";
+ this.label14.Size = new System.Drawing.Size(73, 30);
+ this.label14.TabIndex = 6;
+ this.label14.Text = "扭矩";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.BackColor = System.Drawing.Color.White;
+ this.label8.Font = new System.Drawing.Font("宋体", 15F);
+ this.label8.Location = new System.Drawing.Point(824, 10);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(73, 30);
+ this.label8.TabIndex = 6;
+ this.label8.Text = "扭矩";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.BackColor = System.Drawing.Color.White;
+ this.label13.Font = new System.Drawing.Font("宋体", 15F);
+ this.label13.Location = new System.Drawing.Point(836, 777);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(73, 30);
+ this.label13.TabIndex = 6;
+ this.label13.Text = "扭矩";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.BackColor = System.Drawing.Color.White;
+ this.label3.Font = new System.Drawing.Font("宋体", 15F);
+ this.label3.Location = new System.Drawing.Point(1732, 280);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(73, 30);
+ this.label3.TabIndex = 6;
+ this.label3.Text = "扭矩";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.BackColor = System.Drawing.Color.White;
+ this.label12.Font = new System.Drawing.Font("宋体", 15F);
+ this.label12.Location = new System.Drawing.Point(1050, 777);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(73, 30);
+ this.label12.TabIndex = 6;
+ this.label12.Text = "扭矩";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.BackColor = System.Drawing.Color.White;
+ this.label7.Font = new System.Drawing.Font("宋体", 15F);
+ this.label7.Location = new System.Drawing.Point(612, 10);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(73, 30);
+ this.label7.TabIndex = 6;
+ this.label7.Text = "扭矩";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.BackColor = System.Drawing.Color.White;
+ this.label11.Font = new System.Drawing.Font("宋体", 15F);
+ this.label11.Location = new System.Drawing.Point(1275, 777);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(73, 30);
+ this.label11.TabIndex = 6;
+ this.label11.Text = "扭矩";
+ //
+ // pictureBox2_start_1
+ //
+ this.pictureBox2_start_1.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_1.Location = new System.Drawing.Point(1503, 344);
+ this.pictureBox2_start_1.Name = "pictureBox2_start_1";
+ this.pictureBox2_start_1.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_1.TabIndex = 8;
+ this.pictureBox2_start_1.TabStop = false;
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.White;
+ this.label2.Font = new System.Drawing.Font("宋体", 15F);
+ this.label2.Location = new System.Drawing.Point(1263, 14);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(73, 30);
+ this.label2.TabIndex = 6;
+ this.label2.Text = "扭矩";
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.BackColor = System.Drawing.Color.White;
+ this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.pictureBox1.Image = global::CCYQ_JieFang.Properties.Resources._01_微型减速机;
+ this.pictureBox1.Location = new System.Drawing.Point(130, 16);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(1689, 748);
+ this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox1.TabIndex = 0;
+ this.pictureBox1.TabStop = false;
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.label16);
+ this.panel1.Controls.Add(this.button_running);
+ this.panel1.Controls.Add(this.button_alarm);
+ this.panel1.Controls.Add(this.button_finished);
+ this.panel1.Controls.Add(this.button_empty);
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel1.Location = new System.Drawing.Point(3, 919);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(1989, 84);
+ this.panel1.TabIndex = 3;
+ //
+ // label16
+ //
+ this.label16.BackColor = System.Drawing.Color.Black;
+ this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.label16.Location = new System.Drawing.Point(0, 4);
+ this.label16.Name = "label16";
+ this.label16.Size = new System.Drawing.Size(1980, 4);
+ this.label16.TabIndex = 10;
+ //
+ // button_running
+ //
+ this.button_running.BackColor = System.Drawing.Color.Gray;
+ this.button_running.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_running.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_running.ForeColor = System.Drawing.Color.White;
+ this.button_running.Location = new System.Drawing.Point(38, 15);
+ this.button_running.Name = "button_running";
+ this.button_running.Size = new System.Drawing.Size(333, 66);
+ this.button_running.TabIndex = 4;
+ this.button_running.Text = "设备运行(禁止上下料)";
+ this.button_running.UseVisualStyleBackColor = false;
+ //
+ // button_alarm
+ //
+ this.button_alarm.BackColor = System.Drawing.Color.Gray;
+ this.button_alarm.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_alarm.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_alarm.ForeColor = System.Drawing.Color.White;
+ this.button_alarm.Location = new System.Drawing.Point(1252, 16);
+ this.button_alarm.Name = "button_alarm";
+ this.button_alarm.Size = new System.Drawing.Size(333, 66);
+ this.button_alarm.TabIndex = 5;
+ this.button_alarm.Text = "设备故障";
+ this.button_alarm.UseVisualStyleBackColor = false;
+ //
+ // button_finished
+ //
+ this.button_finished.BackColor = System.Drawing.Color.Gray;
+ this.button_finished.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_finished.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_finished.ForeColor = System.Drawing.Color.White;
+ this.button_finished.Location = new System.Drawing.Point(442, 15);
+ this.button_finished.Name = "button_finished";
+ this.button_finished.Size = new System.Drawing.Size(333, 66);
+ this.button_finished.TabIndex = 6;
+ this.button_finished.Text = "完成装配(请求下料)";
+ this.button_finished.UseVisualStyleBackColor = false;
+ //
+ // button_empty
+ //
+ this.button_empty.BackColor = System.Drawing.Color.Gray;
+ this.button_empty.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_empty.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_empty.ForeColor = System.Drawing.Color.White;
+ this.button_empty.Location = new System.Drawing.Point(848, 16);
+ this.button_empty.Name = "button_empty";
+ this.button_empty.Size = new System.Drawing.Size(333, 66);
+ this.button_empty.TabIndex = 7;
+ this.button_empty.Text = "设备空闲(请求上料)";
+ this.button_empty.UseVisualStyleBackColor = false;
+ //
+ // panel2
+ //
+ this.panel2.Controls.Add(this.label_AgvLeaved);
+ this.panel2.Controls.Add(this.label19);
+ this.panel2.Controls.Add(this.label_AgvCanLeave);
+ this.panel2.Controls.Add(this.label15);
+ this.panel2.Controls.Add(this.label_AgvRequestLeave);
+ this.panel2.Controls.Add(this.button5_heartBeat_Ning);
+ this.panel2.Controls.Add(this.button5_heartBeat);
+ this.panel2.Controls.Add(this.label_AgvCanEnter);
+ this.panel2.Controls.Add(this.textBox1_PartPosition);
+ this.panel2.Controls.Add(this.label_AgvSongliao);
+ this.panel2.Controls.Add(this.label_AgvRequestEnter);
+ this.panel2.Controls.Add(this.label17);
+ this.panel2.Controls.Add(this.textBox1_EngineID);
+ this.panel2.Controls.Add(this.label1);
+ this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel2.Location = new System.Drawing.Point(3, 3);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(1989, 84);
+ this.panel2.TabIndex = 2;
+ //
+ // label_AgvLeaved
+ //
+ this.label_AgvLeaved.AutoSize = true;
+ this.label_AgvLeaved.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvLeaved.Location = new System.Drawing.Point(1393, 12);
+ this.label_AgvLeaved.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvLeaved.Name = "label_AgvLeaved";
+ this.label_AgvLeaved.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvLeaved.TabIndex = 9;
+ this.label_AgvLeaved.Text = "●AGV已经离开";
+ //
+ // label19
+ //
+ this.label19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label19.Location = new System.Drawing.Point(1756, 16);
+ this.label19.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label19.Name = "label19";
+ this.label19.Size = new System.Drawing.Size(2, 44);
+ this.label19.TabIndex = 9;
+ //
+ // label_AgvCanLeave
+ //
+ this.label_AgvCanLeave.AutoSize = true;
+ this.label_AgvCanLeave.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvCanLeave.Location = new System.Drawing.Point(1225, 45);
+ this.label_AgvCanLeave.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvCanLeave.Name = "label_AgvCanLeave";
+ this.label_AgvCanLeave.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvCanLeave.TabIndex = 9;
+ this.label_AgvCanLeave.Text = "●AGV可以离开";
+ //
+ // label15
+ //
+ this.label15.BackColor = System.Drawing.Color.Black;
+ this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.label15.Location = new System.Drawing.Point(0, 75);
+ this.label15.Name = "label15";
+ this.label15.Size = new System.Drawing.Size(1980, 4);
+ this.label15.TabIndex = 9;
+ //
+ // label_AgvRequestLeave
+ //
+ this.label_AgvRequestLeave.AutoSize = true;
+ this.label_AgvRequestLeave.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvRequestLeave.Location = new System.Drawing.Point(1225, 12);
+ this.label_AgvRequestLeave.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvRequestLeave.Name = "label_AgvRequestLeave";
+ this.label_AgvRequestLeave.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvRequestLeave.TabIndex = 9;
+ this.label_AgvRequestLeave.Text = "●AGV请求离开";
+ //
+ // button5_heartBeat_Ning
+ //
+ this.button5_heartBeat_Ning.BackColor = System.Drawing.Color.Gray;
+ this.button5_heartBeat_Ning.Font = new System.Drawing.Font("宋体", 12F);
+ this.button5_heartBeat_Ning.ForeColor = System.Drawing.Color.White;
+ this.button5_heartBeat_Ning.Location = new System.Drawing.Point(1765, 12);
+ this.button5_heartBeat_Ning.Name = "button5_heartBeat_Ning";
+ this.button5_heartBeat_Ning.Size = new System.Drawing.Size(100, 52);
+ this.button5_heartBeat_Ning.TabIndex = 5;
+ this.button5_heartBeat_Ning.Text = "拧紧枪";
+ this.button5_heartBeat_Ning.UseVisualStyleBackColor = false;
+ //
+ // button5_heartBeat
+ //
+ this.button5_heartBeat.BackColor = System.Drawing.Color.Gray;
+ this.button5_heartBeat.Font = new System.Drawing.Font("宋体", 12F);
+ this.button5_heartBeat.ForeColor = System.Drawing.Color.White;
+ this.button5_heartBeat.Location = new System.Drawing.Point(1883, 12);
+ this.button5_heartBeat.Name = "button5_heartBeat";
+ this.button5_heartBeat.Size = new System.Drawing.Size(100, 52);
+ this.button5_heartBeat.TabIndex = 5;
+ this.button5_heartBeat.Text = "PLC";
+ this.button5_heartBeat.UseVisualStyleBackColor = false;
+ //
+ // label_AgvCanEnter
+ //
+ this.label_AgvCanEnter.AutoSize = true;
+ this.label_AgvCanEnter.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvCanEnter.Location = new System.Drawing.Point(1043, 45);
+ this.label_AgvCanEnter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvCanEnter.Name = "label_AgvCanEnter";
+ this.label_AgvCanEnter.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvCanEnter.TabIndex = 9;
+ this.label_AgvCanEnter.Text = "●AGV可以进入";
+ //
+ // textBox1_PartPosition
+ //
+ this.textBox1_PartPosition.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox1_PartPosition.Font = new System.Drawing.Font("宋体", 20F);
+ this.textBox1_PartPosition.Location = new System.Drawing.Point(692, 9);
+ this.textBox1_PartPosition.Name = "textBox1_PartPosition";
+ this.textBox1_PartPosition.ReadOnly = true;
+ this.textBox1_PartPosition.Size = new System.Drawing.Size(118, 53);
+ this.textBox1_PartPosition.TabIndex = 1;
+ //
+ // label_AgvSongliao
+ //
+ this.label_AgvSongliao.AutoSize = true;
+ this.label_AgvSongliao.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvSongliao.Location = new System.Drawing.Point(883, 14);
+ this.label_AgvSongliao.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvSongliao.Name = "label_AgvSongliao";
+ this.label_AgvSongliao.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvSongliao.TabIndex = 9;
+ this.label_AgvSongliao.Text = "●AGV准备送料";
+ //
+ // label_AgvRequestEnter
+ //
+ this.label_AgvRequestEnter.AutoSize = true;
+ this.label_AgvRequestEnter.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvRequestEnter.Location = new System.Drawing.Point(1043, 12);
+ this.label_AgvRequestEnter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvRequestEnter.Name = "label_AgvRequestEnter";
+ this.label_AgvRequestEnter.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvRequestEnter.TabIndex = 9;
+ this.label_AgvRequestEnter.Text = "●AGV请求进入";
+ //
+ // label17
+ //
+ this.label17.AutoSize = true;
+ this.label17.Font = new System.Drawing.Font("宋体", 16F);
+ this.label17.Location = new System.Drawing.Point(525, 18);
+ this.label17.Name = "label17";
+ this.label17.Size = new System.Drawing.Size(175, 33);
+ this.label17.TabIndex = 0;
+ this.label17.Text = "装配位置:";
+ //
+ // textBox1_EngineID
+ //
+ this.textBox1_EngineID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox1_EngineID.Font = new System.Drawing.Font("宋体", 20F);
+ this.textBox1_EngineID.Location = new System.Drawing.Point(170, 10);
+ this.textBox1_EngineID.Name = "textBox1_EngineID";
+ this.textBox1_EngineID.ReadOnly = true;
+ this.textBox1_EngineID.Size = new System.Drawing.Size(348, 53);
+ this.textBox1_EngineID.TabIndex = 1;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("宋体", 16F);
+ this.label1.Location = new System.Drawing.Point(3, 20);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(175, 33);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "产品编码:";
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.ColumnCount = 1;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 2);
+ this.tableLayoutPanel1.Controls.Add(this.panel3, 0, 1);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 3;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 90F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 90F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1995, 1006);
+ this.tableLayoutPanel1.TabIndex = 25;
+ //
+ // DAS_OP10
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.Color.White;
+ this.ClientSize = new System.Drawing.Size(1995, 1006);
+ this.Controls.Add(this.tableLayoutPanel1);
+ this.Controls.Add(this.label9);
+ this.Controls.Add(this.labelTime);
+ this.Controls.Add(this.panel7);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "DAS_OP10";
+ this.Text = "OP10工位-微型减速机";
+ this.panel7.ResumeLayout(false);
+ this.panel3.ResumeLayout(false);
+ this.panel3.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_9)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_9)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_10)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_12)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_11)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_12)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_11)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_10)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_8)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_7)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_6)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_6)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_7)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_8)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ this.panel1.ResumeLayout(false);
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ private System.Windows.Forms.Timer timHSCZ;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Timer timUI;
+ private System.Windows.Forms.Label labelTime;
+ private System.Windows.Forms.Label label18;
+ private System.Windows.Forms.Panel panel7;
+ private System.Windows.Forms.Panel panel3;
+ private System.Windows.Forms.PictureBox pictureBox12_end_9;
+ private System.Windows.Forms.PictureBox pictureBox2_start_9;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_3;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_2;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_4;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_1;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_7;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_6;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_5;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_12;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_11;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_10;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_9;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_8;
+ private System.Windows.Forms.PictureBox pictureBox12_end_10;
+ private System.Windows.Forms.PictureBox pictureBox12_end_4;
+ private System.Windows.Forms.PictureBox pictureBox12_end_2;
+ private System.Windows.Forms.PictureBox pictureBox12_end_12;
+ private System.Windows.Forms.PictureBox pictureBox12_end_11;
+ private System.Windows.Forms.PictureBox pictureBox2_start_2;
+ private System.Windows.Forms.PictureBox pictureBox2_start_12;
+ private System.Windows.Forms.PictureBox pictureBox2_start_11;
+ private System.Windows.Forms.PictureBox pictureBox2_start_10;
+ private System.Windows.Forms.PictureBox pictureBox12_end_3;
+ private System.Windows.Forms.PictureBox pictureBox12_end_1;
+ private System.Windows.Forms.PictureBox pictureBox12_end_8;
+ private System.Windows.Forms.PictureBox pictureBox12_end_7;
+ private System.Windows.Forms.PictureBox pictureBox12_end_6;
+ private System.Windows.Forms.PictureBox pictureBox12_end_5;
+ private System.Windows.Forms.PictureBox pictureBox2_start_4;
+ private System.Windows.Forms.PictureBox pictureBox2_start_5;
+ private System.Windows.Forms.PictureBox pictureBox2_start_6;
+ private System.Windows.Forms.PictureBox pictureBox2_start_7;
+ private System.Windows.Forms.PictureBox pictureBox2_start_8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.PictureBox pictureBox2_start_3;
+ private System.Windows.Forms.Label label14;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.PictureBox pictureBox2_start_1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Label label16;
+ private System.Windows.Forms.Button button_running;
+ private System.Windows.Forms.Button button_alarm;
+ private System.Windows.Forms.Button button_finished;
+ private System.Windows.Forms.Button button_empty;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label label_AgvLeaved;
+ private System.Windows.Forms.Label label19;
+ private System.Windows.Forms.Label label_AgvCanLeave;
+ private System.Windows.Forms.Label label15;
+ private System.Windows.Forms.Label label_AgvRequestLeave;
+ private System.Windows.Forms.Button button5_heartBeat;
+ private System.Windows.Forms.Label label_AgvCanEnter;
+ private System.Windows.Forms.TextBox textBox1_PartPosition;
+ private System.Windows.Forms.Label label_AgvRequestEnter;
+ private System.Windows.Forms.Label label17;
+ private System.Windows.Forms.TextBox textBox1_EngineID;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private System.Windows.Forms.Label label_AgvSongliao;
+ private System.Windows.Forms.Button button5_heartBeat_Ning;
+ }
+}
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/OP10/DAS_OP10.cs b/CCYQ_JieFang/OP/OP10/DAS_OP10.cs
new file mode 100644
index 0000000..d288a43
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP10/DAS_OP10.cs
@@ -0,0 +1,654 @@
+
+using DK_DC_Tool;
+using HslCommunication.Core;
+using Newtonsoft.Json;
+using NPOI.SS.UserModel;
+using OpcBasic;
+using Robot.Common;
+using Serilog.Events;
+using System;
+using System.Collections.Concurrent;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using SystemFramework;
+
+namespace MesWork
+{
+ public partial class DAS_OP10
+ {
+ InitServer initServer = null;
+ ///
+ ///
+ ///
+ private static string OpNameCurrent = "";
+ ///
+ /// 字典 ,存储12个开始测量图片控件,key为测量位置,value为图片控件
+ ///
+ Dictionary dicStartMasurePictureBox = new Dictionary();
+ ///
+ /// 字典 ,存储12个结束测量图片控件,key为测量位置,value为图片控件
+ ///
+ Dictionary dicEndMasurePictureBox = new Dictionary();
+ ///
+ /// 字典 ,存储12个结束测量文本框控件,key为测量位置,value文本框的值
+ ///
+ Dictionary dicMeasureTextBox = new Dictionary();
+ ///
+ /// PLC事件变化委托
+ ///
+ public static Action MIS_Funtion_PLC_OP = null;
+
+ ///
+ /// PLC事件变化委托
+ ///
+ public static Action AGV_Task_change = null;
+ ///
+ /// PLC事件变化委托--处理托盘信息
+ ///
+ public static Action AGV_Task_Info = null;
+
+ // 每个工位的满工件数量
+ // 工位OP10 2个
+ public static int partCount = 2;
+
+ public static bool isConnect = false;
+
+ public DAS_OP10(string opName)
+ {
+ InitializeComponent();
+
+ publicCore.partCount = partCount;
+ OpNameCurrent = opName;
+
+ Tighten.E_DeviceHeartBeat -= DeviceHeartBeat_NingJinQiang;
+ Tighten.E_DeviceHeartBeat += DeviceHeartBeat_NingJinQiang;
+
+ MesWorkForm.MIS_Funtion_PLC_MeasureFinish -= SolvePicAndMeasureValueWorking;
+ MesWorkForm.MIS_Funtion_PLC_MeasureFinish += SolvePicAndMeasureValueWorking;
+
+ MIS_Funtion_PLC_OP -= MIS_Funtion_PLC;
+ MIS_Funtion_PLC_OP += MIS_Funtion_PLC;
+
+ AGV_Task_change -= SolveAgvDeviceStatus;
+ AGV_Task_change += SolveAgvDeviceStatus;
+
+
+ if (MesWorkForm.IsDemoMesServer == 1)
+ {
+ MoNiHeartBeat();
+ }
+ SolvePicAndMeasureValueInit();
+
+ new Thread(new ThreadStart(delegate () {
+ while (true)
+ {
+ try
+ {
+ SolveDeviceStatusInit(publicCore.SolveDeviceStatus_Read(OpNameCurrent));
+ }
+ catch (Exception err) { }
+ Thread.Sleep(2000);
+ }
+ }))
+ { IsBackground = true }.Start();
+
+ //var aa =
+ //new Thread(new ThreadStart(delegate () {
+ // while (true)
+ // {
+ // try
+ // {
+ // if (!isConnect)
+ // {
+ // if (publicCore.Get_PartPosition(OpNameCurrent) != -1)
+ // {
+ // isConnect = true;
+ // ProductInfo_search();
+ // }
+ // }
+ // }
+ // catch (Exception err) { }
+ // Thread.Sleep(1000);
+ // }
+ //}));
+ //aa.IsBackground = true;
+ //aa.Start();
+
+ }
+ public void MIS_Funtion_PLC(DeviceDriver_BasicData.CustomeEvetnArgs msgEvent)
+ {
+ try
+ {
+ var tagID = msgEvent.TagID.ToString();
+ // var opName = msgEvent.OpName.ToString();
+ var tagTypeCodeID = (int)msgEvent.TagTypeCodeID;
+ var tagTypeID = (EnumTagTypeID)msgEvent.TagTypeID;
+ string tagValue;
+ switch (tagTypeID)
+ {
+ case EnumTagTypeID.BOOL:
+ tagValue = (Convert.ToInt32(msgEvent.TagValue)).ToString();
+ break;
+ default:
+ tagValue = msgEvent.TagValue.ToString();
+ break;
+ }
+ switch (tagTypeCodeID)
+ {
+ case 14:
+ DeviceHeartBeat(tagValue);
+ break;
+ // AGV任务
+ case 50:
+ publicCore.SolveAgvTaskNum(OpNameCurrent, tagValue);
+ break;
+ // 51 空闲(请求上料)
+ // 52 完成(请求下料)
+ // 53 故障
+ case 51:
+ case 52:
+ case 53:
+ publicCore.SolveDeviceStatus(OpNameCurrent);
+ SolveDeviceStatusInit(publicCore.SolveDeviceStatus_Read(OpNameCurrent));
+ break;
+ // 54 第几个件
+ case 54:
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+ break;
+ case 55:
+ publicCore.MeasurePositionChange(OpNameCurrent, 2);
+ SolvePicAndMeasureValueWorking();
+ break;
+ //读电批
+ case 56:
+ if (tagValue == "1")
+ {
+ publicCore.LogInsert("OP10", "Info", "【PLC_读电批置位】");
+ // 不在这个地方写true,写在接收数据的地方写
+
+ }
+ else
+ {
+ publicCore.LogInsert("OP10", "Info", "【PLC_读电批复位】");
+ MesWorkForm.WritePLC(83, OpNameCurrent, false);
+ publicCore.LogInsert("OP10", "Info", "【IPC_读电批完成复位】");
+ }
+ break;
+ //读泄漏量1 2或者压力
+ case 59:
+ if (tagValue == "1")
+ {
+ //publicCore.ReadQualityData_LeakageRate(OpNameCurrent);
+ //publicCore.ReadQualityData_Pressure(OpNameCurrent);
+ MesWorkForm.WritePLC(84, OpNameCurrent, true);
+ }
+ else
+ {
+ MesWorkForm.WritePLC(84, OpNameCurrent, false);
+ }
+ break;
+ }
+ }
+ catch (Exception ex)
+ {
+ }
+ }
+ ///
+ /// 初始化界面显示
+ ///
+ private void SolvePicAndMeasureValueInit()
+ {
+ try
+ {
+ dicStartMasurePictureBox.Add(1, pictureBox2_start_1);
+ dicStartMasurePictureBox.Add(2, pictureBox2_start_2);
+ dicStartMasurePictureBox.Add(3, pictureBox2_start_3);
+ dicStartMasurePictureBox.Add(4, pictureBox2_start_4);
+ dicStartMasurePictureBox.Add(5, pictureBox2_start_5);
+ dicStartMasurePictureBox.Add(6, pictureBox2_start_6);
+ dicStartMasurePictureBox.Add(7, pictureBox2_start_7);
+ dicStartMasurePictureBox.Add(8, pictureBox2_start_8);
+ dicStartMasurePictureBox.Add(9, pictureBox2_start_9);
+ dicStartMasurePictureBox.Add(10, pictureBox2_start_10);
+ dicStartMasurePictureBox.Add(11, pictureBox2_start_11);
+ dicStartMasurePictureBox.Add(12, pictureBox2_start_12);
+
+ dicEndMasurePictureBox.Add(1, pictureBox12_end_1);
+ dicEndMasurePictureBox.Add(2, pictureBox12_end_2);
+ dicEndMasurePictureBox.Add(3, pictureBox12_end_3);
+ dicEndMasurePictureBox.Add(4, pictureBox12_end_4);
+ dicEndMasurePictureBox.Add(5, pictureBox12_end_5);
+ dicEndMasurePictureBox.Add(6, pictureBox12_end_6);
+ dicEndMasurePictureBox.Add(7, pictureBox12_end_7);
+ dicEndMasurePictureBox.Add(8, pictureBox12_end_8);
+ dicEndMasurePictureBox.Add(9, pictureBox12_end_9);
+ dicEndMasurePictureBox.Add(10, pictureBox12_end_10);
+ dicEndMasurePictureBox.Add(11, pictureBox12_end_11);
+ dicEndMasurePictureBox.Add(12, pictureBox12_end_12);
+
+ dicMeasureTextBox.Add(1, textBox_MeasureValue_1);
+ dicMeasureTextBox.Add(2, textBox_MeasureValue_2);
+ dicMeasureTextBox.Add(3, textBox_MeasureValue_3);
+ dicMeasureTextBox.Add(4, textBox_MeasureValue_4);
+ dicMeasureTextBox.Add(5, textBox_MeasureValue_5);
+ dicMeasureTextBox.Add(6, textBox_MeasureValue_6);
+ dicMeasureTextBox.Add(7, textBox_MeasureValue_7);
+ dicMeasureTextBox.Add(8, textBox_MeasureValue_8);
+ dicMeasureTextBox.Add(9, textBox_MeasureValue_9);
+ dicMeasureTextBox.Add(10, textBox_MeasureValue_10);
+ dicMeasureTextBox.Add(11, textBox_MeasureValue_11);
+ dicMeasureTextBox.Add(12, textBox_MeasureValue_12);
+
+
+ foreach (var item in dicStartMasurePictureBox)
+ {
+ item.Value.Visible = false;
+ }
+ foreach (var item in dicEndMasurePictureBox)
+ {
+ item.Value.Visible = false;
+ }
+ foreach (var item in dicMeasureTextBox)
+ {
+ item.Value.Text = "";
+ }
+
+ int partPosition = publicCore.Get_PartPosition(OpNameCurrent);
+
+ publicCore.GetQualityInfo_Init(OpNameCurrent, partPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ int measureStatus = Convert.ToInt32(dt.Rows[i]["测量状态"]);
+ int measurePosition = Convert.ToInt32(dt.Rows[i]["测量位置"]);
+ string tagValue = dt.Rows[i]["测量值"].ToString();
+ string isOk = dt.Rows[i]["是否合格"].ToString();
+
+ // 测量状态为1 表示初始状态,两张图片都不显示
+ // 测量状态为2 表示正在测量,显示第二张图片
+ // 测量状态为3 表示测量完成,显示第一张图片
+ var control_DicStartMasurePictureBox = dicStartMasurePictureBox[measurePosition];
+ var control_DicEndMasurePictureBox = dicEndMasurePictureBox[measurePosition];
+ var control_DicMeasureTextBox = dicMeasureTextBox[measurePosition];
+
+ if (measureStatus == 1)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 2)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, true);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 3)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, true);
+ }
+ if (isOk == "1")
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.White);
+ }
+ else
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.Red);
+ }
+ }
+ }
+ }
+ catch (Exception err)
+ {
+ }
+
+ }
+ ///
+ /// 工作时界面显示
+ ///
+ private void SolvePicAndMeasureValueWorking()
+ {
+ try
+ {
+ int partPosition = publicCore.Get_PartPosition(OpNameCurrent);
+ publicCore.GetQualityInfo_Init(OpNameCurrent, partPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ int measureStatus = Convert.ToInt32(dt.Rows[i]["测量状态"]);
+ int measurePosition = Convert.ToInt32(dt.Rows[i]["测量位置"]);
+ string tagValue = dt.Rows[i]["测量值"].ToString();
+ string isOk = dt.Rows[i]["是否合格"].ToString();
+ // 测量状态为1 表示初始状态,两张图片都不显示
+ // 测量状态为2 表示正在测量,显示第二张图片
+ // 测量状态为3 表示测量完成,显示第一张图片
+
+ var control_DicStartMasurePictureBox = dicStartMasurePictureBox[measurePosition];
+ var control_DicEndMasurePictureBox = dicEndMasurePictureBox[measurePosition];
+ var control_DicMeasureTextBox = dicMeasureTextBox[measurePosition];
+
+ if (measureStatus == 1)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 2)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, true);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 3)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, true);
+ }
+ if (isOk == "2")
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.Red);
+ }
+ else
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.White);
+ }
+ }
+ }
+ }
+ catch (Exception err)
+ {
+ }
+
+ }
+ ///
+ /// 界面产品编码和装配位置的显示
+ ///
+ public void ProductInfo_search()
+ {
+ try
+ {
+ //textBox1_EngineID.Text = "";
+ //textBox1_PartPosition.Text = "";
+ ShowTextBoxControl(textBox1_EngineID, "", Color.White);
+ ShowTextBoxControl(textBox1_PartPosition, "", Color.White);
+ int PartPosition = publicCore.Get_PartPosition(OpNameCurrent);
+ publicCore.GetProductInfo_Init(OpNameCurrent, PartPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ ShowTextBoxControl(textBox1_EngineID, dt.Rows[0]["发动机号"].ToString(), Color.White);
+ ShowTextBoxControl(textBox1_PartPosition, dt.Rows[0]["装配位置"].ToString(), Color.White);
+ //textBox1_EngineID.Text = dt.Rows[0]["发动机号"].ToString();
+ //textBox1_PartPosition.Text = dt.Rows[0]["装配位置"].ToString();
+ }
+ }
+ catch (Exception err)
+ {
+ }
+ }
+ private void ShowPicBoxControl(Control c, bool ststus)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.Visible = ststus;
+ }));
+ }
+ private void ShowTextBoxControl(Control c, string value, Color color)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.Text = value;
+ c.BackColor = color;
+ }));
+ }
+ private void ShowLabelControl(Control c, Color color)
+ {
+ //if (c.InvokeRequired)
+ //{
+
+ //}
+ //else
+ //{
+ // c.ForeColor = color;
+ //}
+ c.BeginInvoke(new Action(delegate () {
+ c.ForeColor = color;
+ }));
+ }
+ private void ShowButtonControl(Control c, Color color)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.BackColor = color;
+ }));
+ }
+
+
+ ///
+ /// 初始化设备状态
+ /// 1工作中 2空闲(请求上料) 3完成(请求下料) 4 报警
+ ///
+ private void SolveDeviceStatusInit(string currentStatus)
+ {
+ try
+ {
+ ShowButtonControl(button_running, Color.Gray);
+ ShowButtonControl(button_finished, Color.Gray);
+ ShowButtonControl(button_empty, Color.Gray);
+ ShowButtonControl(button_alarm, Color.Gray);
+ //button_running.BackColor = Color.Gray;
+ //button_finished.BackColor = Color.Gray;
+ //button_empty.BackColor = Color.Gray;
+ //button_alarm.BackColor = Color.Gray;
+
+ if (currentStatus == "1")
+ {
+ ShowButtonControl(button_running, Color.Green);
+ //button_running.BackColor = Color.Green;
+ }
+ else if (currentStatus == "2")
+ {
+ ShowButtonControl(button_empty, Color.SkyBlue);
+
+ //button_empty.BackColor = Color.SkyBlue;
+ }
+ else if (currentStatus == "3")
+ {
+ ShowButtonControl(button_finished, Color.DarkOrange);
+
+ //button_finished.BackColor = Color.DarkOrange;
+ }
+ else if (currentStatus == "4")
+ {
+ ShowButtonControl(button_alarm, Color.Red);
+
+ //button_alarm.BackColor = Color.Red;
+ }
+ }
+ catch (Exception err)
+ {
+
+ }
+ }
+ ///
+ /// AGV设备状态显示
+ ///
+ ///
+ private void SolveAgvDeviceStatus(string PLC_AgvTaskNum)
+ {
+ try
+ {
+ // 77 反馈AGV任务
+ switch (PLC_AgvTaskNum)
+ {
+ case "10":
+ // AGV触发装配任务 正在送料
+ //label_AgvSongliao.ForeColor = Color.Green;
+
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+
+ //label_AgvLeaved.ForeColor = Color.Black;
+
+ ShowLabelControl(label_AgvSongliao, Color.Green);
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ ShowLabelControl(label_AgvLeaved, Color.Black);
+
+
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+
+ break;
+ case "11":
+
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Green);
+
+ //label_AgvRequestEnter.ForeColor = Color.Green;
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ break;
+ // 允许AGV进行上料 --允许进入
+ // 允许AGV进行下料 --允许进入
+ case "2":
+ case "4":
+ ShowLabelControl(label_AgvCanEnter, Color.Green);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ //label_AgvCanEnter.ForeColor = Color.Green;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+ break;
+ case "21":
+ // AGV 上料完成
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Green);
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Green;
+ break;
+ case "3":
+ // 1.调用FSS-接收IPC下料请求的接口
+ // 2.反馈任务号:30 AGV已呼叫成功正在去往下料区
+ break;
+ case "31":
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvRequestLeave, Color.Green);
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+ //label_AgvRequestLeave.ForeColor = Color.Green;
+ // AGV已到达下料区
+ break;
+ case "41":
+ // AGV下料完成
+ break;
+ // 允许AGV离开
+ case "5":
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Green);
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Green;
+ break;
+ case "51":
+ //label_AgvSongliao.ForeColor = Color.Black;
+
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+
+ //label_AgvLeaved.ForeColor = Color.Green;
+ ShowLabelControl(label_AgvSongliao, Color.Black);
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ ShowLabelControl(label_AgvLeaved, Color.Green);
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+ break;
+ }
+
+
+ }
+ catch (Exception err)
+ {
+ }
+ }
+
+ ///
+ /// 设备PLC心跳button5_heartBeat_Ning
+ ///
+ ///
+ private void DeviceHeartBeat(string tagValue)
+ {
+ WritePLC(15, OpNameCurrent, tagValue);
+ if (tagValue == "1")
+ {
+ ShowButtonControl(button5_heartBeat, Color.Green);
+
+ //button5_heartBeat.BackColor = Color.Green;
+ }
+ else
+ {
+ ShowButtonControl(button5_heartBeat, Color.Gray);
+
+ //button5_heartBeat.BackColor = Color.Gray;
+ }
+ }
+ ///
+ /// 设备PLC心跳
+ ///
+ ///
+ private void DeviceHeartBeat_NingJinQiang(string tagValue)
+ {
+ if (tagValue != "0")
+ {
+ ShowButtonControl(button5_heartBeat_Ning, Color.Green);
+
+ //button5_heartBeat_Ning.BackColor = Color.Green;
+ }
+ else
+ {
+ ShowButtonControl(button5_heartBeat_Ning, Color.Red);
+
+ //button5_heartBeat_Ning.BackColor = Color.Red;
+ }
+ }
+
+
+
+ private void MoNiHeartBeat()
+ {
+ bool tv = false;
+ new Thread(new ThreadStart(delegate () {
+ while (true)
+ {
+ try
+ {
+ WritePLC(14, OpNameCurrent, tv);
+ tv = !tv;
+ }
+ catch (Exception err) { }
+ Thread.Sleep(2000);
+ }
+ }))
+ { IsBackground = true }.Start();
+ }
+
+ private void label5_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void textBox_MeasureValue_4_TextChanged(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/CCYQ_JieFang/OP/OP10/DAS_OP10.resx b/CCYQ_JieFang/OP/OP10/DAS_OP10.resx
new file mode 100644
index 0000000..55f2584
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP10/DAS_OP10.resx
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 432, 221
+
+
+ 573, 221
+
+
+ 33
+
+
+
+
+ AAABAAEAGhoAAAAAIAAHAgAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAaAAAAGggGAAAAqUpMzgAAAAFz
+ UkdCAK7OHOkAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABnElEQVRIS+2Uz2rC
+ QBDGfZRc+h7ec/Mmxhgx2CQGYi65ivUB9NZCArl4EC/SqwgePBRKwUfw0AfZzrfshvVPY1IjlNKBj0xm
+ Z+a3m0xS+7ciZhjGqN1uM0iE7mO/D9RsNh+QXEZkRpIkDArDcJsLoqQREofDYUrFrIwkpBTItu3VaSPX
+ dVkURWwymXD/dL0yECDSB0xdgyoD4RQAqEBVlYGu6a6gfv8x828GbTYfXPP5ik2nz1zwZbxS0Gz2wkzT
+ PBJilYMcx2NBELDl8pUtFivuI3YzSP1g1+t3foLx+Ik3huAjhrUfgeI4rgOGq2xQ9ERpmmpUa6HecZw0
+ F6SaCiryjkQZN7q//lOl3Wq6ru9RjPFFM+i7qZMj7vv+djAYpOhRCETJdSrKdpon9TtCDYQedF/sRPjd
+ 0OSVEmpokwf0AEiKN71kOL7cned5rNvtbqkAj/Kier3eTuYDhCciWuVbp9PZobllWXt5/FardaArRvZI
+ Io6cT9Q1Go03AieiVb6JQi7a8YgaaGLpzLBGORblZt8NiQ/EX7da7Qtz50LQDuTBxQAAAABJRU5ErkJg
+ gg==
+
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/OP20/DAS_OP20.Designer.cs b/CCYQ_JieFang/OP/OP20/DAS_OP20.Designer.cs
new file mode 100644
index 0000000..daf1429
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP20/DAS_OP20.Designer.cs
@@ -0,0 +1,1064 @@
+namespace MesWork
+{
+ partial class DAS_OP20: PlcLinkForm
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DAS_OP20));
+ this.timHSCZ = new System.Windows.Forms.Timer(this.components);
+ this.label9 = new System.Windows.Forms.Label();
+ this.timUI = new System.Windows.Forms.Timer(this.components);
+ this.labelTime = new System.Windows.Forms.Label();
+ this.label18 = new System.Windows.Forms.Label();
+ this.panel7 = new System.Windows.Forms.Panel();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.pictureBox12_end_9 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_9 = new System.Windows.Forms.PictureBox();
+ this.textBox_MeasureValue_3 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_2 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_4 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_1 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_7 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_6 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_5 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_10 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_9 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_8 = new System.Windows.Forms.TextBox();
+ this.pictureBox12_end_10 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_4 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_2 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_2 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_10 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_3 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_1 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_8 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_7 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_6 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_5 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_4 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_5 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_6 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_7 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_8 = new System.Windows.Forms.PictureBox();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label10 = new System.Windows.Forms.Label();
+ this.pictureBox2_start_3 = new System.Windows.Forms.PictureBox();
+ this.label8 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label12 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label11 = new System.Windows.Forms.Label();
+ this.pictureBox2_start_1 = new System.Windows.Forms.PictureBox();
+ this.label2 = new System.Windows.Forms.Label();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.label16 = new System.Windows.Forms.Label();
+ this.button_running = new System.Windows.Forms.Button();
+ this.button_alarm = new System.Windows.Forms.Button();
+ this.button_finished = new System.Windows.Forms.Button();
+ this.button_empty = new System.Windows.Forms.Button();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.label_AgvLeaved = new System.Windows.Forms.Label();
+ this.label19 = new System.Windows.Forms.Label();
+ this.label_AgvCanLeave = new System.Windows.Forms.Label();
+ this.label15 = new System.Windows.Forms.Label();
+ this.label_AgvRequestLeave = new System.Windows.Forms.Label();
+ this.button5_heartBeat_Ning = new System.Windows.Forms.Button();
+ this.button5_heartBeat = new System.Windows.Forms.Button();
+ this.label_AgvCanEnter = new System.Windows.Forms.Label();
+ this.textBox1_PartPosition = new System.Windows.Forms.TextBox();
+ this.label_AgvSongliao = new System.Windows.Forms.Label();
+ this.label_AgvRequestEnter = new System.Windows.Forms.Label();
+ this.label17 = new System.Windows.Forms.Label();
+ this.textBox1_EngineID = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.panel7.SuspendLayout();
+ this.panel3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_9)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_9)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_10)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_10)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_8)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_7)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_6)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_6)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_7)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_8)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // timHSCZ
+ //
+ this.timHSCZ.Enabled = true;
+ //
+ // label9
+ //
+ this.label9.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Bold);
+ this.label9.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.label9.Location = new System.Drawing.Point(-153, -198);
+ this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(771, 60);
+ this.label9.TabIndex = 22;
+ this.label9.Text = "微型减速机";
+ this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // timUI
+ //
+ this.timUI.Enabled = true;
+ //
+ // labelTime
+ //
+ this.labelTime.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F);
+ this.labelTime.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.labelTime.Location = new System.Drawing.Point(1010, -198);
+ this.labelTime.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.labelTime.Name = "labelTime";
+ this.labelTime.Size = new System.Drawing.Size(728, 69);
+ this.labelTime.TabIndex = 23;
+ this.labelTime.Text = "2021-03-09 12:30:30";
+ this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label18
+ //
+ this.label18.BackColor = System.Drawing.Color.Transparent;
+ this.label18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label18.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.label18.Font = new System.Drawing.Font("微软雅黑", 10.5F);
+ this.label18.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.label18.Location = new System.Drawing.Point(212, 212);
+ this.label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label18.Name = "label18";
+ this.label18.Size = new System.Drawing.Size(104, 64);
+ this.label18.TabIndex = 1;
+ this.label18.Text = "查询";
+ this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label18.Visible = false;
+ //
+ // panel7
+ //
+ this.panel7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
+ this.panel7.Controls.Add(this.label18);
+ this.panel7.Location = new System.Drawing.Point(-162, -134);
+ this.panel7.Margin = new System.Windows.Forms.Padding(4);
+ this.panel7.Name = "panel7";
+ this.panel7.Size = new System.Drawing.Size(1899, 82);
+ this.panel7.TabIndex = 24;
+ //
+ // panel3
+ //
+ this.panel3.Controls.Add(this.pictureBox12_end_9);
+ this.panel3.Controls.Add(this.pictureBox2_start_9);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_3);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_2);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_4);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_1);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_7);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_6);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_5);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_10);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_9);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_8);
+ this.panel3.Controls.Add(this.pictureBox12_end_10);
+ this.panel3.Controls.Add(this.pictureBox12_end_4);
+ this.panel3.Controls.Add(this.pictureBox12_end_2);
+ this.panel3.Controls.Add(this.pictureBox2_start_2);
+ this.panel3.Controls.Add(this.pictureBox2_start_10);
+ this.panel3.Controls.Add(this.pictureBox12_end_3);
+ this.panel3.Controls.Add(this.pictureBox12_end_1);
+ this.panel3.Controls.Add(this.pictureBox12_end_8);
+ this.panel3.Controls.Add(this.pictureBox12_end_7);
+ this.panel3.Controls.Add(this.pictureBox12_end_6);
+ this.panel3.Controls.Add(this.pictureBox12_end_5);
+ this.panel3.Controls.Add(this.pictureBox2_start_4);
+ this.panel3.Controls.Add(this.pictureBox2_start_5);
+ this.panel3.Controls.Add(this.pictureBox2_start_6);
+ this.panel3.Controls.Add(this.pictureBox2_start_7);
+ this.panel3.Controls.Add(this.pictureBox2_start_8);
+ this.panel3.Controls.Add(this.label6);
+ this.panel3.Controls.Add(this.label4);
+ this.panel3.Controls.Add(this.label5);
+ this.panel3.Controls.Add(this.label10);
+ this.panel3.Controls.Add(this.pictureBox2_start_3);
+ this.panel3.Controls.Add(this.label8);
+ this.panel3.Controls.Add(this.label3);
+ this.panel3.Controls.Add(this.label12);
+ this.panel3.Controls.Add(this.label7);
+ this.panel3.Controls.Add(this.label11);
+ this.panel3.Controls.Add(this.pictureBox2_start_1);
+ this.panel3.Controls.Add(this.label2);
+ this.panel3.Controls.Add(this.pictureBox1);
+ this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel3.Location = new System.Drawing.Point(3, 93);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(1989, 820);
+ this.panel3.TabIndex = 4;
+ //
+ // pictureBox12_end_9
+ //
+ this.pictureBox12_end_9.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_9.Location = new System.Drawing.Point(1284, 126);
+ this.pictureBox12_end_9.Name = "pictureBox12_end_9";
+ this.pictureBox12_end_9.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_9.TabIndex = 8;
+ this.pictureBox12_end_9.TabStop = false;
+ //
+ // pictureBox2_start_9
+ //
+ this.pictureBox2_start_9.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_9.Location = new System.Drawing.Point(1284, 126);
+ this.pictureBox2_start_9.Name = "pictureBox2_start_9";
+ this.pictureBox2_start_9.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_9.TabIndex = 8;
+ this.pictureBox2_start_9.TabStop = false;
+ //
+ // textBox_MeasureValue_3
+ //
+ this.textBox_MeasureValue_3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_3.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_3.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_3.Location = new System.Drawing.Point(692, 579);
+ this.textBox_MeasureValue_3.Name = "textBox_MeasureValue_3";
+ this.textBox_MeasureValue_3.ReadOnly = true;
+ this.textBox_MeasureValue_3.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_3.TabIndex = 4;
+ this.textBox_MeasureValue_3.Text = "0";
+ //
+ // textBox_MeasureValue_2
+ //
+ this.textBox_MeasureValue_2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_2.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_2.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_2.Location = new System.Drawing.Point(619, 424);
+ this.textBox_MeasureValue_2.Name = "textBox_MeasureValue_2";
+ this.textBox_MeasureValue_2.ReadOnly = true;
+ this.textBox_MeasureValue_2.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_2.TabIndex = 4;
+ this.textBox_MeasureValue_2.Text = "0";
+ //
+ // textBox_MeasureValue_4
+ //
+ this.textBox_MeasureValue_4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_4.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_4.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_4.Location = new System.Drawing.Point(824, 687);
+ this.textBox_MeasureValue_4.Name = "textBox_MeasureValue_4";
+ this.textBox_MeasureValue_4.ReadOnly = true;
+ this.textBox_MeasureValue_4.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_4.TabIndex = 4;
+ this.textBox_MeasureValue_4.Text = "0";
+ this.textBox_MeasureValue_4.TextChanged += new System.EventHandler(this.textBox_MeasureValue_4_TextChanged);
+ //
+ // textBox_MeasureValue_1
+ //
+ this.textBox_MeasureValue_1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_1.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_1.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_1.Location = new System.Drawing.Point(603, 303);
+ this.textBox_MeasureValue_1.Name = "textBox_MeasureValue_1";
+ this.textBox_MeasureValue_1.ReadOnly = true;
+ this.textBox_MeasureValue_1.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_1.TabIndex = 4;
+ this.textBox_MeasureValue_1.Text = "0";
+ //
+ // textBox_MeasureValue_7
+ //
+ this.textBox_MeasureValue_7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_7.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_7.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_7.Location = new System.Drawing.Point(1778, 379);
+ this.textBox_MeasureValue_7.Name = "textBox_MeasureValue_7";
+ this.textBox_MeasureValue_7.ReadOnly = true;
+ this.textBox_MeasureValue_7.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_7.TabIndex = 4;
+ this.textBox_MeasureValue_7.Text = "0";
+ //
+ // textBox_MeasureValue_6
+ //
+ this.textBox_MeasureValue_6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_6.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_6.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_6.Location = new System.Drawing.Point(1615, 651);
+ this.textBox_MeasureValue_6.Name = "textBox_MeasureValue_6";
+ this.textBox_MeasureValue_6.ReadOnly = true;
+ this.textBox_MeasureValue_6.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_6.TabIndex = 4;
+ this.textBox_MeasureValue_6.Text = "0";
+ //
+ // textBox_MeasureValue_5
+ //
+ this.textBox_MeasureValue_5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_5.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_5.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_5.Location = new System.Drawing.Point(1216, 745);
+ this.textBox_MeasureValue_5.Name = "textBox_MeasureValue_5";
+ this.textBox_MeasureValue_5.ReadOnly = true;
+ this.textBox_MeasureValue_5.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_5.TabIndex = 4;
+ this.textBox_MeasureValue_5.Text = "0";
+ //
+ // textBox_MeasureValue_10
+ //
+ this.textBox_MeasureValue_10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_10.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_10.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_10.Location = new System.Drawing.Point(803, 58);
+ this.textBox_MeasureValue_10.Name = "textBox_MeasureValue_10";
+ this.textBox_MeasureValue_10.ReadOnly = true;
+ this.textBox_MeasureValue_10.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_10.TabIndex = 4;
+ this.textBox_MeasureValue_10.Text = "0";
+ //
+ // textBox_MeasureValue_9
+ //
+ this.textBox_MeasureValue_9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_9.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_9.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_9.Location = new System.Drawing.Point(1206, 30);
+ this.textBox_MeasureValue_9.Name = "textBox_MeasureValue_9";
+ this.textBox_MeasureValue_9.ReadOnly = true;
+ this.textBox_MeasureValue_9.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_9.TabIndex = 4;
+ this.textBox_MeasureValue_9.Text = "0";
+ //
+ // textBox_MeasureValue_8
+ //
+ this.textBox_MeasureValue_8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_8.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_8.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_8.Location = new System.Drawing.Point(1596, 88);
+ this.textBox_MeasureValue_8.Name = "textBox_MeasureValue_8";
+ this.textBox_MeasureValue_8.ReadOnly = true;
+ this.textBox_MeasureValue_8.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_8.TabIndex = 4;
+ this.textBox_MeasureValue_8.Text = "0";
+ //
+ // pictureBox12_end_10
+ //
+ this.pictureBox12_end_10.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_10.Location = new System.Drawing.Point(1047, 146);
+ this.pictureBox12_end_10.Name = "pictureBox12_end_10";
+ this.pictureBox12_end_10.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_10.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_10.TabIndex = 8;
+ this.pictureBox12_end_10.TabStop = false;
+ //
+ // pictureBox12_end_4
+ //
+ this.pictureBox12_end_4.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_4.Location = new System.Drawing.Point(1091, 544);
+ this.pictureBox12_end_4.Name = "pictureBox12_end_4";
+ this.pictureBox12_end_4.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_4.TabIndex = 8;
+ this.pictureBox12_end_4.TabStop = false;
+ //
+ // pictureBox12_end_2
+ //
+ this.pictureBox12_end_2.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_2.Location = new System.Drawing.Point(934, 391);
+ this.pictureBox12_end_2.Name = "pictureBox12_end_2";
+ this.pictureBox12_end_2.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_2.TabIndex = 8;
+ this.pictureBox12_end_2.TabStop = false;
+ //
+ // pictureBox2_start_2
+ //
+ this.pictureBox2_start_2.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_2.Location = new System.Drawing.Point(934, 391);
+ this.pictureBox2_start_2.Name = "pictureBox2_start_2";
+ this.pictureBox2_start_2.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_2.TabIndex = 8;
+ this.pictureBox2_start_2.TabStop = false;
+ //
+ // pictureBox2_start_10
+ //
+ this.pictureBox2_start_10.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_10.Location = new System.Drawing.Point(1047, 146);
+ this.pictureBox2_start_10.Name = "pictureBox2_start_10";
+ this.pictureBox2_start_10.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_10.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_10.TabIndex = 8;
+ this.pictureBox2_start_10.TabStop = false;
+ //
+ // pictureBox12_end_3
+ //
+ this.pictureBox12_end_3.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_3.Location = new System.Drawing.Point(990, 491);
+ this.pictureBox12_end_3.Name = "pictureBox12_end_3";
+ this.pictureBox12_end_3.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_3.TabIndex = 8;
+ this.pictureBox12_end_3.TabStop = false;
+ //
+ // pictureBox12_end_1
+ //
+ this.pictureBox12_end_1.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_1.Location = new System.Drawing.Point(915, 303);
+ this.pictureBox12_end_1.Name = "pictureBox12_end_1";
+ this.pictureBox12_end_1.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_1.TabIndex = 8;
+ this.pictureBox12_end_1.TabStop = false;
+ //
+ // pictureBox12_end_8
+ //
+ this.pictureBox12_end_8.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_8.Location = new System.Drawing.Point(1397, 175);
+ this.pictureBox12_end_8.Name = "pictureBox12_end_8";
+ this.pictureBox12_end_8.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_8.TabIndex = 8;
+ this.pictureBox12_end_8.TabStop = false;
+ //
+ // pictureBox12_end_7
+ //
+ this.pictureBox12_end_7.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_7.Location = new System.Drawing.Point(1511, 341);
+ this.pictureBox12_end_7.Name = "pictureBox12_end_7";
+ this.pictureBox12_end_7.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_7.TabIndex = 8;
+ this.pictureBox12_end_7.TabStop = false;
+ //
+ // pictureBox12_end_6
+ //
+ this.pictureBox12_end_6.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_6.Location = new System.Drawing.Point(1433, 523);
+ this.pictureBox12_end_6.Name = "pictureBox12_end_6";
+ this.pictureBox12_end_6.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_6.TabIndex = 8;
+ this.pictureBox12_end_6.TabStop = false;
+ //
+ // pictureBox12_end_5
+ //
+ this.pictureBox12_end_5.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_5.Location = new System.Drawing.Point(1206, 570);
+ this.pictureBox12_end_5.Name = "pictureBox12_end_5";
+ this.pictureBox12_end_5.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_5.TabIndex = 8;
+ this.pictureBox12_end_5.TabStop = false;
+ //
+ // pictureBox2_start_4
+ //
+ this.pictureBox2_start_4.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_4.Location = new System.Drawing.Point(1091, 546);
+ this.pictureBox2_start_4.Name = "pictureBox2_start_4";
+ this.pictureBox2_start_4.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_4.TabIndex = 8;
+ this.pictureBox2_start_4.TabStop = false;
+ //
+ // pictureBox2_start_5
+ //
+ this.pictureBox2_start_5.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_5.Location = new System.Drawing.Point(1206, 570);
+ this.pictureBox2_start_5.Name = "pictureBox2_start_5";
+ this.pictureBox2_start_5.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_5.TabIndex = 8;
+ this.pictureBox2_start_5.TabStop = false;
+ //
+ // pictureBox2_start_6
+ //
+ this.pictureBox2_start_6.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_6.Location = new System.Drawing.Point(1433, 523);
+ this.pictureBox2_start_6.Name = "pictureBox2_start_6";
+ this.pictureBox2_start_6.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_6.TabIndex = 8;
+ this.pictureBox2_start_6.TabStop = false;
+ //
+ // pictureBox2_start_7
+ //
+ this.pictureBox2_start_7.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_7.Location = new System.Drawing.Point(1511, 341);
+ this.pictureBox2_start_7.Name = "pictureBox2_start_7";
+ this.pictureBox2_start_7.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_7.TabIndex = 8;
+ this.pictureBox2_start_7.TabStop = false;
+ //
+ // pictureBox2_start_8
+ //
+ this.pictureBox2_start_8.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_8.Location = new System.Drawing.Point(1397, 175);
+ this.pictureBox2_start_8.Name = "pictureBox2_start_8";
+ this.pictureBox2_start_8.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_8.TabIndex = 8;
+ this.pictureBox2_start_8.TabStop = false;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.BackColor = System.Drawing.Color.White;
+ this.label6.Font = new System.Drawing.Font("宋体", 15F);
+ this.label6.Location = new System.Drawing.Point(613, 391);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(73, 30);
+ this.label6.TabIndex = 6;
+ this.label6.Text = "扭矩";
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.BackColor = System.Drawing.Color.White;
+ this.label4.Font = new System.Drawing.Font("宋体", 15F);
+ this.label4.Location = new System.Drawing.Point(686, 546);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(73, 30);
+ this.label4.TabIndex = 6;
+ this.label4.Text = "扭矩";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.BackColor = System.Drawing.Color.White;
+ this.label5.Font = new System.Drawing.Font("宋体", 15F);
+ this.label5.Location = new System.Drawing.Point(818, 653);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(73, 30);
+ this.label5.TabIndex = 6;
+ this.label5.Text = "扭矩";
+ this.label5.Click += new System.EventHandler(this.label5_Click);
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.BackColor = System.Drawing.Color.White;
+ this.label10.Font = new System.Drawing.Font("宋体", 15F);
+ this.label10.Location = new System.Drawing.Point(1773, 341);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(73, 30);
+ this.label10.TabIndex = 6;
+ this.label10.Text = "扭矩";
+ //
+ // pictureBox2_start_3
+ //
+ this.pictureBox2_start_3.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_3.Location = new System.Drawing.Point(990, 491);
+ this.pictureBox2_start_3.Name = "pictureBox2_start_3";
+ this.pictureBox2_start_3.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_3.TabIndex = 8;
+ this.pictureBox2_start_3.TabStop = false;
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.BackColor = System.Drawing.Color.White;
+ this.label8.Font = new System.Drawing.Font("宋体", 15F);
+ this.label8.Location = new System.Drawing.Point(1610, 617);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(73, 30);
+ this.label8.TabIndex = 6;
+ this.label8.Text = "扭矩";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.BackColor = System.Drawing.Color.White;
+ this.label3.Font = new System.Drawing.Font("宋体", 15F);
+ this.label3.Location = new System.Drawing.Point(597, 269);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(73, 30);
+ this.label3.TabIndex = 6;
+ this.label3.Text = "扭矩";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.BackColor = System.Drawing.Color.White;
+ this.label12.Font = new System.Drawing.Font("宋体", 15F);
+ this.label12.Location = new System.Drawing.Point(798, 19);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(73, 30);
+ this.label12.TabIndex = 6;
+ this.label12.Text = "扭矩";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.BackColor = System.Drawing.Color.White;
+ this.label7.Font = new System.Drawing.Font("宋体", 15F);
+ this.label7.Location = new System.Drawing.Point(1211, 712);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(73, 30);
+ this.label7.TabIndex = 6;
+ this.label7.Text = "扭矩";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.BackColor = System.Drawing.Color.White;
+ this.label11.Font = new System.Drawing.Font("宋体", 15F);
+ this.label11.Location = new System.Drawing.Point(1201, 2);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(73, 30);
+ this.label11.TabIndex = 6;
+ this.label11.Text = "扭矩";
+ //
+ // pictureBox2_start_1
+ //
+ this.pictureBox2_start_1.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_1.Location = new System.Drawing.Point(915, 303);
+ this.pictureBox2_start_1.Name = "pictureBox2_start_1";
+ this.pictureBox2_start_1.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_1.TabIndex = 8;
+ this.pictureBox2_start_1.TabStop = false;
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.White;
+ this.label2.Font = new System.Drawing.Font("宋体", 15F);
+ this.label2.Location = new System.Drawing.Point(1591, 54);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(73, 30);
+ this.label2.TabIndex = 6;
+ this.label2.Text = "扭矩";
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.BackColor = System.Drawing.Color.White;
+ this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.pictureBox1.Image = global::CCYQ_JieFang.Properties.Resources._02_涡喷发动机;
+ this.pictureBox1.Location = new System.Drawing.Point(130, 16);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(1689, 801);
+ this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox1.TabIndex = 0;
+ this.pictureBox1.TabStop = false;
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.label16);
+ this.panel1.Controls.Add(this.button_running);
+ this.panel1.Controls.Add(this.button_alarm);
+ this.panel1.Controls.Add(this.button_finished);
+ this.panel1.Controls.Add(this.button_empty);
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel1.Location = new System.Drawing.Point(3, 919);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(1989, 84);
+ this.panel1.TabIndex = 3;
+ //
+ // label16
+ //
+ this.label16.BackColor = System.Drawing.Color.Black;
+ this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.label16.Location = new System.Drawing.Point(0, 4);
+ this.label16.Name = "label16";
+ this.label16.Size = new System.Drawing.Size(1980, 4);
+ this.label16.TabIndex = 10;
+ //
+ // button_running
+ //
+ this.button_running.BackColor = System.Drawing.Color.Gray;
+ this.button_running.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_running.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_running.ForeColor = System.Drawing.Color.White;
+ this.button_running.Location = new System.Drawing.Point(38, 15);
+ this.button_running.Name = "button_running";
+ this.button_running.Size = new System.Drawing.Size(333, 66);
+ this.button_running.TabIndex = 4;
+ this.button_running.Text = "设备运行(禁止上下料)";
+ this.button_running.UseVisualStyleBackColor = false;
+ //
+ // button_alarm
+ //
+ this.button_alarm.BackColor = System.Drawing.Color.Gray;
+ this.button_alarm.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_alarm.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_alarm.ForeColor = System.Drawing.Color.White;
+ this.button_alarm.Location = new System.Drawing.Point(1252, 16);
+ this.button_alarm.Name = "button_alarm";
+ this.button_alarm.Size = new System.Drawing.Size(333, 66);
+ this.button_alarm.TabIndex = 5;
+ this.button_alarm.Text = "设备故障";
+ this.button_alarm.UseVisualStyleBackColor = false;
+ //
+ // button_finished
+ //
+ this.button_finished.BackColor = System.Drawing.Color.Gray;
+ this.button_finished.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_finished.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_finished.ForeColor = System.Drawing.Color.White;
+ this.button_finished.Location = new System.Drawing.Point(442, 15);
+ this.button_finished.Name = "button_finished";
+ this.button_finished.Size = new System.Drawing.Size(333, 66);
+ this.button_finished.TabIndex = 6;
+ this.button_finished.Text = "完成装配(请求下料)";
+ this.button_finished.UseVisualStyleBackColor = false;
+ //
+ // button_empty
+ //
+ this.button_empty.BackColor = System.Drawing.Color.Gray;
+ this.button_empty.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_empty.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_empty.ForeColor = System.Drawing.Color.White;
+ this.button_empty.Location = new System.Drawing.Point(848, 16);
+ this.button_empty.Name = "button_empty";
+ this.button_empty.Size = new System.Drawing.Size(333, 66);
+ this.button_empty.TabIndex = 7;
+ this.button_empty.Text = "设备空闲(请求上料)";
+ this.button_empty.UseVisualStyleBackColor = false;
+ //
+ // panel2
+ //
+ this.panel2.Controls.Add(this.label_AgvLeaved);
+ this.panel2.Controls.Add(this.label19);
+ this.panel2.Controls.Add(this.label_AgvCanLeave);
+ this.panel2.Controls.Add(this.label15);
+ this.panel2.Controls.Add(this.label_AgvRequestLeave);
+ this.panel2.Controls.Add(this.button5_heartBeat_Ning);
+ this.panel2.Controls.Add(this.button5_heartBeat);
+ this.panel2.Controls.Add(this.label_AgvCanEnter);
+ this.panel2.Controls.Add(this.textBox1_PartPosition);
+ this.panel2.Controls.Add(this.label_AgvSongliao);
+ this.panel2.Controls.Add(this.label_AgvRequestEnter);
+ this.panel2.Controls.Add(this.label17);
+ this.panel2.Controls.Add(this.textBox1_EngineID);
+ this.panel2.Controls.Add(this.label1);
+ this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel2.Location = new System.Drawing.Point(3, 3);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(1989, 84);
+ this.panel2.TabIndex = 2;
+ //
+ // label_AgvLeaved
+ //
+ this.label_AgvLeaved.AutoSize = true;
+ this.label_AgvLeaved.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvLeaved.Location = new System.Drawing.Point(1393, 12);
+ this.label_AgvLeaved.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvLeaved.Name = "label_AgvLeaved";
+ this.label_AgvLeaved.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvLeaved.TabIndex = 9;
+ this.label_AgvLeaved.Text = "●AGV已经离开";
+ //
+ // label19
+ //
+ this.label19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label19.Location = new System.Drawing.Point(1756, 16);
+ this.label19.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label19.Name = "label19";
+ this.label19.Size = new System.Drawing.Size(2, 44);
+ this.label19.TabIndex = 9;
+ //
+ // label_AgvCanLeave
+ //
+ this.label_AgvCanLeave.AutoSize = true;
+ this.label_AgvCanLeave.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvCanLeave.Location = new System.Drawing.Point(1225, 45);
+ this.label_AgvCanLeave.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvCanLeave.Name = "label_AgvCanLeave";
+ this.label_AgvCanLeave.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvCanLeave.TabIndex = 9;
+ this.label_AgvCanLeave.Text = "●AGV可以离开";
+ //
+ // label15
+ //
+ this.label15.BackColor = System.Drawing.Color.Black;
+ this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.label15.Location = new System.Drawing.Point(0, 75);
+ this.label15.Name = "label15";
+ this.label15.Size = new System.Drawing.Size(1980, 4);
+ this.label15.TabIndex = 9;
+ //
+ // label_AgvRequestLeave
+ //
+ this.label_AgvRequestLeave.AutoSize = true;
+ this.label_AgvRequestLeave.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvRequestLeave.Location = new System.Drawing.Point(1225, 12);
+ this.label_AgvRequestLeave.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvRequestLeave.Name = "label_AgvRequestLeave";
+ this.label_AgvRequestLeave.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvRequestLeave.TabIndex = 9;
+ this.label_AgvRequestLeave.Text = "●AGV请求离开";
+ //
+ // button5_heartBeat_Ning
+ //
+ this.button5_heartBeat_Ning.BackColor = System.Drawing.Color.Gray;
+ this.button5_heartBeat_Ning.Font = new System.Drawing.Font("宋体", 12F);
+ this.button5_heartBeat_Ning.ForeColor = System.Drawing.Color.White;
+ this.button5_heartBeat_Ning.Location = new System.Drawing.Point(1765, 12);
+ this.button5_heartBeat_Ning.Name = "button5_heartBeat_Ning";
+ this.button5_heartBeat_Ning.Size = new System.Drawing.Size(100, 52);
+ this.button5_heartBeat_Ning.TabIndex = 5;
+ this.button5_heartBeat_Ning.Text = "拧紧枪";
+ this.button5_heartBeat_Ning.UseVisualStyleBackColor = false;
+ //
+ // button5_heartBeat
+ //
+ this.button5_heartBeat.BackColor = System.Drawing.Color.Gray;
+ this.button5_heartBeat.Font = new System.Drawing.Font("宋体", 12F);
+ this.button5_heartBeat.ForeColor = System.Drawing.Color.White;
+ this.button5_heartBeat.Location = new System.Drawing.Point(1883, 12);
+ this.button5_heartBeat.Name = "button5_heartBeat";
+ this.button5_heartBeat.Size = new System.Drawing.Size(100, 52);
+ this.button5_heartBeat.TabIndex = 5;
+ this.button5_heartBeat.Text = "PLC";
+ this.button5_heartBeat.UseVisualStyleBackColor = false;
+ //
+ // label_AgvCanEnter
+ //
+ this.label_AgvCanEnter.AutoSize = true;
+ this.label_AgvCanEnter.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvCanEnter.Location = new System.Drawing.Point(1043, 45);
+ this.label_AgvCanEnter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvCanEnter.Name = "label_AgvCanEnter";
+ this.label_AgvCanEnter.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvCanEnter.TabIndex = 9;
+ this.label_AgvCanEnter.Text = "●AGV可以进入";
+ //
+ // textBox1_PartPosition
+ //
+ this.textBox1_PartPosition.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox1_PartPosition.Font = new System.Drawing.Font("宋体", 20F);
+ this.textBox1_PartPosition.Location = new System.Drawing.Point(692, 9);
+ this.textBox1_PartPosition.Name = "textBox1_PartPosition";
+ this.textBox1_PartPosition.ReadOnly = true;
+ this.textBox1_PartPosition.Size = new System.Drawing.Size(118, 53);
+ this.textBox1_PartPosition.TabIndex = 1;
+ this.textBox1_PartPosition.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // label_AgvSongliao
+ //
+ this.label_AgvSongliao.AutoSize = true;
+ this.label_AgvSongliao.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvSongliao.Location = new System.Drawing.Point(883, 14);
+ this.label_AgvSongliao.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvSongliao.Name = "label_AgvSongliao";
+ this.label_AgvSongliao.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvSongliao.TabIndex = 9;
+ this.label_AgvSongliao.Text = "●AGV准备送料";
+ //
+ // label_AgvRequestEnter
+ //
+ this.label_AgvRequestEnter.AutoSize = true;
+ this.label_AgvRequestEnter.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvRequestEnter.Location = new System.Drawing.Point(1043, 12);
+ this.label_AgvRequestEnter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvRequestEnter.Name = "label_AgvRequestEnter";
+ this.label_AgvRequestEnter.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvRequestEnter.TabIndex = 9;
+ this.label_AgvRequestEnter.Text = "●AGV请求进入";
+ //
+ // label17
+ //
+ this.label17.AutoSize = true;
+ this.label17.Font = new System.Drawing.Font("宋体", 16F);
+ this.label17.Location = new System.Drawing.Point(525, 18);
+ this.label17.Name = "label17";
+ this.label17.Size = new System.Drawing.Size(175, 33);
+ this.label17.TabIndex = 0;
+ this.label17.Text = "装配位置:";
+ //
+ // textBox1_EngineID
+ //
+ this.textBox1_EngineID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox1_EngineID.Font = new System.Drawing.Font("宋体", 20F);
+ this.textBox1_EngineID.Location = new System.Drawing.Point(170, 10);
+ this.textBox1_EngineID.Name = "textBox1_EngineID";
+ this.textBox1_EngineID.ReadOnly = true;
+ this.textBox1_EngineID.Size = new System.Drawing.Size(348, 53);
+ this.textBox1_EngineID.TabIndex = 1;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("宋体", 16F);
+ this.label1.Location = new System.Drawing.Point(3, 20);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(175, 33);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "产品编码:";
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.ColumnCount = 1;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 2);
+ this.tableLayoutPanel1.Controls.Add(this.panel3, 0, 1);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 3;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 90F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 90F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1995, 1006);
+ this.tableLayoutPanel1.TabIndex = 25;
+ //
+ // DAS_OP20
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.Color.White;
+ this.ClientSize = new System.Drawing.Size(1995, 1006);
+ this.Controls.Add(this.tableLayoutPanel1);
+ this.Controls.Add(this.label9);
+ this.Controls.Add(this.labelTime);
+ this.Controls.Add(this.panel7);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "DAS_OP20";
+ this.Text = "OP20工位-涡喷发动机";
+ this.panel7.ResumeLayout(false);
+ this.panel3.ResumeLayout(false);
+ this.panel3.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_9)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_9)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_10)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_10)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_8)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_7)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_6)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_6)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_7)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_8)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ this.panel1.ResumeLayout(false);
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ private System.Windows.Forms.Timer timHSCZ;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Timer timUI;
+ private System.Windows.Forms.Label labelTime;
+ private System.Windows.Forms.Label label18;
+ private System.Windows.Forms.Panel panel7;
+ private System.Windows.Forms.Panel panel3;
+ private System.Windows.Forms.PictureBox pictureBox12_end_9;
+ private System.Windows.Forms.PictureBox pictureBox2_start_9;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_3;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_2;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_4;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_1;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_7;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_6;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_5;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_10;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_9;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_8;
+ private System.Windows.Forms.PictureBox pictureBox12_end_10;
+ private System.Windows.Forms.PictureBox pictureBox12_end_4;
+ private System.Windows.Forms.PictureBox pictureBox12_end_2;
+ private System.Windows.Forms.PictureBox pictureBox2_start_2;
+ private System.Windows.Forms.PictureBox pictureBox2_start_10;
+ private System.Windows.Forms.PictureBox pictureBox12_end_3;
+ private System.Windows.Forms.PictureBox pictureBox12_end_1;
+ private System.Windows.Forms.PictureBox pictureBox12_end_8;
+ private System.Windows.Forms.PictureBox pictureBox12_end_7;
+ private System.Windows.Forms.PictureBox pictureBox12_end_6;
+ private System.Windows.Forms.PictureBox pictureBox12_end_5;
+ private System.Windows.Forms.PictureBox pictureBox2_start_4;
+ private System.Windows.Forms.PictureBox pictureBox2_start_5;
+ private System.Windows.Forms.PictureBox pictureBox2_start_6;
+ private System.Windows.Forms.PictureBox pictureBox2_start_7;
+ private System.Windows.Forms.PictureBox pictureBox2_start_8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.PictureBox pictureBox2_start_3;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.PictureBox pictureBox2_start_1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Label label16;
+ private System.Windows.Forms.Button button_running;
+ private System.Windows.Forms.Button button_alarm;
+ private System.Windows.Forms.Button button_finished;
+ private System.Windows.Forms.Button button_empty;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label label_AgvLeaved;
+ private System.Windows.Forms.Label label19;
+ private System.Windows.Forms.Label label_AgvCanLeave;
+ private System.Windows.Forms.Label label15;
+ private System.Windows.Forms.Label label_AgvRequestLeave;
+ private System.Windows.Forms.Button button5_heartBeat;
+ private System.Windows.Forms.Label label_AgvCanEnter;
+ private System.Windows.Forms.TextBox textBox1_PartPosition;
+ private System.Windows.Forms.Label label_AgvRequestEnter;
+ private System.Windows.Forms.Label label17;
+ private System.Windows.Forms.TextBox textBox1_EngineID;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private System.Windows.Forms.Label label_AgvSongliao;
+ private System.Windows.Forms.Button button5_heartBeat_Ning;
+ }
+}
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/OP20/DAS_OP20.cs b/CCYQ_JieFang/OP/OP20/DAS_OP20.cs
new file mode 100644
index 0000000..a92cfcd
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP20/DAS_OP20.cs
@@ -0,0 +1,648 @@
+
+using DK_DC_Tool;
+using HslCommunication.Core;
+using Newtonsoft.Json;
+using NPOI.SS.UserModel;
+using OpcBasic;
+using Robot.Common;
+using Serilog.Events;
+using System;
+using System.Collections.Concurrent;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using SystemFramework;
+
+namespace MesWork
+{
+ public partial class DAS_OP20
+ {
+ InitServer initServer = null;
+ ///
+ ///
+ ///
+ private static string OpNameCurrent = "";
+ ///
+ /// 字典 ,存储12个开始测量图片控件,key为测量位置,value为图片控件
+ ///
+ Dictionary dicStartMasurePictureBox = new Dictionary();
+ ///
+ /// 字典 ,存储12个结束测量图片控件,key为测量位置,value为图片控件
+ ///
+ Dictionary dicEndMasurePictureBox = new Dictionary();
+ ///
+ /// 字典 ,存储12个结束测量文本框控件,key为测量位置,value文本框的值
+ ///
+ Dictionary dicMeasureTextBox = new Dictionary();
+ ///
+ /// PLC事件变化委托
+ ///
+ public static Action MIS_Funtion_PLC_OP = null;
+
+ ///
+ /// PLC事件变化委托
+ ///
+ public static Action AGV_Task_change = null;
+ ///
+ /// PLC事件变化委托--处理托盘信息
+ ///
+ public static Action AGV_Task_Info = null;
+
+ // 每个工位的满工件数量
+ // 工位OP20 3个
+ public static int partCount = 3;
+
+ public static bool isConnect = false;
+
+ public DAS_OP20(string opName)
+ {
+ InitializeComponent();
+
+ publicCore.partCount = partCount;
+ OpNameCurrent = opName;
+
+ Tighten.E_DeviceHeartBeat -= DeviceHeartBeat_NingJinQiang;
+ Tighten.E_DeviceHeartBeat += DeviceHeartBeat_NingJinQiang;
+
+ MesWorkForm.MIS_Funtion_PLC_MeasureFinish -= SolvePicAndMeasureValueWorking;
+ MesWorkForm.MIS_Funtion_PLC_MeasureFinish += SolvePicAndMeasureValueWorking;
+
+ MIS_Funtion_PLC_OP -= MIS_Funtion_PLC;
+ MIS_Funtion_PLC_OP += MIS_Funtion_PLC;
+
+ AGV_Task_change -= SolveAgvDeviceStatus;
+ AGV_Task_change += SolveAgvDeviceStatus;
+
+
+ if (MesWorkForm.IsDemoMesServer == 1)
+ {
+ MoNiHeartBeat();
+ }
+ SolvePicAndMeasureValueInit();
+
+ new Thread(new ThreadStart(delegate () {
+ while (true)
+ {
+ try
+ {
+ SolveDeviceStatusInit(publicCore.SolveDeviceStatus_Read(OpNameCurrent));
+ }
+ catch (Exception err) { }
+ Thread.Sleep(2000);
+ }
+ }))
+ { IsBackground = true }.Start();
+
+ //var aa =
+ //new Thread(new ThreadStart(delegate () {
+ // while (true)
+ // {
+ // try
+ // {
+ // if (!isConnect)
+ // {
+ // if (publicCore.Get_PartPosition(OpNameCurrent) != -1)
+ // {
+ // isConnect = true;
+ // ProductInfo_search();
+ // }
+ // }
+ // }
+ // catch (Exception err) { }
+ // Thread.Sleep(1000);
+ // }
+ //}));
+ //aa.IsBackground = true;
+ //aa.Start();
+
+ }
+ public void MIS_Funtion_PLC(DeviceDriver_BasicData.CustomeEvetnArgs msgEvent)
+ {
+ try
+ {
+ var tagID = msgEvent.TagID.ToString();
+ // var opName = msgEvent.OpName.ToString();
+ var tagTypeCodeID = (int)msgEvent.TagTypeCodeID;
+ var tagTypeID = (EnumTagTypeID)msgEvent.TagTypeID;
+ string tagValue;
+ switch (tagTypeID)
+ {
+ case EnumTagTypeID.BOOL:
+ tagValue = (Convert.ToInt32(msgEvent.TagValue)).ToString();
+ break;
+ default:
+ tagValue = msgEvent.TagValue.ToString();
+ break;
+ }
+ switch (tagTypeCodeID)
+ {
+ case 14:
+ DeviceHeartBeat(tagValue);
+ break;
+ // AGV任务
+ case 50:
+ publicCore.SolveAgvTaskNum(OpNameCurrent, tagValue);
+ break;
+ // 51 空闲(请求上料)
+ // 52 完成(请求下料)
+ // 53 故障
+ case 51:
+ case 52:
+ case 53:
+ publicCore.SolveDeviceStatus(OpNameCurrent);
+ SolveDeviceStatusInit(publicCore.SolveDeviceStatus_Read(OpNameCurrent));
+ break;
+ // 54 第几个件
+ case 54:
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+ break;
+ case 55:
+ publicCore.MeasurePositionChange(OpNameCurrent, 2);
+ SolvePicAndMeasureValueWorking();
+ break;
+ //读电批
+ case 56:
+ if (tagValue == "1")
+ {
+ publicCore.LogInsert("OP20", "Info", "【PLC_读电批置位】");
+ // 不在这个地方写true,写在接收数据的地方写
+
+ }
+ else
+ {
+ publicCore.LogInsert("OP20", "Info", "【PLC_读电批复位】");
+ MesWorkForm.WritePLC(83, OpNameCurrent, false);
+ publicCore.LogInsert("OP20", "Info", "【IPC_读电批完成复位】");
+ }
+ break;
+ //读泄漏量1 2或者压力
+ case 59:
+ if(tagValue == "1")
+ {
+ //publicCore.ReadQualityData_LeakageRate(OpNameCurrent);
+ //publicCore.ReadQualityData_Pressure(OpNameCurrent);
+ MesWorkForm.WritePLC(84, OpNameCurrent, true);
+ }
+ else
+ {
+ MesWorkForm.WritePLC(84, OpNameCurrent, false);
+ }
+ break;
+ }
+ }
+ catch (Exception ex)
+ {
+ }
+ }
+ ///
+ /// 初始化界面显示
+ ///
+ private void SolvePicAndMeasureValueInit()
+ {
+ try
+ {
+ dicStartMasurePictureBox.Add(1, pictureBox2_start_1);
+ dicStartMasurePictureBox.Add(2, pictureBox2_start_2);
+ dicStartMasurePictureBox.Add(3, pictureBox2_start_3);
+ dicStartMasurePictureBox.Add(4, pictureBox2_start_4);
+ dicStartMasurePictureBox.Add(5, pictureBox2_start_5);
+ dicStartMasurePictureBox.Add(6, pictureBox2_start_6);
+ dicStartMasurePictureBox.Add(7, pictureBox2_start_7);
+ dicStartMasurePictureBox.Add(8, pictureBox2_start_8);
+ dicStartMasurePictureBox.Add(9, pictureBox2_start_9);
+ dicStartMasurePictureBox.Add(10, pictureBox2_start_10);
+
+ dicEndMasurePictureBox.Add(1, pictureBox12_end_1);
+ dicEndMasurePictureBox.Add(2, pictureBox12_end_2);
+ dicEndMasurePictureBox.Add(3, pictureBox12_end_3);
+ dicEndMasurePictureBox.Add(4, pictureBox12_end_4);
+ dicEndMasurePictureBox.Add(5, pictureBox12_end_5);
+ dicEndMasurePictureBox.Add(6, pictureBox12_end_6);
+ dicEndMasurePictureBox.Add(7, pictureBox12_end_7);
+ dicEndMasurePictureBox.Add(8, pictureBox12_end_8);
+ dicEndMasurePictureBox.Add(9, pictureBox12_end_9);
+ dicEndMasurePictureBox.Add(10, pictureBox12_end_10);
+
+ dicMeasureTextBox.Add(1, textBox_MeasureValue_1);
+ dicMeasureTextBox.Add(2, textBox_MeasureValue_2);
+ dicMeasureTextBox.Add(3, textBox_MeasureValue_3);
+ dicMeasureTextBox.Add(4, textBox_MeasureValue_4);
+ dicMeasureTextBox.Add(5, textBox_MeasureValue_5);
+ dicMeasureTextBox.Add(6, textBox_MeasureValue_6);
+ dicMeasureTextBox.Add(7, textBox_MeasureValue_7);
+ dicMeasureTextBox.Add(8, textBox_MeasureValue_8);
+ dicMeasureTextBox.Add(9, textBox_MeasureValue_9);
+ dicMeasureTextBox.Add(10, textBox_MeasureValue_10);
+
+
+ foreach (var item in dicStartMasurePictureBox)
+ {
+ item.Value.Visible = false;
+ }
+ foreach (var item in dicEndMasurePictureBox)
+ {
+ item.Value.Visible = false;
+ }
+ foreach (var item in dicMeasureTextBox)
+ {
+ item.Value.Text = "";
+ }
+
+ int partPosition = publicCore.Get_PartPosition(OpNameCurrent);
+
+ publicCore.GetQualityInfo_Init(OpNameCurrent, partPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ int measureStatus = Convert.ToInt32(dt.Rows[i]["测量状态"]);
+ int measurePosition = Convert.ToInt32(dt.Rows[i]["测量位置"]);
+ string tagValue = dt.Rows[i]["测量值"].ToString();
+ string isOk = dt.Rows[i]["是否合格"].ToString();
+
+ // 测量状态为1 表示初始状态,两张图片都不显示
+ // 测量状态为2 表示正在测量,显示第二张图片
+ // 测量状态为3 表示测量完成,显示第一张图片
+ var control_DicStartMasurePictureBox = dicStartMasurePictureBox[measurePosition];
+ var control_DicEndMasurePictureBox = dicEndMasurePictureBox[measurePosition];
+ var control_DicMeasureTextBox = dicMeasureTextBox[measurePosition];
+
+ if (measureStatus == 1)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 2)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, true);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 3)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, true);
+ }
+ if (isOk == "1")
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.White);
+ }
+ else
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.Red);
+ }
+ }
+ }
+ }
+ catch (Exception err)
+ {
+ }
+
+ }
+ ///
+ /// 工作时界面显示
+ ///
+ private void SolvePicAndMeasureValueWorking()
+ {
+ try
+ {
+ int partPosition = publicCore.Get_PartPosition(OpNameCurrent);
+ publicCore.GetQualityInfo_Init(OpNameCurrent, partPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ int measureStatus = Convert.ToInt32(dt.Rows[i]["测量状态"]);
+ int measurePosition = Convert.ToInt32(dt.Rows[i]["测量位置"]);
+ string tagValue = dt.Rows[i]["测量值"].ToString();
+ string isOk = dt.Rows[i]["是否合格"].ToString();
+ // 测量状态为1 表示初始状态,两张图片都不显示
+ // 测量状态为2 表示正在测量,显示第二张图片
+ // 测量状态为3 表示测量完成,显示第一张图片
+
+ var control_DicStartMasurePictureBox = dicStartMasurePictureBox[measurePosition];
+ var control_DicEndMasurePictureBox = dicEndMasurePictureBox[measurePosition];
+ var control_DicMeasureTextBox = dicMeasureTextBox[measurePosition];
+
+ if (measureStatus == 1)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 2)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, true);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 3)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, true);
+ }
+ if (isOk == "2")
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.Red);
+ }
+ else
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.White);
+ }
+ }
+ }
+ }
+ catch (Exception err)
+ {
+ }
+
+ }
+ ///
+ /// 界面产品编码和装配位置的显示
+ ///
+ public void ProductInfo_search()
+ {
+ try
+ {
+ //textBox1_EngineID.Text = "";
+ //textBox1_PartPosition.Text = "";
+ ShowTextBoxControl(textBox1_EngineID, "", Color.White);
+ ShowTextBoxControl(textBox1_PartPosition, "", Color.White);
+ int PartPosition = publicCore.Get_PartPosition(OpNameCurrent);
+ publicCore.GetProductInfo_Init(OpNameCurrent, PartPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ ShowTextBoxControl(textBox1_EngineID, dt.Rows[0]["发动机号"].ToString(), Color.White);
+ ShowTextBoxControl(textBox1_PartPosition, dt.Rows[0]["装配位置"].ToString(), Color.White);
+ //textBox1_EngineID.Text = dt.Rows[0]["发动机号"].ToString();
+ //textBox1_PartPosition.Text = dt.Rows[0]["装配位置"].ToString();
+ }
+ }
+ catch (Exception err)
+ {
+ }
+ }
+ private void ShowPicBoxControl(Control c,bool ststus)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.Visible = ststus;
+ }));
+ }
+ private void ShowTextBoxControl(Control c, string value, Color color)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.Text = value;
+ c.BackColor = color;
+ }));
+ }
+ private void ShowLabelControl(Control c, Color color)
+ {
+ //if (c.InvokeRequired)
+ //{
+
+ //}
+ //else
+ //{
+ // c.ForeColor = color;
+ //}
+ c.BeginInvoke(new Action(delegate () {
+ c.ForeColor = color;
+ }));
+ }
+ private void ShowButtonControl(Control c, Color color)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.BackColor = color;
+ }));
+ }
+
+
+ ///
+ /// 初始化设备状态
+ /// 1工作中 2空闲(请求上料) 3完成(请求下料) 4 报警
+ ///
+ private void SolveDeviceStatusInit(string currentStatus)
+ {
+ try
+ {
+ ShowButtonControl(button_running, Color.Gray);
+ ShowButtonControl(button_finished, Color.Gray);
+ ShowButtonControl(button_empty, Color.Gray);
+ ShowButtonControl(button_alarm, Color.Gray);
+ //button_running.BackColor = Color.Gray;
+ //button_finished.BackColor = Color.Gray;
+ //button_empty.BackColor = Color.Gray;
+ //button_alarm.BackColor = Color.Gray;
+
+ if (currentStatus == "1")
+ {
+ ShowButtonControl(button_running, Color.Green);
+ //button_running.BackColor = Color.Green;
+ }
+ else if (currentStatus == "2")
+ {
+ ShowButtonControl(button_empty, Color.SkyBlue);
+
+ //button_empty.BackColor = Color.SkyBlue;
+ }
+ else if (currentStatus == "3")
+ {
+ ShowButtonControl(button_finished, Color.DarkOrange);
+
+ //button_finished.BackColor = Color.DarkOrange;
+ }
+ else if (currentStatus == "4")
+ {
+ ShowButtonControl(button_alarm, Color.Red);
+
+ //button_alarm.BackColor = Color.Red;
+ }
+ }
+ catch (Exception err)
+ {
+
+ }
+ }
+ ///
+ /// AGV设备状态显示
+ ///
+ ///
+ private void SolveAgvDeviceStatus(string PLC_AgvTaskNum)
+ {
+ try
+ {
+ // 77 反馈AGV任务
+ switch (PLC_AgvTaskNum)
+ {
+ case "10":
+ // AGV触发装配任务 正在送料
+ //label_AgvSongliao.ForeColor = Color.Green;
+
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+
+ //label_AgvLeaved.ForeColor = Color.Black;
+
+ ShowLabelControl(label_AgvSongliao, Color.Green);
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ ShowLabelControl(label_AgvLeaved, Color.Black);
+
+
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+
+ break;
+ case "11":
+
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Green);
+
+ //label_AgvRequestEnter.ForeColor = Color.Green;
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ break;
+ // 允许AGV进行上料 --允许进入
+ // 允许AGV进行下料 --允许进入
+ case "2":
+ case "4":
+ ShowLabelControl(label_AgvCanEnter, Color.Green);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ //label_AgvCanEnter.ForeColor = Color.Green;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+ break;
+ case "21":
+ // AGV 上料完成
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Green);
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Green;
+ break;
+ case "3":
+ // 1.调用FSS-接收IPC下料请求的接口
+ // 2.反馈任务号:30 AGV已呼叫成功正在去往下料区
+ break;
+ case "31":
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvRequestLeave, Color.Green);
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+ //label_AgvRequestLeave.ForeColor = Color.Green;
+ // AGV已到达下料区
+ break;
+ case "41":
+ // AGV下料完成
+ break;
+ // 允许AGV离开
+ case "5":
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Green);
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Green;
+ break;
+ case "51":
+ //label_AgvSongliao.ForeColor = Color.Black;
+
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+
+ //label_AgvLeaved.ForeColor = Color.Green;
+ ShowLabelControl(label_AgvSongliao, Color.Black);
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ ShowLabelControl(label_AgvLeaved, Color.Green);
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+ break;
+ }
+
+
+ }
+ catch (Exception err)
+ {
+ }
+ }
+
+ ///
+ /// 设备PLC心跳button5_heartBeat_Ning
+ ///
+ ///
+ private void DeviceHeartBeat(string tagValue)
+ {
+ WritePLC(15, OpNameCurrent, tagValue);
+ if (tagValue == "1")
+ {
+ ShowButtonControl(button5_heartBeat, Color.Green);
+
+ //button5_heartBeat.BackColor = Color.Green;
+ }
+ else
+ {
+ ShowButtonControl(button5_heartBeat, Color.Gray);
+
+ //button5_heartBeat.BackColor = Color.Gray;
+ }
+ }
+ ///
+ /// 设备PLC心跳
+ ///
+ ///
+ private void DeviceHeartBeat_NingJinQiang(string tagValue)
+ {
+ if (tagValue == "1")
+ {
+ ShowButtonControl(button5_heartBeat_Ning, Color.Green);
+
+ //button5_heartBeat_Ning.BackColor = Color.Green;
+ }
+ else
+ {
+ ShowButtonControl(button5_heartBeat_Ning, Color.Red);
+
+ //button5_heartBeat_Ning.BackColor = Color.Red;
+ }
+ }
+
+
+
+ private void MoNiHeartBeat()
+ {
+ bool tv = false;
+ new Thread(new ThreadStart(delegate () {
+ while (true)
+ {
+ try
+ {
+ WritePLC(14, OpNameCurrent, tv);
+ tv = !tv;
+ }
+ catch (Exception err) { }
+ Thread.Sleep(2000);
+ }
+ }))
+ { IsBackground = true }.Start();
+ }
+
+ private void label5_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void textBox_MeasureValue_4_TextChanged(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/CCYQ_JieFang/OP/OP20/DAS_OP20.resx b/CCYQ_JieFang/OP/OP20/DAS_OP20.resx
new file mode 100644
index 0000000..55f2584
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP20/DAS_OP20.resx
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 432, 221
+
+
+ 573, 221
+
+
+ 33
+
+
+
+
+ AAABAAEAGhoAAAAAIAAHAgAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAaAAAAGggGAAAAqUpMzgAAAAFz
+ UkdCAK7OHOkAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABnElEQVRIS+2Uz2rC
+ QBDGfZRc+h7ec/Mmxhgx2CQGYi65ivUB9NZCArl4EC/SqwgePBRKwUfw0AfZzrfshvVPY1IjlNKBj0xm
+ Z+a3m0xS+7ciZhjGqN1uM0iE7mO/D9RsNh+QXEZkRpIkDArDcJsLoqQREofDYUrFrIwkpBTItu3VaSPX
+ dVkURWwymXD/dL0yECDSB0xdgyoD4RQAqEBVlYGu6a6gfv8x828GbTYfXPP5ik2nz1zwZbxS0Gz2wkzT
+ PBJilYMcx2NBELDl8pUtFivuI3YzSP1g1+t3foLx+Ik3huAjhrUfgeI4rgOGq2xQ9ERpmmpUa6HecZw0
+ F6SaCiryjkQZN7q//lOl3Wq6ru9RjPFFM+i7qZMj7vv+djAYpOhRCETJdSrKdpon9TtCDYQedF/sRPjd
+ 0OSVEmpokwf0AEiKN71kOL7cned5rNvtbqkAj/Kier3eTuYDhCciWuVbp9PZobllWXt5/FardaArRvZI
+ Io6cT9Q1Go03AieiVb6JQi7a8YgaaGLpzLBGORblZt8NiQ/EX7da7Qtz50LQDuTBxQAAAABJRU5ErkJg
+ gg==
+
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/OP30/DAS_OP30.Designer.cs b/CCYQ_JieFang/OP/OP30/DAS_OP30.Designer.cs
new file mode 100644
index 0000000..8a68a32
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP30/DAS_OP30.Designer.cs
@@ -0,0 +1,610 @@
+namespace MesWork
+{
+ partial class DAS_OP30: PlcLinkForm
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DAS_OP30));
+ this.timHSCZ = new System.Windows.Forms.Timer(this.components);
+ this.label9 = new System.Windows.Forms.Label();
+ this.timUI = new System.Windows.Forms.Timer(this.components);
+ this.labelTime = new System.Windows.Forms.Label();
+ this.label18 = new System.Windows.Forms.Label();
+ this.panel7 = new System.Windows.Forms.Panel();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.pictureBox12_end_2 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_2 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_1 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_1 = new System.Windows.Forms.PictureBox();
+ this.textBox_MeasureValue_2 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_1 = new System.Windows.Forms.TextBox();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.label16 = new System.Windows.Forms.Label();
+ this.button_running = new System.Windows.Forms.Button();
+ this.button_alarm = new System.Windows.Forms.Button();
+ this.button_finished = new System.Windows.Forms.Button();
+ this.button_empty = new System.Windows.Forms.Button();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.label_AgvLeaved = new System.Windows.Forms.Label();
+ this.label19 = new System.Windows.Forms.Label();
+ this.label_AgvCanLeave = new System.Windows.Forms.Label();
+ this.label15 = new System.Windows.Forms.Label();
+ this.label_AgvRequestLeave = new System.Windows.Forms.Label();
+ this.button5_heartBeat_Ning = new System.Windows.Forms.Button();
+ this.button5_heartBeat = new System.Windows.Forms.Button();
+ this.label_AgvCanEnter = new System.Windows.Forms.Label();
+ this.textBox1_PartPosition = new System.Windows.Forms.TextBox();
+ this.label_AgvSongliao = new System.Windows.Forms.Label();
+ this.label_AgvRequestEnter = new System.Windows.Forms.Label();
+ this.label17 = new System.Windows.Forms.Label();
+ this.textBox1_EngineID = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.panel7.SuspendLayout();
+ this.panel3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // timHSCZ
+ //
+ this.timHSCZ.Enabled = true;
+ //
+ // label9
+ //
+ this.label9.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Bold);
+ this.label9.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.label9.Location = new System.Drawing.Point(-136, -165);
+ this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(685, 50);
+ this.label9.TabIndex = 22;
+ this.label9.Text = "微型减速机";
+ this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // timUI
+ //
+ this.timUI.Enabled = true;
+ //
+ // labelTime
+ //
+ this.labelTime.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F);
+ this.labelTime.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.labelTime.Location = new System.Drawing.Point(898, -165);
+ this.labelTime.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.labelTime.Name = "labelTime";
+ this.labelTime.Size = new System.Drawing.Size(647, 58);
+ this.labelTime.TabIndex = 23;
+ this.labelTime.Text = "2021-03-09 12:30:30";
+ this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label18
+ //
+ this.label18.BackColor = System.Drawing.Color.Transparent;
+ this.label18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label18.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.label18.Font = new System.Drawing.Font("微软雅黑", 10.5F);
+ this.label18.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.label18.Location = new System.Drawing.Point(188, 177);
+ this.label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label18.Name = "label18";
+ this.label18.Size = new System.Drawing.Size(93, 54);
+ this.label18.TabIndex = 1;
+ this.label18.Text = "查询";
+ this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label18.Visible = false;
+ //
+ // panel7
+ //
+ this.panel7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
+ this.panel7.Controls.Add(this.label18);
+ this.panel7.Location = new System.Drawing.Point(-144, -112);
+ this.panel7.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
+ this.panel7.Name = "panel7";
+ this.panel7.Size = new System.Drawing.Size(1688, 68);
+ this.panel7.TabIndex = 24;
+ //
+ // panel3
+ //
+ this.panel3.Controls.Add(this.pictureBox12_end_2);
+ this.panel3.Controls.Add(this.pictureBox2_start_2);
+ this.panel3.Controls.Add(this.pictureBox12_end_1);
+ this.panel3.Controls.Add(this.pictureBox2_start_1);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_2);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_1);
+ this.panel3.Controls.Add(this.label6);
+ this.panel3.Controls.Add(this.label5);
+ this.panel3.Controls.Add(this.pictureBox1);
+ this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel3.Location = new System.Drawing.Point(3, 77);
+ this.panel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(1767, 684);
+ this.panel3.TabIndex = 4;
+ //
+ // pictureBox12_end_2
+ //
+ this.pictureBox12_end_2.Image = global::CCYQ_JieFang.Properties.Resources.下压OK;
+ this.pictureBox12_end_2.Location = new System.Drawing.Point(678, 238);
+ this.pictureBox12_end_2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.pictureBox12_end_2.Name = "pictureBox12_end_2";
+ this.pictureBox12_end_2.Size = new System.Drawing.Size(57, 53);
+ this.pictureBox12_end_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_2.TabIndex = 9;
+ this.pictureBox12_end_2.TabStop = false;
+ //
+ // pictureBox2_start_2
+ //
+ this.pictureBox2_start_2.Image = global::CCYQ_JieFang.Properties.Resources.下压;
+ this.pictureBox2_start_2.Location = new System.Drawing.Point(678, 238);
+ this.pictureBox2_start_2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.pictureBox2_start_2.Name = "pictureBox2_start_2";
+ this.pictureBox2_start_2.Size = new System.Drawing.Size(57, 53);
+ this.pictureBox2_start_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_2.TabIndex = 10;
+ this.pictureBox2_start_2.TabStop = false;
+ //
+ // pictureBox12_end_1
+ //
+ this.pictureBox12_end_1.Image = global::CCYQ_JieFang.Properties.Resources.下压OK;
+ this.pictureBox12_end_1.Location = new System.Drawing.Point(678, 161);
+ this.pictureBox12_end_1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.pictureBox12_end_1.Name = "pictureBox12_end_1";
+ this.pictureBox12_end_1.Size = new System.Drawing.Size(57, 53);
+ this.pictureBox12_end_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_1.TabIndex = 9;
+ this.pictureBox12_end_1.TabStop = false;
+ //
+ // pictureBox2_start_1
+ //
+ this.pictureBox2_start_1.Image = global::CCYQ_JieFang.Properties.Resources.下压;
+ this.pictureBox2_start_1.Location = new System.Drawing.Point(678, 161);
+ this.pictureBox2_start_1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.pictureBox2_start_1.Name = "pictureBox2_start_1";
+ this.pictureBox2_start_1.Size = new System.Drawing.Size(57, 53);
+ this.pictureBox2_start_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_1.TabIndex = 10;
+ this.pictureBox2_start_1.TabStop = false;
+ //
+ // textBox_MeasureValue_2
+ //
+ this.textBox_MeasureValue_2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_2.Font = new System.Drawing.Font("宋体", 17F);
+ this.textBox_MeasureValue_2.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_2.Location = new System.Drawing.Point(505, 246);
+ this.textBox_MeasureValue_2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.textBox_MeasureValue_2.Name = "textBox_MeasureValue_2";
+ this.textBox_MeasureValue_2.ReadOnly = true;
+ this.textBox_MeasureValue_2.Size = new System.Drawing.Size(158, 40);
+ this.textBox_MeasureValue_2.TabIndex = 4;
+ this.textBox_MeasureValue_2.Text = "0";
+ //
+ // textBox_MeasureValue_1
+ //
+ this.textBox_MeasureValue_1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_1.Font = new System.Drawing.Font("宋体", 17F);
+ this.textBox_MeasureValue_1.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_1.Location = new System.Drawing.Point(505, 169);
+ this.textBox_MeasureValue_1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.textBox_MeasureValue_1.Name = "textBox_MeasureValue_1";
+ this.textBox_MeasureValue_1.ReadOnly = true;
+ this.textBox_MeasureValue_1.Size = new System.Drawing.Size(158, 40);
+ this.textBox_MeasureValue_1.TabIndex = 4;
+ this.textBox_MeasureValue_1.Text = "0";
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.BackColor = System.Drawing.Color.White;
+ this.label6.Font = new System.Drawing.Font("宋体", 17F);
+ this.label6.Location = new System.Drawing.Point(411, 250);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(86, 29);
+ this.label6.TabIndex = 6;
+ this.label6.Text = "压力2";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.BackColor = System.Drawing.Color.White;
+ this.label5.Font = new System.Drawing.Font("宋体", 17F);
+ this.label5.Location = new System.Drawing.Point(411, 173);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(86, 29);
+ this.label5.TabIndex = 6;
+ this.label5.Text = "压力1";
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.BackColor = System.Drawing.Color.White;
+ this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.pictureBox1.Image = global::CCYQ_JieFang.Properties.Resources._03_卫星模型;
+ this.pictureBox1.Location = new System.Drawing.Point(116, 13);
+ this.pictureBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(1501, 668);
+ this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox1.TabIndex = 0;
+ this.pictureBox1.TabStop = false;
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.label16);
+ this.panel1.Controls.Add(this.button_running);
+ this.panel1.Controls.Add(this.button_alarm);
+ this.panel1.Controls.Add(this.button_finished);
+ this.panel1.Controls.Add(this.button_empty);
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel1.Location = new System.Drawing.Point(3, 765);
+ this.panel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(1767, 71);
+ this.panel1.TabIndex = 3;
+ //
+ // label16
+ //
+ this.label16.BackColor = System.Drawing.Color.Black;
+ this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.label16.Location = new System.Drawing.Point(0, 3);
+ this.label16.Name = "label16";
+ this.label16.Size = new System.Drawing.Size(1760, 3);
+ this.label16.TabIndex = 10;
+ //
+ // button_running
+ //
+ this.button_running.BackColor = System.Drawing.Color.Gray;
+ this.button_running.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_running.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_running.ForeColor = System.Drawing.Color.White;
+ this.button_running.Location = new System.Drawing.Point(34, 12);
+ this.button_running.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.button_running.Name = "button_running";
+ this.button_running.Size = new System.Drawing.Size(296, 55);
+ this.button_running.TabIndex = 4;
+ this.button_running.Text = "设备运行(禁止上下料)";
+ this.button_running.UseVisualStyleBackColor = false;
+ //
+ // button_alarm
+ //
+ this.button_alarm.BackColor = System.Drawing.Color.Gray;
+ this.button_alarm.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_alarm.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_alarm.ForeColor = System.Drawing.Color.White;
+ this.button_alarm.Location = new System.Drawing.Point(1113, 13);
+ this.button_alarm.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.button_alarm.Name = "button_alarm";
+ this.button_alarm.Size = new System.Drawing.Size(296, 55);
+ this.button_alarm.TabIndex = 5;
+ this.button_alarm.Text = "设备故障";
+ this.button_alarm.UseVisualStyleBackColor = false;
+ //
+ // button_finished
+ //
+ this.button_finished.BackColor = System.Drawing.Color.Gray;
+ this.button_finished.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_finished.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_finished.ForeColor = System.Drawing.Color.White;
+ this.button_finished.Location = new System.Drawing.Point(393, 12);
+ this.button_finished.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.button_finished.Name = "button_finished";
+ this.button_finished.Size = new System.Drawing.Size(296, 55);
+ this.button_finished.TabIndex = 6;
+ this.button_finished.Text = "完成装配(请求下料)";
+ this.button_finished.UseVisualStyleBackColor = false;
+ //
+ // button_empty
+ //
+ this.button_empty.BackColor = System.Drawing.Color.Gray;
+ this.button_empty.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_empty.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_empty.ForeColor = System.Drawing.Color.White;
+ this.button_empty.Location = new System.Drawing.Point(754, 13);
+ this.button_empty.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.button_empty.Name = "button_empty";
+ this.button_empty.Size = new System.Drawing.Size(296, 55);
+ this.button_empty.TabIndex = 7;
+ this.button_empty.Text = "设备空闲(请求上料)";
+ this.button_empty.UseVisualStyleBackColor = false;
+ //
+ // panel2
+ //
+ this.panel2.Controls.Add(this.label_AgvLeaved);
+ this.panel2.Controls.Add(this.label19);
+ this.panel2.Controls.Add(this.label_AgvCanLeave);
+ this.panel2.Controls.Add(this.label15);
+ this.panel2.Controls.Add(this.label_AgvRequestLeave);
+ this.panel2.Controls.Add(this.button5_heartBeat_Ning);
+ this.panel2.Controls.Add(this.button5_heartBeat);
+ this.panel2.Controls.Add(this.label_AgvCanEnter);
+ this.panel2.Controls.Add(this.textBox1_PartPosition);
+ this.panel2.Controls.Add(this.label_AgvSongliao);
+ this.panel2.Controls.Add(this.label_AgvRequestEnter);
+ this.panel2.Controls.Add(this.label17);
+ this.panel2.Controls.Add(this.textBox1_EngineID);
+ this.panel2.Controls.Add(this.label1);
+ this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel2.Location = new System.Drawing.Point(3, 2);
+ this.panel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(1767, 71);
+ this.panel2.TabIndex = 2;
+ //
+ // label_AgvLeaved
+ //
+ this.label_AgvLeaved.AutoSize = true;
+ this.label_AgvLeaved.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvLeaved.Location = new System.Drawing.Point(1238, 10);
+ this.label_AgvLeaved.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvLeaved.Name = "label_AgvLeaved";
+ this.label_AgvLeaved.Size = new System.Drawing.Size(134, 19);
+ this.label_AgvLeaved.TabIndex = 9;
+ this.label_AgvLeaved.Text = "●AGV已经离开";
+ //
+ // label19
+ //
+ this.label19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label19.Location = new System.Drawing.Point(1561, 13);
+ this.label19.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label19.Name = "label19";
+ this.label19.Size = new System.Drawing.Size(2, 37);
+ this.label19.TabIndex = 9;
+ //
+ // label_AgvCanLeave
+ //
+ this.label_AgvCanLeave.AutoSize = true;
+ this.label_AgvCanLeave.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvCanLeave.Location = new System.Drawing.Point(1089, 38);
+ this.label_AgvCanLeave.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvCanLeave.Name = "label_AgvCanLeave";
+ this.label_AgvCanLeave.Size = new System.Drawing.Size(134, 19);
+ this.label_AgvCanLeave.TabIndex = 9;
+ this.label_AgvCanLeave.Text = "●AGV可以离开";
+ //
+ // label15
+ //
+ this.label15.BackColor = System.Drawing.Color.Black;
+ this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.label15.Location = new System.Drawing.Point(0, 62);
+ this.label15.Name = "label15";
+ this.label15.Size = new System.Drawing.Size(1760, 3);
+ this.label15.TabIndex = 9;
+ //
+ // label_AgvRequestLeave
+ //
+ this.label_AgvRequestLeave.AutoSize = true;
+ this.label_AgvRequestLeave.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvRequestLeave.Location = new System.Drawing.Point(1089, 10);
+ this.label_AgvRequestLeave.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvRequestLeave.Name = "label_AgvRequestLeave";
+ this.label_AgvRequestLeave.Size = new System.Drawing.Size(134, 19);
+ this.label_AgvRequestLeave.TabIndex = 9;
+ this.label_AgvRequestLeave.Text = "●AGV请求离开";
+ //
+ // button5_heartBeat_Ning
+ //
+ this.button5_heartBeat_Ning.BackColor = System.Drawing.Color.Gray;
+ this.button5_heartBeat_Ning.Font = new System.Drawing.Font("宋体", 12F);
+ this.button5_heartBeat_Ning.ForeColor = System.Drawing.Color.White;
+ this.button5_heartBeat_Ning.Location = new System.Drawing.Point(1569, 10);
+ this.button5_heartBeat_Ning.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.button5_heartBeat_Ning.Name = "button5_heartBeat_Ning";
+ this.button5_heartBeat_Ning.Size = new System.Drawing.Size(89, 43);
+ this.button5_heartBeat_Ning.TabIndex = 5;
+ this.button5_heartBeat_Ning.Text = "拧紧枪";
+ this.button5_heartBeat_Ning.UseVisualStyleBackColor = false;
+ this.button5_heartBeat_Ning.Visible = false;
+ //
+ // button5_heartBeat
+ //
+ this.button5_heartBeat.BackColor = System.Drawing.Color.Gray;
+ this.button5_heartBeat.Font = new System.Drawing.Font("宋体", 12F);
+ this.button5_heartBeat.ForeColor = System.Drawing.Color.White;
+ this.button5_heartBeat.Location = new System.Drawing.Point(1674, 10);
+ this.button5_heartBeat.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.button5_heartBeat.Name = "button5_heartBeat";
+ this.button5_heartBeat.Size = new System.Drawing.Size(89, 43);
+ this.button5_heartBeat.TabIndex = 5;
+ this.button5_heartBeat.Text = "PLC";
+ this.button5_heartBeat.UseVisualStyleBackColor = false;
+ //
+ // label_AgvCanEnter
+ //
+ this.label_AgvCanEnter.AutoSize = true;
+ this.label_AgvCanEnter.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvCanEnter.Location = new System.Drawing.Point(927, 38);
+ this.label_AgvCanEnter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvCanEnter.Name = "label_AgvCanEnter";
+ this.label_AgvCanEnter.Size = new System.Drawing.Size(134, 19);
+ this.label_AgvCanEnter.TabIndex = 9;
+ this.label_AgvCanEnter.Text = "●AGV可以进入";
+ //
+ // textBox1_PartPosition
+ //
+ this.textBox1_PartPosition.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox1_PartPosition.Font = new System.Drawing.Font("宋体", 20F);
+ this.textBox1_PartPosition.Location = new System.Drawing.Point(615, 8);
+ this.textBox1_PartPosition.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.textBox1_PartPosition.Name = "textBox1_PartPosition";
+ this.textBox1_PartPosition.ReadOnly = true;
+ this.textBox1_PartPosition.Size = new System.Drawing.Size(105, 46);
+ this.textBox1_PartPosition.TabIndex = 1;
+ //
+ // label_AgvSongliao
+ //
+ this.label_AgvSongliao.AutoSize = true;
+ this.label_AgvSongliao.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvSongliao.Location = new System.Drawing.Point(785, 12);
+ this.label_AgvSongliao.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvSongliao.Name = "label_AgvSongliao";
+ this.label_AgvSongliao.Size = new System.Drawing.Size(134, 19);
+ this.label_AgvSongliao.TabIndex = 9;
+ this.label_AgvSongliao.Text = "●AGV准备送料";
+ //
+ // label_AgvRequestEnter
+ //
+ this.label_AgvRequestEnter.AutoSize = true;
+ this.label_AgvRequestEnter.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvRequestEnter.Location = new System.Drawing.Point(927, 10);
+ this.label_AgvRequestEnter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvRequestEnter.Name = "label_AgvRequestEnter";
+ this.label_AgvRequestEnter.Size = new System.Drawing.Size(134, 19);
+ this.label_AgvRequestEnter.TabIndex = 9;
+ this.label_AgvRequestEnter.Text = "●AGV请求进入";
+ //
+ // label17
+ //
+ this.label17.AutoSize = true;
+ this.label17.Font = new System.Drawing.Font("宋体", 16F);
+ this.label17.Location = new System.Drawing.Point(467, 15);
+ this.label17.Name = "label17";
+ this.label17.Size = new System.Drawing.Size(147, 27);
+ this.label17.TabIndex = 0;
+ this.label17.Text = "装配位置:";
+ //
+ // textBox1_EngineID
+ //
+ this.textBox1_EngineID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox1_EngineID.Font = new System.Drawing.Font("宋体", 20F);
+ this.textBox1_EngineID.Location = new System.Drawing.Point(151, 8);
+ this.textBox1_EngineID.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.textBox1_EngineID.Name = "textBox1_EngineID";
+ this.textBox1_EngineID.ReadOnly = true;
+ this.textBox1_EngineID.Size = new System.Drawing.Size(310, 46);
+ this.textBox1_EngineID.TabIndex = 1;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("宋体", 16F);
+ this.label1.Location = new System.Drawing.Point(3, 17);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(147, 27);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "产品编码:";
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.ColumnCount = 1;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 2);
+ this.tableLayoutPanel1.Controls.Add(this.panel3, 0, 1);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 3;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 75F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 75F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1773, 838);
+ this.tableLayoutPanel1.TabIndex = 25;
+ //
+ // DAS_OP30
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.Color.White;
+ this.ClientSize = new System.Drawing.Size(1773, 838);
+ this.Controls.Add(this.tableLayoutPanel1);
+ this.Controls.Add(this.label9);
+ this.Controls.Add(this.labelTime);
+ this.Controls.Add(this.panel7);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+ this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "DAS_OP30";
+ this.Text = "OP30工位-卫星模型";
+ this.panel7.ResumeLayout(false);
+ this.panel3.ResumeLayout(false);
+ this.panel3.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ this.panel1.ResumeLayout(false);
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ private System.Windows.Forms.Timer timHSCZ;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Timer timUI;
+ private System.Windows.Forms.Label labelTime;
+ private System.Windows.Forms.Label label18;
+ private System.Windows.Forms.Panel panel7;
+ private System.Windows.Forms.Panel panel3;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_2;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_1;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Label label16;
+ private System.Windows.Forms.Button button_running;
+ private System.Windows.Forms.Button button_alarm;
+ private System.Windows.Forms.Button button_finished;
+ private System.Windows.Forms.Button button_empty;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label label_AgvLeaved;
+ private System.Windows.Forms.Label label19;
+ private System.Windows.Forms.Label label_AgvCanLeave;
+ private System.Windows.Forms.Label label15;
+ private System.Windows.Forms.Label label_AgvRequestLeave;
+ private System.Windows.Forms.Button button5_heartBeat;
+ private System.Windows.Forms.Label label_AgvCanEnter;
+ private System.Windows.Forms.TextBox textBox1_PartPosition;
+ private System.Windows.Forms.Label label_AgvRequestEnter;
+ private System.Windows.Forms.Label label17;
+ private System.Windows.Forms.TextBox textBox1_EngineID;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private System.Windows.Forms.Label label_AgvSongliao;
+ private System.Windows.Forms.Button button5_heartBeat_Ning;
+ private System.Windows.Forms.PictureBox pictureBox12_end_1;
+ private System.Windows.Forms.PictureBox pictureBox2_start_1;
+ private System.Windows.Forms.PictureBox pictureBox12_end_2;
+ private System.Windows.Forms.PictureBox pictureBox2_start_2;
+ }
+}
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/OP30/DAS_OP30.cs b/CCYQ_JieFang/OP/OP30/DAS_OP30.cs
new file mode 100644
index 0000000..8d55dd9
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP30/DAS_OP30.cs
@@ -0,0 +1,626 @@
+
+using DK_DC_Tool;
+using HslCommunication.Core;
+using Newtonsoft.Json;
+using NPOI.SS.UserModel;
+using OpcBasic;
+using Robot.Common;
+using Serilog.Events;
+using System;
+using System.Collections.Concurrent;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Data.SqlClient;
+using System.Drawing;
+using System.IO;
+using System.Linq;
+using System.Net;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using SystemFramework;
+
+namespace MesWork
+{
+ public partial class DAS_OP30
+ {
+ InitServer initServer = null;
+ ///
+ ///
+ ///
+ private static string OpNameCurrent = "";
+ ///
+ /// 字典 ,存储12个开始测量图片控件,key为测量位置,value为图片控件
+ ///
+ Dictionary dicStartMasurePictureBox = new Dictionary();
+ ///
+ /// 字典 ,存储12个结束测量图片控件,key为测量位置,value为图片控件
+ ///
+ Dictionary dicEndMasurePictureBox = new Dictionary();
+ ///
+ /// 字典 ,存储12个结束测量文本框控件,key为测量位置,value文本框的值
+ ///
+ Dictionary dicMeasureTextBox = new Dictionary();
+ ///
+ /// PLC事件变化委托
+ ///
+ public static Action MIS_Funtion_PLC_OP = null;
+
+ ///
+ /// PLC事件变化委托
+ ///
+ public static Action AGV_Task_change = null;
+ ///
+ /// PLC事件变化委托--处理托盘信息
+ ///
+ public static Action AGV_Task_Info = null;
+
+ // 每个工位的满工件数量
+ // 工位OP30 4个
+ public static int partCount = 4;
+
+ public static bool isConnect = false;
+
+ public DAS_OP30(string opName)
+ {
+ InitializeComponent();
+
+ publicCore.partCount = partCount;
+ OpNameCurrent = opName;
+
+ Tighten.E_DeviceHeartBeat -= DeviceHeartBeat_NingJinQiang;
+ Tighten.E_DeviceHeartBeat += DeviceHeartBeat_NingJinQiang;
+
+ MesWorkForm.MIS_Funtion_PLC_MeasureFinish -= SolvePicAndMeasureValueWorking;
+ MesWorkForm.MIS_Funtion_PLC_MeasureFinish += SolvePicAndMeasureValueWorking;
+
+ MIS_Funtion_PLC_OP -= MIS_Funtion_PLC;
+ MIS_Funtion_PLC_OP += MIS_Funtion_PLC;
+
+ AGV_Task_change -= SolveAgvDeviceStatus;
+ AGV_Task_change += SolveAgvDeviceStatus;
+
+
+ if (MesWorkForm.IsDemoMesServer == 1)
+ {
+ MoNiHeartBeat();
+ }
+ SolvePicAndMeasureValueInit();
+
+ new Thread(new ThreadStart(delegate () {
+ while (true)
+ {
+ try
+ {
+ SolveDeviceStatusInit(publicCore.SolveDeviceStatus_Read(OpNameCurrent));
+ }
+ catch (Exception err) { }
+ Thread.Sleep(2000);
+ }
+ }))
+ { IsBackground = true }.Start();
+
+ //var aa =
+ //new Thread(new ThreadStart(delegate () {
+ // while (true)
+ // {
+ // try
+ // {
+ // if (!isConnect)
+ // {
+ // if (publicCore.Get_PartPosition(OpNameCurrent) != -1)
+ // {
+ // isConnect = true;
+ // ProductInfo_search();
+ // }
+ // }
+ // }
+ // catch (Exception err) { }
+ // Thread.Sleep(1000);
+ // }
+ //}));
+ //aa.IsBackground = true;
+ //aa.Start();
+
+ }
+ public void MIS_Funtion_PLC(DeviceDriver_BasicData.CustomeEvetnArgs msgEvent)
+ {
+ try
+ {
+ var tagID = msgEvent.TagID.ToString();
+ // var opName = msgEvent.OpName.ToString();
+ var tagTypeCodeID = (int)msgEvent.TagTypeCodeID;
+ var tagTypeID = (EnumTagTypeID)msgEvent.TagTypeID;
+ string tagValue;
+ switch (tagTypeID)
+ {
+ case EnumTagTypeID.BOOL:
+ tagValue = (Convert.ToInt32(msgEvent.TagValue)).ToString();
+ break;
+ default:
+ tagValue = msgEvent.TagValue.ToString();
+ break;
+ }
+ switch (tagTypeCodeID)
+ {
+ case 14:
+ DeviceHeartBeat(tagValue);
+ break;
+ // AGV任务
+ case 50:
+ publicCore.SolveAgvTaskNum(OpNameCurrent, tagValue);
+ break;
+ // 51 空闲(请求上料)
+ // 52 完成(请求下料)
+ // 53 故障
+ case 51:
+ case 52:
+ case 53:
+ publicCore.SolveDeviceStatus(OpNameCurrent);
+ SolveDeviceStatusInit(publicCore.SolveDeviceStatus_Read(OpNameCurrent));
+ break;
+ // 54 第几个件
+ case 54:
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+ break;
+ case 55:
+ publicCore.MeasurePositionChange(OpNameCurrent, 2);
+ SolvePicAndMeasureValueWorking();
+ break;
+ //读电批
+ case 56:
+ if (tagValue == "1")
+ {
+ publicCore.LogInsert("OP30", "Info", "【PLC_读电批置位】");
+ // 不在这个地方写true,写在接收数据的地方写
+
+ }
+ else
+ {
+ publicCore.LogInsert("OP30", "Info", "【PLC_读电批复位】");
+ MesWorkForm.WritePLC(83, OpNameCurrent, false);
+ publicCore.LogInsert("OP30", "Info", "【IPC_读电批完成复位】");
+ }
+ break;
+ //读泄漏量1 2或者压力
+ case 59:
+ if (tagValue == "1")
+ {
+ //publicCore.ReadQualityData_LeakageRate(OpNameCurrent);
+ publicCore.ReadQualityData_Pressure(OpNameCurrent);
+ MesWorkForm.WritePLC(84, OpNameCurrent, true);
+ }
+ else
+ {
+ MesWorkForm.WritePLC(84, OpNameCurrent, false);
+ }
+ break;
+ }
+ }
+ catch (Exception ex)
+ {
+ }
+ }
+ ///
+ /// 初始化界面显示
+ ///
+ private void SolvePicAndMeasureValueInit()
+ {
+ try
+ {
+ dicStartMasurePictureBox.Add(1, pictureBox2_start_1);
+ dicStartMasurePictureBox.Add(2, pictureBox2_start_2);
+
+ dicEndMasurePictureBox.Add(1, pictureBox12_end_1);
+ dicEndMasurePictureBox.Add(2, pictureBox12_end_2);
+
+ dicMeasureTextBox.Add(1, textBox_MeasureValue_1);
+ dicMeasureTextBox.Add(2, textBox_MeasureValue_2);
+
+ foreach (var item in dicStartMasurePictureBox)
+ {
+ item.Value.Visible = false;
+ }
+ foreach (var item in dicEndMasurePictureBox)
+ {
+ item.Value.Visible = false;
+ }
+ foreach (var item in dicMeasureTextBox)
+ {
+ item.Value.Text = "";
+ }
+
+ int partPosition = publicCore.Get_PartPosition(OpNameCurrent);
+
+ publicCore.GetQualityInfo_Init(OpNameCurrent, partPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ int measureStatus = Convert.ToInt32(dt.Rows[i]["测量状态"]);
+ int measurePosition = Convert.ToInt32(dt.Rows[i]["测量位置"]);
+ string tagValue = dt.Rows[i]["测量值"].ToString();
+ string isOk = dt.Rows[i]["是否合格"].ToString();
+
+ // 测量状态为1 表示初始状态,两张图片都不显示
+ // 测量状态为2 表示正在测量,显示第二张图片
+ // 测量状态为3 表示测量完成,显示第一张图片
+ var control_DicStartMasurePictureBox = dicStartMasurePictureBox[measurePosition];
+ var control_DicEndMasurePictureBox = dicEndMasurePictureBox[measurePosition];
+ var control_DicMeasureTextBox = dicMeasureTextBox[measurePosition];
+
+ if (measureStatus == 1)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 2)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, true);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 3)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, true);
+ }
+ if (isOk == "1")
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.White);
+ }
+ else
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.Red);
+ }
+ }
+ }
+ }
+ catch (Exception err)
+ {
+ }
+
+ }
+ ///
+ /// 工作时界面显示
+ ///
+ private void SolvePicAndMeasureValueWorking()
+ {
+ try
+ {
+ int partPosition = publicCore.Get_PartPosition(OpNameCurrent);
+ publicCore.GetQualityInfo_Init(OpNameCurrent, partPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ int measureStatus = Convert.ToInt32(dt.Rows[i]["测量状态"]);
+ int measurePosition = Convert.ToInt32(dt.Rows[i]["测量位置"]);
+ string tagValue = dt.Rows[i]["测量值"].ToString();
+ string isOk = dt.Rows[i]["是否合格"].ToString();
+ // 测量状态为1 表示初始状态,两张图片都不显示
+ // 测量状态为2 表示正在测量,显示第二张图片
+ // 测量状态为3 表示测量完成,显示第一张图片
+
+ var control_DicStartMasurePictureBox = dicStartMasurePictureBox[measurePosition];
+ var control_DicEndMasurePictureBox = dicEndMasurePictureBox[measurePosition];
+ var control_DicMeasureTextBox = dicMeasureTextBox[measurePosition];
+
+ if (measureStatus == 1)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 2)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, true);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 3)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, true);
+ }
+ if (isOk == "2")
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.Red);
+ }
+ else
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.White);
+ }
+ }
+ }
+ }
+ catch (Exception err)
+ {
+ }
+
+ }
+ ///
+ /// 界面产品编码和装配位置的显示
+ ///
+ public void ProductInfo_search()
+ {
+ try
+ {
+ //textBox1_EngineID.Text = "";
+ //textBox1_PartPosition.Text = "";
+ ShowTextBoxControl(textBox1_EngineID, "", Color.White);
+ ShowTextBoxControl(textBox1_PartPosition, "", Color.White);
+ int PartPosition = publicCore.Get_PartPosition(OpNameCurrent);
+ publicCore.GetProductInfo_Init(OpNameCurrent, PartPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ ShowTextBoxControl(textBox1_EngineID, dt.Rows[0]["发动机号"].ToString(), Color.White);
+ ShowTextBoxControl(textBox1_PartPosition, dt.Rows[0]["装配位置"].ToString(), Color.White);
+ //textBox1_EngineID.Text = dt.Rows[0]["发动机号"].ToString();
+ //textBox1_PartPosition.Text = dt.Rows[0]["装配位置"].ToString();
+ }
+ }
+ catch (Exception err)
+ {
+ }
+ }
+ private void ShowPicBoxControl(Control c, bool ststus)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.Visible = ststus;
+ }));
+ }
+ private void ShowTextBoxControl(Control c, string value, Color color)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.Text = value;
+ c.BackColor = color;
+ }));
+ }
+ private void ShowLabelControl(Control c, Color color)
+ {
+ //if (c.InvokeRequired)
+ //{
+
+ //}
+ //else
+ //{
+ // c.ForeColor = color;
+ //}
+ c.BeginInvoke(new Action(delegate () {
+ c.ForeColor = color;
+ }));
+ }
+ private void ShowButtonControl(Control c, Color color)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.BackColor = color;
+ }));
+ }
+
+
+ ///
+ /// 初始化设备状态
+ /// 1工作中 2空闲(请求上料) 3完成(请求下料) 4 报警
+ ///
+ private void SolveDeviceStatusInit(string currentStatus)
+ {
+ try
+ {
+ ShowButtonControl(button_running, Color.Gray);
+ ShowButtonControl(button_finished, Color.Gray);
+ ShowButtonControl(button_empty, Color.Gray);
+ ShowButtonControl(button_alarm, Color.Gray);
+ //button_running.BackColor = Color.Gray;
+ //button_finished.BackColor = Color.Gray;
+ //button_empty.BackColor = Color.Gray;
+ //button_alarm.BackColor = Color.Gray;
+
+ if (currentStatus == "1")
+ {
+ ShowButtonControl(button_running, Color.Green);
+ //button_running.BackColor = Color.Green;
+ }
+ else if (currentStatus == "2")
+ {
+ ShowButtonControl(button_empty, Color.SkyBlue);
+
+ //button_empty.BackColor = Color.SkyBlue;
+ }
+ else if (currentStatus == "3")
+ {
+ ShowButtonControl(button_finished, Color.DarkOrange);
+
+ //button_finished.BackColor = Color.DarkOrange;
+ }
+ else if (currentStatus == "4")
+ {
+ ShowButtonControl(button_alarm, Color.Red);
+
+ //button_alarm.BackColor = Color.Red;
+ }
+ }
+ catch (Exception err)
+ {
+
+ }
+ }
+ ///
+ /// AGV设备状态显示
+ ///
+ ///
+ private void SolveAgvDeviceStatus(string PLC_AgvTaskNum)
+ {
+ try
+ {
+ // 77 反馈AGV任务
+ switch (PLC_AgvTaskNum)
+ {
+ case "10":
+ // AGV触发装配任务 正在送料
+ //label_AgvSongliao.ForeColor = Color.Green;
+
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+
+ //label_AgvLeaved.ForeColor = Color.Black;
+
+ ShowLabelControl(label_AgvSongliao, Color.Green);
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ ShowLabelControl(label_AgvLeaved, Color.Black);
+
+
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+
+ break;
+ case "11":
+
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Green);
+
+ //label_AgvRequestEnter.ForeColor = Color.Green;
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ break;
+ // 允许AGV进行上料 --允许进入
+ // 允许AGV进行下料 --允许进入
+ case "2":
+ case "4":
+ ShowLabelControl(label_AgvCanEnter, Color.Green);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ //label_AgvCanEnter.ForeColor = Color.Green;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+ break;
+ case "21":
+ // AGV 上料完成
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Green);
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Green;
+ break;
+ case "3":
+ // 1.调用FSS-接收IPC下料请求的接口
+ // 2.反馈任务号:30 AGV已呼叫成功正在去往下料区
+ break;
+ case "31":
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvRequestLeave, Color.Green);
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+ //label_AgvRequestLeave.ForeColor = Color.Green;
+ // AGV已到达下料区
+ break;
+ case "41":
+ // AGV下料完成
+ break;
+ // 允许AGV离开
+ case "5":
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Green);
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Green;
+ break;
+ case "51":
+ //label_AgvSongliao.ForeColor = Color.Black;
+
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+
+ //label_AgvLeaved.ForeColor = Color.Green;
+ ShowLabelControl(label_AgvSongliao, Color.Black);
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ ShowLabelControl(label_AgvLeaved, Color.Green);
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+ break;
+ }
+
+
+ }
+ catch (Exception err)
+ {
+ }
+ }
+
+ ///
+ /// 设备PLC心跳button5_heartBeat_Ning
+ ///
+ ///
+ private void DeviceHeartBeat(string tagValue)
+ {
+ WritePLC(15, OpNameCurrent, tagValue);
+ if (tagValue == "1")
+ {
+ ShowButtonControl(button5_heartBeat, Color.Green);
+
+ //button5_heartBeat.BackColor = Color.Green;
+ }
+ else
+ {
+ ShowButtonControl(button5_heartBeat, Color.Gray);
+
+ //button5_heartBeat.BackColor = Color.Gray;
+ }
+ }
+ ///
+ /// 设备PLC心跳
+ ///
+ ///
+ private void DeviceHeartBeat_NingJinQiang(string tagValue)
+ {
+ if (tagValue == "1")
+ {
+ ShowButtonControl(button5_heartBeat_Ning, Color.Green);
+
+ //button5_heartBeat_Ning.BackColor = Color.Green;
+ }
+ else
+ {
+ ShowButtonControl(button5_heartBeat_Ning, Color.Red);
+
+ //button5_heartBeat_Ning.BackColor = Color.Red;
+ }
+ }
+
+
+
+ private void MoNiHeartBeat()
+ {
+ bool tv = false;
+ new Thread(new ThreadStart(delegate () {
+ while (true)
+ {
+ try
+ {
+ WritePLC(14, OpNameCurrent, tv);
+ tv = !tv;
+ }
+ catch (Exception err) { }
+ Thread.Sleep(2000);
+ }
+ }))
+ { IsBackground = true }.Start();
+ }
+
+ private void label5_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void textBox_MeasureValue_4_TextChanged(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/CCYQ_JieFang/OP/OP30/DAS_OP30.resx b/CCYQ_JieFang/OP/OP30/DAS_OP30.resx
new file mode 100644
index 0000000..55f2584
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP30/DAS_OP30.resx
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 432, 221
+
+
+ 573, 221
+
+
+ 33
+
+
+
+
+ AAABAAEAGhoAAAAAIAAHAgAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAaAAAAGggGAAAAqUpMzgAAAAFz
+ UkdCAK7OHOkAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABnElEQVRIS+2Uz2rC
+ QBDGfZRc+h7ec/Mmxhgx2CQGYi65ivUB9NZCArl4EC/SqwgePBRKwUfw0AfZzrfshvVPY1IjlNKBj0xm
+ Z+a3m0xS+7ciZhjGqN1uM0iE7mO/D9RsNh+QXEZkRpIkDArDcJsLoqQREofDYUrFrIwkpBTItu3VaSPX
+ dVkURWwymXD/dL0yECDSB0xdgyoD4RQAqEBVlYGu6a6gfv8x828GbTYfXPP5ik2nz1zwZbxS0Gz2wkzT
+ PBJilYMcx2NBELDl8pUtFivuI3YzSP1g1+t3foLx+Ik3huAjhrUfgeI4rgOGq2xQ9ERpmmpUa6HecZw0
+ F6SaCiryjkQZN7q//lOl3Wq6ru9RjPFFM+i7qZMj7vv+djAYpOhRCETJdSrKdpon9TtCDYQedF/sRPjd
+ 0OSVEmpokwf0AEiKN71kOL7cned5rNvtbqkAj/Kier3eTuYDhCciWuVbp9PZobllWXt5/FardaArRvZI
+ Io6cT9Q1Go03AieiVb6JQi7a8YgaaGLpzLBGORblZt8NiQ/EX7da7Qtz50LQDuTBxQAAAABJRU5ErkJg
+ gg==
+
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/OP40/DAS_OP40.Designer.cs b/CCYQ_JieFang/OP/OP40/DAS_OP40.Designer.cs
new file mode 100644
index 0000000..5681362
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP40/DAS_OP40.Designer.cs
@@ -0,0 +1,1002 @@
+namespace MesWork
+{
+ partial class DAS_OP40: PlcLinkForm
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DAS_OP40));
+ this.timHSCZ = new System.Windows.Forms.Timer(this.components);
+ this.label9 = new System.Windows.Forms.Label();
+ this.timUI = new System.Windows.Forms.Timer(this.components);
+ this.labelTime = new System.Windows.Forms.Label();
+ this.label18 = new System.Windows.Forms.Label();
+ this.panel7 = new System.Windows.Forms.Panel();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.textBox_MeasureValue_3 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_2 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_4 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_1 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_7 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_6 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_5 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_8 = new System.Windows.Forms.TextBox();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label10 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.label16 = new System.Windows.Forms.Label();
+ this.button_running = new System.Windows.Forms.Button();
+ this.button_alarm = new System.Windows.Forms.Button();
+ this.button_finished = new System.Windows.Forms.Button();
+ this.button_empty = new System.Windows.Forms.Button();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.label_AgvLeaved = new System.Windows.Forms.Label();
+ this.label19 = new System.Windows.Forms.Label();
+ this.label_AgvCanLeave = new System.Windows.Forms.Label();
+ this.label15 = new System.Windows.Forms.Label();
+ this.label_AgvRequestLeave = new System.Windows.Forms.Label();
+ this.button5_heartBeat_Ning = new System.Windows.Forms.Button();
+ this.button5_heartBeat = new System.Windows.Forms.Button();
+ this.label_AgvCanEnter = new System.Windows.Forms.Label();
+ this.textBox1_PartPosition = new System.Windows.Forms.TextBox();
+ this.label_AgvSongliao = new System.Windows.Forms.Label();
+ this.label_AgvRequestEnter = new System.Windows.Forms.Label();
+ this.label17 = new System.Windows.Forms.Label();
+ this.textBox1_EngineID = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.pictureBox12_end_4 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_2 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_2 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_3 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_1 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_8 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_7 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_6 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_5 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_4 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_5 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_6 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_7 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_8 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_3 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_1 = new System.Windows.Forms.PictureBox();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_9 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_9 = new System.Windows.Forms.PictureBox();
+ this.textBox_MeasureValue_9 = new System.Windows.Forms.TextBox();
+ this.label11 = new System.Windows.Forms.Label();
+ this.panel7.SuspendLayout();
+ this.panel3.SuspendLayout();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_8)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_7)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_6)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_6)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_7)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_8)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_9)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_9)).BeginInit();
+ this.SuspendLayout();
+ //
+ // timHSCZ
+ //
+ this.timHSCZ.Enabled = true;
+ //
+ // label9
+ //
+ this.label9.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Bold);
+ this.label9.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.label9.Location = new System.Drawing.Point(-153, -198);
+ this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(771, 60);
+ this.label9.TabIndex = 22;
+ this.label9.Text = "微型减速机";
+ this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // timUI
+ //
+ this.timUI.Enabled = true;
+ //
+ // labelTime
+ //
+ this.labelTime.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F);
+ this.labelTime.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.labelTime.Location = new System.Drawing.Point(1010, -198);
+ this.labelTime.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.labelTime.Name = "labelTime";
+ this.labelTime.Size = new System.Drawing.Size(728, 69);
+ this.labelTime.TabIndex = 23;
+ this.labelTime.Text = "2021-03-09 12:30:30";
+ this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label18
+ //
+ this.label18.BackColor = System.Drawing.Color.Transparent;
+ this.label18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label18.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.label18.Font = new System.Drawing.Font("微软雅黑", 10.5F);
+ this.label18.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.label18.Location = new System.Drawing.Point(212, 212);
+ this.label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label18.Name = "label18";
+ this.label18.Size = new System.Drawing.Size(104, 64);
+ this.label18.TabIndex = 1;
+ this.label18.Text = "查询";
+ this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label18.Visible = false;
+ //
+ // panel7
+ //
+ this.panel7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
+ this.panel7.Controls.Add(this.label18);
+ this.panel7.Location = new System.Drawing.Point(-162, -134);
+ this.panel7.Margin = new System.Windows.Forms.Padding(4);
+ this.panel7.Name = "panel7";
+ this.panel7.Size = new System.Drawing.Size(1899, 82);
+ this.panel7.TabIndex = 24;
+ //
+ // panel3
+ //
+ this.panel3.Controls.Add(this.pictureBox12_end_9);
+ this.panel3.Controls.Add(this.pictureBox2_start_9);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_9);
+ this.panel3.Controls.Add(this.label11);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_3);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_2);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_4);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_1);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_7);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_6);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_5);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_8);
+ this.panel3.Controls.Add(this.pictureBox12_end_4);
+ this.panel3.Controls.Add(this.pictureBox12_end_2);
+ this.panel3.Controls.Add(this.pictureBox2_start_2);
+ this.panel3.Controls.Add(this.pictureBox12_end_3);
+ this.panel3.Controls.Add(this.pictureBox12_end_1);
+ this.panel3.Controls.Add(this.pictureBox12_end_8);
+ this.panel3.Controls.Add(this.pictureBox12_end_7);
+ this.panel3.Controls.Add(this.pictureBox12_end_6);
+ this.panel3.Controls.Add(this.pictureBox12_end_5);
+ this.panel3.Controls.Add(this.pictureBox2_start_4);
+ this.panel3.Controls.Add(this.pictureBox2_start_5);
+ this.panel3.Controls.Add(this.pictureBox2_start_6);
+ this.panel3.Controls.Add(this.pictureBox2_start_7);
+ this.panel3.Controls.Add(this.pictureBox2_start_8);
+ this.panel3.Controls.Add(this.label6);
+ this.panel3.Controls.Add(this.label4);
+ this.panel3.Controls.Add(this.label5);
+ this.panel3.Controls.Add(this.label10);
+ this.panel3.Controls.Add(this.pictureBox2_start_3);
+ this.panel3.Controls.Add(this.label8);
+ this.panel3.Controls.Add(this.label3);
+ this.panel3.Controls.Add(this.label7);
+ this.panel3.Controls.Add(this.pictureBox2_start_1);
+ this.panel3.Controls.Add(this.label2);
+ this.panel3.Controls.Add(this.pictureBox1);
+ this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel3.Location = new System.Drawing.Point(3, 93);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(1989, 820);
+ this.panel3.TabIndex = 4;
+ //
+ // textBox_MeasureValue_3
+ //
+ this.textBox_MeasureValue_3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_3.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_3.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_3.Location = new System.Drawing.Point(820, 45);
+ this.textBox_MeasureValue_3.Name = "textBox_MeasureValue_3";
+ this.textBox_MeasureValue_3.ReadOnly = true;
+ this.textBox_MeasureValue_3.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_3.TabIndex = 4;
+ this.textBox_MeasureValue_3.Text = "0";
+ //
+ // textBox_MeasureValue_2
+ //
+ this.textBox_MeasureValue_2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_2.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_2.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_2.Location = new System.Drawing.Point(1296, 40);
+ this.textBox_MeasureValue_2.Name = "textBox_MeasureValue_2";
+ this.textBox_MeasureValue_2.ReadOnly = true;
+ this.textBox_MeasureValue_2.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_2.TabIndex = 4;
+ this.textBox_MeasureValue_2.Text = "0";
+ //
+ // textBox_MeasureValue_4
+ //
+ this.textBox_MeasureValue_4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_4.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_4.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_4.Location = new System.Drawing.Point(571, 228);
+ this.textBox_MeasureValue_4.Name = "textBox_MeasureValue_4";
+ this.textBox_MeasureValue_4.ReadOnly = true;
+ this.textBox_MeasureValue_4.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_4.TabIndex = 4;
+ this.textBox_MeasureValue_4.Text = "0";
+ //
+ // textBox_MeasureValue_1
+ //
+ this.textBox_MeasureValue_1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_1.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_1.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_1.Location = new System.Drawing.Point(1484, 114);
+ this.textBox_MeasureValue_1.Name = "textBox_MeasureValue_1";
+ this.textBox_MeasureValue_1.ReadOnly = true;
+ this.textBox_MeasureValue_1.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_1.TabIndex = 4;
+ this.textBox_MeasureValue_1.Text = "0";
+ //
+ // textBox_MeasureValue_7
+ //
+ this.textBox_MeasureValue_7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_7.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_7.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_7.Location = new System.Drawing.Point(1194, 730);
+ this.textBox_MeasureValue_7.Name = "textBox_MeasureValue_7";
+ this.textBox_MeasureValue_7.ReadOnly = true;
+ this.textBox_MeasureValue_7.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_7.TabIndex = 4;
+ this.textBox_MeasureValue_7.Text = "0";
+ //
+ // textBox_MeasureValue_6
+ //
+ this.textBox_MeasureValue_6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_6.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_6.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_6.Location = new System.Drawing.Point(857, 672);
+ this.textBox_MeasureValue_6.Name = "textBox_MeasureValue_6";
+ this.textBox_MeasureValue_6.ReadOnly = true;
+ this.textBox_MeasureValue_6.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_6.TabIndex = 4;
+ this.textBox_MeasureValue_6.Text = "0";
+ //
+ // textBox_MeasureValue_5
+ //
+ this.textBox_MeasureValue_5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_5.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_5.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_5.Location = new System.Drawing.Point(571, 503);
+ this.textBox_MeasureValue_5.Name = "textBox_MeasureValue_5";
+ this.textBox_MeasureValue_5.ReadOnly = true;
+ this.textBox_MeasureValue_5.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_5.TabIndex = 4;
+ this.textBox_MeasureValue_5.Text = "0";
+ //
+ // textBox_MeasureValue_8
+ //
+ this.textBox_MeasureValue_8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_8.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_8.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_8.Location = new System.Drawing.Point(1561, 433);
+ this.textBox_MeasureValue_8.Name = "textBox_MeasureValue_8";
+ this.textBox_MeasureValue_8.ReadOnly = true;
+ this.textBox_MeasureValue_8.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_8.TabIndex = 4;
+ this.textBox_MeasureValue_8.Text = "0";
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.BackColor = System.Drawing.Color.White;
+ this.label6.Font = new System.Drawing.Font("宋体", 15F);
+ this.label6.Location = new System.Drawing.Point(1290, 7);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(73, 30);
+ this.label6.TabIndex = 6;
+ this.label6.Text = "扭矩";
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.BackColor = System.Drawing.Color.White;
+ this.label4.Font = new System.Drawing.Font("宋体", 15F);
+ this.label4.Location = new System.Drawing.Point(814, 12);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(73, 30);
+ this.label4.TabIndex = 6;
+ this.label4.Text = "扭矩";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.BackColor = System.Drawing.Color.White;
+ this.label5.Font = new System.Drawing.Font("宋体", 15F);
+ this.label5.Location = new System.Drawing.Point(565, 194);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(73, 30);
+ this.label5.TabIndex = 6;
+ this.label5.Text = "扭矩";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.BackColor = System.Drawing.Color.White;
+ this.label10.Font = new System.Drawing.Font("宋体", 15F);
+ this.label10.Location = new System.Drawing.Point(1189, 697);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(73, 30);
+ this.label10.TabIndex = 6;
+ this.label10.Text = "扭矩";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.BackColor = System.Drawing.Color.White;
+ this.label8.Font = new System.Drawing.Font("宋体", 15F);
+ this.label8.Location = new System.Drawing.Point(852, 639);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(73, 30);
+ this.label8.TabIndex = 6;
+ this.label8.Text = "扭矩";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.BackColor = System.Drawing.Color.White;
+ this.label3.Font = new System.Drawing.Font("宋体", 15F);
+ this.label3.Location = new System.Drawing.Point(1478, 80);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(73, 30);
+ this.label3.TabIndex = 6;
+ this.label3.Text = "扭矩";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.BackColor = System.Drawing.Color.White;
+ this.label7.Font = new System.Drawing.Font("宋体", 15F);
+ this.label7.Location = new System.Drawing.Point(566, 470);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(73, 30);
+ this.label7.TabIndex = 6;
+ this.label7.Text = "扭矩";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.White;
+ this.label2.Font = new System.Drawing.Font("宋体", 15F);
+ this.label2.Location = new System.Drawing.Point(1556, 400);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(73, 30);
+ this.label2.TabIndex = 6;
+ this.label2.Text = "扭矩";
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.label16);
+ this.panel1.Controls.Add(this.button_running);
+ this.panel1.Controls.Add(this.button_alarm);
+ this.panel1.Controls.Add(this.button_finished);
+ this.panel1.Controls.Add(this.button_empty);
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel1.Location = new System.Drawing.Point(3, 919);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(1989, 84);
+ this.panel1.TabIndex = 3;
+ //
+ // label16
+ //
+ this.label16.BackColor = System.Drawing.Color.Black;
+ this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.label16.Location = new System.Drawing.Point(0, 4);
+ this.label16.Name = "label16";
+ this.label16.Size = new System.Drawing.Size(1980, 4);
+ this.label16.TabIndex = 10;
+ //
+ // button_running
+ //
+ this.button_running.BackColor = System.Drawing.Color.Gray;
+ this.button_running.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_running.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_running.ForeColor = System.Drawing.Color.White;
+ this.button_running.Location = new System.Drawing.Point(38, 15);
+ this.button_running.Name = "button_running";
+ this.button_running.Size = new System.Drawing.Size(333, 66);
+ this.button_running.TabIndex = 4;
+ this.button_running.Text = "设备运行(禁止上下料)";
+ this.button_running.UseVisualStyleBackColor = false;
+ //
+ // button_alarm
+ //
+ this.button_alarm.BackColor = System.Drawing.Color.Gray;
+ this.button_alarm.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_alarm.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_alarm.ForeColor = System.Drawing.Color.White;
+ this.button_alarm.Location = new System.Drawing.Point(1252, 16);
+ this.button_alarm.Name = "button_alarm";
+ this.button_alarm.Size = new System.Drawing.Size(333, 66);
+ this.button_alarm.TabIndex = 5;
+ this.button_alarm.Text = "设备故障";
+ this.button_alarm.UseVisualStyleBackColor = false;
+ //
+ // button_finished
+ //
+ this.button_finished.BackColor = System.Drawing.Color.Gray;
+ this.button_finished.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_finished.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_finished.ForeColor = System.Drawing.Color.White;
+ this.button_finished.Location = new System.Drawing.Point(442, 15);
+ this.button_finished.Name = "button_finished";
+ this.button_finished.Size = new System.Drawing.Size(333, 66);
+ this.button_finished.TabIndex = 6;
+ this.button_finished.Text = "完成装配(请求下料)";
+ this.button_finished.UseVisualStyleBackColor = false;
+ //
+ // button_empty
+ //
+ this.button_empty.BackColor = System.Drawing.Color.Gray;
+ this.button_empty.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_empty.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_empty.ForeColor = System.Drawing.Color.White;
+ this.button_empty.Location = new System.Drawing.Point(848, 16);
+ this.button_empty.Name = "button_empty";
+ this.button_empty.Size = new System.Drawing.Size(333, 66);
+ this.button_empty.TabIndex = 7;
+ this.button_empty.Text = "设备空闲(请求上料)";
+ this.button_empty.UseVisualStyleBackColor = false;
+ //
+ // panel2
+ //
+ this.panel2.Controls.Add(this.label_AgvLeaved);
+ this.panel2.Controls.Add(this.label19);
+ this.panel2.Controls.Add(this.label_AgvCanLeave);
+ this.panel2.Controls.Add(this.label15);
+ this.panel2.Controls.Add(this.label_AgvRequestLeave);
+ this.panel2.Controls.Add(this.button5_heartBeat_Ning);
+ this.panel2.Controls.Add(this.button5_heartBeat);
+ this.panel2.Controls.Add(this.label_AgvCanEnter);
+ this.panel2.Controls.Add(this.textBox1_PartPosition);
+ this.panel2.Controls.Add(this.label_AgvSongliao);
+ this.panel2.Controls.Add(this.label_AgvRequestEnter);
+ this.panel2.Controls.Add(this.label17);
+ this.panel2.Controls.Add(this.textBox1_EngineID);
+ this.panel2.Controls.Add(this.label1);
+ this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel2.Location = new System.Drawing.Point(3, 3);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(1989, 84);
+ this.panel2.TabIndex = 2;
+ //
+ // label_AgvLeaved
+ //
+ this.label_AgvLeaved.AutoSize = true;
+ this.label_AgvLeaved.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvLeaved.Location = new System.Drawing.Point(1393, 12);
+ this.label_AgvLeaved.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvLeaved.Name = "label_AgvLeaved";
+ this.label_AgvLeaved.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvLeaved.TabIndex = 9;
+ this.label_AgvLeaved.Text = "●AGV已经离开";
+ //
+ // label19
+ //
+ this.label19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label19.Location = new System.Drawing.Point(1756, 16);
+ this.label19.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label19.Name = "label19";
+ this.label19.Size = new System.Drawing.Size(2, 44);
+ this.label19.TabIndex = 9;
+ //
+ // label_AgvCanLeave
+ //
+ this.label_AgvCanLeave.AutoSize = true;
+ this.label_AgvCanLeave.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvCanLeave.Location = new System.Drawing.Point(1225, 45);
+ this.label_AgvCanLeave.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvCanLeave.Name = "label_AgvCanLeave";
+ this.label_AgvCanLeave.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvCanLeave.TabIndex = 9;
+ this.label_AgvCanLeave.Text = "●AGV可以离开";
+ //
+ // label15
+ //
+ this.label15.BackColor = System.Drawing.Color.Black;
+ this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.label15.Location = new System.Drawing.Point(0, 75);
+ this.label15.Name = "label15";
+ this.label15.Size = new System.Drawing.Size(1980, 4);
+ this.label15.TabIndex = 9;
+ //
+ // label_AgvRequestLeave
+ //
+ this.label_AgvRequestLeave.AutoSize = true;
+ this.label_AgvRequestLeave.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvRequestLeave.Location = new System.Drawing.Point(1225, 12);
+ this.label_AgvRequestLeave.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvRequestLeave.Name = "label_AgvRequestLeave";
+ this.label_AgvRequestLeave.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvRequestLeave.TabIndex = 9;
+ this.label_AgvRequestLeave.Text = "●AGV请求离开";
+ //
+ // button5_heartBeat_Ning
+ //
+ this.button5_heartBeat_Ning.BackColor = System.Drawing.Color.Gray;
+ this.button5_heartBeat_Ning.Font = new System.Drawing.Font("宋体", 12F);
+ this.button5_heartBeat_Ning.ForeColor = System.Drawing.Color.White;
+ this.button5_heartBeat_Ning.Location = new System.Drawing.Point(1765, 12);
+ this.button5_heartBeat_Ning.Name = "button5_heartBeat_Ning";
+ this.button5_heartBeat_Ning.Size = new System.Drawing.Size(100, 52);
+ this.button5_heartBeat_Ning.TabIndex = 5;
+ this.button5_heartBeat_Ning.Text = "拧紧枪";
+ this.button5_heartBeat_Ning.UseVisualStyleBackColor = false;
+ //
+ // button5_heartBeat
+ //
+ this.button5_heartBeat.BackColor = System.Drawing.Color.Gray;
+ this.button5_heartBeat.Font = new System.Drawing.Font("宋体", 12F);
+ this.button5_heartBeat.ForeColor = System.Drawing.Color.White;
+ this.button5_heartBeat.Location = new System.Drawing.Point(1883, 12);
+ this.button5_heartBeat.Name = "button5_heartBeat";
+ this.button5_heartBeat.Size = new System.Drawing.Size(100, 52);
+ this.button5_heartBeat.TabIndex = 5;
+ this.button5_heartBeat.Text = "PLC";
+ this.button5_heartBeat.UseVisualStyleBackColor = false;
+ //
+ // label_AgvCanEnter
+ //
+ this.label_AgvCanEnter.AutoSize = true;
+ this.label_AgvCanEnter.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvCanEnter.Location = new System.Drawing.Point(1043, 45);
+ this.label_AgvCanEnter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvCanEnter.Name = "label_AgvCanEnter";
+ this.label_AgvCanEnter.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvCanEnter.TabIndex = 9;
+ this.label_AgvCanEnter.Text = "●AGV可以进入";
+ //
+ // textBox1_PartPosition
+ //
+ this.textBox1_PartPosition.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox1_PartPosition.Font = new System.Drawing.Font("宋体", 20F);
+ this.textBox1_PartPosition.Location = new System.Drawing.Point(692, 9);
+ this.textBox1_PartPosition.Name = "textBox1_PartPosition";
+ this.textBox1_PartPosition.ReadOnly = true;
+ this.textBox1_PartPosition.Size = new System.Drawing.Size(118, 53);
+ this.textBox1_PartPosition.TabIndex = 1;
+ //
+ // label_AgvSongliao
+ //
+ this.label_AgvSongliao.AutoSize = true;
+ this.label_AgvSongliao.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvSongliao.Location = new System.Drawing.Point(883, 14);
+ this.label_AgvSongliao.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvSongliao.Name = "label_AgvSongliao";
+ this.label_AgvSongliao.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvSongliao.TabIndex = 9;
+ this.label_AgvSongliao.Text = "●AGV准备送料";
+ //
+ // label_AgvRequestEnter
+ //
+ this.label_AgvRequestEnter.AutoSize = true;
+ this.label_AgvRequestEnter.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvRequestEnter.Location = new System.Drawing.Point(1043, 12);
+ this.label_AgvRequestEnter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvRequestEnter.Name = "label_AgvRequestEnter";
+ this.label_AgvRequestEnter.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvRequestEnter.TabIndex = 9;
+ this.label_AgvRequestEnter.Text = "●AGV请求进入";
+ //
+ // label17
+ //
+ this.label17.AutoSize = true;
+ this.label17.Font = new System.Drawing.Font("宋体", 16F);
+ this.label17.Location = new System.Drawing.Point(525, 18);
+ this.label17.Name = "label17";
+ this.label17.Size = new System.Drawing.Size(175, 33);
+ this.label17.TabIndex = 0;
+ this.label17.Text = "装配位置:";
+ //
+ // textBox1_EngineID
+ //
+ this.textBox1_EngineID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox1_EngineID.Font = new System.Drawing.Font("宋体", 20F);
+ this.textBox1_EngineID.Location = new System.Drawing.Point(170, 10);
+ this.textBox1_EngineID.Name = "textBox1_EngineID";
+ this.textBox1_EngineID.ReadOnly = true;
+ this.textBox1_EngineID.Size = new System.Drawing.Size(348, 53);
+ this.textBox1_EngineID.TabIndex = 1;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("宋体", 16F);
+ this.label1.Location = new System.Drawing.Point(3, 20);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(175, 33);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "产品编码:";
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.ColumnCount = 1;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 2);
+ this.tableLayoutPanel1.Controls.Add(this.panel3, 0, 1);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 3;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 90F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 90F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1995, 1006);
+ this.tableLayoutPanel1.TabIndex = 25;
+ //
+ // pictureBox12_end_4
+ //
+ this.pictureBox12_end_4.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_4.Location = new System.Drawing.Point(874, 292);
+ this.pictureBox12_end_4.Name = "pictureBox12_end_4";
+ this.pictureBox12_end_4.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_4.TabIndex = 8;
+ this.pictureBox12_end_4.TabStop = false;
+ //
+ // pictureBox12_end_2
+ //
+ this.pictureBox12_end_2.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_2.Location = new System.Drawing.Point(1156, 163);
+ this.pictureBox12_end_2.Name = "pictureBox12_end_2";
+ this.pictureBox12_end_2.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_2.TabIndex = 8;
+ this.pictureBox12_end_2.TabStop = false;
+ //
+ // pictureBox2_start_2
+ //
+ this.pictureBox2_start_2.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_2.Location = new System.Drawing.Point(1156, 163);
+ this.pictureBox2_start_2.Name = "pictureBox2_start_2";
+ this.pictureBox2_start_2.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_2.TabIndex = 8;
+ this.pictureBox2_start_2.TabStop = false;
+ //
+ // pictureBox12_end_3
+ //
+ this.pictureBox12_end_3.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_3.Location = new System.Drawing.Point(984, 181);
+ this.pictureBox12_end_3.Name = "pictureBox12_end_3";
+ this.pictureBox12_end_3.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_3.TabIndex = 8;
+ this.pictureBox12_end_3.TabStop = false;
+ //
+ // pictureBox12_end_1
+ //
+ this.pictureBox12_end_1.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_1.Location = new System.Drawing.Point(1296, 246);
+ this.pictureBox12_end_1.Name = "pictureBox12_end_1";
+ this.pictureBox12_end_1.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_1.TabIndex = 8;
+ this.pictureBox12_end_1.TabStop = false;
+ //
+ // pictureBox12_end_8
+ //
+ this.pictureBox12_end_8.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_8.Location = new System.Drawing.Point(1314, 400);
+ this.pictureBox12_end_8.Name = "pictureBox12_end_8";
+ this.pictureBox12_end_8.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_8.TabIndex = 8;
+ this.pictureBox12_end_8.TabStop = false;
+ //
+ // pictureBox12_end_7
+ //
+ this.pictureBox12_end_7.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_7.Location = new System.Drawing.Point(1209, 524);
+ this.pictureBox12_end_7.Name = "pictureBox12_end_7";
+ this.pictureBox12_end_7.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_7.TabIndex = 8;
+ this.pictureBox12_end_7.TabStop = false;
+ //
+ // pictureBox12_end_6
+ //
+ this.pictureBox12_end_6.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_6.Location = new System.Drawing.Point(1030, 543);
+ this.pictureBox12_end_6.Name = "pictureBox12_end_6";
+ this.pictureBox12_end_6.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_6.TabIndex = 8;
+ this.pictureBox12_end_6.TabStop = false;
+ //
+ // pictureBox12_end_5
+ //
+ this.pictureBox12_end_5.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_5.Location = new System.Drawing.Point(887, 448);
+ this.pictureBox12_end_5.Name = "pictureBox12_end_5";
+ this.pictureBox12_end_5.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_5.TabIndex = 8;
+ this.pictureBox12_end_5.TabStop = false;
+ //
+ // pictureBox2_start_4
+ //
+ this.pictureBox2_start_4.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_4.Location = new System.Drawing.Point(874, 292);
+ this.pictureBox2_start_4.Name = "pictureBox2_start_4";
+ this.pictureBox2_start_4.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_4.TabIndex = 8;
+ this.pictureBox2_start_4.TabStop = false;
+ //
+ // pictureBox2_start_5
+ //
+ this.pictureBox2_start_5.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_5.Location = new System.Drawing.Point(887, 448);
+ this.pictureBox2_start_5.Name = "pictureBox2_start_5";
+ this.pictureBox2_start_5.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_5.TabIndex = 8;
+ this.pictureBox2_start_5.TabStop = false;
+ //
+ // pictureBox2_start_6
+ //
+ this.pictureBox2_start_6.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_6.Location = new System.Drawing.Point(1030, 543);
+ this.pictureBox2_start_6.Name = "pictureBox2_start_6";
+ this.pictureBox2_start_6.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_6.TabIndex = 8;
+ this.pictureBox2_start_6.TabStop = false;
+ //
+ // pictureBox2_start_7
+ //
+ this.pictureBox2_start_7.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_7.Location = new System.Drawing.Point(1209, 524);
+ this.pictureBox2_start_7.Name = "pictureBox2_start_7";
+ this.pictureBox2_start_7.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_7.TabIndex = 8;
+ this.pictureBox2_start_7.TabStop = false;
+ //
+ // pictureBox2_start_8
+ //
+ this.pictureBox2_start_8.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_8.Location = new System.Drawing.Point(1314, 400);
+ this.pictureBox2_start_8.Name = "pictureBox2_start_8";
+ this.pictureBox2_start_8.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_8.TabIndex = 8;
+ this.pictureBox2_start_8.TabStop = false;
+ //
+ // pictureBox2_start_3
+ //
+ this.pictureBox2_start_3.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_3.Location = new System.Drawing.Point(984, 181);
+ this.pictureBox2_start_3.Name = "pictureBox2_start_3";
+ this.pictureBox2_start_3.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_3.TabIndex = 8;
+ this.pictureBox2_start_3.TabStop = false;
+ //
+ // pictureBox2_start_1
+ //
+ this.pictureBox2_start_1.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_1.Location = new System.Drawing.Point(1296, 246);
+ this.pictureBox2_start_1.Name = "pictureBox2_start_1";
+ this.pictureBox2_start_1.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_1.TabIndex = 8;
+ this.pictureBox2_start_1.TabStop = false;
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.BackColor = System.Drawing.Color.White;
+ this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.pictureBox1.Image = global::CCYQ_JieFang.Properties.Resources._04_微型减速机;
+ this.pictureBox1.Location = new System.Drawing.Point(130, 16);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(1689, 801);
+ this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox1.TabIndex = 0;
+ this.pictureBox1.TabStop = false;
+ //
+ // pictureBox12_end_9
+ //
+ this.pictureBox12_end_9.Image = global::CCYQ_JieFang.Properties.Resources.下压OK;
+ this.pictureBox12_end_9.Location = new System.Drawing.Point(412, 355);
+ this.pictureBox12_end_9.Name = "pictureBox12_end_9";
+ this.pictureBox12_end_9.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_9.TabIndex = 11;
+ this.pictureBox12_end_9.TabStop = false;
+ //
+ // pictureBox2_start_9
+ //
+ this.pictureBox2_start_9.Image = global::CCYQ_JieFang.Properties.Resources.下压;
+ this.pictureBox2_start_9.Location = new System.Drawing.Point(412, 355);
+ this.pictureBox2_start_9.Name = "pictureBox2_start_9";
+ this.pictureBox2_start_9.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_9.TabIndex = 12;
+ this.pictureBox2_start_9.TabStop = false;
+ //
+ // textBox_MeasureValue_9
+ //
+ this.textBox_MeasureValue_9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_9.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_9.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_9.Location = new System.Drawing.Point(279, 366);
+ this.textBox_MeasureValue_9.Name = "textBox_MeasureValue_9";
+ this.textBox_MeasureValue_9.ReadOnly = true;
+ this.textBox_MeasureValue_9.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_9.TabIndex = 9;
+ this.textBox_MeasureValue_9.Text = "0";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.BackColor = System.Drawing.Color.White;
+ this.label11.Font = new System.Drawing.Font("宋体", 15F);
+ this.label11.Location = new System.Drawing.Point(274, 330);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(103, 30);
+ this.label11.TabIndex = 10;
+ this.label11.Text = "泄露量";
+ //
+ // DAS_OP40
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.Color.White;
+ this.ClientSize = new System.Drawing.Size(1995, 1006);
+ this.Controls.Add(this.tableLayoutPanel1);
+ this.Controls.Add(this.label9);
+ this.Controls.Add(this.labelTime);
+ this.Controls.Add(this.panel7);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "DAS_OP40";
+ this.Text = "OP40工位-电机泵";
+ this.panel7.ResumeLayout(false);
+ this.panel3.ResumeLayout(false);
+ this.panel3.PerformLayout();
+ this.panel1.ResumeLayout(false);
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ this.tableLayoutPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_8)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_7)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_6)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_6)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_7)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_8)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_9)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_9)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ private System.Windows.Forms.Timer timHSCZ;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Timer timUI;
+ private System.Windows.Forms.Label labelTime;
+ private System.Windows.Forms.Label label18;
+ private System.Windows.Forms.Panel panel7;
+ private System.Windows.Forms.Panel panel3;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_3;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_2;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_4;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_1;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_7;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_6;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_5;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_8;
+ private System.Windows.Forms.PictureBox pictureBox12_end_4;
+ private System.Windows.Forms.PictureBox pictureBox12_end_2;
+ private System.Windows.Forms.PictureBox pictureBox2_start_2;
+ private System.Windows.Forms.PictureBox pictureBox12_end_3;
+ private System.Windows.Forms.PictureBox pictureBox12_end_1;
+ private System.Windows.Forms.PictureBox pictureBox12_end_8;
+ private System.Windows.Forms.PictureBox pictureBox12_end_7;
+ private System.Windows.Forms.PictureBox pictureBox12_end_6;
+ private System.Windows.Forms.PictureBox pictureBox12_end_5;
+ private System.Windows.Forms.PictureBox pictureBox2_start_4;
+ private System.Windows.Forms.PictureBox pictureBox2_start_5;
+ private System.Windows.Forms.PictureBox pictureBox2_start_6;
+ private System.Windows.Forms.PictureBox pictureBox2_start_7;
+ private System.Windows.Forms.PictureBox pictureBox2_start_8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.PictureBox pictureBox2_start_3;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.PictureBox pictureBox2_start_1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Label label16;
+ private System.Windows.Forms.Button button_running;
+ private System.Windows.Forms.Button button_alarm;
+ private System.Windows.Forms.Button button_finished;
+ private System.Windows.Forms.Button button_empty;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label label_AgvLeaved;
+ private System.Windows.Forms.Label label19;
+ private System.Windows.Forms.Label label_AgvCanLeave;
+ private System.Windows.Forms.Label label15;
+ private System.Windows.Forms.Label label_AgvRequestLeave;
+ private System.Windows.Forms.Button button5_heartBeat;
+ private System.Windows.Forms.Label label_AgvCanEnter;
+ private System.Windows.Forms.TextBox textBox1_PartPosition;
+ private System.Windows.Forms.Label label_AgvRequestEnter;
+ private System.Windows.Forms.Label label17;
+ private System.Windows.Forms.TextBox textBox1_EngineID;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private System.Windows.Forms.Label label_AgvSongliao;
+ private System.Windows.Forms.Button button5_heartBeat_Ning;
+ private System.Windows.Forms.PictureBox pictureBox12_end_9;
+ private System.Windows.Forms.PictureBox pictureBox2_start_9;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_9;
+ private System.Windows.Forms.Label label11;
+ }
+}
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/OP40/DAS_OP40.cs b/CCYQ_JieFang/OP/OP40/DAS_OP40.cs
new file mode 100644
index 0000000..6e32ff1
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP40/DAS_OP40.cs
@@ -0,0 +1,648 @@
+
+using DK_DC_Tool;
+using HslCommunication.Core;
+using Newtonsoft.Json;
+using NPOI.SS.UserModel;
+using OpcBasic;
+using Robot.Common;
+using Serilog.Events;
+using System;
+using System.Collections.Concurrent;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using SystemFramework;
+
+namespace MesWork
+{
+ public partial class DAS_OP40
+ {
+ InitServer initServer = null;
+ ///
+ ///
+ ///
+ private static string OpNameCurrent = "";
+ ///
+ /// 字典 ,存储12个开始测量图片控件,key为测量位置,value为图片控件
+ ///
+ Dictionary dicStartMasurePictureBox = new Dictionary();
+ ///
+ /// 字典 ,存储12个结束测量图片控件,key为测量位置,value为图片控件
+ ///
+ Dictionary dicEndMasurePictureBox = new Dictionary();
+ ///
+ /// 字典 ,存储12个结束测量文本框控件,key为测量位置,value文本框的值
+ ///
+ Dictionary dicMeasureTextBox = new Dictionary();
+ ///
+ /// PLC事件变化委托
+ ///
+ public static Action MIS_Funtion_PLC_OP = null;
+
+ ///
+ /// PLC事件变化委托
+ ///
+ public static Action AGV_Task_change = null;
+ ///
+ /// PLC事件变化委托--处理托盘信息
+ ///
+ public static Action AGV_Task_Info = null;
+
+ // 每个工位的满工件数量
+ // 工位OP40 2个
+ public static int partCount = 2;
+
+ public static bool isConnect = false;
+
+ public DAS_OP40(string opName)
+ {
+ InitializeComponent();
+
+ publicCore.partCount = partCount;
+ OpNameCurrent = opName;
+
+ Tighten.E_DeviceHeartBeat -= DeviceHeartBeat_NingJinQiang;
+ Tighten.E_DeviceHeartBeat += DeviceHeartBeat_NingJinQiang;
+
+ MesWorkForm.MIS_Funtion_PLC_MeasureFinish -= SolvePicAndMeasureValueWorking;
+ MesWorkForm.MIS_Funtion_PLC_MeasureFinish += SolvePicAndMeasureValueWorking;
+
+ MIS_Funtion_PLC_OP -= MIS_Funtion_PLC;
+ MIS_Funtion_PLC_OP += MIS_Funtion_PLC;
+
+ AGV_Task_change -= SolveAgvDeviceStatus;
+ AGV_Task_change += SolveAgvDeviceStatus;
+
+
+ if (MesWorkForm.IsDemoMesServer == 1)
+ {
+ MoNiHeartBeat();
+ }
+ SolvePicAndMeasureValueInit();
+
+ new Thread(new ThreadStart(delegate () {
+ while (true)
+ {
+ try
+ {
+ SolveDeviceStatusInit(publicCore.SolveDeviceStatus_Read(OpNameCurrent));
+ }
+ catch (Exception err) {
+ }
+ Thread.Sleep(2000);
+ }
+ }))
+ { IsBackground = true }.Start();
+
+ //var aa =
+ //new Thread(new ThreadStart(delegate () {
+ // while (true)
+ // {
+ // try
+ // {
+ // if (!isConnect)
+ // {
+ // if (publicCore.Get_PartPosition(OpNameCurrent) != -1)
+ // {
+ // isConnect = true;
+ // ProductInfo_search();
+ // }
+ // }
+ // }
+ // catch (Exception err) { }
+ // Thread.Sleep(1000);
+ // }
+ //}));
+ //aa.IsBackground = true;
+ //aa.Start();
+
+ }
+ public void MIS_Funtion_PLC(DeviceDriver_BasicData.CustomeEvetnArgs msgEvent)
+ {
+ try
+ {
+ var tagID = msgEvent.TagID.ToString();
+ // var opName = msgEvent.OpName.ToString();
+ var tagTypeCodeID = (int)msgEvent.TagTypeCodeID;
+ var tagTypeID = (EnumTagTypeID)msgEvent.TagTypeID;
+ string tagValue;
+ switch (tagTypeID)
+ {
+ case EnumTagTypeID.BOOL:
+ tagValue = (Convert.ToInt32(msgEvent.TagValue)).ToString();
+ break;
+ default:
+ tagValue = msgEvent.TagValue.ToString();
+ break;
+ }
+ switch (tagTypeCodeID)
+ {
+ case 14:
+ DeviceHeartBeat(tagValue);
+ break;
+ // AGV任务
+ case 50:
+ publicCore.SolveAgvTaskNum(OpNameCurrent, tagValue);
+ break;
+ // 51 空闲(请求上料)
+ // 52 完成(请求下料)
+ // 53 故障
+ case 51:
+ case 52:
+ case 53:
+ publicCore.SolveDeviceStatus(OpNameCurrent);
+ SolveDeviceStatusInit(publicCore.SolveDeviceStatus_Read(OpNameCurrent));
+ break;
+ // 54 第几个件
+ case 54:
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+ break;
+ // 55 第几个孔
+ case 55:
+ publicCore.MeasurePositionChange(OpNameCurrent, 2);
+ SolvePicAndMeasureValueWorking();
+ break;
+ //读电批
+ case 56:
+ if (tagValue == "1")
+ {
+ publicCore.LogInsert("OP40", "Info", "【PLC_读电批置位】");
+ // 不在这个地方写true,写在接收数据的地方写
+
+ }
+ else
+ {
+ publicCore.LogInsert("OP40", "Info", "【PLC_读电批复位】");
+ MesWorkForm.WritePLC(83, OpNameCurrent, false);
+ publicCore.LogInsert("OP40", "Info", "【IPC_读电批完成复位】");
+ }
+ break;
+ //读泄漏量1 2或者压力
+ case 59:
+ if (tagValue == "1")
+ {
+ publicCore.ReadQualityData_LeakageRate(OpNameCurrent);
+ //publicCore.ReadQualityData_Pressure(OpNameCurrent);
+ MesWorkForm.WritePLC(84, OpNameCurrent, true);
+ }
+ else
+ {
+ MesWorkForm.WritePLC(84, OpNameCurrent, false);
+ }
+ break;
+ }
+ }
+ catch (Exception ex)
+ {
+ }
+ }
+ ///
+ /// 初始化界面显示
+ ///
+ private void SolvePicAndMeasureValueInit()
+ {
+ try
+ {
+ dicStartMasurePictureBox.Add(1, pictureBox2_start_1);
+ dicStartMasurePictureBox.Add(2, pictureBox2_start_2);
+ dicStartMasurePictureBox.Add(3, pictureBox2_start_3);
+ dicStartMasurePictureBox.Add(4, pictureBox2_start_4);
+ dicStartMasurePictureBox.Add(5, pictureBox2_start_5);
+ dicStartMasurePictureBox.Add(6, pictureBox2_start_6);
+ dicStartMasurePictureBox.Add(7, pictureBox2_start_7);
+ dicStartMasurePictureBox.Add(8, pictureBox2_start_8);
+ dicStartMasurePictureBox.Add(9, pictureBox2_start_9);
+
+ dicEndMasurePictureBox.Add(1, pictureBox12_end_1);
+ dicEndMasurePictureBox.Add(2, pictureBox12_end_2);
+ dicEndMasurePictureBox.Add(3, pictureBox12_end_3);
+ dicEndMasurePictureBox.Add(4, pictureBox12_end_4);
+ dicEndMasurePictureBox.Add(5, pictureBox12_end_5);
+ dicEndMasurePictureBox.Add(6, pictureBox12_end_6);
+ dicEndMasurePictureBox.Add(7, pictureBox12_end_7);
+ dicEndMasurePictureBox.Add(8, pictureBox12_end_8);
+ dicEndMasurePictureBox.Add(9, pictureBox12_end_9);
+
+ dicMeasureTextBox.Add(1, textBox_MeasureValue_1);
+ dicMeasureTextBox.Add(2, textBox_MeasureValue_2);
+ dicMeasureTextBox.Add(3, textBox_MeasureValue_3);
+ dicMeasureTextBox.Add(4, textBox_MeasureValue_4);
+ dicMeasureTextBox.Add(5, textBox_MeasureValue_5);
+ dicMeasureTextBox.Add(6, textBox_MeasureValue_6);
+ dicMeasureTextBox.Add(7, textBox_MeasureValue_7);
+ dicMeasureTextBox.Add(8, textBox_MeasureValue_8);
+ dicMeasureTextBox.Add(9, textBox_MeasureValue_9);
+
+
+ foreach (var item in dicStartMasurePictureBox)
+ {
+ item.Value.Visible = false;
+ }
+ foreach (var item in dicEndMasurePictureBox)
+ {
+ item.Value.Visible = false;
+ }
+ foreach (var item in dicMeasureTextBox)
+ {
+ item.Value.Text = "";
+ }
+
+ int partPosition = publicCore.Get_PartPosition(OpNameCurrent);
+
+ publicCore.GetQualityInfo_Init(OpNameCurrent, partPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ int measureStatus = Convert.ToInt32(dt.Rows[i]["测量状态"]);
+ int measurePosition = Convert.ToInt32(dt.Rows[i]["测量位置"]);
+ string tagValue = dt.Rows[i]["测量值"].ToString();
+ string isOk = dt.Rows[i]["是否合格"].ToString();
+
+ // 测量状态为1 表示初始状态,两张图片都不显示
+ // 测量状态为2 表示正在测量,显示第二张图片
+ // 测量状态为3 表示测量完成,显示第一张图片
+ var control_DicStartMasurePictureBox = dicStartMasurePictureBox[measurePosition];
+ var control_DicEndMasurePictureBox = dicEndMasurePictureBox[measurePosition];
+ var control_DicMeasureTextBox = dicMeasureTextBox[measurePosition];
+
+ if (measureStatus == 1)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 2)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, true);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 3)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, true);
+ }
+ if (isOk == "1")
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.White);
+ }
+ else
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.Red);
+ }
+ }
+ }
+ }
+ catch (Exception err)
+ {
+ }
+
+ }
+ ///
+ /// 工作时界面显示
+ ///
+ private void SolvePicAndMeasureValueWorking()
+ {
+ try
+ {
+ int partPosition = publicCore.Get_PartPosition(OpNameCurrent);
+ publicCore.GetQualityInfo_Init(OpNameCurrent, partPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ int measureStatus = Convert.ToInt32(dt.Rows[i]["测量状态"]);
+ int measurePosition = Convert.ToInt32(dt.Rows[i]["测量位置"]);
+ string tagValue = dt.Rows[i]["测量值"].ToString();
+ string isOk = dt.Rows[i]["是否合格"].ToString();
+ // 测量状态为1 表示初始状态,两张图片都不显示
+ // 测量状态为2 表示正在测量,显示第二张图片
+ // 测量状态为3 表示测量完成,显示第一张图片
+
+ var control_DicStartMasurePictureBox = dicStartMasurePictureBox[measurePosition];
+ var control_DicEndMasurePictureBox = dicEndMasurePictureBox[measurePosition];
+ var control_DicMeasureTextBox = dicMeasureTextBox[measurePosition];
+
+ if (measureStatus == 1)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 2)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, true);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 3)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, true);
+ }
+ if (isOk == "2")
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.Red);
+ }
+ else
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.White);
+ }
+ }
+ }
+ }
+ catch (Exception err)
+ {
+ }
+
+ }
+ ///
+ /// 界面产品编码和装配位置的显示
+ ///
+ public void ProductInfo_search()
+ {
+ try
+ {
+ //textBox1_EngineID.Text = "";
+ //textBox1_PartPosition.Text = "";
+ ShowTextBoxControl(textBox1_EngineID, "", Color.White);
+ ShowTextBoxControl(textBox1_PartPosition, "", Color.White);
+ int PartPosition = publicCore.Get_PartPosition(OpNameCurrent);
+ publicCore.GetProductInfo_Init(OpNameCurrent, PartPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ ShowTextBoxControl(textBox1_EngineID, dt.Rows[0]["发动机号"].ToString(), Color.White);
+ ShowTextBoxControl(textBox1_PartPosition, dt.Rows[0]["装配位置"].ToString(), Color.White);
+ //textBox1_EngineID.Text = dt.Rows[0]["发动机号"].ToString();
+ //textBox1_PartPosition.Text = dt.Rows[0]["装配位置"].ToString();
+ }
+ }
+ catch (Exception err)
+ {
+ }
+ }
+ private void ShowPicBoxControl(Control c, bool ststus)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.Visible = ststus;
+ }));
+ }
+ private void ShowTextBoxControl(Control c, string value, Color color)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.Text = value;
+ c.BackColor = color;
+ }));
+ }
+ private void ShowLabelControl(Control c, Color color)
+ {
+ //if (c.InvokeRequired)
+ //{
+
+ //}
+ //else
+ //{
+ // c.ForeColor = color;
+ //}
+ c.BeginInvoke(new Action(delegate () {
+ c.ForeColor = color;
+ }));
+ }
+ private void ShowButtonControl(Control c, Color color)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.BackColor = color;
+ }));
+ }
+
+
+ ///
+ /// 初始化设备状态
+ /// 1工作中 2空闲(请求上料) 3完成(请求下料) 4 报警
+ ///
+ private void SolveDeviceStatusInit(string currentStatus)
+ {
+ try
+ {
+ ShowButtonControl(button_running, Color.Gray);
+ ShowButtonControl(button_finished, Color.Gray);
+ ShowButtonControl(button_empty, Color.Gray);
+ ShowButtonControl(button_alarm, Color.Gray);
+ //button_running.BackColor = Color.Gray;
+ //button_finished.BackColor = Color.Gray;
+ //button_empty.BackColor = Color.Gray;
+ //button_alarm.BackColor = Color.Gray;
+
+ if (currentStatus == "1")
+ {
+ ShowButtonControl(button_running, Color.Green);
+ //button_running.BackColor = Color.Green;
+ }
+ else if (currentStatus == "2")
+ {
+ ShowButtonControl(button_empty, Color.SkyBlue);
+
+ //button_empty.BackColor = Color.SkyBlue;
+ }
+ else if (currentStatus == "3")
+ {
+ ShowButtonControl(button_finished, Color.DarkOrange);
+
+ //button_finished.BackColor = Color.DarkOrange;
+ }
+ else if (currentStatus == "4")
+ {
+ ShowButtonControl(button_alarm, Color.Red);
+
+ //button_alarm.BackColor = Color.Red;
+ }
+ }
+ catch (Exception err)
+ {
+
+ }
+ }
+ ///
+ /// AGV设备状态显示
+ ///
+ ///
+ private void SolveAgvDeviceStatus(string PLC_AgvTaskNum)
+ {
+ try
+ {
+ // 77 反馈AGV任务
+ switch (PLC_AgvTaskNum)
+ {
+ case "10":
+ // AGV触发装配任务 正在送料
+ //label_AgvSongliao.ForeColor = Color.Green;
+
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+
+ //label_AgvLeaved.ForeColor = Color.Black;
+
+ ShowLabelControl(label_AgvSongliao, Color.Green);
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ ShowLabelControl(label_AgvLeaved, Color.Black);
+
+
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+
+ break;
+ case "11":
+
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Green);
+
+ //label_AgvRequestEnter.ForeColor = Color.Green;
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ break;
+ // 允许AGV进行上料 --允许进入
+ // 允许AGV进行下料 --允许进入
+ case "2":
+ case "4":
+ ShowLabelControl(label_AgvCanEnter, Color.Green);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ //label_AgvCanEnter.ForeColor = Color.Green;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+ break;
+ case "21":
+ // AGV 上料完成
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Green);
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Green;
+ break;
+ case "3":
+ // 1.调用FSS-接收IPC下料请求的接口
+ // 2.反馈任务号:30 AGV已呼叫成功正在去往下料区
+ break;
+ case "31":
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvRequestLeave, Color.Green);
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+ //label_AgvRequestLeave.ForeColor = Color.Green;
+ // AGV已到达下料区
+ break;
+ case "41":
+ // AGV下料完成
+ break;
+ // 允许AGV离开
+ case "5":
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Green);
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Green;
+ break;
+ case "51":
+ //label_AgvSongliao.ForeColor = Color.Black;
+
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+
+ //label_AgvLeaved.ForeColor = Color.Green;
+ ShowLabelControl(label_AgvSongliao, Color.Black);
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ ShowLabelControl(label_AgvLeaved, Color.Green);
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+ break;
+ }
+
+
+ }
+ catch (Exception err)
+ {
+ }
+ }
+
+ ///
+ /// 设备PLC心跳button5_heartBeat_Ning
+ ///
+ ///
+ private void DeviceHeartBeat(string tagValue)
+ {
+ WritePLC(15, OpNameCurrent, tagValue);
+ if (tagValue == "1")
+ {
+ ShowButtonControl(button5_heartBeat, Color.Green);
+
+ //button5_heartBeat.BackColor = Color.Green;
+ }
+ else
+ {
+ ShowButtonControl(button5_heartBeat, Color.Gray);
+
+ //button5_heartBeat.BackColor = Color.Gray;
+ }
+ }
+ ///
+ /// 设备PLC心跳
+ ///
+ ///
+ private void DeviceHeartBeat_NingJinQiang(string tagValue)
+ {
+ if (tagValue == "1")
+ {
+ ShowButtonControl(button5_heartBeat_Ning, Color.Green);
+
+ //button5_heartBeat_Ning.BackColor = Color.Green;
+ }
+ else
+ {
+ ShowButtonControl(button5_heartBeat_Ning, Color.Red);
+
+ //button5_heartBeat_Ning.BackColor = Color.Red;
+ }
+ }
+
+
+
+ private void MoNiHeartBeat()
+ {
+ bool tv = false;
+ new Thread(new ThreadStart(delegate () {
+ while (true)
+ {
+ try
+ {
+ WritePLC(14, OpNameCurrent, tv);
+ tv = !tv;
+ }
+ catch (Exception err) {
+ }
+ Thread.Sleep(2000);
+ }
+ }))
+ { IsBackground = true }.Start();
+ }
+
+ private void label5_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void textBox_MeasureValue_4_TextChanged(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/CCYQ_JieFang/OP/OP40/DAS_OP40.resx b/CCYQ_JieFang/OP/OP40/DAS_OP40.resx
new file mode 100644
index 0000000..55f2584
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP40/DAS_OP40.resx
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 432, 221
+
+
+ 573, 221
+
+
+ 33
+
+
+
+
+ AAABAAEAGhoAAAAAIAAHAgAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAaAAAAGggGAAAAqUpMzgAAAAFz
+ UkdCAK7OHOkAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABnElEQVRIS+2Uz2rC
+ QBDGfZRc+h7ec/Mmxhgx2CQGYi65ivUB9NZCArl4EC/SqwgePBRKwUfw0AfZzrfshvVPY1IjlNKBj0xm
+ Z+a3m0xS+7ciZhjGqN1uM0iE7mO/D9RsNh+QXEZkRpIkDArDcJsLoqQREofDYUrFrIwkpBTItu3VaSPX
+ dVkURWwymXD/dL0yECDSB0xdgyoD4RQAqEBVlYGu6a6gfv8x828GbTYfXPP5ik2nz1zwZbxS0Gz2wkzT
+ PBJilYMcx2NBELDl8pUtFivuI3YzSP1g1+t3foLx+Ik3huAjhrUfgeI4rgOGq2xQ9ERpmmpUa6HecZw0
+ F6SaCiryjkQZN7q//lOl3Wq6ru9RjPFFM+i7qZMj7vv+djAYpOhRCETJdSrKdpon9TtCDYQedF/sRPjd
+ 0OSVEmpokwf0AEiKN71kOL7cned5rNvtbqkAj/Kier3eTuYDhCciWuVbp9PZobllWXt5/FardaArRvZI
+ Io6cT9Q1Go03AieiVb6JQi7a8YgaaGLpzLBGORblZt8NiQ/EX7da7Qtz50LQDuTBxQAAAABJRU5ErkJg
+ gg==
+
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/OP50/DAS_OP50.Designer.cs b/CCYQ_JieFang/OP/OP50/DAS_OP50.Designer.cs
new file mode 100644
index 0000000..8f35ab3
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP50/DAS_OP50.Designer.cs
@@ -0,0 +1,1179 @@
+namespace MesWork
+{
+ partial class DAS_OP50: PlcLinkForm
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DAS_OP50));
+ this.timHSCZ = new System.Windows.Forms.Timer(this.components);
+ this.label9 = new System.Windows.Forms.Label();
+ this.timUI = new System.Windows.Forms.Timer(this.components);
+ this.labelTime = new System.Windows.Forms.Label();
+ this.label18 = new System.Windows.Forms.Label();
+ this.panel7 = new System.Windows.Forms.Panel();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.textBox_MeasureValue_3 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_2 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_4 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_1 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_7 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_6 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_5 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_12 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_11 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_10 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_9 = new System.Windows.Forms.TextBox();
+ this.textBox_MeasureValue_8 = new System.Windows.Forms.TextBox();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label10 = new System.Windows.Forms.Label();
+ this.label14 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.label13 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label12 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label11 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.label16 = new System.Windows.Forms.Label();
+ this.button_running = new System.Windows.Forms.Button();
+ this.button_alarm = new System.Windows.Forms.Button();
+ this.button_finished = new System.Windows.Forms.Button();
+ this.button_empty = new System.Windows.Forms.Button();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.label_AgvLeaved = new System.Windows.Forms.Label();
+ this.label19 = new System.Windows.Forms.Label();
+ this.label_AgvCanLeave = new System.Windows.Forms.Label();
+ this.label15 = new System.Windows.Forms.Label();
+ this.label_AgvRequestLeave = new System.Windows.Forms.Label();
+ this.button5_heartBeat_Ning = new System.Windows.Forms.Button();
+ this.button5_heartBeat = new System.Windows.Forms.Button();
+ this.label_AgvCanEnter = new System.Windows.Forms.Label();
+ this.textBox1_PartPosition = new System.Windows.Forms.TextBox();
+ this.label_AgvSongliao = new System.Windows.Forms.Label();
+ this.label_AgvRequestEnter = new System.Windows.Forms.Label();
+ this.label17 = new System.Windows.Forms.Label();
+ this.textBox1_EngineID = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.pictureBox12_end_9 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_9 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_10 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_4 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_2 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_12 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_11 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_2 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_12 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_11 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_10 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_3 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_1 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_8 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_7 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_6 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12_end_5 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_4 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_5 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_6 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_7 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_8 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_3 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2_start_1 = new System.Windows.Forms.PictureBox();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.panel7.SuspendLayout();
+ this.panel3.SuspendLayout();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.tableLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_9)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_9)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_10)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_12)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_11)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_12)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_11)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_10)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_8)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_7)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_6)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_6)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_7)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_8)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // timHSCZ
+ //
+ this.timHSCZ.Enabled = true;
+ //
+ // label9
+ //
+ this.label9.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Bold);
+ this.label9.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.label9.Location = new System.Drawing.Point(-153, -198);
+ this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(771, 60);
+ this.label9.TabIndex = 22;
+ this.label9.Text = "微型减速机";
+ this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // timUI
+ //
+ this.timUI.Enabled = true;
+ //
+ // labelTime
+ //
+ this.labelTime.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F);
+ this.labelTime.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.labelTime.Location = new System.Drawing.Point(1010, -198);
+ this.labelTime.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.labelTime.Name = "labelTime";
+ this.labelTime.Size = new System.Drawing.Size(728, 69);
+ this.labelTime.TabIndex = 23;
+ this.labelTime.Text = "2021-03-09 12:30:30";
+ this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label18
+ //
+ this.label18.BackColor = System.Drawing.Color.Transparent;
+ this.label18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label18.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.label18.Font = new System.Drawing.Font("微软雅黑", 10.5F);
+ this.label18.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+ this.label18.Location = new System.Drawing.Point(212, 212);
+ this.label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label18.Name = "label18";
+ this.label18.Size = new System.Drawing.Size(104, 64);
+ this.label18.TabIndex = 1;
+ this.label18.Text = "查询";
+ this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label18.Visible = false;
+ //
+ // panel7
+ //
+ this.panel7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
+ this.panel7.Controls.Add(this.label18);
+ this.panel7.Location = new System.Drawing.Point(-162, -134);
+ this.panel7.Margin = new System.Windows.Forms.Padding(4);
+ this.panel7.Name = "panel7";
+ this.panel7.Size = new System.Drawing.Size(1899, 82);
+ this.panel7.TabIndex = 24;
+ //
+ // panel3
+ //
+ this.panel3.Controls.Add(this.pictureBox12_end_9);
+ this.panel3.Controls.Add(this.pictureBox2_start_9);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_3);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_2);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_4);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_1);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_7);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_6);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_5);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_12);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_11);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_10);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_9);
+ this.panel3.Controls.Add(this.textBox_MeasureValue_8);
+ this.panel3.Controls.Add(this.pictureBox12_end_10);
+ this.panel3.Controls.Add(this.pictureBox12_end_4);
+ this.panel3.Controls.Add(this.pictureBox12_end_2);
+ this.panel3.Controls.Add(this.pictureBox12_end_12);
+ this.panel3.Controls.Add(this.pictureBox12_end_11);
+ this.panel3.Controls.Add(this.pictureBox2_start_2);
+ this.panel3.Controls.Add(this.pictureBox2_start_12);
+ this.panel3.Controls.Add(this.pictureBox2_start_11);
+ this.panel3.Controls.Add(this.pictureBox2_start_10);
+ this.panel3.Controls.Add(this.pictureBox12_end_3);
+ this.panel3.Controls.Add(this.pictureBox12_end_1);
+ this.panel3.Controls.Add(this.pictureBox12_end_8);
+ this.panel3.Controls.Add(this.pictureBox12_end_7);
+ this.panel3.Controls.Add(this.pictureBox12_end_6);
+ this.panel3.Controls.Add(this.pictureBox12_end_5);
+ this.panel3.Controls.Add(this.pictureBox2_start_4);
+ this.panel3.Controls.Add(this.pictureBox2_start_5);
+ this.panel3.Controls.Add(this.pictureBox2_start_6);
+ this.panel3.Controls.Add(this.pictureBox2_start_7);
+ this.panel3.Controls.Add(this.pictureBox2_start_8);
+ this.panel3.Controls.Add(this.label6);
+ this.panel3.Controls.Add(this.label4);
+ this.panel3.Controls.Add(this.label5);
+ this.panel3.Controls.Add(this.label10);
+ this.panel3.Controls.Add(this.pictureBox2_start_3);
+ this.panel3.Controls.Add(this.label14);
+ this.panel3.Controls.Add(this.label8);
+ this.panel3.Controls.Add(this.label13);
+ this.panel3.Controls.Add(this.label3);
+ this.panel3.Controls.Add(this.label12);
+ this.panel3.Controls.Add(this.label7);
+ this.panel3.Controls.Add(this.label11);
+ this.panel3.Controls.Add(this.pictureBox2_start_1);
+ this.panel3.Controls.Add(this.label2);
+ this.panel3.Controls.Add(this.pictureBox1);
+ this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel3.Location = new System.Drawing.Point(3, 93);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(1989, 820);
+ this.panel3.TabIndex = 4;
+ //
+ // textBox_MeasureValue_3
+ //
+ this.textBox_MeasureValue_3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_3.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_3.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_3.Location = new System.Drawing.Point(1738, 513);
+ this.textBox_MeasureValue_3.Name = "textBox_MeasureValue_3";
+ this.textBox_MeasureValue_3.ReadOnly = true;
+ this.textBox_MeasureValue_3.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_3.TabIndex = 4;
+ this.textBox_MeasureValue_3.Text = "0";
+ //
+ // textBox_MeasureValue_2
+ //
+ this.textBox_MeasureValue_2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_2.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_2.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_2.Location = new System.Drawing.Point(280, 513);
+ this.textBox_MeasureValue_2.Name = "textBox_MeasureValue_2";
+ this.textBox_MeasureValue_2.ReadOnly = true;
+ this.textBox_MeasureValue_2.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_2.TabIndex = 4;
+ this.textBox_MeasureValue_2.Text = "0";
+ //
+ // textBox_MeasureValue_4
+ //
+ this.textBox_MeasureValue_4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_4.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_4.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_4.Location = new System.Drawing.Point(280, 314);
+ this.textBox_MeasureValue_4.Name = "textBox_MeasureValue_4";
+ this.textBox_MeasureValue_4.ReadOnly = true;
+ this.textBox_MeasureValue_4.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_4.TabIndex = 4;
+ this.textBox_MeasureValue_4.Text = "0";
+ //
+ // textBox_MeasureValue_1
+ //
+ this.textBox_MeasureValue_1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_1.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_1.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_1.Location = new System.Drawing.Point(1738, 314);
+ this.textBox_MeasureValue_1.Name = "textBox_MeasureValue_1";
+ this.textBox_MeasureValue_1.ReadOnly = true;
+ this.textBox_MeasureValue_1.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_1.TabIndex = 4;
+ this.textBox_MeasureValue_1.Text = "0";
+ //
+ // textBox_MeasureValue_7
+ //
+ this.textBox_MeasureValue_7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_7.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_7.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_7.Location = new System.Drawing.Point(1118, 8);
+ this.textBox_MeasureValue_7.Name = "textBox_MeasureValue_7";
+ this.textBox_MeasureValue_7.ReadOnly = true;
+ this.textBox_MeasureValue_7.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_7.TabIndex = 4;
+ this.textBox_MeasureValue_7.Text = "0";
+ //
+ // textBox_MeasureValue_6
+ //
+ this.textBox_MeasureValue_6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_6.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_6.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_6.Location = new System.Drawing.Point(903, 8);
+ this.textBox_MeasureValue_6.Name = "textBox_MeasureValue_6";
+ this.textBox_MeasureValue_6.ReadOnly = true;
+ this.textBox_MeasureValue_6.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_6.TabIndex = 4;
+ this.textBox_MeasureValue_6.Text = "0";
+ //
+ // textBox_MeasureValue_5
+ //
+ this.textBox_MeasureValue_5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_5.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_5.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_5.Location = new System.Drawing.Point(692, 8);
+ this.textBox_MeasureValue_5.Name = "textBox_MeasureValue_5";
+ this.textBox_MeasureValue_5.ReadOnly = true;
+ this.textBox_MeasureValue_5.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_5.TabIndex = 4;
+ this.textBox_MeasureValue_5.Text = "0";
+ //
+ // textBox_MeasureValue_12
+ //
+ this.textBox_MeasureValue_12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_12.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_12.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_12.Location = new System.Drawing.Point(704, 771);
+ this.textBox_MeasureValue_12.Name = "textBox_MeasureValue_12";
+ this.textBox_MeasureValue_12.ReadOnly = true;
+ this.textBox_MeasureValue_12.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_12.TabIndex = 4;
+ this.textBox_MeasureValue_12.Text = "0";
+ //
+ // textBox_MeasureValue_11
+ //
+ this.textBox_MeasureValue_11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_11.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_11.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_11.Location = new System.Drawing.Point(915, 771);
+ this.textBox_MeasureValue_11.Name = "textBox_MeasureValue_11";
+ this.textBox_MeasureValue_11.ReadOnly = true;
+ this.textBox_MeasureValue_11.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_11.TabIndex = 4;
+ this.textBox_MeasureValue_11.Text = "0";
+ //
+ // textBox_MeasureValue_10
+ //
+ this.textBox_MeasureValue_10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_10.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_10.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_10.Location = new System.Drawing.Point(1130, 771);
+ this.textBox_MeasureValue_10.Name = "textBox_MeasureValue_10";
+ this.textBox_MeasureValue_10.ReadOnly = true;
+ this.textBox_MeasureValue_10.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_10.TabIndex = 4;
+ this.textBox_MeasureValue_10.Text = "0";
+ //
+ // textBox_MeasureValue_9
+ //
+ this.textBox_MeasureValue_9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_9.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_9.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_9.Location = new System.Drawing.Point(1354, 771);
+ this.textBox_MeasureValue_9.Name = "textBox_MeasureValue_9";
+ this.textBox_MeasureValue_9.ReadOnly = true;
+ this.textBox_MeasureValue_9.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_9.TabIndex = 4;
+ this.textBox_MeasureValue_9.Text = "0";
+ //
+ // textBox_MeasureValue_8
+ //
+ this.textBox_MeasureValue_8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox_MeasureValue_8.Font = new System.Drawing.Font("宋体", 15F);
+ this.textBox_MeasureValue_8.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.textBox_MeasureValue_8.Location = new System.Drawing.Point(1342, 8);
+ this.textBox_MeasureValue_8.Name = "textBox_MeasureValue_8";
+ this.textBox_MeasureValue_8.ReadOnly = true;
+ this.textBox_MeasureValue_8.Size = new System.Drawing.Size(118, 42);
+ this.textBox_MeasureValue_8.TabIndex = 4;
+ this.textBox_MeasureValue_8.Text = "0";
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.BackColor = System.Drawing.Color.White;
+ this.label6.Font = new System.Drawing.Font("宋体", 15F);
+ this.label6.Location = new System.Drawing.Point(274, 480);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(73, 30);
+ this.label6.TabIndex = 6;
+ this.label6.Text = "扭矩";
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.BackColor = System.Drawing.Color.White;
+ this.label4.Font = new System.Drawing.Font("宋体", 15F);
+ this.label4.Location = new System.Drawing.Point(1732, 480);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(73, 30);
+ this.label4.TabIndex = 6;
+ this.label4.Text = "扭矩";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.BackColor = System.Drawing.Color.White;
+ this.label5.Font = new System.Drawing.Font("宋体", 15F);
+ this.label5.Location = new System.Drawing.Point(274, 280);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(73, 30);
+ this.label5.TabIndex = 6;
+ this.label5.Text = "扭矩";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.BackColor = System.Drawing.Color.White;
+ this.label10.Font = new System.Drawing.Font("宋体", 15F);
+ this.label10.Location = new System.Drawing.Point(1038, 10);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(73, 30);
+ this.label10.TabIndex = 6;
+ this.label10.Text = "扭矩";
+ //
+ // label14
+ //
+ this.label14.AutoSize = true;
+ this.label14.BackColor = System.Drawing.Color.White;
+ this.label14.Font = new System.Drawing.Font("宋体", 15F);
+ this.label14.Location = new System.Drawing.Point(624, 777);
+ this.label14.Name = "label14";
+ this.label14.Size = new System.Drawing.Size(73, 30);
+ this.label14.TabIndex = 6;
+ this.label14.Text = "扭矩";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.BackColor = System.Drawing.Color.White;
+ this.label8.Font = new System.Drawing.Font("宋体", 15F);
+ this.label8.Location = new System.Drawing.Point(824, 10);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(73, 30);
+ this.label8.TabIndex = 6;
+ this.label8.Text = "扭矩";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.BackColor = System.Drawing.Color.White;
+ this.label13.Font = new System.Drawing.Font("宋体", 15F);
+ this.label13.Location = new System.Drawing.Point(836, 777);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(73, 30);
+ this.label13.TabIndex = 6;
+ this.label13.Text = "扭矩";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.BackColor = System.Drawing.Color.White;
+ this.label3.Font = new System.Drawing.Font("宋体", 15F);
+ this.label3.Location = new System.Drawing.Point(1732, 280);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(73, 30);
+ this.label3.TabIndex = 6;
+ this.label3.Text = "扭矩";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.BackColor = System.Drawing.Color.White;
+ this.label12.Font = new System.Drawing.Font("宋体", 15F);
+ this.label12.Location = new System.Drawing.Point(1050, 777);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(73, 30);
+ this.label12.TabIndex = 6;
+ this.label12.Text = "扭矩";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.BackColor = System.Drawing.Color.White;
+ this.label7.Font = new System.Drawing.Font("宋体", 15F);
+ this.label7.Location = new System.Drawing.Point(612, 10);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(73, 30);
+ this.label7.TabIndex = 6;
+ this.label7.Text = "扭矩";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.BackColor = System.Drawing.Color.White;
+ this.label11.Font = new System.Drawing.Font("宋体", 15F);
+ this.label11.Location = new System.Drawing.Point(1275, 777);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(73, 30);
+ this.label11.TabIndex = 6;
+ this.label11.Text = "扭矩";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.White;
+ this.label2.Font = new System.Drawing.Font("宋体", 15F);
+ this.label2.Location = new System.Drawing.Point(1263, 14);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(73, 30);
+ this.label2.TabIndex = 6;
+ this.label2.Text = "扭矩";
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.label16);
+ this.panel1.Controls.Add(this.button_running);
+ this.panel1.Controls.Add(this.button_alarm);
+ this.panel1.Controls.Add(this.button_finished);
+ this.panel1.Controls.Add(this.button_empty);
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel1.Location = new System.Drawing.Point(3, 919);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(1989, 84);
+ this.panel1.TabIndex = 3;
+ //
+ // label16
+ //
+ this.label16.BackColor = System.Drawing.Color.Black;
+ this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.label16.Location = new System.Drawing.Point(0, 4);
+ this.label16.Name = "label16";
+ this.label16.Size = new System.Drawing.Size(1980, 4);
+ this.label16.TabIndex = 10;
+ //
+ // button_running
+ //
+ this.button_running.BackColor = System.Drawing.Color.Gray;
+ this.button_running.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_running.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_running.ForeColor = System.Drawing.Color.White;
+ this.button_running.Location = new System.Drawing.Point(38, 15);
+ this.button_running.Name = "button_running";
+ this.button_running.Size = new System.Drawing.Size(333, 66);
+ this.button_running.TabIndex = 4;
+ this.button_running.Text = "设备运行(禁止上下料)";
+ this.button_running.UseVisualStyleBackColor = false;
+ //
+ // button_alarm
+ //
+ this.button_alarm.BackColor = System.Drawing.Color.Gray;
+ this.button_alarm.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_alarm.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_alarm.ForeColor = System.Drawing.Color.White;
+ this.button_alarm.Location = new System.Drawing.Point(1252, 16);
+ this.button_alarm.Name = "button_alarm";
+ this.button_alarm.Size = new System.Drawing.Size(333, 66);
+ this.button_alarm.TabIndex = 5;
+ this.button_alarm.Text = "设备故障";
+ this.button_alarm.UseVisualStyleBackColor = false;
+ //
+ // button_finished
+ //
+ this.button_finished.BackColor = System.Drawing.Color.Gray;
+ this.button_finished.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_finished.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_finished.ForeColor = System.Drawing.Color.White;
+ this.button_finished.Location = new System.Drawing.Point(442, 15);
+ this.button_finished.Name = "button_finished";
+ this.button_finished.Size = new System.Drawing.Size(333, 66);
+ this.button_finished.TabIndex = 6;
+ this.button_finished.Text = "完成装配(请求下料)";
+ this.button_finished.UseVisualStyleBackColor = false;
+ //
+ // button_empty
+ //
+ this.button_empty.BackColor = System.Drawing.Color.Gray;
+ this.button_empty.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button_empty.Font = new System.Drawing.Font("宋体", 12F);
+ this.button_empty.ForeColor = System.Drawing.Color.White;
+ this.button_empty.Location = new System.Drawing.Point(848, 16);
+ this.button_empty.Name = "button_empty";
+ this.button_empty.Size = new System.Drawing.Size(333, 66);
+ this.button_empty.TabIndex = 7;
+ this.button_empty.Text = "设备空闲(请求上料)";
+ this.button_empty.UseVisualStyleBackColor = false;
+ //
+ // panel2
+ //
+ this.panel2.Controls.Add(this.label_AgvLeaved);
+ this.panel2.Controls.Add(this.label19);
+ this.panel2.Controls.Add(this.label_AgvCanLeave);
+ this.panel2.Controls.Add(this.label15);
+ this.panel2.Controls.Add(this.label_AgvRequestLeave);
+ this.panel2.Controls.Add(this.button5_heartBeat_Ning);
+ this.panel2.Controls.Add(this.button5_heartBeat);
+ this.panel2.Controls.Add(this.label_AgvCanEnter);
+ this.panel2.Controls.Add(this.textBox1_PartPosition);
+ this.panel2.Controls.Add(this.label_AgvSongliao);
+ this.panel2.Controls.Add(this.label_AgvRequestEnter);
+ this.panel2.Controls.Add(this.label17);
+ this.panel2.Controls.Add(this.textBox1_EngineID);
+ this.panel2.Controls.Add(this.label1);
+ this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.panel2.Location = new System.Drawing.Point(3, 3);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(1989, 84);
+ this.panel2.TabIndex = 2;
+ //
+ // label_AgvLeaved
+ //
+ this.label_AgvLeaved.AutoSize = true;
+ this.label_AgvLeaved.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvLeaved.Location = new System.Drawing.Point(1393, 12);
+ this.label_AgvLeaved.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvLeaved.Name = "label_AgvLeaved";
+ this.label_AgvLeaved.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvLeaved.TabIndex = 9;
+ this.label_AgvLeaved.Text = "●AGV已经离开";
+ //
+ // label19
+ //
+ this.label19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label19.Location = new System.Drawing.Point(1756, 16);
+ this.label19.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label19.Name = "label19";
+ this.label19.Size = new System.Drawing.Size(2, 44);
+ this.label19.TabIndex = 9;
+ //
+ // label_AgvCanLeave
+ //
+ this.label_AgvCanLeave.AutoSize = true;
+ this.label_AgvCanLeave.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvCanLeave.Location = new System.Drawing.Point(1225, 45);
+ this.label_AgvCanLeave.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvCanLeave.Name = "label_AgvCanLeave";
+ this.label_AgvCanLeave.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvCanLeave.TabIndex = 9;
+ this.label_AgvCanLeave.Text = "●AGV可以离开";
+ //
+ // label15
+ //
+ this.label15.BackColor = System.Drawing.Color.Black;
+ this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.label15.Location = new System.Drawing.Point(0, 75);
+ this.label15.Name = "label15";
+ this.label15.Size = new System.Drawing.Size(1980, 4);
+ this.label15.TabIndex = 9;
+ //
+ // label_AgvRequestLeave
+ //
+ this.label_AgvRequestLeave.AutoSize = true;
+ this.label_AgvRequestLeave.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvRequestLeave.Location = new System.Drawing.Point(1225, 12);
+ this.label_AgvRequestLeave.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvRequestLeave.Name = "label_AgvRequestLeave";
+ this.label_AgvRequestLeave.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvRequestLeave.TabIndex = 9;
+ this.label_AgvRequestLeave.Text = "●AGV请求离开";
+ //
+ // button5_heartBeat_Ning
+ //
+ this.button5_heartBeat_Ning.BackColor = System.Drawing.Color.Gray;
+ this.button5_heartBeat_Ning.Font = new System.Drawing.Font("宋体", 12F);
+ this.button5_heartBeat_Ning.ForeColor = System.Drawing.Color.White;
+ this.button5_heartBeat_Ning.Location = new System.Drawing.Point(1765, 12);
+ this.button5_heartBeat_Ning.Name = "button5_heartBeat_Ning";
+ this.button5_heartBeat_Ning.Size = new System.Drawing.Size(100, 52);
+ this.button5_heartBeat_Ning.TabIndex = 5;
+ this.button5_heartBeat_Ning.Text = "拧紧枪";
+ this.button5_heartBeat_Ning.UseVisualStyleBackColor = false;
+ //
+ // button5_heartBeat
+ //
+ this.button5_heartBeat.BackColor = System.Drawing.Color.Gray;
+ this.button5_heartBeat.Font = new System.Drawing.Font("宋体", 12F);
+ this.button5_heartBeat.ForeColor = System.Drawing.Color.White;
+ this.button5_heartBeat.Location = new System.Drawing.Point(1883, 12);
+ this.button5_heartBeat.Name = "button5_heartBeat";
+ this.button5_heartBeat.Size = new System.Drawing.Size(100, 52);
+ this.button5_heartBeat.TabIndex = 5;
+ this.button5_heartBeat.Text = "PLC";
+ this.button5_heartBeat.UseVisualStyleBackColor = false;
+ //
+ // label_AgvCanEnter
+ //
+ this.label_AgvCanEnter.AutoSize = true;
+ this.label_AgvCanEnter.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvCanEnter.Location = new System.Drawing.Point(1043, 45);
+ this.label_AgvCanEnter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvCanEnter.Name = "label_AgvCanEnter";
+ this.label_AgvCanEnter.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvCanEnter.TabIndex = 9;
+ this.label_AgvCanEnter.Text = "●AGV可以进入";
+ //
+ // textBox1_PartPosition
+ //
+ this.textBox1_PartPosition.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox1_PartPosition.Font = new System.Drawing.Font("宋体", 20F);
+ this.textBox1_PartPosition.Location = new System.Drawing.Point(692, 9);
+ this.textBox1_PartPosition.Name = "textBox1_PartPosition";
+ this.textBox1_PartPosition.ReadOnly = true;
+ this.textBox1_PartPosition.Size = new System.Drawing.Size(118, 53);
+ this.textBox1_PartPosition.TabIndex = 1;
+ //
+ // label_AgvSongliao
+ //
+ this.label_AgvSongliao.AutoSize = true;
+ this.label_AgvSongliao.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvSongliao.Location = new System.Drawing.Point(883, 14);
+ this.label_AgvSongliao.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvSongliao.Name = "label_AgvSongliao";
+ this.label_AgvSongliao.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvSongliao.TabIndex = 9;
+ this.label_AgvSongliao.Text = "●AGV准备送料";
+ //
+ // label_AgvRequestEnter
+ //
+ this.label_AgvRequestEnter.AutoSize = true;
+ this.label_AgvRequestEnter.Font = new System.Drawing.Font("宋体", 11F);
+ this.label_AgvRequestEnter.Location = new System.Drawing.Point(1043, 12);
+ this.label_AgvRequestEnter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label_AgvRequestEnter.Name = "label_AgvRequestEnter";
+ this.label_AgvRequestEnter.Size = new System.Drawing.Size(153, 22);
+ this.label_AgvRequestEnter.TabIndex = 9;
+ this.label_AgvRequestEnter.Text = "●AGV请求进入";
+ //
+ // label17
+ //
+ this.label17.AutoSize = true;
+ this.label17.Font = new System.Drawing.Font("宋体", 16F);
+ this.label17.Location = new System.Drawing.Point(525, 18);
+ this.label17.Name = "label17";
+ this.label17.Size = new System.Drawing.Size(175, 33);
+ this.label17.TabIndex = 0;
+ this.label17.Text = "装配位置:";
+ //
+ // textBox1_EngineID
+ //
+ this.textBox1_EngineID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.textBox1_EngineID.Font = new System.Drawing.Font("宋体", 20F);
+ this.textBox1_EngineID.Location = new System.Drawing.Point(170, 10);
+ this.textBox1_EngineID.Name = "textBox1_EngineID";
+ this.textBox1_EngineID.ReadOnly = true;
+ this.textBox1_EngineID.Size = new System.Drawing.Size(348, 53);
+ this.textBox1_EngineID.TabIndex = 1;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("宋体", 16F);
+ this.label1.Location = new System.Drawing.Point(3, 20);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(175, 33);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "产品编码:";
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.ColumnCount = 1;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 2);
+ this.tableLayoutPanel1.Controls.Add(this.panel3, 0, 1);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 3;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 90F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 90F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(1995, 1006);
+ this.tableLayoutPanel1.TabIndex = 25;
+ //
+ // pictureBox12_end_9
+ //
+ this.pictureBox12_end_9.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_9.Location = new System.Drawing.Point(1335, 544);
+ this.pictureBox12_end_9.Name = "pictureBox12_end_9";
+ this.pictureBox12_end_9.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_9.TabIndex = 8;
+ this.pictureBox12_end_9.TabStop = false;
+ //
+ // pictureBox2_start_9
+ //
+ this.pictureBox2_start_9.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_9.Location = new System.Drawing.Point(1335, 543);
+ this.pictureBox2_start_9.Name = "pictureBox2_start_9";
+ this.pictureBox2_start_9.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_9.TabIndex = 8;
+ this.pictureBox2_start_9.TabStop = false;
+ //
+ // pictureBox12_end_10
+ //
+ this.pictureBox12_end_10.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_10.Location = new System.Drawing.Point(1184, 544);
+ this.pictureBox12_end_10.Name = "pictureBox12_end_10";
+ this.pictureBox12_end_10.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_10.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_10.TabIndex = 8;
+ this.pictureBox12_end_10.TabStop = false;
+ //
+ // pictureBox12_end_4
+ //
+ this.pictureBox12_end_4.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_4.Location = new System.Drawing.Point(574, 345);
+ this.pictureBox12_end_4.Name = "pictureBox12_end_4";
+ this.pictureBox12_end_4.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_4.TabIndex = 8;
+ this.pictureBox12_end_4.TabStop = false;
+ //
+ // pictureBox12_end_2
+ //
+ this.pictureBox12_end_2.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_2.Location = new System.Drawing.Point(574, 448);
+ this.pictureBox12_end_2.Name = "pictureBox12_end_2";
+ this.pictureBox12_end_2.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_2.TabIndex = 8;
+ this.pictureBox12_end_2.TabStop = false;
+ //
+ // pictureBox12_end_12
+ //
+ this.pictureBox12_end_12.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_12.Location = new System.Drawing.Point(740, 544);
+ this.pictureBox12_end_12.Name = "pictureBox12_end_12";
+ this.pictureBox12_end_12.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_12.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_12.TabIndex = 8;
+ this.pictureBox12_end_12.TabStop = false;
+ //
+ // pictureBox12_end_11
+ //
+ this.pictureBox12_end_11.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_11.Location = new System.Drawing.Point(969, 544);
+ this.pictureBox12_end_11.Name = "pictureBox12_end_11";
+ this.pictureBox12_end_11.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_11.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_11.TabIndex = 8;
+ this.pictureBox12_end_11.TabStop = false;
+ //
+ // pictureBox2_start_2
+ //
+ this.pictureBox2_start_2.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_2.Location = new System.Drawing.Point(576, 447);
+ this.pictureBox2_start_2.Name = "pictureBox2_start_2";
+ this.pictureBox2_start_2.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_2.TabIndex = 8;
+ this.pictureBox2_start_2.TabStop = false;
+ //
+ // pictureBox2_start_12
+ //
+ this.pictureBox2_start_12.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_12.Location = new System.Drawing.Point(740, 543);
+ this.pictureBox2_start_12.Name = "pictureBox2_start_12";
+ this.pictureBox2_start_12.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_12.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_12.TabIndex = 8;
+ this.pictureBox2_start_12.TabStop = false;
+ //
+ // pictureBox2_start_11
+ //
+ this.pictureBox2_start_11.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_11.Location = new System.Drawing.Point(969, 543);
+ this.pictureBox2_start_11.Name = "pictureBox2_start_11";
+ this.pictureBox2_start_11.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_11.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_11.TabIndex = 8;
+ this.pictureBox2_start_11.TabStop = false;
+ //
+ // pictureBox2_start_10
+ //
+ this.pictureBox2_start_10.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_10.Location = new System.Drawing.Point(1184, 543);
+ this.pictureBox2_start_10.Name = "pictureBox2_start_10";
+ this.pictureBox2_start_10.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_10.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_10.TabIndex = 8;
+ this.pictureBox2_start_10.TabStop = false;
+ //
+ // pictureBox12_end_3
+ //
+ this.pictureBox12_end_3.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_3.Location = new System.Drawing.Point(1503, 448);
+ this.pictureBox12_end_3.Name = "pictureBox12_end_3";
+ this.pictureBox12_end_3.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_3.TabIndex = 8;
+ this.pictureBox12_end_3.TabStop = false;
+ //
+ // pictureBox12_end_1
+ //
+ this.pictureBox12_end_1.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_1.Location = new System.Drawing.Point(1503, 345);
+ this.pictureBox12_end_1.Name = "pictureBox12_end_1";
+ this.pictureBox12_end_1.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_1.TabIndex = 8;
+ this.pictureBox12_end_1.TabStop = false;
+ //
+ // pictureBox12_end_8
+ //
+ this.pictureBox12_end_8.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_8.Location = new System.Drawing.Point(1335, 273);
+ this.pictureBox12_end_8.Name = "pictureBox12_end_8";
+ this.pictureBox12_end_8.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_8.TabIndex = 8;
+ this.pictureBox12_end_8.TabStop = false;
+ //
+ // pictureBox12_end_7
+ //
+ this.pictureBox12_end_7.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_7.Location = new System.Drawing.Point(1184, 273);
+ this.pictureBox12_end_7.Name = "pictureBox12_end_7";
+ this.pictureBox12_end_7.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_7.TabIndex = 8;
+ this.pictureBox12_end_7.TabStop = false;
+ //
+ // pictureBox12_end_6
+ //
+ this.pictureBox12_end_6.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_6.Location = new System.Drawing.Point(969, 273);
+ this.pictureBox12_end_6.Name = "pictureBox12_end_6";
+ this.pictureBox12_end_6.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_6.TabIndex = 8;
+ this.pictureBox12_end_6.TabStop = false;
+ //
+ // pictureBox12_end_5
+ //
+ this.pictureBox12_end_5.Image = global::CCYQ_JieFang.Properties.Resources.green;
+ this.pictureBox12_end_5.Location = new System.Drawing.Point(724, 273);
+ this.pictureBox12_end_5.Name = "pictureBox12_end_5";
+ this.pictureBox12_end_5.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox12_end_5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox12_end_5.TabIndex = 8;
+ this.pictureBox12_end_5.TabStop = false;
+ //
+ // pictureBox2_start_4
+ //
+ this.pictureBox2_start_4.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_4.Location = new System.Drawing.Point(574, 344);
+ this.pictureBox2_start_4.Name = "pictureBox2_start_4";
+ this.pictureBox2_start_4.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_4.TabIndex = 8;
+ this.pictureBox2_start_4.TabStop = false;
+ //
+ // pictureBox2_start_5
+ //
+ this.pictureBox2_start_5.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_5.Location = new System.Drawing.Point(724, 273);
+ this.pictureBox2_start_5.Name = "pictureBox2_start_5";
+ this.pictureBox2_start_5.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_5.TabIndex = 8;
+ this.pictureBox2_start_5.TabStop = false;
+ //
+ // pictureBox2_start_6
+ //
+ this.pictureBox2_start_6.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_6.Location = new System.Drawing.Point(969, 273);
+ this.pictureBox2_start_6.Name = "pictureBox2_start_6";
+ this.pictureBox2_start_6.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_6.TabIndex = 8;
+ this.pictureBox2_start_6.TabStop = false;
+ //
+ // pictureBox2_start_7
+ //
+ this.pictureBox2_start_7.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_7.Location = new System.Drawing.Point(1184, 273);
+ this.pictureBox2_start_7.Name = "pictureBox2_start_7";
+ this.pictureBox2_start_7.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_7.TabIndex = 8;
+ this.pictureBox2_start_7.TabStop = false;
+ //
+ // pictureBox2_start_8
+ //
+ this.pictureBox2_start_8.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_8.Location = new System.Drawing.Point(1335, 273);
+ this.pictureBox2_start_8.Name = "pictureBox2_start_8";
+ this.pictureBox2_start_8.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_8.TabIndex = 8;
+ this.pictureBox2_start_8.TabStop = false;
+ //
+ // pictureBox2_start_3
+ //
+ this.pictureBox2_start_3.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_3.Location = new System.Drawing.Point(1503, 447);
+ this.pictureBox2_start_3.Name = "pictureBox2_start_3";
+ this.pictureBox2_start_3.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_3.TabIndex = 8;
+ this.pictureBox2_start_3.TabStop = false;
+ //
+ // pictureBox2_start_1
+ //
+ this.pictureBox2_start_1.Image = global::CCYQ_JieFang.Properties.Resources.StartWorkCircle;
+ this.pictureBox2_start_1.Location = new System.Drawing.Point(1503, 344);
+ this.pictureBox2_start_1.Name = "pictureBox2_start_1";
+ this.pictureBox2_start_1.Size = new System.Drawing.Size(64, 64);
+ this.pictureBox2_start_1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox2_start_1.TabIndex = 8;
+ this.pictureBox2_start_1.TabStop = false;
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.BackColor = System.Drawing.Color.White;
+ this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
+ this.pictureBox1.Image = global::CCYQ_JieFang.Properties.Resources._05_微型减速机;
+ this.pictureBox1.Location = new System.Drawing.Point(130, 16);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(1689, 756);
+ this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.pictureBox1.TabIndex = 0;
+ this.pictureBox1.TabStop = false;
+ //
+ // DAS_OP50
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.Color.White;
+ this.ClientSize = new System.Drawing.Size(1995, 1006);
+ this.Controls.Add(this.tableLayoutPanel1);
+ this.Controls.Add(this.label9);
+ this.Controls.Add(this.labelTime);
+ this.Controls.Add(this.panel7);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "DAS_OP50";
+ this.Text = "OP50工位-微型减速机";
+ this.panel7.ResumeLayout(false);
+ this.panel3.ResumeLayout(false);
+ this.panel3.PerformLayout();
+ this.panel1.ResumeLayout(false);
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ this.tableLayoutPanel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_9)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_9)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_10)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_12)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_11)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_12)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_11)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_10)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_8)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_7)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_6)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12_end_5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_6)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_7)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_8)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2_start_1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ private System.Windows.Forms.Timer timHSCZ;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Timer timUI;
+ private System.Windows.Forms.Label labelTime;
+ private System.Windows.Forms.Label label18;
+ private System.Windows.Forms.Panel panel7;
+ private System.Windows.Forms.Panel panel3;
+ private System.Windows.Forms.PictureBox pictureBox12_end_9;
+ private System.Windows.Forms.PictureBox pictureBox2_start_9;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_3;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_2;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_4;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_1;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_7;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_6;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_5;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_12;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_11;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_10;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_9;
+ private System.Windows.Forms.TextBox textBox_MeasureValue_8;
+ private System.Windows.Forms.PictureBox pictureBox12_end_10;
+ private System.Windows.Forms.PictureBox pictureBox12_end_4;
+ private System.Windows.Forms.PictureBox pictureBox12_end_2;
+ private System.Windows.Forms.PictureBox pictureBox12_end_12;
+ private System.Windows.Forms.PictureBox pictureBox12_end_11;
+ private System.Windows.Forms.PictureBox pictureBox2_start_2;
+ private System.Windows.Forms.PictureBox pictureBox2_start_12;
+ private System.Windows.Forms.PictureBox pictureBox2_start_11;
+ private System.Windows.Forms.PictureBox pictureBox2_start_10;
+ private System.Windows.Forms.PictureBox pictureBox12_end_3;
+ private System.Windows.Forms.PictureBox pictureBox12_end_1;
+ private System.Windows.Forms.PictureBox pictureBox12_end_8;
+ private System.Windows.Forms.PictureBox pictureBox12_end_7;
+ private System.Windows.Forms.PictureBox pictureBox12_end_6;
+ private System.Windows.Forms.PictureBox pictureBox12_end_5;
+ private System.Windows.Forms.PictureBox pictureBox2_start_4;
+ private System.Windows.Forms.PictureBox pictureBox2_start_5;
+ private System.Windows.Forms.PictureBox pictureBox2_start_6;
+ private System.Windows.Forms.PictureBox pictureBox2_start_7;
+ private System.Windows.Forms.PictureBox pictureBox2_start_8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.PictureBox pictureBox2_start_3;
+ private System.Windows.Forms.Label label14;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.PictureBox pictureBox2_start_1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Label label16;
+ private System.Windows.Forms.Button button_running;
+ private System.Windows.Forms.Button button_alarm;
+ private System.Windows.Forms.Button button_finished;
+ private System.Windows.Forms.Button button_empty;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label label_AgvLeaved;
+ private System.Windows.Forms.Label label19;
+ private System.Windows.Forms.Label label_AgvCanLeave;
+ private System.Windows.Forms.Label label15;
+ private System.Windows.Forms.Label label_AgvRequestLeave;
+ private System.Windows.Forms.Button button5_heartBeat;
+ private System.Windows.Forms.Label label_AgvCanEnter;
+ private System.Windows.Forms.TextBox textBox1_PartPosition;
+ private System.Windows.Forms.Label label_AgvRequestEnter;
+ private System.Windows.Forms.Label label17;
+ private System.Windows.Forms.TextBox textBox1_EngineID;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private System.Windows.Forms.Label label_AgvSongliao;
+ private System.Windows.Forms.Button button5_heartBeat_Ning;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ }
+}
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/OP50/DAS_OP50.cs b/CCYQ_JieFang/OP/OP50/DAS_OP50.cs
new file mode 100644
index 0000000..b7cffa2
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP50/DAS_OP50.cs
@@ -0,0 +1,654 @@
+
+using DK_DC_Tool;
+using HslCommunication.Core;
+using Newtonsoft.Json;
+using NPOI.SS.UserModel;
+using OpcBasic;
+using Robot.Common;
+using Serilog.Events;
+using System;
+using System.Collections.Concurrent;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using SystemFramework;
+
+namespace MesWork
+{
+ public partial class DAS_OP50
+ {
+ InitServer initServer = null;
+ ///
+ ///
+ ///
+ private static string OpNameCurrent = "";
+ ///
+ /// 字典 ,存储12个开始测量图片控件,key为测量位置,value为图片控件
+ ///
+ Dictionary dicStartMasurePictureBox = new Dictionary();
+ ///
+ /// 字典 ,存储12个结束测量图片控件,key为测量位置,value为图片控件
+ ///
+ Dictionary dicEndMasurePictureBox = new Dictionary();
+ ///
+ /// 字典 ,存储12个结束测量文本框控件,key为测量位置,value文本框的值
+ ///
+ Dictionary dicMeasureTextBox = new Dictionary();
+ ///
+ /// PLC事件变化委托
+ ///
+ public static Action MIS_Funtion_PLC_OP = null;
+
+ ///
+ /// PLC事件变化委托
+ ///
+ public static Action AGV_Task_change = null;
+ ///
+ /// PLC事件变化委托--处理托盘信息
+ ///
+ public static Action AGV_Task_Info = null;
+
+ // 每个工位的满工件数量
+ // 工位OP50 3个
+ public static int partCount = 3;
+
+ public static bool isConnect = false;
+
+ public DAS_OP50(string opName)
+ {
+ InitializeComponent();
+
+ publicCore.partCount = partCount;
+ OpNameCurrent = opName;
+
+ Tighten.E_DeviceHeartBeat -= DeviceHeartBeat_NingJinQiang;
+ Tighten.E_DeviceHeartBeat += DeviceHeartBeat_NingJinQiang;
+
+ MesWorkForm.MIS_Funtion_PLC_MeasureFinish -= SolvePicAndMeasureValueWorking;
+ MesWorkForm.MIS_Funtion_PLC_MeasureFinish += SolvePicAndMeasureValueWorking;
+
+ MIS_Funtion_PLC_OP -= MIS_Funtion_PLC;
+ MIS_Funtion_PLC_OP += MIS_Funtion_PLC;
+
+ AGV_Task_change -= SolveAgvDeviceStatus;
+ AGV_Task_change += SolveAgvDeviceStatus;
+
+
+ if (MesWorkForm.IsDemoMesServer == 1)
+ {
+ MoNiHeartBeat();
+ }
+ SolvePicAndMeasureValueInit();
+
+ new Thread(new ThreadStart(delegate () {
+ while (true)
+ {
+ try
+ {
+ SolveDeviceStatusInit(publicCore.SolveDeviceStatus_Read(OpNameCurrent));
+ }
+ catch (Exception err) { }
+ Thread.Sleep(2000);
+ }
+ }))
+ { IsBackground = true }.Start();
+
+ //var aa =
+ //new Thread(new ThreadStart(delegate () {
+ // while (true)
+ // {
+ // try
+ // {
+ // if (!isConnect)
+ // {
+ // if (publicCore.Get_PartPosition(OpNameCurrent) != -1)
+ // {
+ // isConnect = true;
+ // ProductInfo_search();
+ // }
+ // }
+ // }
+ // catch (Exception err) { }
+ // Thread.Sleep(1000);
+ // }
+ //}));
+ //aa.IsBackground = true;
+ //aa.Start();
+
+ }
+ public void MIS_Funtion_PLC(DeviceDriver_BasicData.CustomeEvetnArgs msgEvent)
+ {
+ try
+ {
+ var tagID = msgEvent.TagID.ToString();
+ // var opName = msgEvent.OpName.ToString();
+ var tagTypeCodeID = (int)msgEvent.TagTypeCodeID;
+ var tagTypeID = (EnumTagTypeID)msgEvent.TagTypeID;
+ string tagValue;
+ switch (tagTypeID)
+ {
+ case EnumTagTypeID.BOOL:
+ tagValue = (Convert.ToInt32(msgEvent.TagValue)).ToString();
+ break;
+ default:
+ tagValue = msgEvent.TagValue.ToString();
+ break;
+ }
+ switch (tagTypeCodeID)
+ {
+ case 14:
+ DeviceHeartBeat(tagValue);
+ break;
+ // AGV任务
+ case 50:
+ publicCore.SolveAgvTaskNum(OpNameCurrent, tagValue);
+ break;
+ // 51 空闲(请求上料)
+ // 52 完成(请求下料)
+ // 53 故障
+ case 51:
+ case 52:
+ case 53:
+ publicCore.SolveDeviceStatus(OpNameCurrent);
+ SolveDeviceStatusInit(publicCore.SolveDeviceStatus_Read(OpNameCurrent));
+ break;
+ // 54 第几个件
+ case 54:
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+ break;
+ case 55:
+ publicCore.MeasurePositionChange(OpNameCurrent, 2);
+ SolvePicAndMeasureValueWorking();
+ break;
+ //读电批
+ case 56:
+ if (tagValue == "1")
+ {
+ publicCore.LogInsert("OP50", "Info", "【PLC_读电批置位】");
+ // 不在这个地方写true,写在接收数据的地方写
+
+ }
+ else
+ {
+ publicCore.LogInsert("OP50", "Info", "【PLC_读电批复位】");
+ MesWorkForm.WritePLC(83, OpNameCurrent, false);
+ publicCore.LogInsert("OP50", "Info", "【IPC_读电批完成复位】");
+ }
+ break;
+ //读泄漏量1 2或者压力
+ case 59:
+ if (tagValue == "1")
+ {
+ //publicCore.ReadQualityData_LeakageRate(OpNameCurrent);
+ //publicCore.ReadQualityData_Pressure(OpNameCurrent);
+ MesWorkForm.WritePLC(84, OpNameCurrent, true);
+ }
+ else
+ {
+ MesWorkForm.WritePLC(84, OpNameCurrent, false);
+ }
+ break;
+ }
+ }
+ catch (Exception ex)
+ {
+ }
+ }
+ ///
+ /// 初始化界面显示
+ ///
+ private void SolvePicAndMeasureValueInit()
+ {
+ try
+ {
+ dicStartMasurePictureBox.Add(1, pictureBox2_start_1);
+ dicStartMasurePictureBox.Add(2, pictureBox2_start_2);
+ dicStartMasurePictureBox.Add(3, pictureBox2_start_3);
+ dicStartMasurePictureBox.Add(4, pictureBox2_start_4);
+ dicStartMasurePictureBox.Add(5, pictureBox2_start_5);
+ dicStartMasurePictureBox.Add(6, pictureBox2_start_6);
+ dicStartMasurePictureBox.Add(7, pictureBox2_start_7);
+ dicStartMasurePictureBox.Add(8, pictureBox2_start_8);
+ dicStartMasurePictureBox.Add(9, pictureBox2_start_9);
+ dicStartMasurePictureBox.Add(10, pictureBox2_start_10);
+ dicStartMasurePictureBox.Add(11, pictureBox2_start_11);
+ dicStartMasurePictureBox.Add(12, pictureBox2_start_12);
+
+ dicEndMasurePictureBox.Add(1, pictureBox12_end_1);
+ dicEndMasurePictureBox.Add(2, pictureBox12_end_2);
+ dicEndMasurePictureBox.Add(3, pictureBox12_end_3);
+ dicEndMasurePictureBox.Add(4, pictureBox12_end_4);
+ dicEndMasurePictureBox.Add(5, pictureBox12_end_5);
+ dicEndMasurePictureBox.Add(6, pictureBox12_end_6);
+ dicEndMasurePictureBox.Add(7, pictureBox12_end_7);
+ dicEndMasurePictureBox.Add(8, pictureBox12_end_8);
+ dicEndMasurePictureBox.Add(9, pictureBox12_end_9);
+ dicEndMasurePictureBox.Add(10, pictureBox12_end_10);
+ dicEndMasurePictureBox.Add(11, pictureBox12_end_11);
+ dicEndMasurePictureBox.Add(12, pictureBox12_end_12);
+
+ dicMeasureTextBox.Add(1, textBox_MeasureValue_1);
+ dicMeasureTextBox.Add(2, textBox_MeasureValue_2);
+ dicMeasureTextBox.Add(3, textBox_MeasureValue_3);
+ dicMeasureTextBox.Add(4, textBox_MeasureValue_4);
+ dicMeasureTextBox.Add(5, textBox_MeasureValue_5);
+ dicMeasureTextBox.Add(6, textBox_MeasureValue_6);
+ dicMeasureTextBox.Add(7, textBox_MeasureValue_7);
+ dicMeasureTextBox.Add(8, textBox_MeasureValue_8);
+ dicMeasureTextBox.Add(9, textBox_MeasureValue_9);
+ dicMeasureTextBox.Add(10, textBox_MeasureValue_10);
+ dicMeasureTextBox.Add(11, textBox_MeasureValue_11);
+ dicMeasureTextBox.Add(12, textBox_MeasureValue_12);
+
+
+ foreach (var item in dicStartMasurePictureBox)
+ {
+ item.Value.Visible = false;
+ }
+ foreach (var item in dicEndMasurePictureBox)
+ {
+ item.Value.Visible = false;
+ }
+ foreach (var item in dicMeasureTextBox)
+ {
+ item.Value.Text = "";
+ }
+
+ int partPosition = publicCore.Get_PartPosition(OpNameCurrent);
+
+ publicCore.GetQualityInfo_Init(OpNameCurrent, partPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ int measureStatus = Convert.ToInt32(dt.Rows[i]["测量状态"]);
+ int measurePosition = Convert.ToInt32(dt.Rows[i]["测量位置"]);
+ string tagValue = dt.Rows[i]["测量值"].ToString();
+ string isOk = dt.Rows[i]["是否合格"].ToString();
+
+ // 测量状态为1 表示初始状态,两张图片都不显示
+ // 测量状态为2 表示正在测量,显示第二张图片
+ // 测量状态为3 表示测量完成,显示第一张图片
+ var control_DicStartMasurePictureBox = dicStartMasurePictureBox[measurePosition];
+ var control_DicEndMasurePictureBox = dicEndMasurePictureBox[measurePosition];
+ var control_DicMeasureTextBox = dicMeasureTextBox[measurePosition];
+
+ if (measureStatus == 1)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 2)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, true);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 3)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, true);
+ }
+ if (isOk == "1")
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.White);
+ }
+ else
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.Red);
+ }
+ }
+ }
+ }
+ catch (Exception err)
+ {
+ }
+
+ }
+ ///
+ /// 工作时界面显示
+ ///
+ private void SolvePicAndMeasureValueWorking()
+ {
+ try
+ {
+ int partPosition = publicCore.Get_PartPosition(OpNameCurrent);
+ publicCore.GetQualityInfo_Init(OpNameCurrent, partPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ int measureStatus = Convert.ToInt32(dt.Rows[i]["测量状态"]);
+ int measurePosition = Convert.ToInt32(dt.Rows[i]["测量位置"]);
+ string tagValue = dt.Rows[i]["测量值"].ToString();
+ string isOk = dt.Rows[i]["是否合格"].ToString();
+ // 测量状态为1 表示初始状态,两张图片都不显示
+ // 测量状态为2 表示正在测量,显示第二张图片
+ // 测量状态为3 表示测量完成,显示第一张图片
+
+ var control_DicStartMasurePictureBox = dicStartMasurePictureBox[measurePosition];
+ var control_DicEndMasurePictureBox = dicEndMasurePictureBox[measurePosition];
+ var control_DicMeasureTextBox = dicMeasureTextBox[measurePosition];
+
+ if (measureStatus == 1)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 2)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, true);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, false);
+ }
+ else if (measureStatus == 3)
+ {
+ ShowPicBoxControl(control_DicStartMasurePictureBox, false);
+ ShowPicBoxControl(control_DicEndMasurePictureBox, true);
+ }
+ if (isOk == "2")
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.Red);
+ }
+ else
+ {
+ ShowTextBoxControl(control_DicMeasureTextBox, tagValue, Color.White);
+ }
+ }
+ }
+ }
+ catch (Exception err)
+ {
+ }
+
+ }
+ ///
+ /// 界面产品编码和装配位置的显示
+ ///
+ public void ProductInfo_search()
+ {
+ try
+ {
+ //textBox1_EngineID.Text = "";
+ //textBox1_PartPosition.Text = "";
+ ShowTextBoxControl(textBox1_EngineID, "", Color.White);
+ ShowTextBoxControl(textBox1_PartPosition, "", Color.White);
+ int PartPosition = publicCore.Get_PartPosition(OpNameCurrent);
+ publicCore.GetProductInfo_Init(OpNameCurrent, PartPosition, out DataTable dt, out string errMsg);
+ if (dt.Rows.Count > 0)
+ {
+ ShowTextBoxControl(textBox1_EngineID, dt.Rows[0]["发动机号"].ToString(), Color.White);
+ ShowTextBoxControl(textBox1_PartPosition, dt.Rows[0]["装配位置"].ToString(), Color.White);
+ //textBox1_EngineID.Text = dt.Rows[0]["发动机号"].ToString();
+ //textBox1_PartPosition.Text = dt.Rows[0]["装配位置"].ToString();
+ }
+ }
+ catch (Exception err)
+ {
+ }
+ }
+ private void ShowPicBoxControl(Control c, bool ststus)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.Visible = ststus;
+ }));
+ }
+ private void ShowTextBoxControl(Control c, string value, Color color)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.Text = value;
+ c.BackColor = color;
+ }));
+ }
+ private void ShowLabelControl(Control c, Color color)
+ {
+ //if (c.InvokeRequired)
+ //{
+
+ //}
+ //else
+ //{
+ // c.ForeColor = color;
+ //}
+ c.BeginInvoke(new Action(delegate () {
+ c.ForeColor = color;
+ }));
+ }
+ private void ShowButtonControl(Control c, Color color)
+ {
+ c.BeginInvoke(new Action(delegate () {
+ c.BackColor = color;
+ }));
+ }
+
+
+ ///
+ /// 初始化设备状态
+ /// 1工作中 2空闲(请求上料) 3完成(请求下料) 4 报警
+ ///
+ private void SolveDeviceStatusInit(string currentStatus)
+ {
+ try
+ {
+ ShowButtonControl(button_running, Color.Gray);
+ ShowButtonControl(button_finished, Color.Gray);
+ ShowButtonControl(button_empty, Color.Gray);
+ ShowButtonControl(button_alarm, Color.Gray);
+ //button_running.BackColor = Color.Gray;
+ //button_finished.BackColor = Color.Gray;
+ //button_empty.BackColor = Color.Gray;
+ //button_alarm.BackColor = Color.Gray;
+
+ if (currentStatus == "1")
+ {
+ ShowButtonControl(button_running, Color.Green);
+ //button_running.BackColor = Color.Green;
+ }
+ else if (currentStatus == "2")
+ {
+ ShowButtonControl(button_empty, Color.SkyBlue);
+
+ //button_empty.BackColor = Color.SkyBlue;
+ }
+ else if (currentStatus == "3")
+ {
+ ShowButtonControl(button_finished, Color.DarkOrange);
+
+ //button_finished.BackColor = Color.DarkOrange;
+ }
+ else if (currentStatus == "4")
+ {
+ ShowButtonControl(button_alarm, Color.Red);
+
+ //button_alarm.BackColor = Color.Red;
+ }
+ }
+ catch (Exception err)
+ {
+
+ }
+ }
+ ///
+ /// AGV设备状态显示
+ ///
+ ///
+ private void SolveAgvDeviceStatus(string PLC_AgvTaskNum)
+ {
+ try
+ {
+ // 77 反馈AGV任务
+ switch (PLC_AgvTaskNum)
+ {
+ case "10":
+ // AGV触发装配任务 正在送料
+ //label_AgvSongliao.ForeColor = Color.Green;
+
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+
+ //label_AgvLeaved.ForeColor = Color.Black;
+
+ ShowLabelControl(label_AgvSongliao, Color.Green);
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ ShowLabelControl(label_AgvLeaved, Color.Black);
+
+
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+
+ break;
+ case "11":
+
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Green);
+
+ //label_AgvRequestEnter.ForeColor = Color.Green;
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ break;
+ // 允许AGV进行上料 --允许进入
+ // 允许AGV进行下料 --允许进入
+ case "2":
+ case "4":
+ ShowLabelControl(label_AgvCanEnter, Color.Green);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ //label_AgvCanEnter.ForeColor = Color.Green;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+ break;
+ case "21":
+ // AGV 上料完成
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Green);
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Green;
+ break;
+ case "3":
+ // 1.调用FSS-接收IPC下料请求的接口
+ // 2.反馈任务号:30 AGV已呼叫成功正在去往下料区
+ break;
+ case "31":
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvRequestLeave, Color.Green);
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+ //label_AgvRequestLeave.ForeColor = Color.Green;
+ // AGV已到达下料区
+ break;
+ case "41":
+ // AGV下料完成
+ break;
+ // 允许AGV离开
+ case "5":
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Green);
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Green;
+ break;
+ case "51":
+ //label_AgvSongliao.ForeColor = Color.Black;
+
+ //label_AgvRequestLeave.ForeColor = Color.Black;
+ //label_AgvRequestEnter.ForeColor = Color.Black;
+
+ //label_AgvCanEnter.ForeColor = Color.Black;
+ //label_AgvCanLeave.ForeColor = Color.Black;
+
+ //label_AgvLeaved.ForeColor = Color.Green;
+ ShowLabelControl(label_AgvSongliao, Color.Black);
+ ShowLabelControl(label_AgvRequestLeave, Color.Black);
+ ShowLabelControl(label_AgvRequestEnter, Color.Black);
+ ShowLabelControl(label_AgvCanEnter, Color.Black);
+ ShowLabelControl(label_AgvCanLeave, Color.Black);
+ ShowLabelControl(label_AgvLeaved, Color.Green);
+ ProductInfo_search();
+ SolvePicAndMeasureValueWorking();
+ break;
+ }
+
+
+ }
+ catch (Exception err)
+ {
+ }
+ }
+
+ ///
+ /// 设备PLC心跳button5_heartBeat_Ning
+ ///
+ ///
+ private void DeviceHeartBeat(string tagValue)
+ {
+ WritePLC(15, OpNameCurrent, tagValue);
+ if (tagValue == "1")
+ {
+ ShowButtonControl(button5_heartBeat, Color.Green);
+
+ //button5_heartBeat.BackColor = Color.Green;
+ }
+ else
+ {
+ ShowButtonControl(button5_heartBeat, Color.Gray);
+
+ //button5_heartBeat.BackColor = Color.Gray;
+ }
+ }
+ ///
+ /// 设备PLC心跳
+ ///
+ ///
+ private void DeviceHeartBeat_NingJinQiang(string tagValue)
+ {
+ if (tagValue == "1")
+ {
+ ShowButtonControl(button5_heartBeat_Ning, Color.Green);
+
+ //button5_heartBeat_Ning.BackColor = Color.Green;
+ }
+ else
+ {
+ ShowButtonControl(button5_heartBeat_Ning, Color.Red);
+
+ //button5_heartBeat_Ning.BackColor = Color.Red;
+ }
+ }
+
+
+
+ private void MoNiHeartBeat()
+ {
+ bool tv = false;
+ new Thread(new ThreadStart(delegate () {
+ while (true)
+ {
+ try
+ {
+ WritePLC(14, OpNameCurrent, tv);
+ tv = !tv;
+ }
+ catch (Exception err) { }
+ Thread.Sleep(2000);
+ }
+ }))
+ { IsBackground = true }.Start();
+ }
+
+ private void label5_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void textBox_MeasureValue_4_TextChanged(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/CCYQ_JieFang/OP/OP50/DAS_OP50.resx b/CCYQ_JieFang/OP/OP50/DAS_OP50.resx
new file mode 100644
index 0000000..55f2584
--- /dev/null
+++ b/CCYQ_JieFang/OP/OP50/DAS_OP50.resx
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 432, 221
+
+
+ 573, 221
+
+
+ 33
+
+
+
+
+ AAABAAEAGhoAAAAAIAAHAgAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAaAAAAGggGAAAAqUpMzgAAAAFz
+ UkdCAK7OHOkAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABnElEQVRIS+2Uz2rC
+ QBDGfZRc+h7ec/Mmxhgx2CQGYi65ivUB9NZCArl4EC/SqwgePBRKwUfw0AfZzrfshvVPY1IjlNKBj0xm
+ Z+a3m0xS+7ciZhjGqN1uM0iE7mO/D9RsNh+QXEZkRpIkDArDcJsLoqQREofDYUrFrIwkpBTItu3VaSPX
+ dVkURWwymXD/dL0yECDSB0xdgyoD4RQAqEBVlYGu6a6gfv8x828GbTYfXPP5ik2nz1zwZbxS0Gz2wkzT
+ PBJilYMcx2NBELDl8pUtFivuI3YzSP1g1+t3foLx+Ik3huAjhrUfgeI4rgOGq2xQ9ERpmmpUa6HecZw0
+ F6SaCiryjkQZN7q//lOl3Wq6ru9RjPFFM+i7qZMj7vv+djAYpOhRCETJdSrKdpon9TtCDYQedF/sRPjd
+ 0OSVEmpokwf0AEiKN71kOL7cned5rNvtbqkAj/Kier3eTuYDhCciWuVbp9PZobllWXt5/FardaArRvZI
+ Io6cT9Q1Go03AieiVb6JQi7a8YgaaGLpzLBGORblZt8NiQ/EX7da7Qtz50LQDuTBxQAAAABJRU5ErkJg
+ gg==
+
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/logInfo.Designer.cs b/CCYQ_JieFang/OP/logInfo.Designer.cs
new file mode 100644
index 0000000..ae019ac
--- /dev/null
+++ b/CCYQ_JieFang/OP/logInfo.Designer.cs
@@ -0,0 +1,171 @@
+namespace CCYQ_JieFang
+{
+ partial class logInfo
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.dateTimePicker1_log = new System.Windows.Forms.DateTimePicker();
+ this.dataGridView1_log = new System.Windows.Forms.DataGridView();
+ this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.工位号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.日志类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.日志内容 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.操作日期 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.操作时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.button1 = new System.Windows.Forms.Button();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1_log)).BeginInit();
+ this.SuspendLayout();
+ //
+ // dateTimePicker1_log
+ //
+ this.dateTimePicker1_log.CustomFormat = "yyyy-MM-dd";
+ this.dateTimePicker1_log.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.dateTimePicker1_log.Location = new System.Drawing.Point(6, 14);
+ this.dateTimePicker1_log.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.dateTimePicker1_log.Name = "dateTimePicker1_log";
+ this.dateTimePicker1_log.Size = new System.Drawing.Size(162, 28);
+ this.dateTimePicker1_log.TabIndex = 1;
+ //
+ // dataGridView1_log
+ //
+ this.dataGridView1_log.AllowUserToAddRows = false;
+ this.dataGridView1_log.AllowUserToDeleteRows = false;
+ this.dataGridView1_log.AllowUserToResizeRows = false;
+ this.dataGridView1_log.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.dataGridView1_log.ColumnHeadersHeight = 29;
+ this.dataGridView1_log.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.dataGridView1_log.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.ID,
+ this.工位号,
+ this.日志类型,
+ this.日志内容,
+ this.操作日期,
+ this.操作时间});
+ this.dataGridView1_log.Location = new System.Drawing.Point(6, 52);
+ this.dataGridView1_log.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.dataGridView1_log.Name = "dataGridView1_log";
+ this.dataGridView1_log.ReadOnly = true;
+ this.dataGridView1_log.RowHeadersVisible = false;
+ this.dataGridView1_log.RowHeadersWidth = 51;
+ this.dataGridView1_log.RowTemplate.Height = 27;
+ this.dataGridView1_log.Size = new System.Drawing.Size(1302, 793);
+ this.dataGridView1_log.TabIndex = 2;
+ //
+ // ID
+ //
+ this.ID.DataPropertyName = "ID";
+ this.ID.HeaderText = "ID";
+ this.ID.MinimumWidth = 6;
+ this.ID.Name = "ID";
+ this.ID.ReadOnly = true;
+ this.ID.Width = 80;
+ //
+ // 工位号
+ //
+ this.工位号.DataPropertyName = "工位号";
+ this.工位号.HeaderText = "工位号";
+ this.工位号.MinimumWidth = 6;
+ this.工位号.Name = "工位号";
+ this.工位号.ReadOnly = true;
+ this.工位号.Width = 150;
+ //
+ // 日志类型
+ //
+ this.日志类型.DataPropertyName = "日志类型";
+ this.日志类型.HeaderText = "日志类型";
+ this.日志类型.MinimumWidth = 6;
+ this.日志类型.Name = "日志类型";
+ this.日志类型.ReadOnly = true;
+ this.日志类型.Width = 150;
+ //
+ // 日志内容
+ //
+ this.日志内容.DataPropertyName = "日志内容";
+ this.日志内容.HeaderText = "日志内容";
+ this.日志内容.MinimumWidth = 6;
+ this.日志内容.Name = "日志内容";
+ this.日志内容.ReadOnly = true;
+ this.日志内容.Width = 420;
+ //
+ // 操作日期
+ //
+ this.操作日期.DataPropertyName = "操作日期";
+ this.操作日期.HeaderText = "操作日期";
+ this.操作日期.MinimumWidth = 6;
+ this.操作日期.Name = "操作日期";
+ this.操作日期.ReadOnly = true;
+ this.操作日期.Width = 150;
+ //
+ // 操作时间
+ //
+ this.操作时间.DataPropertyName = "操作时间";
+ this.操作时间.HeaderText = "操作时间";
+ this.操作时间.MinimumWidth = 6;
+ this.操作时间.Name = "操作时间";
+ this.操作时间.ReadOnly = true;
+ this.操作时间.Width = 200;
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(185, 10);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(75, 32);
+ this.button1.TabIndex = 3;
+ this.button1.Text = "查询";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // logInfo
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1314, 859);
+ this.Controls.Add(this.button1);
+ this.Controls.Add(this.dataGridView1_log);
+ this.Controls.Add(this.dateTimePicker1_log);
+ this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.Name = "logInfo";
+ this.Text = "logoInfo";
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1_log)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ private System.Windows.Forms.DateTimePicker dateTimePicker1_log;
+ private System.Windows.Forms.DataGridView dataGridView1_log;
+ private System.Windows.Forms.DataGridViewTextBoxColumn ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 工位号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 日志类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 日志内容;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 操作日期;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 操作时间;
+ private System.Windows.Forms.Button button1;
+ }
+}
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/logInfo.cs b/CCYQ_JieFang/OP/logInfo.cs
new file mode 100644
index 0000000..2f05b59
--- /dev/null
+++ b/CCYQ_JieFang/OP/logInfo.cs
@@ -0,0 +1,56 @@
+using MesWork;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Data.SqlClient;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace CCYQ_JieFang
+{
+ public partial class logInfo : Form
+ {
+ string currentOpName;
+
+ public logInfo(string opName)
+ {
+ currentOpName = opName;
+ InitializeComponent();
+ this.dateTimePicker1_log.CustomFormat = "yyyy-MM-dd";
+ dataGridView1_log.AutoGenerateColumns = false;
+ SearchLogInit(currentOpName, DateTime.Now.ToString("yyyy-MM-dd"));
+ }
+
+ private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
+ {
+ SearchLogInit(currentOpName, dateTimePicker1_log.Value.ToString());
+ }
+ private void SearchLogInit(string opName, string logDate)
+ {
+ logDate = string.Format("{0:yyyy-MM-dd}", logDate);
+ SearchLog(opName, logDate, out DataTable dt, out string errorMsg);
+ if (dt.Rows.Count > 0)
+ {
+ dataGridView1_log.DataSource = dt;
+ }
+ }
+ private bool SearchLog(string opName, string logDate, out DataTable dt, out string errorMsg)
+ {
+ string procedureName;
+ procedureName = "系统_操作日志_查询";
+ SqlParameter[] thisParms = new SqlParameter[2];
+ thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
+ thisParms[1] = new System.Data.SqlClient.SqlParameter("@操作日期", logDate);
+ return publicCore.ExecuteStoredProcedure(procedureName, MesWorkForm.ConnectionString, ref thisParms, out dt, out errorMsg);
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ SearchLogInit(currentOpName, dateTimePicker1_log.Value.ToString());
+ }
+ }
+}
diff --git a/CCYQ_JieFang/OP/logInfo.resx b/CCYQ_JieFang/OP/logInfo.resx
new file mode 100644
index 0000000..e04757a
--- /dev/null
+++ b/CCYQ_JieFang/OP/logInfo.resx
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/partInfo.Designer.cs b/CCYQ_JieFang/OP/partInfo.Designer.cs
new file mode 100644
index 0000000..6184945
--- /dev/null
+++ b/CCYQ_JieFang/OP/partInfo.Designer.cs
@@ -0,0 +1,305 @@
+namespace CCYQ_JieFang
+{
+ partial class partInfo
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.dataGridView1_part = new System.Windows.Forms.DataGridView();
+ this.button1_search = new System.Windows.Forms.Button();
+ this.dateTimePicker1_part = new System.Windows.Forms.DateTimePicker();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.comboBox1_isOk = new System.Windows.Forms.ComboBox();
+ this.label3 = new System.Windows.Forms.Label();
+ this.textBox1_partId = new System.Windows.Forms.TextBox();
+ this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.工位号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.产品编码 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.测量项目 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.测量位置 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.测量值 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.是否合格 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.NG原因 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.单位 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.上限值 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.下限值 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.测量时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1_part)).BeginInit();
+ this.SuspendLayout();
+ //
+ // dataGridView1_part
+ //
+ this.dataGridView1_part.AllowUserToAddRows = false;
+ this.dataGridView1_part.AllowUserToDeleteRows = false;
+ this.dataGridView1_part.AllowUserToResizeRows = false;
+ this.dataGridView1_part.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.dataGridView1_part.ColumnHeadersHeight = 29;
+ this.dataGridView1_part.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.dataGridView1_part.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.ID,
+ this.工位号,
+ this.产品编码,
+ this.测量项目,
+ this.测量位置,
+ this.测量值,
+ this.是否合格,
+ this.NG原因,
+ this.单位,
+ this.上限值,
+ this.下限值,
+ this.测量时间});
+ this.dataGridView1_part.Location = new System.Drawing.Point(12, 49);
+ this.dataGridView1_part.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.dataGridView1_part.Name = "dataGridView1_part";
+ this.dataGridView1_part.ReadOnly = true;
+ this.dataGridView1_part.RowHeadersVisible = false;
+ this.dataGridView1_part.RowHeadersWidth = 51;
+ this.dataGridView1_part.RowTemplate.Height = 27;
+ this.dataGridView1_part.Size = new System.Drawing.Size(1364, 842);
+ this.dataGridView1_part.TabIndex = 5;
+ //
+ // button1_search
+ //
+ this.button1_search.FlatStyle = System.Windows.Forms.FlatStyle.System;
+ this.button1_search.Location = new System.Drawing.Point(810, 8);
+ this.button1_search.Name = "button1_search";
+ this.button1_search.Size = new System.Drawing.Size(75, 32);
+ this.button1_search.TabIndex = 8;
+ this.button1_search.Text = "查询";
+ this.button1_search.UseVisualStyleBackColor = true;
+ this.button1_search.Click += new System.EventHandler(this.button1_search_Click);
+ //
+ // dateTimePicker1_part
+ //
+ this.dateTimePicker1_part.CustomFormat = "yyyy-MM-dd";
+ this.dateTimePicker1_part.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.dateTimePicker1_part.Location = new System.Drawing.Point(68, 12);
+ this.dateTimePicker1_part.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.dateTimePicker1_part.Name = "dateTimePicker1_part";
+ this.dateTimePicker1_part.Size = new System.Drawing.Size(162, 28);
+ this.dateTimePicker1_part.TabIndex = 7;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("宋体", 11F);
+ this.label1.Location = new System.Drawing.Point(12, 15);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(54, 22);
+ this.label1.TabIndex = 9;
+ this.label1.Text = "日期";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Font = new System.Drawing.Font("宋体", 11F);
+ this.label2.Location = new System.Drawing.Point(566, 15);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(98, 22);
+ this.label2.TabIndex = 9;
+ this.label2.Text = "测量结果";
+ //
+ // comboBox1_isOk
+ //
+ this.comboBox1_isOk.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.comboBox1_isOk.FormattingEnabled = true;
+ this.comboBox1_isOk.Location = new System.Drawing.Point(671, 12);
+ this.comboBox1_isOk.Name = "comboBox1_isOk";
+ this.comboBox1_isOk.Size = new System.Drawing.Size(121, 26);
+ this.comboBox1_isOk.TabIndex = 10;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Font = new System.Drawing.Font("宋体", 11F);
+ this.label3.Location = new System.Drawing.Point(236, 15);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(98, 22);
+ this.label3.TabIndex = 9;
+ this.label3.Text = "产品编码";
+ //
+ // textBox1_partId
+ //
+ this.textBox1_partId.Location = new System.Drawing.Point(338, 12);
+ this.textBox1_partId.Name = "textBox1_partId";
+ this.textBox1_partId.Size = new System.Drawing.Size(222, 28);
+ this.textBox1_partId.TabIndex = 11;
+ //
+ // ID
+ //
+ this.ID.DataPropertyName = "Id";
+ this.ID.HeaderText = "ID";
+ this.ID.MinimumWidth = 6;
+ this.ID.Name = "ID";
+ this.ID.ReadOnly = true;
+ this.ID.Width = 80;
+ //
+ // 工位号
+ //
+ this.工位号.DataPropertyName = "工位号";
+ this.工位号.HeaderText = "工位号";
+ this.工位号.MinimumWidth = 6;
+ this.工位号.Name = "工位号";
+ this.工位号.ReadOnly = true;
+ this.工位号.Width = 80;
+ //
+ // 产品编码
+ //
+ this.产品编码.DataPropertyName = "EngineID";
+ this.产品编码.HeaderText = "产品编码";
+ this.产品编码.MinimumWidth = 6;
+ this.产品编码.Name = "产品编码";
+ this.产品编码.ReadOnly = true;
+ this.产品编码.Width = 150;
+ //
+ // 测量项目
+ //
+ this.测量项目.DataPropertyName = "测量项目";
+ this.测量项目.HeaderText = "测量项目";
+ this.测量项目.MinimumWidth = 6;
+ this.测量项目.Name = "测量项目";
+ this.测量项目.ReadOnly = true;
+ this.测量项目.Width = 80;
+ //
+ // 测量位置
+ //
+ this.测量位置.DataPropertyName = "测量位置";
+ this.测量位置.HeaderText = "测量位置";
+ this.测量位置.MinimumWidth = 6;
+ this.测量位置.Name = "测量位置";
+ this.测量位置.ReadOnly = true;
+ this.测量位置.Width = 80;
+ //
+ // 测量值
+ //
+ this.测量值.DataPropertyName = "TagValue";
+ this.测量值.HeaderText = "测量值";
+ this.测量值.MinimumWidth = 8;
+ this.测量值.Name = "测量值";
+ this.测量值.ReadOnly = true;
+ this.测量值.Width = 150;
+ //
+ // 是否合格
+ //
+ this.是否合格.DataPropertyName = "IsOK";
+ this.是否合格.HeaderText = "是否合格";
+ this.是否合格.MinimumWidth = 8;
+ this.是否合格.Name = "是否合格";
+ this.是否合格.ReadOnly = true;
+ this.是否合格.Width = 80;
+ //
+ // NG原因
+ //
+ this.NG原因.DataPropertyName = "不合格原因";
+ this.NG原因.HeaderText = "NG原因";
+ this.NG原因.MinimumWidth = 8;
+ this.NG原因.Name = "NG原因";
+ this.NG原因.ReadOnly = true;
+ this.NG原因.Width = 150;
+ //
+ // 单位
+ //
+ this.单位.DataPropertyName = "测量单位";
+ this.单位.HeaderText = "单位";
+ this.单位.MinimumWidth = 8;
+ this.单位.Name = "单位";
+ this.单位.ReadOnly = true;
+ this.单位.Width = 80;
+ //
+ // 上限值
+ //
+ this.上限值.DataPropertyName = "上限值";
+ this.上限值.HeaderText = "上限值";
+ this.上限值.MinimumWidth = 8;
+ this.上限值.Name = "上限值";
+ this.上限值.ReadOnly = true;
+ this.上限值.Width = 80;
+ //
+ // 下限值
+ //
+ this.下限值.DataPropertyName = "下限值";
+ this.下限值.HeaderText = "下限值";
+ this.下限值.MinimumWidth = 8;
+ this.下限值.Name = "下限值";
+ this.下限值.ReadOnly = true;
+ this.下限值.Width = 80;
+ //
+ // 测量时间
+ //
+ this.测量时间.DataPropertyName = "操作时间";
+ this.测量时间.HeaderText = "测量时间";
+ this.测量时间.MinimumWidth = 6;
+ this.测量时间.Name = "测量时间";
+ this.测量时间.ReadOnly = true;
+ this.测量时间.Width = 150;
+ //
+ // partInfo
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1388, 897);
+ this.Controls.Add(this.textBox1_partId);
+ this.Controls.Add(this.comboBox1_isOk);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.label3);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.button1_search);
+ this.Controls.Add(this.dateTimePicker1_part);
+ this.Controls.Add(this.dataGridView1_part);
+ this.Name = "partInfo";
+ this.Text = "产品测量数据";
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1_part)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+ private System.Windows.Forms.DataGridView dataGridView1_part;
+ private System.Windows.Forms.Button button1_search;
+ private System.Windows.Forms.DateTimePicker dateTimePicker1_part;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.ComboBox comboBox1_isOk;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.TextBox textBox1_partId;
+ private System.Windows.Forms.DataGridViewTextBoxColumn ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 工位号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 产品编码;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 测量项目;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 测量位置;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 测量值;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 是否合格;
+ private System.Windows.Forms.DataGridViewTextBoxColumn NG原因;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 单位;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 上限值;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 下限值;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 测量时间;
+ }
+}
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/partInfo.cs b/CCYQ_JieFang/OP/partInfo.cs
new file mode 100644
index 0000000..0f71583
--- /dev/null
+++ b/CCYQ_JieFang/OP/partInfo.cs
@@ -0,0 +1,79 @@
+using MesWork;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Data.SqlClient;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using static System.Windows.Forms.VisualStyles.VisualStyleElement;
+
+namespace CCYQ_JieFang
+{
+ public partial class partInfo : Form
+ {
+ string currentOpName;
+ public partInfo(string opName)
+ {
+ currentOpName = opName;
+ InitializeComponent();
+ initMeasureComboBox();
+ dataGridView1_part.AutoGenerateColumns = false;
+ SearchPartInit(currentOpName, "全部", "", DateTime.Now.ToString("yyyy-MM-dd"));
+ }
+
+ private void initMeasureComboBox()
+ {
+ // 全部 OK NG
+ comboBox1_isOk.Items.Add("全部");
+ comboBox1_isOk.Items.Add("OK");
+ comboBox1_isOk.Items.Add("NG");
+ comboBox1_isOk.SelectedIndex = 0;
+ }
+
+ private void button1_search_Click(object sender, EventArgs e)
+ {
+ string selectedItem = comboBox1_isOk.SelectedItem.ToString();
+ SearchPartInit(Name, selectedItem, textBox1_partId.Text, dateTimePicker1_part.Value.ToString("yyyy-MM-dd"));
+ }
+
+ private void dateTimePicker1_part_ValueChanged(object sender, EventArgs e)
+ {
+ // SearchPartInit(Name, dateTimePicker1_part.Value.ToString());
+ }
+
+ private void SearchPartInit(string opName, string isOk, string partId, string logDate)
+ {
+ try
+ {
+ SearchPartInfo(opName, logDate, isOk, partId, out DataTable dt, out string errorMsg);
+ if (dt.Rows.Count > 0)
+ {
+ dataGridView1_part.DataSource = dt;
+ }
+ else
+ {
+ dataGridView1_part.DataSource = dt;
+ }
+ }
+ catch (Exception err)
+ {
+
+ }
+
+ }
+ private bool SearchPartInfo(string opName, string partDate, string isOk, string partId, out DataTable dt, out string errorMsg)
+ {
+ string procedureName;
+ procedureName = "测量数据合格_查询";
+ SqlParameter[] thisParms = new SqlParameter[3];
+ thisParms[0] = new System.Data.SqlClient.SqlParameter("@操作日期", partDate);
+ thisParms[1] = new System.Data.SqlClient.SqlParameter("@IsOK", isOk);
+ thisParms[2] = new System.Data.SqlClient.SqlParameter("@EngineID", partId);
+ return publicCore.ExecuteStoredProcedure(procedureName, MesWorkForm.ConnectionString, ref thisParms, out dt, out errorMsg);
+ }
+ }
+}
diff --git a/CCYQ_JieFang/OP/partInfo.resx b/CCYQ_JieFang/OP/partInfo.resx
new file mode 100644
index 0000000..acfbf59
--- /dev/null
+++ b/CCYQ_JieFang/OP/partInfo.resx
@@ -0,0 +1,156 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/OP/publicCore.cs b/CCYQ_JieFang/OP/publicCore.cs
new file mode 100644
index 0000000..67aeff2
--- /dev/null
+++ b/CCYQ_JieFang/OP/publicCore.cs
@@ -0,0 +1,676 @@
+using DataLinkMesWork;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Robot.Common;
+using NPOI.SS.UserModel;
+
+namespace MesWork
+{
+ public partial class publicCore
+ {
+ public static int partCount = 0;
+ public static string FSSRequestMsgId = "";
+ public static string Hello_You_All_Never_Know(string[] args)
+ {
+ return Guid.NewGuid().ToString();
+ }
+ ///
+ /// PLC事件变化委托
+ ///
+ public static Action MIS_Funtion_PLC_OP = null;
+
+ ///
+ /// 读取PLC正在装配第几个件
+ ///
+ ///
+ ///
+ public static int Get_PartPosition(string opName)
+ {
+ // 当前装配第几个件 54
+ int PartPosition = -1;
+ PartPosition = Convert.ToInt32(MesWorkForm.ReadPLC(54, opName)) ;
+ return PartPosition;
+ }
+
+ ///
+ /// 设备状态发生变化,处理完成之后,发给管控系统
+ /// 1工作中 2空闲(请求上料) 3完成(请求下料) 4 报警
+ ///
+ public static void SolveDeviceStatus(string opName)
+ {
+ // 空闲(请求上料) 51
+ string isFree = "0";
+ // 完成(请求下料) 52
+ string isWorkFinish = "0";
+ // 故障 53
+ string isAlarm = "0";
+ string finalStatus = "0";
+
+ isFree = MesWorkForm.ReadPLC(51, opName).ToString();
+ if (isFree.ToLower() == "true" || isFree.ToLower() == "1")
+ {
+ isFree = "1";
+ }
+
+ isWorkFinish = MesWorkForm.ReadPLC(52, opName).ToString();
+ if (isWorkFinish.ToLower() == "true" || isWorkFinish.ToLower() == "1")
+ {
+ isWorkFinish = "1";
+ }
+ isAlarm = MesWorkForm.ReadPLC(53, opName).ToString();
+ if (isAlarm.ToLower() == "true" || isAlarm.ToLower() == "1")
+ {
+ isAlarm = "1";
+ }
+
+ if (isAlarm == "1")
+ {
+ finalStatus = "4";
+ }
+ else if (isWorkFinish == "1")
+ {
+ finalStatus = "3";
+ }
+ else if (isFree == "1")
+ {
+ finalStatus = "2";
+ }
+ else
+ {
+ finalStatus = "1";
+ }
+ if (finalStatus == "3")
+ {
+ QualityData_Insert_Final(opName, out string errMag);
+ publicCore.LogInsert("Quality", "Info", "保存质量数据:" + errMag);
+
+ }
+ AnalysisMsg.DeviceStatus(opName, Convert.ToInt32(finalStatus));
+ }
+
+ ///
+ /// 设备状态发生变化,处理完成之后,发给管控系统
+ /// 1工作中 2空闲(请求上料) 3完成(请求下料) 4 报警
+ /// 接口用 不重复保存质量数据
+ ///
+ public static void SolveDeviceStatus_WebApi_Use(string opName)
+ {
+ // 空闲(请求上料) 51
+ string isFree = "0";
+ // 完成(请求下料) 52
+ string isWorkFinish = "0";
+ // 故障 53
+ string isAlarm = "0";
+ string finalStatus = "0";
+
+ isFree = MesWorkForm.ReadPLC(51, opName).ToString();
+ if (isFree.ToLower() == "true" || isFree.ToLower() == "1")
+ {
+ isFree = "1";
+ }
+
+ isWorkFinish = MesWorkForm.ReadPLC(52, opName).ToString();
+ if (isWorkFinish.ToLower() == "true" || isWorkFinish.ToLower() == "1")
+ {
+ isWorkFinish = "1";
+ }
+ isAlarm = MesWorkForm.ReadPLC(53, opName).ToString();
+ if (isAlarm.ToLower() == "true" || isAlarm.ToLower() == "1")
+ {
+ isAlarm = "1";
+ }
+
+ if (isAlarm == "1")
+ {
+ finalStatus = "4";
+ }
+ else if (isWorkFinish == "1")
+ {
+ finalStatus = "3";
+ }
+ else if (isFree == "1")
+ {
+ finalStatus = "2";
+ }
+ else
+ {
+ finalStatus = "1";
+ }
+ AnalysisMsg.DeviceStatus(opName, Convert.ToInt32(finalStatus));
+ }
+
+ ///
+ /// 设备状态发生变化,处理完成之后,发给管控系统
+ /// 1工作中 2空闲(请求上料) 3完成(请求下料) 4 报警
+ ///
+ public static string SolveDeviceStatus_Read(string opName)
+ {
+ // 空闲(请求上料) 51
+ string isFree = "0";
+ // 完成(请求下料) 52
+ string isWorkFinish = "0";
+ // 故障 53
+ string isAlarm = "0";
+ string finalStatus = "0";
+
+ isFree = MesWorkForm.ReadPLC(51, opName).ToString();
+ if(isFree.ToLower() == "true" || isFree.ToLower() == "1")
+ {
+ isFree = "1";
+ }
+
+ isWorkFinish = MesWorkForm.ReadPLC(52, opName).ToString();
+ if (isWorkFinish.ToLower() == "true" || isWorkFinish.ToLower() == "1")
+ {
+ isWorkFinish = "1";
+ }
+ isAlarm = MesWorkForm.ReadPLC(53, opName).ToString();
+ if (isAlarm.ToLower() == "true" || isAlarm.ToLower() == "1")
+ {
+ isAlarm = "1";
+ }
+
+ if (isAlarm == "1")
+ {
+ finalStatus = "4";
+ }
+ else if (isWorkFinish == "1")
+ {
+ finalStatus = "3";
+ }
+ else if (isFree == "1")
+ {
+ finalStatus = "2";
+ }
+ else
+ {
+ finalStatus = "1";
+ }
+ return finalStatus;
+ }
+
+ ///
+ /// AGV任务号
+ ///
+ public static void SolveAgvTaskNum(string OpName, string PLC_AgvTaskNum)
+ {
+
+ // 77 反馈AGV任务
+ switch (PLC_AgvTaskNum)
+ {
+ // AGV已呼叫成功正在去往上料区
+ case "10":
+ MesWorkForm.WritePLC(77, OpName, "10");
+ break;
+ // AGV已到达上料区_带货,申请进入上料位置
+ case "11":
+ string previousTaskValue = MesWorkForm.ReadPLC(77, OpName).ToString();
+ string AgvCanEnter = MesWorkForm.ReadPLC(50, OpName).ToString();
+ if (previousTaskValue == "10")
+ {
+ // 写任务--满AGV是达上料区
+ MesWorkForm.WritePLC(77, OpName, "1");
+ if (AgvCanEnter == "2")
+ {
+ // 1.调用FSS-接收允许进入或离开 (类型:允许进入)的接口
+ AnalysisMsg.ResponseEnterOrLeave(OpName, 1);
+ MesWorkForm.WritePLC(77, OpName, "20");
+ }
+ }
+ if (previousTaskValue == "30")
+ {
+ // 写任务--空AGV是达上料区
+ MesWorkForm.WritePLC(77, OpName, "3");
+ if (AgvCanEnter == "4")
+ {
+ // 1.调用FSS-接收允许进入或离开 (类型:允许进入)的接口
+ AnalysisMsg.ResponseEnterOrLeave(OpName, 1);
+ MesWorkForm.WritePLC(77, OpName, "40");
+ }
+ }
+ break;
+ // 允许AGV进行上料 --允许进入
+ case "2":
+ string FullAgvIsRequestEnter = MesWorkForm.ReadPLC(77, OpName).ToString();
+ // 需要判断前序任务是否完成-- 满AGV是否到达上料区
+ if (FullAgvIsRequestEnter == "1")
+ {
+ // 1.调用FSS-接收允许进入或离开 (类型:允许进入)的接口
+ AnalysisMsg.ResponseEnterOrLeave(OpName, 1);
+ MesWorkForm.WritePLC(77, OpName, "20");
+ }
+ break;
+ case "21":
+ // AGV 上料完成
+ string previousTaskValue1 = MesWorkForm.ReadPLC(77, OpName).ToString();
+ if(previousTaskValue1 == "20")
+ {
+ MesWorkForm.WritePLC(77, OpName, "2");
+ }
+ if (previousTaskValue1 == "40")
+ {
+ MesWorkForm.WritePLC(77, OpName, "4");
+ }
+
+ break;
+ // PLC呼叫AGV进行下料
+ case "3":
+ // 1.调用FSS-接收IPC下料请求的接口
+ AnalysisMsg.FinishCall(OpName);
+ // 2.反馈任务号:30 AGV已呼叫成功正在去往下料区
+ MesWorkForm.WritePLC(77, OpName, "30");
+ break;
+ // 允许AGV进行下料 --允许进入
+ case "4":
+ string EmptyAgvIsRequestEnter = MesWorkForm.ReadPLC(77, OpName).ToString();
+ // 需要判断前序任务是否完成-- 空AGV是否到达上料区
+ if (EmptyAgvIsRequestEnter == "3")
+ {
+ // 1.调用FSS-接收允许进入或离开 (类型:允许进入)的接口
+ AnalysisMsg.ResponseEnterOrLeave(OpName, 1);
+ MesWorkForm.WritePLC(77, OpName, "40");
+ }
+ break;
+ // 允许AGV离开
+ case "5":
+ string FullOrEmptyAgvIsRequestLeave = MesWorkForm.ReadPLC(77, OpName).ToString();
+ // 需要判断前序任务是否完成-- AGV上料完成或者下料完成
+ if(FullOrEmptyAgvIsRequestLeave == "2" || FullOrEmptyAgvIsRequestLeave == "4")
+ {
+ // 1.调用FSS-接收允许进入或离开 (类型:允许离开)的接口
+ AnalysisMsg.ResponseEnterOrLeave(OpName, 2);
+ MesWorkForm.WritePLC(77, OpName, "50");
+ }
+ break;
+ case "51":
+ // AGV 已离开 反馈任务号:5
+ MesWorkForm.WritePLC(77, OpName, "5");
+ break;
+ }
+ switch (OpName)
+ {
+ case "OP10":
+ if (DAS_OP10.AGV_Task_change != null)
+ {
+ DAS_OP10.AGV_Task_change(PLC_AgvTaskNum);
+ }
+ break;
+ case "OP20":
+ if (DAS_OP20.AGV_Task_change != null)
+ {
+ DAS_OP20.AGV_Task_change(PLC_AgvTaskNum);
+ }
+ break;
+ case "OP30":
+ if (DAS_OP30.AGV_Task_change != null)
+ {
+ DAS_OP30.AGV_Task_change(PLC_AgvTaskNum);
+ }
+ break;
+ case "OP40":
+ if (DAS_OP40.AGV_Task_change != null)
+ {
+ DAS_OP40.AGV_Task_change(PLC_AgvTaskNum);
+ }
+ break;
+ case "OP50":
+ if (DAS_OP50.AGV_Task_change != null)
+ {
+ DAS_OP50.AGV_Task_change(PLC_AgvTaskNum);
+ }
+ break;
+ }
+ }
+
+ ///
+ /// 读取泄漏量的数据
+ ///
+ public static void ReadQualityData_LeakageRate(string opName)
+ {
+ string Pressure = MesWorkForm.ReadPLC(57, opName).ToString();
+ int partPosition = Convert.ToInt32(MesWorkForm.ReadPLC(54, opName));
+ int MeasurePosition = 9;
+ string IsOK = "1";
+ string NgStr = "";
+ //保存质量数
+ QualityData_MobyInsert(partPosition, MeasurePosition, opName, Pressure, IsOK, NgStr, out string errMsg);
+
+ }
+
+ ///
+ /// 拧紧数据的变化
+ ///
+ public static void MeasurePositionChange(string opName, int MeasureStatus)
+ {
+ int MeasurePosition = Convert.ToInt32(MesWorkForm.ReadPLC(55, opName));
+ int partPosition = Convert.ToInt32(MesWorkForm.ReadPLC(54, opName));
+ QualityData_MobyUpdate(partPosition, MeasurePosition, opName, MeasureStatus, out string errMsg);
+ }
+
+ ///
+ /// 读压力的数据
+ ///
+ public static void ReadQualityData_Pressure(string opName)
+ {
+ string LeakageRate1 = MesWorkForm.ReadPLC(57, opName).ToString();
+ string LeakageRate2 = MesWorkForm.ReadPLC(58, opName).ToString();
+ int partPosition = Convert.ToInt32(MesWorkForm.ReadPLC(54, opName));
+ int MeasurePosition = 1;
+ string IsOK1 = "1";
+ string NgStr1 = "";
+ //保存质量数
+ QualityData_MobyInsert(partPosition, MeasurePosition, opName, LeakageRate1, IsOK1, NgStr1, out string errMsg);
+ MeasurePosition = 2;
+ string IsOK2 = "1";
+ string NgStr2 = "";
+ QualityData_MobyInsert(partPosition, MeasurePosition, opName, LeakageRate2, IsOK1, NgStr2, out string errMsg1);
+ }
+ ///
+ /// 质量数据的保存
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static bool QualityData_MobyUpdate(int PartPosition, int MeasurePosition, string opName, int MeasureStatus, out string errorMsg)
+ {
+ string procedureName;
+ procedureName = "测量数据合格_Moby_更新";
+ SqlParameter[] thisParms = new SqlParameter[4];
+ thisParms[0] = new System.Data.SqlClient.SqlParameter("@测量状态", MeasureStatus);
+ thisParms[1] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
+ thisParms[2] = new System.Data.SqlClient.SqlParameter("@测量位置", MeasurePosition);
+ thisParms[3] = new System.Data.SqlClient.SqlParameter("@装配位置", PartPosition);
+ return ExecuteStoredProcedure(procedureName, MesWorkForm.ConnectionString, ref thisParms, out errorMsg);
+ }
+
+ ///
+ /// 质量数据的保存
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static bool QualityData_MobyInsert(int PartPosition, int MeasurePosition, string opName, string TagValue, string IsOK, string NgStr, out string errorMsg)
+ {
+ string procedureName;
+ procedureName = "测量数据合格_Moby_增加";
+ SqlParameter[] thisParms = new SqlParameter[6];
+ thisParms[0] = new System.Data.SqlClient.SqlParameter("@TagValue", TagValue);
+ thisParms[1] = new System.Data.SqlClient.SqlParameter("@IsOK", IsOK);
+ thisParms[2] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
+ thisParms[3] = new System.Data.SqlClient.SqlParameter("@测量位置", MeasurePosition);
+ thisParms[4] = new System.Data.SqlClient.SqlParameter("@装配位置", PartPosition);
+ thisParms[5] = new System.Data.SqlClient.SqlParameter("@不合格原因", NgStr);
+ return ExecuteStoredProcedure(procedureName, MesWorkForm.ConnectionString, ref thisParms, out errorMsg);
+ }
+ ///
+ /// 质量数据的保存
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static bool QualityData_Insert_Final(string opName, out string errorMsg)
+ {
+ string procedureName;
+ procedureName = "测量数据合格_增加";
+ SqlParameter[] thisParms = new SqlParameter[1];
+ thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
+ return ExecuteStoredProcedure(procedureName, MesWorkForm.ConnectionString, ref thisParms, out errorMsg);
+ }
+ ///
+ /// 判断来料是否满托盘
+ ///
+ public static void JudgeMaterialFull(string opName, List product_AssemblyInformation)
+ {
+ int partCount = product_AssemblyInformation.Count;
+ if (publicCore.partCount == partCount)
+ {
+ MesWorkForm.WritePLC(78, opName, true);
+ }
+ else
+ {
+ MesWorkForm.WritePLC(78, opName, false);
+ }
+ MesWorkForm.WritePLC(79, opName, false);
+ MesWorkForm.WritePLC(80, opName, false);
+ MesWorkForm.WritePLC(81, opName, false);
+ MesWorkForm.WritePLC(82, opName, false);
+ foreach (var item in product_AssemblyInformation)
+ {
+ if(item.productPosition == 1)
+ {
+ MesWorkForm.WritePLC(79, opName, true);
+ }
+ if (item.productPosition == 2)
+ {
+ MesWorkForm.WritePLC(80, opName, true);
+ }
+ if (item.productPosition == 3)
+ {
+ MesWorkForm.WritePLC(81, opName, true);
+ }
+ if (item.productPosition == 4)
+ {
+ MesWorkForm.WritePLC(82, opName, true);
+ }
+
+ MesWorkForm.WritePLC(60, opName, false);
+ }
+ }
+ ///
+ /// 是否允许工作
+ ///
+ ///
+ ///
+ public static void FixedAllow(string opName, object isAllowWork)
+ {
+ MesWorkForm.WritePLC(85, opName, isAllowWork);
+ }
+
+ ///
+ /// 测量数据_测量信息_初始化查询
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static bool GetQualityInfo_Init(string opName, int PartPosition, out DataTable dt, out string errorMsg)
+ {
+ string procedureName;
+ procedureName = "测量数据_测量信息_初始化查询";
+ SqlParameter[] thisParms = new SqlParameter[2];
+ thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
+ thisParms[1] = new System.Data.SqlClient.SqlParameter("@装配位置", PartPosition);
+ return ExecuteStoredProcedure(procedureName, MesWorkForm.ConnectionString, ref thisParms, out dt, out errorMsg);
+ }
+
+ public static bool GetProductInfo_Init(string opName, int PartPosition, out DataTable dt, out string errorMsg)
+ {
+ string procedureName;
+ procedureName = "装配信息_初始化查询";
+ SqlParameter[] thisParms = new SqlParameter[2];
+ thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
+ thisParms[1] = new System.Data.SqlClient.SqlParameter("@装配位置", PartPosition);
+ return ExecuteStoredProcedure(procedureName, MesWorkForm.ConnectionString, ref thisParms, out dt, out errorMsg);
+ }
+ public static void LogInsert(string opName, string logType, string log)
+ {
+ string procedureName;
+ procedureName = "系统_操作日志_新增";
+ SqlParameter[] thisParms = new SqlParameter[5];
+ thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
+ thisParms[1] = new System.Data.SqlClient.SqlParameter("@日志类型", logType);
+ thisParms[2] = new System.Data.SqlClient.SqlParameter("@日志内容", log);
+ thisParms[3] = new System.Data.SqlClient.SqlParameter("@操作日期", DateTime.Now.ToString("yyyy-MM-dd"));
+ thisParms[4] = new System.Data.SqlClient.SqlParameter("@操作时间", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"));
+ ExecuteStoredProcedure(procedureName, MesWorkForm.ConnectionString, ref thisParms, out string errorMsg);
+ }
+ #region 数据库操作
+ ///
+ /// 提供通用的调用存储过程的方法(需要返回查询的记录集的调用)
+ ///
+ /// 存储过程名称
+ /// 连库字符串
+ /// 存储过程参数数组
+ /// 存储过程里面返回的记录集
+ /// 错误信息
+ /// 布尔值,true表示该执行成功,false表示执行失败
+ public static bool ExecuteStoredProcedure(string procedureName, string connectionString, ref SqlParameter[] sqlParameters, out DataSet ds, out string errorMessage)
+ {
+ bool result = false;
+ errorMessage = "";
+ ds = new DataSet();
+ if (connectionString.Length < 1) return false;
+ using (SqlConnection conn = new SqlConnection(connectionString))
+ {
+ try
+ {
+ //if (!SqlServerConnectionStatus) return false;
+ conn.Open();
+ using (SqlDataAdapter dsCommand = new SqlDataAdapter())
+ {
+ dsCommand.SelectCommand = new SqlCommand(procedureName, conn);
+ dsCommand.SelectCommand.CommandType = CommandType.StoredProcedure;
+ for (int i = 0; i < sqlParameters.Length; i++)
+ {
+ dsCommand.SelectCommand.Parameters.Add(sqlParameters[i]);
+ }
+ dsCommand.Fill(ds);
+ }
+ // SqlServerConnectionStatus = true;
+ result = true;
+ }
+ catch (Exception e)
+ {
+ errorMessage = e.ToString();
+ // TestConnection();
+ //ApplicationLog.WriteLog(e, "\r\nExecuteStoredProcedure\r\n存储过程:\r\n" + procedureName + "\r\n连接字符串:\r\n" + connectionString);
+ }
+ finally
+ {
+ if (conn.State == ConnectionState.Open)
+ conn.Close();
+ }
+ }
+ return result;
+ }
+ ///
+ /// 提供通用的调用存储过程的方法(需要返回查询的记录集的调用)
+ ///
+ /// 存储过程名称
+ /// 连库字符串
+ /// 存储过程参数数组
+ /// 存储过程里面返回的记录表
+ /// 错误信息
+ /// 布尔值,true表示该执行成功,false表示执行失败
+ public static bool ExecuteStoredProcedure(string procedureName, string connectionString, ref SqlParameter[] sqlParameters, out DataTable dt, out string errorMessage)
+ {
+ bool result = false;
+ errorMessage = "";
+ dt = new DataTable();
+ DataSet ds = new DataSet();
+ if (connectionString.Length < 1) return false;
+ using (SqlConnection conn = new SqlConnection(connectionString))
+ {
+ try
+ {
+ //if (!SqlServerConnectionStatus) return false;
+ conn.Open();
+ using (SqlDataAdapter dsCommand = new SqlDataAdapter())
+ {
+ dsCommand.SelectCommand = new SqlCommand(procedureName, conn);
+ dsCommand.SelectCommand.CommandType = CommandType.StoredProcedure;
+ for (int i = 0; i < sqlParameters.Length; i++)
+ {
+ dsCommand.SelectCommand.Parameters.Add(sqlParameters[i]);
+ }
+ dsCommand.Fill(ds);
+ }
+ if (ds.Tables.Count > 0)
+ {
+ dt = ds.Tables[0];
+ }
+ result = true;
+ }
+ catch (Exception e)
+ {
+ errorMessage = e.ToString();
+ // TestConnection();
+ //ApplicationLog.WriteLog(e, "\r\nExecuteStoredProcedure\r\n存储过程:\r\n" + procedureName + "\r\n连接字符串:\r\n" + connectionString);
+ }
+ finally
+ {
+ if (conn.State == ConnectionState.Open)
+ conn.Close();
+ }
+ }
+ return result;
+ }
+ ///
+ /// 提供通用的调用存储过程的方法(需要返回查询的记录集的调用)
+ ///
+ /// 存储过程名称
+ /// 连库字符串
+ /// 存储过程参数数组
+ /// 存储过程里面返回的记录表
+ /// 错误信息
+ /// 布尔值,true表示该执行成功,false表示执行失败
+ public static bool ExecuteStoredProcedure(string procedureName, string connectionString, ref SqlParameter[] sqlParameters, out string errorMessage)
+ {
+ bool result = false;
+ errorMessage = "";
+ DataSet ds = new DataSet();
+ if (connectionString.Length < 1) return false;
+ using (SqlConnection conn = new SqlConnection(connectionString))
+ {
+ try
+ {
+ //if (!SqlServerConnectionStatus) return false;
+ conn.Open();
+ using (SqlDataAdapter dsCommand = new SqlDataAdapter())
+ {
+ dsCommand.SelectCommand = new SqlCommand(procedureName, conn);
+ dsCommand.SelectCommand.CommandType = CommandType.StoredProcedure;
+ for (int i = 0; i < sqlParameters.Length; i++)
+ {
+ dsCommand.SelectCommand.Parameters.Add(sqlParameters[i]);
+ }
+ dsCommand.Fill(ds);
+ }
+ result = true;
+ }
+ catch (Exception e)
+ {
+ errorMessage = e.ToString();
+ // TestConnection();
+ //ApplicationLog.WriteLog(e, "\r\nExecuteStoredProcedure\r\n存储过程:\r\n" + procedureName + "\r\n连接字符串:\r\n" + connectionString);
+ }
+ finally
+ {
+ if (conn.State == ConnectionState.Open)
+ conn.Close();
+ }
+ }
+ return result;
+ }
+ #endregion
+ }
+
+
+
+}
diff --git a/CCYQ_JieFang/Properties/AssemblyInfo.cs b/CCYQ_JieFang/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..58ca676
--- /dev/null
+++ b/CCYQ_JieFang/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("MesWork")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("MesWork")]
+[assembly: AssemblyCopyright("Copyright © 2019")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 将 ComVisible 设置为 false 会使此程序集中的类型
+//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
+[assembly: Guid("a8d0b4ef-e223-4b9a-b2d9-0156b7b8b073")]
+
+// 程序集的版本信息由下列四个值组成:
+//
+// 主版本
+// 次版本
+// 生成号
+// 修订号
+//
+//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
+//通过使用 "*",如下所示:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/CCYQ_JieFang/Properties/Resources.Designer.cs b/CCYQ_JieFang/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..fa471fa
--- /dev/null
+++ b/CCYQ_JieFang/Properties/Resources.Designer.cs
@@ -0,0 +1,193 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+// 运行时版本:4.0.30319.42000
+//
+// 对此文件的更改可能会导致不正确的行为,并且如果
+// 重新生成代码,这些更改将会丢失。
+//
+//------------------------------------------------------------------------------
+
+namespace CCYQ_JieFang.Properties {
+ using System;
+
+
+ ///
+ /// 一个强类型的资源类,用于查找本地化的字符串等。
+ ///
+ // 此类是由 StronglyTypedResourceBuilder
+ // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+ // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+ // (以 /str 作为命令选项),或重新生成 VS 项目。
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// 返回此类使用的缓存的 ResourceManager 实例。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CCYQ_JieFang.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// 重写当前线程的 CurrentUICulture 属性,对
+ /// 使用此强类型资源类的所有资源查找执行重写。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap _01_微型减速机 {
+ get {
+ object obj = ResourceManager.GetObject("01-微型减速机", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap _02_涡喷发动机 {
+ get {
+ object obj = ResourceManager.GetObject("02 涡喷发动机", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap _03_卫星模型 {
+ get {
+ object obj = ResourceManager.GetObject("03-卫星模型", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap _04_微型减速机 {
+ get {
+ object obj = ResourceManager.GetObject("04-微型减速机", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap _05_微型减速机 {
+ get {
+ object obj = ResourceManager.GetObject("05-微型减速机", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap green {
+ get {
+ object obj = ResourceManager.GetObject("green", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap red {
+ get {
+ object obj = ResourceManager.GetObject("red", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap StartWorkCircle {
+ get {
+ object obj = ResourceManager.GetObject("StartWorkCircle", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap 下压 {
+ get {
+ object obj = ResourceManager.GetObject("下压", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap 下压OK {
+ get {
+ object obj = ResourceManager.GetObject("下压OK", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap 关闭系统 {
+ get {
+ object obj = ResourceManager.GetObject("关闭系统", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap 断开连接 {
+ get {
+ object obj = ResourceManager.GetObject("断开连接", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap 连接 {
+ get {
+ object obj = ResourceManager.GetObject("连接", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/CCYQ_JieFang/Properties/Resources.resx b/CCYQ_JieFang/Properties/Resources.resx
new file mode 100644
index 0000000..1eb9f44
--- /dev/null
+++ b/CCYQ_JieFang/Properties/Resources.resx
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+ ..\icon\关闭系统.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\icon\04-微型减速机.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\icon\StartWorkCircle.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\icon\green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\icon\断开连接.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\icon\01-微型减速机.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\icon\red.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\icon\03-卫星模型.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\icon\连接.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\icon\02 涡喷发动机.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\icon\05-微型减速机.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\icon\下压.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\icon\下压OK.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/CCYQ_JieFang/Properties/Settings.Designer.cs b/CCYQ_JieFang/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..79761ff
--- /dev/null
+++ b/CCYQ_JieFang/Properties/Settings.Designer.cs
@@ -0,0 +1,26 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+// 运行时版本:4.0.30319.42000
+//
+// 对此文件的更改可能会导致不正确的行为,并且如果
+// 重新生成代码,这些更改将会丢失。
+//
+//------------------------------------------------------------------------------
+
+namespace CCYQ_JieFang.Properties {
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.7.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default {
+ get {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/CCYQ_JieFang/Properties/Settings.settings b/CCYQ_JieFang/Properties/Settings.settings
new file mode 100644
index 0000000..3964565
--- /dev/null
+++ b/CCYQ_JieFang/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/CCYQ_JieFang/app.manifest b/CCYQ_JieFang/app.manifest
new file mode 100644
index 0000000..38b13d4
--- /dev/null
+++ b/CCYQ_JieFang/app.manifest
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/CCYQ_JieFang/icon/01-微型减速机.png b/CCYQ_JieFang/icon/01-微型减速机.png
new file mode 100644
index 0000000000000000000000000000000000000000..ed99ed06c09b4b5622957dd607c71f47238b6ca4
GIT binary patch
literal 88158
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