From b5dd6918e906b194f99b88d11ce343f457af19c3 Mon Sep 17 00:00:00 2001 From: z8018 <1282578289@qq.com> Date: 星期六, 05 四月 2025 13:44:55 +0800 Subject: [PATCH] 1 --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs" index dc71f27..7982e18 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs" @@ -73,13 +73,15 @@ conveyorLine.Communicator.Write("DB7.3022", (int)toplc); //鍐欏叆鍘诲悜 conveyorLine.Communicator.Write("DB7.3028.0", (bool)true); //鍐欏叆鍙嶉 WriteLog.Write_Log("鎵爜鏋�", "鎵爜绔欏彴", "鎴愬姛", new { 淇℃伅 = $"鏉$爜锛歿barcodeNumber}锛屽啓鍏ュ幓鍚憑toplc}" }); - if (conveyorLine.Communicator.Read<bool>("DB7.2986")) + if (conveyorLine.Communicator.Read<bool>("DB7.3116")) { conveyorLine.Communicator.Write("DB7.3022", (int)0); //娓呴櫎鍐欏叆鍘诲悜 conveyorLine.Communicator.Write("DB7.3028.0", (bool)false); //娓呴櫎鍐欏叆鍙嶉 WriteLog.Write_Log("鎵爜鏋�", "鎵爜绔欏彴", "鎴愬姛", new { 淇℃伅 = $"鏉$爜锛歿barcodeNumber}锛屾竻闄よ緭閫佺嚎鍙嶉鎴愬姛" }); //璋冨彇鍙嶉MES鎵樼洏鏉$爜 - if (_OrderDetailsService.ToMesBarc(int.Parse(barcodeNumber))) + + var datast= _OrderDetailsService.ToMesBarc(int.Parse(barcodeNumber)); + if (datast.code==1) { WriteLog.Write_Log("ToMes", "鏉$爜鍙嶉Mes", "鎴愬姛", new { 淇℃伅 = $"鏉$爜锛歿barcodeNumber}锛屽弽棣堟垚鍔�" }); } -- Gitblit v1.9.3