raygeo.ops.state
Machine state tracking for CNC milling.
Tracks the current or intended machine state at any point in a command sequence, including power level (0.0–1.0), coolant mode, air assist, head coolant, feed rate and rapid rate, active head UID, pulse frequency, and pulse width. State objects are used by Ops to associate machine parameters with moving commands and to detect rapid (non-power) state changes.
AirAssistMode
Air assist mode for laser or CNC operations.
Controls the air assist state: Off or On.
name
name: str
value
value: int
CoolantMode
Coolant mode for CNC milling operations.
Controls the coolant state: Off, Flood, or Mist.
name
name: str
value
value: int
HeadCoolantMode
Head coolant mode for laser or CNC operations.
Controls the head coolant state: Off or On.
name
name: str
value
value: int
State
The current state of a CNC machine.
Tracks power level, coolant mode, air assist, head coolant, feed/rapid rates, active head UID, frequency, pulse width, spindle RPM, and coolant mode.
active_head_uid
active_head_uid: Optional[str]
UID of the active head (if set).
air_assist
air_assist: Optional[AirAssistMode]
Air assist mode (if set).
coolant
coolant: Optional[CoolantMode]
Coolant mode (if set).