Exemplo n.º 1
0
  public boolean measurementStop() {
    boolean res = false;

    if (connection.isConnected()) {
      res = setMode(Mode.TRACK_EMPTYING.getValue());
    }

    return res;
  }
Exemplo n.º 2
0
  public boolean cleaningStop() {
    boolean res = false;

    if (connection.isConnected()) {
      boolean r1 =
          setDelay(
              Register.SINGLE_LENGTH_TURN_TIME,
              Utility.calcTime(PlcConstants.TRACK_LENGTH / 2, PlcConstants.SLOW_TRACK_SPEED));
      boolean r2 = setMode(Mode.TRACK_EMPTYING.getValue());

      res = r1 && r2;
    }

    return res;
  }