| | |
| | | } else { |
| | | array[0] = 0; |
| | | } |
| | | array[1] = command.getSourcePosZ(); |
| | | array[2] = command.getSourcePosY(); |
| | | array[1] = command.getTaskNo(); |
| | | array[2] = command.getTaskMode(); |
| | | |
| | | |
| | | array[3] = command.getDestinationPosZ(); |
| | | if (rowOne.contains(command.getSourcePosX())){ |
| | | array[3] = (short)1; |
| | | array[4] = (short)1; |
| | | }else if (rowTwo.contains(command.getSourcePosX())){ |
| | | array[3] = (short)2; |
| | | array[4] = (short)2; |
| | | }else if (rowThree.contains(command.getSourcePosX())){ |
| | | array[3] = (short)3; |
| | | array[4] = (short)3; |
| | | }else if (rowFour.contains(command.getSourcePosX())){ |
| | | array[3] = (short)4; |
| | | array[4] = (short)4; |
| | | }else { |
| | | array[3] = command.getSourcePosX(); |
| | | array[4] = command.getSourcePosX(); |
| | | } |
| | | array[4] = command.getDestinationPosZ(); |
| | | array[5] = command.getDestinationPosY(); |
| | | |
| | | array[6] = command.getDestinationPosZ(); |
| | | if (rowOne.contains(command.getDestinationPosX())){ |
| | | array[6] = (short)1; |
| | | array[7] = (short)1; |
| | | }else if (rowTwo.contains(command.getDestinationPosX())){ |
| | | array[6] = (short)2; |
| | | array[7] = (short)2; |
| | | }else if (rowThree.contains(command.getDestinationPosX())){ |
| | | array[6] = (short)3; |
| | | array[7] = (short)3; |
| | | }else if (rowFour.contains(command.getDestinationPosX())){ |
| | | array[6] = (short)4; |
| | | array[7] = (short)4; |
| | | }else { |
| | | array[6] = command.getDestinationPosX(); |
| | | array[7] = command.getDestinationPosX(); |
| | | } |
| | | array[7] = command.getSourceStaNo(); |
| | | array[8] = command.getDestinationStaNo(); |
| | | array[8] = command.getDestinationPosY(); |
| | | |
| | | // 作业信息 |
| | | OperateResult result = siemensNet.Write("DB100.0", array); |