|
|
@@ -287,16 +287,19 @@ public class add_yijian_controlextends extends LinearLayout { |
|
|
|
ExecuteTheRecipe.WritePLC("手自切换", false, null); |
|
|
|
for (BPA_SILOS item:siloslist) |
|
|
|
{ |
|
|
|
int time=item.bValue<=0?5:item.bValue;//默认5秒 |
|
|
|
ExecuteTheRecipe.WritePLC("手动控制"+item.num,true,null); |
|
|
|
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() { |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
ExecuteTheRecipe.WritePLC("手动控制"+item.num,false,null); |
|
|
|
mHandler.sendEmptyMessage(0); |
|
|
|
i++; |
|
|
|
} |
|
|
|
}, time * 1000); |
|
|
|
if(!item.name.equals("果糖仓") && !item.name.equals("粉料仓") ) |
|
|
|
{ |
|
|
|
int time=item.bValue<=0?5:item.bValue;//默认5秒 |
|
|
|
ExecuteTheRecipe.WritePLC("手动控制"+item.num,true,null); |
|
|
|
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() { |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
ExecuteTheRecipe.WritePLC("手动控制"+item.num,false,null); |
|
|
|
mHandler.sendEmptyMessage(0); |
|
|
|
i++; |
|
|
|
} |
|
|
|
}, time * 1000); |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
case 2://一键加满 |
|
|
|