From 41aa40ed725f18ffa7b4706e0f94c88b7f44ef5e Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周六, 30 11月 2024 06:28:13 +0800
Subject: [PATCH] 111
---
SDA/iWareSda/PLCService/Default/Siemens_HslCommunicationService.cs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/SDA/iWareSda/PLCService/Default/Siemens_HslCommunicationService.cs b/SDA/iWareSda/PLCService/Default/Siemens_HslCommunicationService.cs
index 90684fb..9b51075 100644
--- a/SDA/iWareSda/PLCService/Default/Siemens_HslCommunicationService.cs
+++ b/SDA/iWareSda/PLCService/Default/Siemens_HslCommunicationService.cs
@@ -144,6 +144,10 @@
public override MessageModel WriteValuePoint(string fullAddress, object value, object proObj)
{
+ if (string.IsNullOrEmpty(fullAddress))
+ {
+ return new MessageModel() { result = false, resMsg = "鍦板潃涓虹┖" };
+ }
var arr = fullAddress.Split(WareSdaStruct.PLCDBADDRESS_SEPARATE);
string dbNumber = arr[0];
string offset = arr[1];
--
Gitblit v1.9.3