Safe Haskell | None |
---|---|
Language | Haskell2010 |
GCode generation
GCode generation functions & shortcuts
Synopsis
- g :: Code
- m :: Code
- s :: Code
- (<#>) :: Code -> Int -> Code
- feed :: Double -> Code -> Code
- x :: Double -> Code -> Code
- y :: Double -> Code -> Code
- z :: Double -> Code -> Code
- xy :: Double -> Double -> Code -> Code
- xyz :: Double -> Double -> Double -> Code -> Code
- movexy :: Double -> Double -> Code
- ij :: Double -> Double -> Code -> Code
- arc :: Code
- rectangle :: (Num a, Num b) => a -> b -> [(a, b)]
- rot :: Floating b => b -> b -> b -> (b, b)
- circle :: (Floating b, Enum b) => b -> b -> [(b, b)]
- circle' :: (Floating b, Enum b) => b -> b -> b -> [(b, b)]
- closedCircle :: (Floating a, Enum a) => a -> a -> [(a, a)]
- travelCat :: Code -> Code -> [GCode] -> [Code]
- travelCatDrill :: Code -> [GCode] -> [Code]
- travel :: Code -> Code -> GCode -> GCode
- travelDrills :: Code -> GCode -> GCode
- asRapidXY :: Code -> Code
Documentation
circle :: (Floating b, Enum b) => b -> b -> [(b, b)] Source #
Generate a list of points laying on a circle with radius r
, divides circle in steps
number of points
closedCircle :: (Floating a, Enum a) => a -> a -> [(a, a)] Source #
As circle
but origin is the same as end point
travelCat :: Code -> Code -> [GCode] -> [Code] Source #
Join list of GCodes with travel moves inbetween
travelCatDrill :: Code -> [GCode] -> [Code] Source #
Join list of drilling GCodes with travel moves inbetween
travel :: Code -> Code -> GCode -> GCode Source #
Prepend codes with tool up command, rapid move to block start and tool down command
Prepends up
GCode representing tool moving up before
rapid move followed by down
command to move tool down again.