| | |
| | | |
| | | |
| | | //一号线请求 |
| | | // if (ExportTOMES1.equals("1") == true&&B01State.equals("0")==true) { |
| | | // //将运输车状态改为忙碌 |
| | | // S7control.getinstance().WriteWord(plcmes.getPlcParameter("B01report").getAddress(), (short) 1); |
| | | // spianService.selectout(1); |
| | | // } |
| | | if (ExportTOMES1.equals("1") == true&&B01State.equals("0")==true) { |
| | | //将运输车状态改为忙碌 |
| | | S7control.getinstance().WriteWord(plcmes.getPlcParameter("B01report").getAddress(), (short) 1); |
| | | spianService.selectout(1); |
| | | } |
| | | // //二线号请求时 |
| | | // if (ExportToMES2.equals("1") == true&&B01State.equals("0")==true) { |
| | | // //将运输车状态改为忙碌 |
| | | // S7control.getinstance().WriteWord(plcmes.getPlcParameter("B01report").getAddress(), (short) 1); |
| | | // spianService.selectout(2); |
| | | // } |
| | | if (ExportToMES2.equals("1") == true&&B01State.equals("0")==true) { |
| | | //将运输车状态改为忙碌 |
| | | S7control.getinstance().WriteWord(plcmes.getPlcParameter("B01report").getAddress(), (short) 1); |
| | | spianService.selectout(2); |
| | | } |
| | | //进片请求时 |
| | | if(PLCToMES!=null && B01State!=null){ |
| | | if(PLCToMES.equals("1")==true&&B01State.equals("0")==true){ |