| | |
| | | } |
| | | array[1] = command.getSourcePosZ(); |
| | | array[2] = command.getSourcePosY(); |
| | | array[3] = command.getSourcePosX(); |
| | | if (command.getSourcePosX()==(short)3){ |
| | | array[3] = (short)1; |
| | | }else if (command.getSourcePosX()==(short)4){ |
| | | array[3] = (short)2; |
| | | }else { |
| | | array[3] = command.getSourcePosX(); |
| | | } |
| | | array[4] = command.getDestinationPosZ(); |
| | | array[5] = command.getDestinationPosY(); |
| | | array[6] = command.getDestinationPosX(); |
| | | if (command.getDestinationPosX()==(short)3){ |
| | | array[6] = (short)1; |
| | | }else if (command.getDestinationPosX()==(short)4){ |
| | | array[6] = (short)2; |
| | | }else { |
| | | array[6] = command.getDestinationPosX(); |
| | | } |
| | | array[7] = command.getSourceStaNo(); |
| | | array[8] = command.getDestinationStaNo(); |
| | | // 作业信息 |
| | |
| | | array2[1] = command.getAckFinish(); |
| | | OperateResult result1 = siemensNet.Write("DB10.24", array2); |
| | | |
| | | // //起始排、目标排 |
| | | // short[] array3 = new short[2]; |
| | | // array3[0] = command.getSourcePosX(); |
| | | // array3[1] = command.getDestinationPosX(); |
| | | // OperateResult result3 = siemensNet.Write("DB10.24", array3); |
| | | |
| | | // 结束位 |
| | | if (command.getAckFinish() == 0) { |
| | | OperateResult result2 = siemensNet.Write("DB10.28.1", true); |