| | |
| | | import com.example.springboot.entity.Glass; |
| | | import com.example.springboot.entity.GlassInfo; |
| | | import com.example.springboot.entity.MeasureSetting; |
| | | import com.example.springboot.entity.OutTask; |
| | | import com.example.springboot.entity.Out_slice; |
| | | import com.example.springboot.entity.Queue; |
| | | import com.example.springboot.entity.StorageCage; |
| | |
| | | double width = Double.valueOf(plcmes.getPlcParameter("width").getValue());// |
| | | // 宽 |
| | | double height = Double.valueOf(plcmes.getPlcParameter("Height").getValue());// 高 |
| | | if ("0".equals(PlcRequest) && istest) { |
| | | S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(), |
| | | (short) 0); |
| | | // if ("0".equals(PlcRequest) && "1".equals(MesSend)|| "0".equals(PlcRequest) && "4".equals(MesSend)) { |
| | | // S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(),(short) 0); |
| | | // } |
| | | // if ("2".equals(PlcRequest) && "1".equals(MesSend)) { |
| | | // S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(),(short) 0); |
| | | // } |
| | | if ("4".equals(PlcRequest)) { |
| | | S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(),(short) 0); |
| | | System.out.println("收四归零"); |
| | | } |
| | | |
| | | // System.out.println("PlcRequest:" + PlcRequest+"MesSend:" + MesSend+"width:" + |
| | | // width+"height:" + height); |
| | | |
| | |
| | | S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(), |
| | | (short) 1); |
| | | |
| | | } else if (istest) { |
| | | // 重新测量 |
| | | } |
| | | else if (istest) { |
| | | // 匹配失败 |
| | | S7control.getinstance().WriteWord(plcmes.getPlcParameter("MESToGaStatus").getAddress(), |
| | | (short) 4); |
| | | |
| | |
| | | List<GlassInfo> glassInfoFlowCard = glassInfoMapper.selectOrderState(1); |
| | | jsonObject.append("glassInfoFlowCard", glassInfoFlowCard); |
| | | |
| | | Queue LastQueue = QueueMapper.selectLastQueue(); |
| | | Queue LastQueue = QueueMapper.selectLastQueue2(); |
| | | if (LastQueue == null) { |
| | | Queue nullQueue = new Queue(); |
| | | nullQueue.setglassId(""); |
| | |
| | | jsonObject.append("LastQueue", nullQueue); |
| | | } else { |
| | | if (LastQueue.getstate() < 1) { |
| | | LastQueue.setglasswidth(0); |
| | | LastQueue.setglassheight(0); |
| | | LastQueue.setglasswidth(LastQueue.getglasswidthmm()); |
| | | LastQueue.setglassheight(LastQueue.getglassheightmm()); |
| | | } |
| | | jsonObject.append("LastQueue", LastQueue); |
| | | } |
| | |
| | | List<StorageTask> StoragTaskeTaskOut = storageCageService.SelectStorageTask(1); |
| | | jsonObject.append("StoragTaskeTaskOut", StoragTaskeTaskOut); |
| | | |
| | | // 查询当前出片队列 |
| | | List<Map> OutTask = storageCageService.SelectOutTask(); |
| | | jsonObject.append("OutTask", OutTask); |
| | | |
| | | // 查询最后6次出片记录 |
| | | List<Map> OutLog = storageCageService.SelectOutLog(); |
| | | jsonObject.append("OutLog", OutLog); |
| | | |
| | | |
| | | // 查询所有玻璃厚度和膜系 |
| | | List<GlassInfo> SelectMeasure = storageCageService.SelectMeasure(); |
| | | jsonObject.append("SelectMeasure", SelectMeasure); |