java.lang.Object
com.tccc.kos.ext.freestyle.hardware.can.subnode.AbstractCANSubNode
com.tccc.kos.ext.freestyle.hardware.can.subnode.AirVent
All Implemented Interfaces:
com.tccc.kos.commons.core.service.config.ConfigAware<AirVentConfig>, com.tccc.kos.commons.core.service.handle.HandleAware

public class AirVent extends AbstractCANSubNode implements com.tccc.kos.commons.core.service.config.ConfigAware<AirVentConfig>
The air vent associated with a CGP.
Version:
Jul-1-17
  • Field Details

  • Constructor Details

    • AirVent

      public AirVent(AbstractCANPump<?> pump, int subNodeId)
      Create a new AirVent sub node with the specified CANOpen subNodeId.
      Parameters:
      pump - the associated pump
      subNodeId - the subNodeId for this node
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Return true if the air vent is enabled. Some nutating pumps doesn't have air vents. This value is only accurate after preActivate() has been called on the board.
    • setStartMode

      public void setStartMode(int mode)
      Set the start mode for the air vent. This only takes effect when the air vent is activated and CANPumpMgr calls startAirVent because the pump is been purged.
      Parameters:
      mode - the desired mode
    • fillAirVentAutomatic

      public void fillAirVentAutomatic() throws IOException
      Turn on automatic fill mode for the air vent. If the air vent was in automatic mode and timed out, this won't re-enabled automatic mode so you need to do a one shot before you can set things back to automatic again.
      Throws:
      IOException - if there is an error
    • fillAirVentSleep

      public void fillAirVentSleep() throws IOException
      Fill air vent while agitation is running.
      Throws:
      IOException
    • fillAirVentManualOn

      public void fillAirVentManualOn() throws IOException
      Turn on Manual On mode for the air vent. It forces refill motor on (tech action, ex. sanitization). This runs until either a state change commanded externally or safety timeout (120sec) limit reached.
      Throws:
      IOException - if there is an error
    • fillAirVentOff

      public void fillAirVentOff() throws IOException
      Turn off air vent.
      Throws:
      IOException - if there is an error
    • getHandle

      public com.tccc.kos.commons.core.service.handle.Handle getHandle()
      Specified by:
      getHandle in interface com.tccc.kos.commons.core.service.handle.HandleAware
    • getConfig

      public AirVentConfig getConfig()
      Specified by:
      getConfig in interface com.tccc.kos.commons.core.service.config.ConfigAware<AirVentConfig>
    • setConfig

      public void setConfig(AirVentConfig config)
      Specified by:
      setConfig in interface com.tccc.kos.commons.core.service.config.ConfigAware<AirVentConfig>