| | |
| | | .in(BigStorageCageDetails::getState, Const.GLASS_STATE_IN_ALL)); |
| | | if (count > 0) { |
| | | log.info("直通片台存在玻璃,结束本次进片"); |
| | | ProductAlarmInfo alarmInfo = new ProductAlarmInfo(); |
| | | alarmInfo.setState(Const.LOAD_RAW_GLASS_NEW); |
| | | alarmInfo.setAlarmModule(ALARM_MODULE); |
| | | alarmInfo.setAlarmType(ALARM_TYPE); |
| | | alarmInfo.setAlarmCode(ALARM_CODE_OVER); |
| | | alarmInfo.setAlarmMessage(""); |
| | | productAlarmInfoService.save(alarmInfo); |
| | | // ProductAlarmInfo alarmInfo = new ProductAlarmInfo(); |
| | | // alarmInfo.setState(Const.LOAD_RAW_GLASS_NEW); |
| | | // alarmInfo.setAlarmModule(ALARM_MODULE); |
| | | // alarmInfo.setAlarmType(ALARM_TYPE); |
| | | // alarmInfo.setAlarmCode(ALARM_CODE_OVER); |
| | | // alarmInfo.setAlarmMessage(""); |
| | | // productAlarmInfoService.save(alarmInfo); |
| | | //向plc发送报警:直通片台存在玻璃,无法继续直通 |
| | | // miloService.writeToOpcWord(generateReadWriteEntity("DLP1A.DLP1A.alarmSignal", 64)); |
| | | s7DataDLPOne = new S7DataDLPOne(); |
| | |
| | | // if (!THROUGH_SLOT.equals(list.get(0).getSlot())) { |
| | | // 临时解决方案:出片时考虑玻璃碰撞,改为一片一出 |
| | | // 界面关闭调度开关 !Const.BIG_STORAGE_BEFORE_DISPATCH.equals(taskType) |
| | | if (list.get(0).getSlot() >= 500 && list.get(0).getThickness() > 8) { |
| | | if (list.get(0).getSlot() >= 500 && list.get(0).getThickness() > 7) { |
| | | outGlassList = list.subList(0, 1); |
| | | } else { |
| | | List<String> glassIdList = bigStorageGlassRelationInfoService.queryNeedOutGlassId( |