From 4dfe8ece141f05a163cf7d290b6fe4c520d89909 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期五, 31 十月 2025 17:28:33 +0800
Subject: [PATCH] 1
---
项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/Siemens/SiemensS7Communicator.cs | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/Siemens/SiemensS7Communicator.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/Siemens/SiemensS7Communicator.cs"
index 7f60bfc..c40e063 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/Siemens/SiemensS7Communicator.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/Siemens/SiemensS7Communicator.cs"
@@ -181,7 +181,8 @@
catch (Exception ex)
{
LogNet.WriteException(Name, ex.Message, ex);
- throw new CommunicationException(ex.Message, CommunicationErrorType.WriteFailed, innerException: ex);
+ //throw new CommunicationException(ex.Message, CommunicationErrorType.WriteFailed, innerException: ex);
+ return false;
}
finally
{
@@ -445,6 +446,12 @@
return GetResult(Write(address, value), address, value);
}
+ public override bool WriteNoRead<T>(string address, T value)
+ {
+ OperateResult operate= Write(address, value);
+ return operate.IsSuccess;
+ }
+
/// <summary>
/// 鍚慞LC鍐欏叆鏁版嵁銆�
/// </summary>
--
Gitblit v1.9.3