|  |  |  | 
|---|
|  |  |  | if (crnProtocol.modeType == CrnModeType.AUTO && crnProtocol.getTaskNo().equals(wrkMast.getWrkNo().shortValue()) | 
|---|
|  |  |  | && crnProtocol.statusType == CrnStatusType.WAITING | 
|---|
|  |  |  | && crnProtocol.forkPosType == CrnForkPosType.HOME) { | 
|---|
|  |  |  | log.error("堆垛机等待确认!!! [工作号:{}]", crnProtocol.getTaskNo()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 命令下发区 -------------------------------------------------------------------------- | 
|---|
|  |  |  | if (crnProtocol.getCrnNo() !=5){ | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //  状态:等待确认 并且  任务完成位 = 1 | 
|---|
|  |  |  | if (crnProtocol.statusType == CrnStatusType.WAITING && crnProtocol.getTaskNo() != 0) { | 
|---|
|  |  |  | log.error("堆垛机处于等待确认且任务完成状态。堆垛机号={},工作号={}", crn.getId(), crnProtocol.getTaskNo()); | 
|---|
|  |  |  | if (crnProtocol.getTaskNo() == 9999) { | 
|---|
|  |  |  | // 堆垛机复位 | 
|---|
|  |  |  | crnThread.setResetFlag(true); | 
|---|
|  |  |  | 
|---|
|  |  |  | if (inStn.getSourcePlcId() == 4 || inStn.getSourcePlcId() ==5){ //灌装站需要获取输送线物料代码 | 
|---|
|  |  |  | matnr = staProtocol.getMatnr(); | 
|---|
|  |  |  | batch = staProtocol.getBatch(); | 
|---|
|  |  |  | anfme = staProtocol.getAnfme().shortValue(); | 
|---|
|  |  |  | anfme2 = staProtocol.getAnfme2().shortValue(); | 
|---|
|  |  |  | weight = staProtocol.getWeight1(); | 
|---|
|  |  |  | weight2 = staProtocol.getWeight2(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | devpThread.setPakMk(inStn.getSourceStaNo(),false); | 
|---|