Browse Source

现场调试改动99

master
fyf 1 year ago
parent
commit
e73972218e
1 changed files with 3 additions and 7 deletions
  1. +3
    -7
      app/src/main/java/com/example/bpa/service/BusinessServer.java

+ 3
- 7
app/src/main/java/com/example/bpa/service/BusinessServer.java View File

@@ -142,20 +142,16 @@ public class BusinessServer {
ModbusTcpServer.get().WriteBool(bs.plcvar, false);
MessageLog.ShowUserMessage(UserLogEnum.订单处理日志,message+"下发成功!");
}
//将其余料仓出料设置为0,重置
for (int k=1;k<=10;k++)
{
if(!liaochang.contains(k))
{
DeviceData.Get().setDemandValue((short) 0, k, new IWriteCallBack() {
@Override
public void onSuccess() {
MessageLog.ShowInfo(message+"下发成功!");
}
public void onSuccess() { }
@Override
public void onFailure(String ErrorMsg) {
MessageLog.ShowInfo(message+"下发失败!"+ErrorMsg);
}
public void onFailure(String ErrorMsg) {}
});
}
}


Loading…
Cancel
Save