| | |
| | | write5(command2); |
| | | break; |
| | | // 双工位同时作业 |
| | | case 7: |
| | | case 9: |
| | | write9((CrnCommandParam) task.getData()); |
| | | break; |
| | | default: |
| | |
| | | return false; |
| | | } |
| | | command.setCrnNo(slave.getId()); |
| | | short[] array = new short[20]; |
| | | short[] array = new short[22]; |
| | | array[0] = command.getAckFinish(); |
| | | array[1] = command.getTaskNo(); |
| | | array[2] = command.getTaskMode(); |
| | |
| | | array[17] = command.getDestinationPosY2(); |
| | | array[18] = command.getDestinationPosZ2(); |
| | | array[19] = command.getCommand(); |
| | | array[20] = (short)1; |
| | | array[21] = (short)1; |
| | | OperateResult result18 = siemensNet.Write("DB100.18", (short)0); |
| | | OperateResult result38 = siemensNet.Write("DB100.38", (short)0); |
| | | OperateResult result = siemensNet.Write("DB100.0", array); |