| | |
| | | siemensNet.Write("DB24.10.1", false); |
| | | |
| | | command.setRgvNo(slave.getId()); |
| | | short[] array = new short[4]; |
| | | array[0] = command.getSourceStaNo1(); |
| | | array[1] = command.getDestinationStaNo1(); |
| | | array[2] = command.getTaskMode1();//任务模式 |
| | | array[3] = command.getTaskNo1(); |
| | | short[] array = new short[5]; |
| | | array[0] = command.getRgvNo().shortValue(); |
| | | array[1] = command.getSourceStaNo1(); |
| | | array[2] = command.getDestinationStaNo1(); |
| | | array[3] = command.getTaskMode1();//任务模式 |
| | | array[4] = command.getTaskNo1(); |
| | | |
| | | OperateResult result = siemensNet.Write("DB24.2", array); |
| | | OperateResult result = siemensNet.Write("DB24.0", array); |
| | | |
| | | if (command.getAckFinish1().equals((short)0)) { |
| | | Thread.sleep(100L); |