gcodehs-0.1.2.0: GCode processor

Safe HaskellNone
LanguageHaskell2010

Data.GCode.Generate

Description

GCode generation

GCode generation functions & shortcuts

Synopsis

Documentation

g :: Code Source #

Generate G Code

m :: Code Source #

Generate M Code

s :: Code Source #

Generate S (set spindle feedrate) Code

(<#>) :: Code -> Int -> Code Source #

Set GCode number

feed :: Double -> Code -> Code Source #

Set GCode feedrate (F parameter)

x :: Double -> Code -> Code Source #

Set x axis target

y :: Double -> Code -> Code Source #

Set y axis target

z :: Double -> Code -> Code Source #

Set z axis target

xy :: Double -> Double -> Code -> Code Source #

Set x, y coordinates for this Code

xyz :: Double -> Double -> Double -> Code -> Code Source #

Set x, y and z coordinates

movexy :: Double -> Double -> Code Source #

Set G0 and x, y coordinates

ij :: Double -> Double -> Code -> Code Source #

Set i, j parameters for this Code

rectangle :: (Num a, Num b) => a -> b -> [(a, b)] Source #

Generate points on a rectangle

rot :: Floating b => b -> b -> b -> (b, b) Source #

Rotate X/Y coordinates by angle by

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

circle' :: (Floating b, Enum b) => b -> b -> b -> [(b, b)] Source #

As circle with rotated by rin

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.

travelDrills :: Code -> GCode -> GCode Source #

Prepend drilling codes with tool up command and rapid moves

Prepends up GCode representing tool moving up before rapid move to start of this block

asRapidXY :: Code -> Code Source #

Take X and Y coordinates of this code and turn it into rapid move