pub enum Command {
G0(HashSet<PosVal>),
G1(HashSet<PosVal>),
G21,
G90,
G91,
G92(HashSet<PosVal>),
GDrop(u16),
MDrop(u16),
Comment(String),
Nop,
}
Expand description
Commands: -
“The G0 and G1 commands add a linear move to the queue to be performed after all previous moves are completed.” GCODE doc
Missing Commands :- “bezier” … TODO maybe more.
Variants§
G0(HashSet<PosVal>)
“G0 for non-print moves. It makes G-code more adaptable to lasers, engravers, etc.”
G1(HashSet<PosVal>)
Printable move
G21
Home all axes
G90
G90 – Set Positioning Mode Absolute
“G90 ; Set all axes to absolute”
G91
G91 – Set Positioning Mode Relative
“G91 ; Set all axes to relative”
G92(HashSet<PosVal>)
Set the current position eg. “G92 E0” TODO: F and S are not permitted here.
GDrop(u16)
Drop G - no further action.
MDrop(u16)
Drop M - no further action.
Comment(String)
; This is a comment
Nop
No Operation eg a blank line “”.
Implementations§
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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