From 0cbe01e1241f9af562d86dc79b5f0949ada81dba Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期三, 22 十月 2025 09:20:08 +0800
Subject: [PATCH] 1
---
代码管理/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/RgvOperationService.cs | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/RgvOperationService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/RgvOperationService.cs"
index 0ac55b2..f8edb2f 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/RgvOperationService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/RgvOperationService.cs"
@@ -91,6 +91,41 @@
return webResponse.OK();
}
+ public WebResponseContent WriteRGVmokuai(SaveModel saveModel)
+ {
+ WebResponseContent webResponse = new WebResponseContent();
+ string DeviceName = saveModel.DelKeys[0].ToString(); //宸ヤ綔绫诲瀷
+ string DBType = saveModel.DelKeys[1].ToString(); //璁惧鍚嶇О
+ short WriteRGVvalue = short.Parse(saveModel.DelKeys[2].ToString()); //鍐欏叆鍊�
+ IDevice? device = Storage.Devices.FirstOrDefault(x => x.DeviceCode == DeviceName);
+ SpeStackerCrane Commonstacker = (SpeStackerCrane)device;
+ switch (DBType)
+ {
+ case "1": // 宸ヤ綔妯″紡锛�0鎵嬪姩銆�1鑷姩锛�
+ //鑾峰彇瀹炰緥
+ DeviceProDTO? RGV_DWorkingmode = GetRGVDeviceProDTO(Commonstacker, DeviceName, "RGV_DWorkingmode", "DeviceCommand"); //浠诲姟绫诲瀷
+ //绗竴姝ュ啓鍏ヤ换鍔�
+ RgvSetLine(Commonstacker, RGV_DWorkingmode.DeviceProAddress, WriteRGVvalue);
+ break;
+ case "2": //澶嶄綅鎿嶄綔锛�0涓嶅浣嶃��1澶嶄綅锛�
+ DeviceProDTO? RGV_Resetoperation = GetRGVDeviceProDTO(Commonstacker, DeviceName, "RGV_Resetoperation", "DeviceCommand"); //浠诲姟绫诲瀷
+ //绗竴姝ュ啓鍏ヤ换鍔�
+ RgvSetLine(Commonstacker, RGV_Resetoperation.DeviceProAddress, WriteRGVvalue);
+ break;
+ case "3": //浠诲姟纭瀹屾垚锛�0涓嶇‘瀹氾紝1纭畾锛�
+ DeviceProDTO? RGV_taskcomplete = GetRGVDeviceProDTO(Commonstacker, DeviceName, "RGV_taskcomplete", "RGV_taskcomplete"); //浠诲姟绫诲瀷
+ //绗竴姝ュ啓鍏ヤ换鍔�
+ RgvSetLine(Commonstacker, RGV_taskcomplete.DeviceProAddress, WriteRGVvalue);
+ break;
+ case "4": //浠诲姟绫诲瀷(4娓呴櫎)
+ DeviceProDTO? RGV_RGVtasktypet = GetRGVDeviceProDTO(Commonstacker, DeviceName, "RGV_RGVtasktypet", "DeviceCommand"); //浠诲姟绫诲瀷
+ //绗竴姝ュ啓鍏ヤ换鍔�
+ RgvSetLine(Commonstacker, RGV_RGVtasktypet.DeviceProAddress, WriteRGVvalue);
+ break;
+ }
+ return webResponse.OK();
+ }
+
/// <summary>
/// 鎵嬪姩绉诲姩RGV
/// </summary>
--
Gitblit v1.9.3