#[non_exhaustive]pub enum Cycle {
Drill {
depth_z: f64,
retract_z: f64,
dwell_seconds: f64,
},
Peck {
depth_z: f64,
retract_z: f64,
peck: f64,
},
ChipBreak {
depth_z: f64,
retract_z: f64,
peck: f64,
back_off: f64,
},
Tap {
depth_z: f64,
retract_z: f64,
pitch: f64,
rigid: bool,
left_hand: bool,
},
Ream {
depth_z: f64,
retract_z: f64,
},
Bore {
depth_z: f64,
retract_z: f64,
dwell_seconds: f64,
shift: f64,
feed_out: bool,
},
BackBore {
depth_z: f64,
retract_z: f64,
shift: f64,
entry_z: f64,
},
}Expand description
A canned hole-making cycle. Depths are absolute MACHINE Z of the hole
bottom; retract_z is the plane the cycle retracts to.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Drill
G81 / G82 (with dwell).
Peck
G83 deep drilling with full retract between pecks.
ChipBreak
G73 chip breaking with a short retract between pecks.
Tap
G84 tapping. rigid requests synchronous (rigid) tapping.
Ream
G85 reaming (feed in, feed out).
Bore
G76/G86/G89 boring. shift is the fine-boring tool shift, dwell at bottom.
BackBore
G87 back boring: depth_z is the finished (upper) face of the back cut;
entry_z the axial entry position below it.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cycle
impl<'de> Deserialize<'de> for Cycle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Cycle
Auto Trait Implementations§
impl Forget for Cycle
impl Freeze for Cycle
impl Move for Cycle
impl RefUnwindSafe for Cycle
impl Send for Cycle
impl Sync for Cycle
impl Unpin for Cycle
impl UnsafeUnpin for Cycle
impl UnwindSafe for Cycle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more