|
|
@@ -395,29 +395,33 @@ public class JiaoYan_lsjy_fragment extends BaseFragment { |
|
|
|
new Thread(new Runnable() { |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
while (ConfigName.getInstance().PlcIsConnect) { |
|
|
|
while(true) |
|
|
|
{ |
|
|
|
try { |
|
|
|
Object obj= ExecuteTheRecipe.ReadPLC("称当前重量"); |
|
|
|
Object obj1= ExecuteTheRecipe.ReadPLC("出料口检测"); |
|
|
|
|
|
|
|
if(obj!=null) |
|
|
|
if(ConfigName.getInstance().PlcIsConnect && !ExecuteTheRecipe.IsMakeGood) |
|
|
|
{ |
|
|
|
zhongliangxianshi=(int)obj;// |
|
|
|
mHandler.sendEmptyMessage(0); |
|
|
|
} |
|
|
|
Object obj= ExecuteTheRecipe.ReadPLC("称当前重量"); |
|
|
|
Object obj1= ExecuteTheRecipe.ReadPLC("出料口检测"); |
|
|
|
|
|
|
|
if(obj!=null) |
|
|
|
{ |
|
|
|
zhongliangxianshi=(int)obj;// |
|
|
|
mHandler.sendEmptyMessage(0); |
|
|
|
} |
|
|
|
|
|
|
|
clk=obj1==null?false:(boolean) obj1; |
|
|
|
clk=obj1==null?false:(boolean) obj1; |
|
|
|
|
|
|
|
if (!ConfigName.getInstance().versionSelectionEnum.equals("配料吧台")) |
|
|
|
{ |
|
|
|
Object obj2= ExecuteTheRecipe.ReadPLC("果糖左温度"); |
|
|
|
Object obj3= ExecuteTheRecipe.ReadPLC("果糖右温度"); |
|
|
|
gt1wd=obj2==null?0:(int)obj2; |
|
|
|
gt2wd=obj3==null?0:(int)obj3; |
|
|
|
if (!ConfigName.getInstance().versionSelectionEnum.equals("配料吧台")) |
|
|
|
{ |
|
|
|
Object obj2= ExecuteTheRecipe.ReadPLC("果糖左温度"); |
|
|
|
Object obj3= ExecuteTheRecipe.ReadPLC("果糖右温度"); |
|
|
|
gt1wd=obj2==null?0:(int)obj2; |
|
|
|
gt2wd=obj3==null?0:(int)obj3; |
|
|
|
} |
|
|
|
} |
|
|
|
Thread.sleep(200); |
|
|
|
|
|
|
|
Thread.sleep(100); |
|
|
|
} catch (InterruptedException e) { |
|
|
|
throw new RuntimeException(e); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|