Class AirVent
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionAirVent
(AbstractCANPump<?> pump, int subNodeId) Create a new AirVent sub node with the specified CANOpen subNodeId. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Turn on automatic fill mode for the air vent.void
Turn on Manual On mode for the air vent.void
Turn off air vent.void
Fill air vent while agitation is running.com.tccc.kos.commons.core.service.handle.Handle
boolean
Return true if the air vent is enabled.void
setConfig
(AirVentConfig config) void
setStartMode
(int mode) Set the start mode for the air vent.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tccc.kos.commons.core.service.config.ConfigAware
onConfigChanged, onConfigSet
Methods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getName, getPath
-
Field Details
-
START_MODE_AUTOMATIC
public static final int START_MODE_AUTOMATIC- See Also:
-
START_MODE_SLEEP
public static final int START_MODE_SLEEP- See Also:
-
-
Constructor Details
-
AirVent
Create a new AirVent sub node with the specified CANOpen subNodeId.- Parameters:
pump
- the associated pumpsubNodeId
- 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
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
Fill air vent while agitation is running.- Throws:
IOException
-
fillAirVentManualOn
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
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 interfacecom.tccc.kos.commons.core.service.handle.HandleAware
-
getConfig
- Specified by:
getConfig
in interfacecom.tccc.kos.commons.core.service.config.ConfigAware<AirVentConfig>
-
setConfig
- Specified by:
setConfig
in interfacecom.tccc.kos.commons.core.service.config.ConfigAware<AirVentConfig>
-