| | |
| | | OperateResultExOne<byte[]> commandReadResult = siemensNet.Read("DB100.0", (short) 2); |
| | | if (commandReadResult.IsSuccess) { |
| | | short commandRead = siemensNet.getByteTransform().TransInt16(commandReadResult.Content, 0); |
| | | if (commandRead == 1) { |
| | | if (commandRead == 1 || commandRead == 2) { |
| | | Thread.sleep(500); |
| | | }else { |
| | | commandResult = true; |
| | | } |
| | | } |
| | | } while (writeAck < 5); |
| | | }while (commandResult); |
| | | // while (writeAck < 5); |
| | | |
| | | if (!commandResult) { |
| | | if (commandResult) { |
| | | response.setMessage("堆垛机命令下发[id:{}] >>>>> {}" + command.getCrnNo() + "任务状态位异常"); |
| | | return response; |
| | | } |