From b579fe0be3bd02ec39d612a62b23901fb852c173 Mon Sep 17 00:00:00 2001 From: Junjie <xjj@123> Date: 星期六, 16 八月 2025 09:02:12 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/MainProcess.java | 33 ++++++++++++++++++--------------- 1 files changed, 18 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/zy/core/MainProcess.java b/src/main/java/com/zy/core/MainProcess.java index e328fc6..c5e9015 100644 --- a/src/main/java/com/zy/core/MainProcess.java +++ b/src/main/java/com/zy/core/MainProcess.java @@ -5,11 +5,9 @@ import lombok.Data; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import javax.annotation.PreDestroy; -import java.util.ArrayList; /** * WCS涓绘祦绋� @@ -53,6 +51,8 @@ Thread.sleep(500); // 鎷f枡銆佸苟鏉裤�佺洏鐐瑰啀鍏ュ簱 mainService.stnToCrnStnPick(3); + // 鎷f枡銆佸苟鏉裤�佺洏鐐瑰啀鍏ュ簱-鏉$爜 + mainService.stnToCrnStnPickBarcode(33); // 鍑哄簱 ===>> 鍫嗗灈鏈哄嚭搴撶珯鍒板嚭搴撶珯 mainService.crnStnToOutStn(4); // 鍏ュ嚭搴� ===>> 鍫嗗灈鏈哄叆鍑哄簱浣滀笟涓嬪彂 @@ -63,26 +63,29 @@ mainService.storeFinished(6); // 鍫嗗灈鏈哄紓甯镐俊鎭褰� mainService.recCrnErr(7); - // 鍏ュ簱 ===>> 绌烘爤鏉垮垵濮嬪寲鍏ュ簱,鍙夎溅鍏ュ簱绔欐斁璐� + + + // 绌烘墭鐩樺叆搴�-绔嬪簱 ===>> 绌烘爤鏉垮垵濮嬪寲鍏ュ簱,鍙夎溅鍏ュ簱绔欐斁璐� mainService.storeEmptyPlt(8); + // 绌烘墭鐩樺叆搴�-浜х嚎 + mainService.storeEmptyPltLine(13); + // 鍑哄簱 ===>> 宸ヤ綔妗d俊鎭啓鍏ed鏄剧ず鍣� mainService.ledExecute(9); // 鍏朵粬 ===>> LED鏄剧ず鍣ㄥ浣嶏紝鏄剧ず榛樿淇℃伅 mainService.ledReset(10); - mainService.outOfDevp(11); + // RGV ===>> 鎵ц瀵筊GV鎿嶄綔 + mainService.rgvExecute(11); + // RGV ===>> 鎵ц瀵筊GV宸ヤ綔妗g殑瀹屾垚鎿嶄綔 + mainService.rgvFinished(12); + // RGV ===>> 鎵ц瀵筊GV宸ヤ綔妗g殑瀹屾垚鎿嶄綔 绔欏埌绔� + mainService.rgvFinished2(14); - //绌烘墭鐩樿嚜鍔ㄥ嚭搴� -// mainService.autoEmptyOut(); -// //绌烘墭鐩樿嚜鍔ㄥ叆搴� -// mainService.autoEmptyIn(); - - // 鍏朵粬 ===>> 鍏ュ嚭搴撴ā寮忓垏鎹� -// i++; -// if (i > 1) { -// mainService.ioConvert(); -// i = 0; -// } + //鍫嗗灈鏈烘棤浠诲姟涓ゅ垎閽燂紝鍥炲叆搴撳彛寰呮満 + mainService.crnMove(); + //鍫嗗灈鏈烘湁鍏ュ簱浠诲姟鏃讹紝鍥炲叆搴撳彛寰呮満 + mainService.crnMoveByInTask(); } catch (Exception e) { e.printStackTrace(); -- Gitblit v1.9.1