| | |
| | | } |
| | | ArrayList<Integer> staNos = getStaNo(); |
| | | int index = staNos.indexOf(staProtocol.getSiteId()); |
| | | if (staProtocol.getAgvTypeSign()==0){ //0取货 |
| | | if (staProtocol.getAgvTypeSign()==0 || staProtocol.getAgvTypeSign()==2 ){ //0取货 |
| | | switch (staProtocol.getSiteId()){ |
| | | case 100: |
| | | index=32; |
| | |
| | | //任务下发次数 |
| | | int writeCount = 0; |
| | | do { |
| | | write = siemensS7Net.Write("DB102." + index, (short) 1); // 任务完成 |
| | | short textWrite = 1;// 任务完成 |
| | | if (staProtocol.getAgvTypeSign()>1){ |
| | | textWrite = 0;// 任务复位 |
| | | } |
| | | write = siemensS7Net.Write("DB102." + index, textWrite); |
| | | if(write.IsSuccess){ |
| | | writeCount=6; |
| | | }else { |