From 9ef59dfa34487efd3082e88b30e525adb83c2a36 Mon Sep 17 00:00:00 2001 From: CaesarBao <445720029@qq.com> Date: Wed, 1 Jan 2025 16:39:23 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=B6=82=E5=B8=83=E6=94=BE=E5=8D=B7MES?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=202.=E6=B6=82=E5=B8=83=E6=94=BE=E5=8D=B7=E5=BF=83?= =?UTF-8?q?=E8=B7=B3D9828=E5=86=99=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MaterialTraceability.Business/Impl/TBSignalReadBusiness.cs | 4 ++-- MaterialTraceability.Business/PlcBusiness.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MaterialTraceability.Business/Impl/TBSignalReadBusiness.cs b/MaterialTraceability.Business/Impl/TBSignalReadBusiness.cs index 8a5967d..62164e7 100644 --- a/MaterialTraceability.Business/Impl/TBSignalReadBusiness.cs +++ b/MaterialTraceability.Business/Impl/TBSignalReadBusiness.cs @@ -315,8 +315,8 @@ namespace MaterialTraceability.Business.Impl operationRevision = inifile.IniReadValue("MiFirstOperationForsfcServiceServiceParam", "operationRevision"), resource = appConfig.resource, user = inifile.IniReadValue("MiFirstOperationForsfcServiceServiceParam", "user"), - activity = inifile.IniReadValue("MiFirstOperationForsfcServiceServiceParam", "activity"), - modeProcessSfc = inifile.IniReadValue("MiFirstOperationForsfcServiceServiceParam", "modeProcessSfc"), + activity = "", + modeProcessSfc = "MODE_START_SFC", loginUser = "", password = "", }; diff --git a/MaterialTraceability.Business/PlcBusiness.cs b/MaterialTraceability.Business/PlcBusiness.cs index 2b00fe0..4119832 100644 --- a/MaterialTraceability.Business/PlcBusiness.cs +++ b/MaterialTraceability.Business/PlcBusiness.cs @@ -249,6 +249,7 @@ namespace MaterialTraceability.Business lock (string.Empty) { //写入心跳 + plcInstance.writeInt32ByAddress("D9828", 1); plcInstance.writeInt32ByAddress(appConfig.TbAddress.心跳, 1); LogHelper.PlcLog("RFID系统写入心跳D9628"); Thread.Sleep(200);