vpype_gscrib.renderer.coolants
Coolant system activation and control.
This module provides implementations for various coolant systems in CNC machines, each generating specific G-code for controlling different cooling mechanisms such as mist coolant or flood coolant.
- class vpype_gscrib.renderer.coolants.BaseCoolant
Bases:
ABCBase class for coolant system implementations.
This abstract base class defines the interface for controlling machine coolant systems. It handles the activation and deactivation of cooling mechanisms like mist coolant, flood coolant, or air blast systems.
Different machines may implement cooling differently:
Some machines support multiple coolant types (mist/flood)
Some machines might require warmup or cooldown sequences
Air blast systems might need pressure ramping
- class vpype_gscrib.renderer.coolants.CoolantFactory
Bases:
objectA factory for creating coolant managers.
This factory creates specialized coolant managers that handle the control of coolant systems in CNC machines. Coolant managers control the flow of cutting fluid or coolant during machining operations to reduce heat, clear chips, and extend tool life.
- classmethod create(coolant_type: CoolantType) BaseCoolant
Create a new coolant manger instance.
- Parameters:
coolant_type (CoolantType) – Coolant type.
- Returns:
Coolant manger instance.
- Return type:
- Raises:
KeyError – If type is not valid.
- class vpype_gscrib.renderer.coolants.FloodCoolant
Bases:
BaseCoolantFlood coolant system implementation.
This class handles operations for a flood coolant system, including activation and deactivation.
- class vpype_gscrib.renderer.coolants.MistCoolant
Bases:
BaseCoolantMist coolant system implementation.
This class handles operations for a mist coolant system, including activation and deactivation.
- class vpype_gscrib.renderer.coolants.NoCoolant
Bases:
BaseCoolantNo-op coolant system implementation.
This class does not perform any coolant operations, effectively disabling coolant control.