| | |
| | | |
| | | private Boolean upcontactErr = false; //顶升电机接触器故障 |
| | | |
| | | // 电路保护器断开 |
| | | private boolean errOther1; |
| | | |
| | | // 光电异常 |
| | | private boolean errOther2; |
| | | |
| | | // 运行超时 |
| | | private boolean errOther3; |
| | | |
| | | // 占位超时 |
| | | private boolean errOther4; |
| | | |
| | | // 有任务无货故障 |
| | | private boolean errOther5; |
| | | |
| | | // 变频器故障 |
| | | private boolean errOther6; |
| | | |
| | | // 接触器故障 |
| | | private boolean errOther7; |
| | | |
| | | // 顶升电机接触器故障 |
| | | private boolean errOther8; |
| | | |
| | | //故障信号-------------------------------------------------------- |
| | | |
| | | // 故障读取锁定标记 |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | |
| | | public int getErrorDev$(){ |
| | | if (errOther1){ |
| | | return 1; |
| | | } |
| | | if (errOther2){ |
| | | return 2; |
| | | } |
| | | if (errOther3){ |
| | | return 3; |
| | | } |
| | | if (errOther4){ |
| | | return 4; |
| | | } |
| | | if (errOther5){ |
| | | return 5; |
| | | } |
| | | if (errOther6){ |
| | | return 6; |
| | | } |
| | | if (errOther7){ |
| | | return 7; |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | public java.util.List<java.util.Map<String, Object>> getExceptions() { |
| | | java.util.List<java.util.Map<String, Object>> list = new java.util.ArrayList<>(); |
| | | if (errOther1) list.add(createException(0, "电路保护器断开")); |
| | | if (errOther2) list.add(createException(1, "光电异常")); |
| | | if (errOther3) list.add(createException(2, "运行超时")); |
| | | if (errOther4) list.add(createException(3, "占位超时")); |
| | | if (errOther5) list.add(createException(4, "有任务无货故障")); |
| | | if (errOther6) list.add(createException(5, "变频器故障")); |
| | | if (errOther7) list.add(createException(6, "接触器故障")); |
| | | if (errOther8) list.add(createException(7, "顶升电机接触器故障")); |
| | | return list; |
| | | } |
| | | |
| | | private java.util.Map<String, Object> createException(int code, String msg) { |
| | | java.util.Map<String, Object> map = new java.util.HashMap<>(); |
| | | map.put("code", code); |
| | | map.put("msg", msg); |
| | | return map; |
| | | } |
| | | // public Integer getNearbySta() { |
| | | // if (getNearbySta == null) return 0; |
| | | // |