@@ -534,13 +534,27 @@ public class BottomNavigationNewActivity extends BaseActivity { | |||
ExecuteTheRecipe.BottomClick("平移-去" + writeValue); | |||
Log.d("移动去", writeValue); | |||
} else { | |||
ExecuteTheRecipe.BottomClick("平移-去1号位"); | |||
Log.d("移动去", "1号位"); | |||
Object val1= ExecuteTheRecipe.ReadPLC("平移轴在1号位"); | |||
if(val1!=null) | |||
{ | |||
if(!(boolean) (val1)) //平移轴不在在一号位 | |||
{ | |||
ExecuteTheRecipe.BottomClick1("平移-去1号位"); | |||
Log.d("移动去", "1号位"); | |||
} | |||
} | |||
} | |||
} else { | |||
if (!MakeCipe.processname.equals("主料")) { | |||
ExecuteTheRecipe.BottomClick("平移-去1号位"); | |||
Log.d("移动去", "1号位"); | |||
Object val1= ExecuteTheRecipe.ReadPLC("平移轴在1号位"); | |||
if(val1!=null) | |||
{ | |||
if(!(boolean) (val1)) //平移轴不在在一号位 | |||
{ | |||
ExecuteTheRecipe.BottomClick1("平移-去1号位"); | |||
Log.d("移动去", "1号位"); | |||
} | |||
} | |||
} | |||
} | |||
} | |||
@@ -742,16 +742,31 @@ public class Home1Fragment extends BaseFragment { | |||
writeValue = value; | |||
} | |||
} | |||
ExecuteTheRecipe.BottomClick1("平移-去" + writeValue); | |||
Log.d("移动去", writeValue); | |||
} else { | |||
ExecuteTheRecipe.BottomClick1("平移-去1号位"); | |||
Log.d("移动去", "1号位"); | |||
Object val1= ExecuteTheRecipe.ReadPLC("平移轴在1号位"); | |||
if(val1!=null) | |||
{ | |||
if(!(boolean) (val1)) //平移轴不在在一号位 | |||
{ | |||
ExecuteTheRecipe.BottomClick1("平移-去1号位"); | |||
Log.d("移动去", "1号位"); | |||
} | |||
} | |||
} | |||
} else { | |||
if (!MakeCipe.processname.equals("主料")) { | |||
ExecuteTheRecipe.BottomClick1("平移-去1号位"); | |||
Log.d("移动去", "1号位"); | |||
Object val1= ExecuteTheRecipe.ReadPLC("平移轴在1号位"); | |||
if(val1!=null) | |||
{ | |||
if(!(boolean) (val1)) //平移轴不在在一号位 | |||
{ | |||
ExecuteTheRecipe.BottomClick1("平移-去1号位"); | |||
Log.d("移动去", "1号位"); | |||
} | |||
} | |||
} | |||
} | |||
} | |||