@@ -536,6 +536,7 @@ public class ExecuteTheRecipe { | |||||
if (ConfigName.getInstance().WhetherManualFeedingSuspended.contains("是")) { | if (ConfigName.getInstance().WhetherManualFeedingSuspended.contains("是")) { | ||||
ExecuteTheRecipe.WritePLC("暂停开关", true, null); | ExecuteTheRecipe.WritePLC("暂停开关", true, null); | ||||
} | } | ||||
ModbusTcpServer.get().WriteBool("M52.1", (boolean) true, null); | |||||
final boolean[] IsComplete = {false}; | final boolean[] IsComplete = {false}; | ||||
Activity activity = findActivity(context); | Activity activity = findActivity(context); | ||||
@@ -567,6 +568,7 @@ public class ExecuteTheRecipe { | |||||
if (ConfigName.getInstance().WhetherManualFeedingSuspended.contains("是")) { | if (ConfigName.getInstance().WhetherManualFeedingSuspended.contains("是")) { | ||||
ExecuteTheRecipe.WritePLC("暂停开关", false, null); | ExecuteTheRecipe.WritePLC("暂停开关", false, null); | ||||
} | } | ||||
ModbusTcpServer.get().WriteBool("M52.1", (boolean) false, null); | |||||
ExecuteTheRecipe.showlog("手动已确认投入主料:" + name + "-继续流程"); | ExecuteTheRecipe.showlog("手动已确认投入主料:" + name + "-继续流程"); | ||||
} else { | } else { | ||||
@@ -367,6 +367,7 @@ public class BottomNavigationNewActivity extends BaseActivity { | |||||
ExecuteTheRecipe.showlog("--------------------------------------"); | ExecuteTheRecipe.showlog("--------------------------------------"); | ||||
ExecuteTheRecipe.showlog("开始烹饪菜谱【"+goods.name+"】"); | ExecuteTheRecipe.showlog("开始烹饪菜谱【"+goods.name+"】"); | ||||
ModbusTcpServer.get().WriteBool("M52.0", (boolean) true, null); | |||||
try { | try { | ||||
//获取工艺 | //获取工艺 | ||||
@@ -432,6 +433,7 @@ public class BottomNavigationNewActivity extends BaseActivity { | |||||
} | } | ||||
}); | }); | ||||
ExecuteTheRecipe.showlog("--------------------------------------"); | ExecuteTheRecipe.showlog("--------------------------------------"); | ||||
ModbusTcpServer.get().WriteBool("M52.0", (boolean) false, null); | |||||
} | } | ||||
} | } | ||||
@@ -574,6 +574,7 @@ public class Home1Fragment extends BaseFragment { | |||||
long startTime = System.currentTimeMillis(); //起始时间 | long startTime = System.currentTimeMillis(); //起始时间 | ||||
ExecuteTheRecipe.showlog("--------------------------------------"); | ExecuteTheRecipe.showlog("--------------------------------------"); | ||||
ExecuteTheRecipe.showlog("开始烹饪菜谱【"+good.name+"】"); | ExecuteTheRecipe.showlog("开始烹饪菜谱【"+good.name+"】"); | ||||
ModbusTcpServer.get().WriteBool("M52.0", (boolean) true, null); | |||||
try { | try { | ||||
//获取工艺 | //获取工艺 | ||||
@@ -633,6 +634,7 @@ public class Home1Fragment extends BaseFragment { | |||||
}); | }); | ||||
} | } | ||||
ExecuteTheRecipe.showlog("--------------------------------------"); | ExecuteTheRecipe.showlog("--------------------------------------"); | ||||
ModbusTcpServer.get().WriteBool("M52.0", (boolean) false, null); | |||||
} | } | ||||
} | } | ||||