Safe Haskell | None |
---|---|
Language | Haskell2010 |
GCode pretty-printing functions
Utilities for manipulating and filtering GCode
- isG :: Code -> Bool
- isM :: Code -> Bool
- isGN :: Int -> Code -> Bool
- isGNs :: Int -> Int -> Code -> Bool
- isMN :: Int -> Code -> Bool
- isMNs :: Int -> Int -> Code -> Bool
- isG0 :: Code -> Bool
- isRapid :: Code -> Bool
- isG1 :: Code -> Bool
- isMove :: Code -> Bool
- isG2 :: Code -> Bool
- isArcCW :: Code -> Bool
- isG3 :: Code -> Bool
- isArcCCW :: Code -> Bool
- isG4 :: Code -> Bool
- isDwell :: Code -> Bool
- isG5 :: Code -> Bool
- isCubicSpline :: Code -> Bool
- isG5s1 :: Code -> Bool
- isQuadSpline :: Code -> Bool
- isG5s2 :: Code -> Bool
- isNURBS :: Code -> Bool
- isXYZplane :: Code -> Bool
- isXZYplane :: Code -> Bool
- isYZXplane :: Code -> Bool
- groupPlane :: [Code -> Bool]
- isInch :: Code -> Bool
- isMM :: Code -> Bool
- groupUnits :: [Code -> Bool]
- isG33 :: Code -> Bool
- isSpindleSync :: Code -> Bool
- isG33s1 :: Code -> Bool
- isRigidTap :: Code -> Bool
- isG38 :: Code -> Bool
- isProbe :: Code -> Bool
- groupMotion :: [Code -> Bool]
- isDrillingCycleCB :: Code -> Bool
- isThreadingCycle :: Code -> Bool
- isDrillingCycleCancel :: Code -> Bool
- isDrillingCycle :: Code -> Bool
- isDrillingCycleDwell :: Code -> Bool
- isDrillingCyclePeck :: Code -> Bool
- isBoringCycle :: Code -> Bool
- isBoringCycleDwell :: Code -> Bool
- groupCycles :: [Code -> Bool]
- isAbsolute :: Code -> Bool
- isRelative :: Code -> Bool
- isArcAbsolute :: Code -> Bool
- isArcRelative :: Code -> Bool
- isLatheDiameter :: Code -> Bool
- isLatheRadius :: Code -> Bool
- groupDistance :: [Code -> Bool]
- isInverseTime :: Code -> Bool
- isUnitsPerMinute :: Code -> Bool
- isUnitsPerRevolution :: Code -> Bool
- groupFeedRateMode :: [Code -> Bool]
- isSpindleCW :: Code -> Bool
- isSpindleCCW :: Code -> Bool
- isSpindleStop :: Code -> Bool
- groupSpindleControl :: [Code -> Bool]
- isCoolantMist :: Code -> Bool
- isCoolantFlood :: Code -> Bool
- isCoolantStop :: Code -> Bool
- groupCoolantControl :: [Code -> Bool]
- isToolLength :: Code -> Bool
- isToolLengthDynamic :: Code -> Bool
- isToolLengthAdd :: Code -> Bool
- isToolLengthCancel :: Code -> Bool
- groupToolLengthOffset :: [Code -> Bool]
- isPause :: Code -> Bool
- isOptionalPause :: Code -> Bool
- isEnd :: Code -> Bool
- isExchange :: Code -> Bool
- groupStopping :: [Code -> Bool]
- groups :: [[Code -> Bool]]
- hasAxis :: AxisDesignator -> Code -> Bool
- getAxis :: AxisDesignator -> Code -> Maybe Double
- getAxes :: [AxisDesignator] -> Code -> [Maybe Double]
- getAxesToList :: Code -> [(AxisDesignator, Double)]
- hasX :: Code -> Bool
- hasY :: Code -> Bool
- hasZ :: Code -> Bool
- hasE :: Code -> Bool
- hasParam :: ParamDesignator -> Code -> Bool
- getParam :: ParamDesignator -> Code -> Maybe Double
- hasFeedrate :: Code -> Bool
- gcodes :: [Code] -> [Code]
- mcodes :: [Code] -> [Code]
- rapids :: [Code] -> [Code]
- moves :: [Code] -> [Code]
- replaceClass :: Class -> Code -> Code
- replaceCode :: Int -> Code -> Code
- replaceAxis :: AxisDesignator -> Double -> Code -> Code
- modifyAxis :: AxisDesignator -> (Double -> Double) -> Code -> Code
- modifyAxes :: [AxisDesignator] -> (Double -> Double) -> Code -> Code
- hasXY :: Code -> Bool
- modifyXY :: (Double -> Double -> (Double, Double)) -> Code -> Code
- addReplaceAxis :: AxisDesignator -> Double -> Code -> Code
- replaceX :: Double -> Code -> Code
- replaceY :: Double -> Code -> Code
- replaceZ :: Double -> Code -> Code
- replaceE :: Double -> Code -> Code
- addReplaceX :: Double -> Code -> Code
- addReplaceY :: Double -> Code -> Code
- addReplaceZ :: Double -> Code -> Code
- addReplaceE :: Double -> Code -> Code
- replaceParam :: ParamDesignator -> Double -> Code -> Code
- modifyParam :: ParamDesignator -> (Double -> Double) -> Code -> Code
- addReplaceParam :: ParamDesignator -> Double -> Code -> Code
- replaceFeedrate :: Double -> Code -> Code
- modifyFeedrate :: (Double -> Double) -> Code -> Code
- travel :: Code -> Double
- inGroup :: Foldable t1 => t2 -> t1 (t2 -> Bool) -> Bool
- known :: Code -> Bool
- updateModals :: [Maybe Code] -> Code -> [Maybe Code]
- appendAxes :: Code -> Code -> Code
- incomplete :: Code -> Bool
- totalize :: GCode -> GCode
- type Evaluator a = State [Maybe Code] a
- totalizer :: GCode -> Evaluator GCode
- totalize' :: GCode -> (GCode, [Maybe Code])
- updateFromEffect :: [Maybe Code] -> Code -> Code
- updateIncompleteFromEffect :: [Maybe Code] -> Code -> Code
- emptyGroups :: [Maybe a]
- appendOnlyAxes :: Ord k => Map k a -> Map k a -> Map k a
- rot :: Floating b => b -> b -> b -> (b, b)
- roundprec :: (Fractional a2, Integral b, RealFrac a1) => b -> a1 -> a2
- updateLimitsCode :: Limits -> Code -> Limits
- updateLimits :: Limits -> Axes -> Limits
Documentation
isQuadSpline :: Code -> Bool Source #
groupPlane :: [Code -> Bool] Source #
groupUnits :: [Code -> Bool] Source #
isSpindleSync :: Code -> Bool Source #
groupMotion :: [Code -> Bool] Source #
isDrillingCycleCB :: Code -> Bool Source #
True if Code
is a G73 (drilling cycle, chip breaking) code
isBoringCycleDwell :: Code -> Bool Source #
True if Code
is a G89 (boring cycle, dwell, feed out) code
groupCycles :: [Code -> Bool] Source #
groupDistance :: [Code -> Bool] Source #
isUnitsPerRevolution :: Code -> Bool Source #
True if Code
is a G95 (units per revolution time mode) code
groupFeedRateMode :: [Code -> Bool] Source #
groupSpindleControl :: [Code -> Bool] Source #
groupCoolantControl :: [Code -> Bool] Source #
isToolLengthDynamic :: Code -> Bool Source #
True if Code
is a G43.1 (dynamic tool length offset) code
isToolLengthAdd :: Code -> Bool Source #
True if Code
is a G43.2 (apply additional tool length offset) code
groupToolLengthOffset :: [Code -> Bool] Source #
groupStopping :: [Code -> Bool] Source #
getAxesToList :: Code -> [(AxisDesignator, Double)] Source #
hasParam :: ParamDesignator -> Code -> Bool Source #
True if Code
contains parameter with ParamDesignator
replaceAxis :: AxisDesignator -> Double -> Code -> Code Source #
Replace axis with AxisDesignator
in Code
returning new Code
modifyAxis :: AxisDesignator -> (Double -> Double) -> Code -> Code Source #
modifyAxes :: [AxisDesignator] -> (Double -> Double) -> Code -> Code Source #
addReplaceAxis :: AxisDesignator -> Double -> Code -> Code Source #
Replace or add axis with AxisDesignator
in Code
returning new Code
replaceParam :: ParamDesignator -> Double -> Code -> Code Source #
Replace parameter with ParamDesignator
in Code
returning new Code
modifyParam :: ParamDesignator -> (Double -> Double) -> Code -> Code Source #
addReplaceParam :: ParamDesignator -> Double -> Code -> Code Source #
Replace or add parameter with ParamDesignator
in Code
returning new Code
incomplete :: Code -> Bool Source #
emptyGroups :: [Maybe a] Source #