|
|
@@ -201,11 +201,18 @@ public class MakeGoodFragment extends BaseFragment { |
|
|
|
StatusOrMakeGoodThread(); |
|
|
|
ExecuteTheRecipe.DeviceMonitor(); |
|
|
|
}; |
|
|
|
// StatusOrMakeGoodThread(); |
|
|
|
CommHelper.get().Connect(); |
|
|
|
|
|
|
|
DashboardInit(); |
|
|
|
|
|
|
|
NotifyProp(); |
|
|
|
|
|
|
|
// ExecuteTheRecipe.getDeviceData.EstopFaultNotify.setValue(true); |
|
|
|
// ExecuteTheRecipe.getDeviceData.OilPumpFault.setValue(true); |
|
|
|
// ExecuteTheRecipe.getDeviceData.MixingFailure.setValue(true); |
|
|
|
// ExecuteTheRecipe.getDeviceData.IgnitionMalfunction.setValue(true); |
|
|
|
// ExecuteTheRecipe.getDeviceData.HighTemperatureAlarm.setValue(true); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@@ -460,6 +467,9 @@ public class MakeGoodFragment extends BaseFragment { |
|
|
|
new Thread(()->{ |
|
|
|
while ( ExecuteTheRecipe.IsStart.getValue()&&good!=null){ |
|
|
|
try { |
|
|
|
// int temp = new Random().nextInt(2); |
|
|
|
// ExecuteTheRecipe.getDeviceData.CurrentTemperature=80+temp; |
|
|
|
// ExecuteTheRecipe.getDeviceData.CurrentWeight=78+(new Random().nextBoolean()?temp*-1:temp); |
|
|
|
DeviceDataDb.get().AddProduction(new BPA_PRODUCTION_DATA(good.name,ExecuteTheRecipe.getDeviceData.CurrentTemperature,ExecuteTheRecipe.getDeviceData.CurrentWeight)); |
|
|
|
Thread.sleep(1000); |
|
|
|
}catch (InterruptedException ex) { |
|
|
|