| | |
| | | if (null == staProtocol) { |
| | | return; |
| | | } |
| | | ArrayList<Integer> staNos = getStaNo(); |
| | | int index = staNos.indexOf(staProtocol.getSiteId()); |
| | | if(staProtocol.getSiteId() == 307){ |
| | | index = 0; |
| | | |
| | | int index = 0; |
| | | if(staProtocol.getSiteId() == 402){ |
| | | index = 1; |
| | | } |
| | | OperateResult writeResult1 = siemensS7Net.Write("DB100.500" + index, 1); // 扫码器触发 |
| | | OperateResult writeResult1 = siemensS7Net.Write("DB100.500." + index, true); // 扫码器触发 |
| | | if (!writeResult1.IsSuccess) { |
| | | |
| | | OutputQueue.DEVP.offer(MessageFormat.format("【{0}】写入输送线站点数据失败。输送线plc编号={1},站点数据={2}", slave.getId(), JSON.toJSON(staProtocol))); |