From 7357691a222745887ca1c336d8c458964a0d3ab8 Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期五, 19 四月 2024 11:18:21 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/HangZhouMes --- hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/DownGlassCacheLogic.java | 22 ++++------------------ 1 files changed, 4 insertions(+), 18 deletions(-) diff --git a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/DownGlassCacheLogic.java b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/DownGlassCacheLogic.java index 132d1fe..382665d 100644 --- a/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/DownGlassCacheLogic.java +++ b/hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/service/DownGlassCacheLogic.java @@ -35,20 +35,7 @@ -// public void identify(String Number) { -// //鏌ヨ浠诲姟 -// PlcParameterObject plcmes = PLCAutoMes.PlcMesObject; -// S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(), (short) 1); -// String s = S7control.getinstance().ReadWord("DB14.26", 1).get(0) + ""; -// boolean isexist = isExist(Number); -// if (isexist) { -// //瀛樺湪閫昏緫 1.娣诲姞淇℃伅 2.鍥炲PLC瀛樺湪 -// //S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(),(short) 1); -// } else { -// //涓嶅瓨鍦ㄩ�昏緫 1.鍥炲PLC涓嶅瓨鍦� -// //S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(),(short) 2); -// } -// } + public void process() { String result = S7control.getinstance().ReadWord("DB14.0", 1).get(0) + ""; @@ -124,9 +111,9 @@ String G13 = S7control.getinstance().ReadWord("DB14.58", 1).get(0) + ""; PlcParameterObject plcmes = PLCAutoMes.PlcMesObject; - List<DownStorageCageDetails> list = selectInfo.SelectCacheOut(1, 5); - List<DownStorageCageDetails> list2 = selectInfo.SelectCacheOut(6, 10); - List<DownStorageCageDetails> list3 = selectInfo.SelectCacheOut(1, 10); + List<DownStorageCageDetails> list = downStorageCageService.getCacheOut(1, 5); + List<DownStorageCageDetails> list2 = downStorageCageService.getCacheOut(6, 10); + List<DownStorageCageDetails> list3 = downStorageCageService.getCacheOut(1, 10); // 浼樺厛 瓒呭嚭灏哄浼樺厛浜哄伐鍑虹墖 浜哄伐澶勭悊 if (!list3.isEmpty()) { DownStorageCageDetails item3 = list3.get(0); @@ -183,7 +170,6 @@ // 杩斿洖缁撴灉 return false; } - /** -- Gitblit v1.8.0