| | |
| | | |
| | | private Boolean upcontactErr = false; //顶升电机接触器故障 |
| | | |
| | | private Boolean pushTheEnvelopeErr = false; // 提升上极限 |
| | | |
| | | private Boolean raiseTheLowerLimitErr = false; // 提升下极限 |
| | | |
| | | private Boolean leftProtectionTriggersErr = false; // 左保护触发 |
| | | |
| | | private Boolean rightProtectionTriggersErr = false; // 右保护触发 |
| | | |
| | | private Boolean gratingBlockingErr = false; // 光栅阻挡 |
| | | |
| | | private Short agvStartPick; //允许取货 |
| | | private Short agvStartPlace; //允许放货 |
| | |
| | | |
| | | private List<Integer> alarm; |
| | | |
| | | // 获取故障描述 |
| | | public String getFaultDescription(){ |
| | | String faultDescription = ""; |
| | | if (breakerErr) { |
| | | faultDescription = "电路保护器断开"; |
| | | } else if(infraredErr) { |
| | | faultDescription = "光电异常(检查托盘是否卡住)"; |
| | | }else if(outTimeErr) { |
| | | faultDescription = "运行超时(检查托盘是否卡住)"; |
| | | }else if(seizeSeatErr) { |
| | | faultDescription = "占位超时(检查AGV是否长时间阻挡光电且无交互信号)"; |
| | | }else if(wrkYgoodsN) { |
| | | faultDescription = "有任务无货故障(AGV取货离开后长时间没有收到AGV离开信号)"; |
| | | }else if(inverterErr) { |
| | | faultDescription = "变频器故障:"; |
| | | }else if(contactErr) { |
| | | faultDescription = "接触器故障"; |
| | | }else if(upcontactErr) { |
| | | faultDescription = "顶升电机接触器故障"; |
| | | } else if(pushTheEnvelopeErr) { |
| | | faultDescription = "提升上极限"; |
| | | } else if(raiseTheLowerLimitErr) { |
| | | faultDescription = "提升下极限"; |
| | | } else if(leftProtectionTriggersErr) { |
| | | faultDescription = "保护光电触发(检查AGV放货位置)"; |
| | | } else if(rightProtectionTriggersErr) { |
| | | faultDescription = "右保护触发"; |
| | | } else if(gratingBlockingErr) { |
| | | faultDescription = "光栅阻挡"; |
| | | } |
| | | return faultDescription; |
| | | } |
| | | |
| | | public List<Integer> getAlarm() { |
| | | List<Integer> alarm = new ArrayList<>(); |