Browse Source

提交

炒锅机器人_一拖多
liup 4 months ago
parent
commit
5923c21820
1 changed files with 26 additions and 7 deletions
  1. +26
    -7
      app/src/main/java/com/bonait/bnframework/newui/dialog/control/WokControlDialog.java

+ 26
- 7
app/src/main/java/com/bonait/bnframework/newui/dialog/control/WokControlDialog.java View File

@@ -579,18 +579,37 @@ public class WokControlDialog extends DialogFragment {
NewToastUtil.getInstance().showToastError("输入格式出错!");
return;
}
ModbusCenter.WritePlc(deviceNum,"清洗抽水量", val, null);
try {
Thread.sleep(500);//等待写入成功
} catch (InterruptedException e) {

}
switch (deviceNum){
case 1:
ExecuteTheRecipe.BottomClick(shengdu?"深度清洗":"一般清洗");
//复位反馈信号
ExecuteTheRecipe.WritePLC("炒锅清洗反馈", false, null);
ExecuteTheRecipe.WritePLC("清洗抽水量", val, null);
try {
Thread.sleep(500);//等待写入成功
} catch (InterruptedException e) {

}
if(shengdu){
ExecuteTheRecipe.BottomClick("深度清洗");
}else {
ExecuteTheRecipe.BottomClick1("炒锅清洗");
}
break;
case 2:
ExecuteTheRecipe2.BottomClick(shengdu?"深度清洗":"一般清洗");
//复位反馈信号
ExecuteTheRecipe2.WritePLC("炒锅清洗反馈", false, null);
ExecuteTheRecipe2.WritePLC("清洗抽水量", val, null);
try {
Thread.sleep(500);//等待写入成功
} catch (InterruptedException e) {

}
if(shengdu){
ExecuteTheRecipe2.BottomClick("深度清洗");
}else {
ExecuteTheRecipe2.BottomClick1("炒锅清洗");
}
break;
case 3:
break;


Loading…
Cancel
Save