|
|
@@ -233,12 +233,12 @@ public class Home1Fragment extends BaseFragment { |
|
|
|
jiaoban_control.mListener = new MyClickListener() { |
|
|
|
@Override |
|
|
|
public void clickListener(View v, Object data) { |
|
|
|
boolean status = (boolean) data; |
|
|
|
if (!IsMake(true)) |
|
|
|
boolean status = !(boolean) data; |
|
|
|
if (!IsMake(false)) |
|
|
|
{ |
|
|
|
jiaoban_control.SetStatus(!status); |
|
|
|
return; |
|
|
|
} |
|
|
|
jiaoban_control.SetStatus(status); |
|
|
|
int jd = (int) nifty_slider2.getValue(); |
|
|
|
ToastUtils.info("点击按钮:搅拌" + status + ".搅拌频率:" + jd); |
|
|
|
ExecuteTheRecipe.WritePLC("搅拌速度", jd, new IWriteCallBack() { |
|
|
@@ -267,13 +267,12 @@ public class Home1Fragment extends BaseFragment { |
|
|
|
zhuandong_control_left.mListener = new MyClickListener() { |
|
|
|
@Override |
|
|
|
public void clickListener(View v, Object data) { |
|
|
|
boolean status = (boolean) data; |
|
|
|
boolean status = !(boolean) data; |
|
|
|
if (!IsMake(true)) |
|
|
|
{ |
|
|
|
zhuandong_control_left.SetStatus(!status); |
|
|
|
return; |
|
|
|
} |
|
|
|
ToastUtils.info("点击按钮:炒锅正转" + status); |
|
|
|
zhuandong_control_left.SetStatus(status); |
|
|
|
int jd = (int) nifty_slider3.getValue(); |
|
|
|
ToastUtils.info("点击按钮:搅拌" + status + ".转动频率:" + jd); |
|
|
|
ExecuteTheRecipe.WritePLC("转动速度", jd, new IWriteCallBack() { |
|
|
@@ -301,13 +300,12 @@ public class Home1Fragment extends BaseFragment { |
|
|
|
zhuandong_control_Rift.mListener = new MyClickListener() { |
|
|
|
@Override |
|
|
|
public void clickListener(View v, Object data) { |
|
|
|
boolean status = (boolean) data; |
|
|
|
boolean status = !(boolean) data; |
|
|
|
if (!IsMake(true)) |
|
|
|
{ |
|
|
|
zhuandong_control_Rift.SetStatus(!status); |
|
|
|
return; |
|
|
|
} |
|
|
|
ToastUtils.info("点击按钮:炒锅反转" + status); |
|
|
|
zhuandong_control_Rift.SetStatus(status); |
|
|
|
int jd = (int) nifty_slider3.getValue(); |
|
|
|
ToastUtils.info("点击按钮:搅拌" + status + ".转动频率:" + jd); |
|
|
|
ExecuteTheRecipe.WritePLC("转动速度", jd, new IWriteCallBack() { |
|
|
@@ -335,12 +333,12 @@ public class Home1Fragment extends BaseFragment { |
|
|
|
choushui_control.mListener = new MyClickListener() { |
|
|
|
@Override |
|
|
|
public void clickListener(View v, Object data) { |
|
|
|
boolean status = (boolean) data; |
|
|
|
boolean status = !(boolean) data; |
|
|
|
if (!IsMake(true)) |
|
|
|
{ |
|
|
|
choushui_control.SetStatus(!status); |
|
|
|
return; |
|
|
|
} |
|
|
|
choushui_control.SetStatus(status); |
|
|
|
ToastUtils.info("点击按钮:炒锅抽水" + status); |
|
|
|
ExecuteTheRecipe.WritePLC("炒锅抽水", status, null); |
|
|
|
} |
|
|
@@ -354,12 +352,12 @@ public class Home1Fragment extends BaseFragment { |
|
|
|
fangshui_control.mListener = new MyClickListener() { |
|
|
|
@Override |
|
|
|
public void clickListener(View v, Object data) { |
|
|
|
boolean status = (boolean) data; |
|
|
|
boolean status = !(boolean) data; |
|
|
|
if (!IsMake(true)) |
|
|
|
{ |
|
|
|
fangshui_control.SetStatus(!status); |
|
|
|
return; |
|
|
|
} |
|
|
|
fangshui_control.SetStatus(status); |
|
|
|
ToastUtils.info("点击按钮:炒锅放水" + status); |
|
|
|
ExecuteTheRecipe.WritePLC("炒锅放水", status, null); |
|
|
|
} |
|
|
|