| | |
| | | command.setDestinationPosZ((short)0); // 目标库位层 |
| | | write(command); |
| | | break; |
| | | case 4: |
| | | siemensNet.Write("DB100.20", (short)task.getData()); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | |
| | | */ |
| | | private void readStatus(){ |
| | | try { |
| | | OperateResultExOne<byte[]> result = siemensNet.Read("DB101.0", (short) 70); |
| | | OperateResultExOne<byte[]> result = siemensNet.Read("DB101.0", (short) 50); |
| | | if (result.IsSuccess) { |
| | | if (null == crnProtocol) { |
| | | crnProtocol = new CrnProtocol(); |
| | |
| | | |
| | | if (command.getAckFinish() == 0) { |
| | | short commandFinish = 1; |
| | | result = siemensNet.Write("DB100.22", commandFinish); |
| | | result = siemensNet.Write("DB100.18", commandFinish); |
| | | } |
| | | |
| | | try { |