|  |  | 
 |  |  | package com.zy.core.model.protocol; | 
 |  |  |  | 
 |  |  | import com.core.common.SpringUtils; | 
 |  |  | import com.zy.asrs.entity.BasLiftErr; | 
 |  |  | import com.zy.asrs.service.BasLiftErrService; | 
 |  |  | import com.zy.core.enums.LiftProtocolStatusType; | 
 |  |  | import com.zy.core.model.command.LiftAssignCommand; | 
 |  |  | import lombok.Data; | 
 |  |  | 
 |  |  |      * 设备故障 | 
 |  |  |      */ | 
 |  |  |     private Boolean deviceError; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 故障码 | 
 |  |  |      */ | 
 |  |  |     private Short errorCode; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 任务地址 | 
 |  |  | 
 |  |  |         return res; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public String getErrCode$() { | 
 |  |  |         if (this.errorCode == null) { | 
 |  |  |             return ""; | 
 |  |  |         } | 
 |  |  |         BasLiftErrService basLiftErrService = SpringUtils.getBean(BasLiftErrService.class); | 
 |  |  |         BasLiftErr basLiftErr = basLiftErrService.selectById(this.errorCode); | 
 |  |  |         if (basLiftErr == null) { | 
 |  |  |             return String.valueOf(this.errorCode); | 
 |  |  |         } | 
 |  |  |         return basLiftErr.getErrName(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } | 
 
 |  |  | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |             Thread.sleep(100); | 
 |  |  |             //获取提升机异常数据 | 
 |  |  |             OperateResultExOne<byte[]> result3 = siemensS7Net.Read("DB82.22.0", (short) 2); | 
 |  |  |             if (result3.IsSuccess) { | 
 |  |  |                 liftProtocol.setErrorCode(siemensS7Net.getByteTransform().TransInt16(result3.Content, 0));//错误码 | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |         } catch (Exception e) { | 
 |  |  |             OutputQueue.LIFT.offer(MessageFormat.format("【{0}】提升机plc状态信息失败 ===>> [id:{1}] [ip:{2}] [port:{3}]", DateUtils.convert(new Date()), slave.getId(), slave.getIp(), slave.getPort())); | 
 |  |  |         } | 
 
 |  |  | 
 |  |  |                         <th>右超限</th> | 
 |  |  |                         <th>超高</th> | 
 |  |  |                         <th>超重</th> | 
 |  |  |                         <th>异常信息</th> | 
 |  |  |                     </tr> | 
 |  |  |                     </thead> | 
 |  |  |                     <tbody> | 
 |  |  | 
 |  |  |                         setVal(tr.children("td").eq(11), table[i-1].rightOverrun$); | 
 |  |  |                         setVal(tr.children("td").eq(12), table[i-1].overHeight$); | 
 |  |  |                         setVal(tr.children("td").eq(13), table[i-1].overWeight$); | 
 |  |  |                         setVal(tr.children("td").eq(14), table[i-1].errCode$); | 
 |  |  |                     } | 
 |  |  |                 } else if (res.code === 403){ | 
 |  |  |                     window.location.href = baseUrl+"/login"; |