From 4f51453cfb98b54bb837121f1d9c7ff481994f3d Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Sat, 22 Oct 2022 14:48:17 +0800 Subject: [PATCH] =?UTF-8?q?PLC=E8=B0=83=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zzjee/md/controller/MdBinController.java | 8 ++++++++ .../java/com/zzjee/plc/controller/WmsPlcController.java | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/zzjee/md/controller/MdBinController.java b/src/main/java/com/zzjee/md/controller/MdBinController.java index 73f30f17..6ce52d05 100644 --- a/src/main/java/com/zzjee/md/controller/MdBinController.java +++ b/src/main/java/com/zzjee/md/controller/MdBinController.java @@ -422,20 +422,28 @@ public class MdBinController extends BaseController { xstepNum = Integer.toString(xStep); ystepNum = Integer.toString(yStep); if(y0.equals("01")){ + System.out.println("1,runx:"+xstepNum); wmsPlcController.run("","runx",xstepNum); }else{ + System.out.println("2,runy:"+ystepNum); + wmsPlcController.run("","runy",ystepNum); } if(xStep>0 && yStep>0){ hxstepNum = "1"; + System.out.println("3,change:"+hxstepNum); + wmsPlcController.run("","change",hxstepNum); } if(y0.equals("01")){ + System.out.println("4,runy:"+ystepNum); wmsPlcController.run("","runy",ystepNum); }else{ + System.out.println("5,runx:"+xstepNum); + wmsPlcController.run("","runx",xstepNum); } diff --git a/src/main/java/com/zzjee/plc/controller/WmsPlcController.java b/src/main/java/com/zzjee/plc/controller/WmsPlcController.java index d724d6f8..334f1a3d 100644 --- a/src/main/java/com/zzjee/plc/controller/WmsPlcController.java +++ b/src/main/java/com/zzjee/plc/controller/WmsPlcController.java @@ -180,6 +180,8 @@ public class WmsPlcController extends BaseController { public void run(String id,String comNo,String stepNum){ + + System.out.println("id:"+id+";comNo:"+comNo+";stepNum:"+stepNum); if(stepNum.equals("0")){ return; } @@ -254,7 +256,7 @@ public class WmsPlcController extends BaseController { long end = System.currentTimeMillis(); long times = end - start; - org.jeecgframework.core.util.LogUtil.info(wmsPlc.getComRemark()+"总耗时" + times + "毫秒"+wmsPlc.getComCons()); + org.jeecgframework.core.util.LogUtil.info(wmsPlc.getComRemark()+"总耗时" + times + "毫秒"+comCons); }