| | |
| | | lift1.put("write", new DbData("DB103.0", null));//写入数据 |
| | | lift1.put("writeConfirm", new DbData("DB103.8", null));//写入确认数据 |
| | | lift1.put("confirm", new DbData("DB103.10", null));//确认命令 |
| | | lift1.put("switchIOMode", new DbData("DB103.12", null));//出入库模式 |
| | | |
| | | HashMap<String, Object> lift2 = new HashMap<>(); |
| | | lift2.put("status", new DbData("DB104.0", (short) 16));//提升机数据 |
| | |
| | | lift2.put("write", new DbData("DB106.0", null));//写入数据 |
| | | lift2.put("writeConfirm", new DbData("DB106.8", null));//写入确认数据 |
| | | lift2.put("confirm", new DbData("DB106.10", null));//确认命令 |
| | | lift2.put("switchIOMode", new DbData("DB106.12", null));//出入库模式 |
| | | |
| | | addressList.add(lift1); |
| | | addressList.add(lift2); |
| | |
| | | |
| | | @Override |
| | | public boolean switchIOMode(ForkLiftIoModeType type) { |
| | | OperateResult result = siemensS7Net.Write("DB103.12", type.id.shortValue()); |
| | | OperateResult result = this.masterThread.write(this.slave.getId(), "switchIOMode", type.id.shortValue()); |
| | | if (result.IsSuccess) { |
| | | return true; |
| | | } |