| | |
| | | do { |
| | | try{ |
| | | if(!result.IsSuccess ){ |
| | | if (!resetFlag){ |
| | | // if (!resetFlag){ |
| | | News.error("写入堆垛机plc数据失败,重新下发任务 写入直接失败 ===>> [id:{}],{},[写入次数:{}]", slave.getId(), JSON.toJSON(command),writeCount1); |
| | | result = siemensNet.Write("DB100.0", array); |
| | | } |
| | | // } |
| | | Thread.sleep(100); |
| | | writeCount1++; |
| | | continue; |
| | |
| | | }catch (Exception e){ |
| | | |
| | | } |
| | | if (!resetFlag){ |
| | | // if (!resetFlag){ |
| | | News.error("写入堆垛机plc数据失败,重新下发任务 回读不一致 ===>> [id:{}],{},[写入次数:{}]", slave.getId(), JSON.toJSON(command),writeCount1); |
| | | result = siemensNet.Write("DB100.0", array); |
| | | } |
| | | // } |
| | | writeCount1++; |
| | | continue; |
| | | } else { |