PLC调度
parent
0f023698bc
commit
4f51453cfb
|
@ -422,20 +422,28 @@ public class MdBinController extends BaseController {
|
||||||
xstepNum = Integer.toString(xStep);
|
xstepNum = Integer.toString(xStep);
|
||||||
ystepNum = Integer.toString(yStep);
|
ystepNum = Integer.toString(yStep);
|
||||||
if(y0.equals("01")){
|
if(y0.equals("01")){
|
||||||
|
System.out.println("1,runx:"+xstepNum);
|
||||||
wmsPlcController.run("","runx",xstepNum);
|
wmsPlcController.run("","runx",xstepNum);
|
||||||
}else{
|
}else{
|
||||||
|
System.out.println("2,runy:"+ystepNum);
|
||||||
|
|
||||||
wmsPlcController.run("","runy",ystepNum);
|
wmsPlcController.run("","runy",ystepNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(xStep>0 && yStep>0){
|
if(xStep>0 && yStep>0){
|
||||||
hxstepNum = "1";
|
hxstepNum = "1";
|
||||||
|
System.out.println("3,change:"+hxstepNum);
|
||||||
|
|
||||||
wmsPlcController.run("","change",hxstepNum);
|
wmsPlcController.run("","change",hxstepNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(y0.equals("01")){
|
if(y0.equals("01")){
|
||||||
|
System.out.println("4,runy:"+ystepNum);
|
||||||
wmsPlcController.run("","runy",ystepNum);
|
wmsPlcController.run("","runy",ystepNum);
|
||||||
}else{
|
}else{
|
||||||
|
System.out.println("5,runx:"+xstepNum);
|
||||||
|
|
||||||
wmsPlcController.run("","runx",xstepNum);
|
wmsPlcController.run("","runx",xstepNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -180,6 +180,8 @@ public class WmsPlcController extends BaseController {
|
||||||
|
|
||||||
public void run(String id,String comNo,String stepNum){
|
public void run(String id,String comNo,String stepNum){
|
||||||
|
|
||||||
|
|
||||||
|
System.out.println("id:"+id+";comNo:"+comNo+";stepNum:"+stepNum);
|
||||||
if(stepNum.equals("0")){
|
if(stepNum.equals("0")){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -254,7 +256,7 @@ public class WmsPlcController extends BaseController {
|
||||||
|
|
||||||
long end = System.currentTimeMillis();
|
long end = System.currentTimeMillis();
|
||||||
long times = end - start;
|
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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue