|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 更新入出库模式 | 
|---|
|  |  |  | private void updateIoMode() throws InterruptedException { | 
|---|
|  |  |  | if (this.ioModeOf2F != IoModeType.NONE) { | 
|---|
|  |  |  | if (slave.getId()==1 && this.ioModeOf2F != IoModeType.NONE) { | 
|---|
|  |  |  | if (!siemensS7Net.Write("DB100.180", this.ioModeOf2F.id).IsSuccess) { | 
|---|
|  |  |  | OutputQueue.DEVP.offer(MessageFormat.format("【{0}】写入输送线2F入出库模式失败。输送线plc编号={1}", slave.getId())); | 
|---|
|  |  |  | log.error("写入输送线2F入出库模式失败。输送线plc编号={}", slave.getId()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (this.ioModeOf4F != IoModeType.NONE) { | 
|---|
|  |  |  | if (slave.getId()==2 && this.ioModeOf4F != IoModeType.NONE) { | 
|---|
|  |  |  | if (!siemensS7Net.Write("DB100.170", this.ioModeOf4F.id).IsSuccess) { | 
|---|
|  |  |  | OutputQueue.DEVP.offer(MessageFormat.format("【{0}】写入输送线4F入出库模式失败。输送线plc编号={1}", slave.getId())); | 
|---|
|  |  |  | log.error("写入输送线4F入出库模式失败。输送线plc编号={}", slave.getId()); | 
|---|