From ec78b532e0ac6d2e6e92ad0a7fb75dab42f06e70 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周五, 22 11月 2024 13:06:58 +0800 Subject: [PATCH] 2222 --- 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