Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Plane
- data CutterCompenstationSide
- type Speed = Double
- type Seconds = Double
- data RotationDirection
- data LengthUnit
- data HeaterType
- data Heater = Heater HeaterType (Maybe Int)
- data CompensationMode
- data ArcParams = ArcParams {
- arcFirstEnd :: Double
- arcSecondEnd :: Double
- arcFirstAxis :: Double
- arcSecondAxis :: Double
- arcRotation :: Int
- arcAxisEndPoint :: Double
- arcA :: Double
- arcB :: Double
- arcC :: Double
- arcU :: Double
- arcV :: Double
- arcW :: Double
- data Canon
- = StraightTraverse Axes
- | StraightFeed Axes
- | StraightProbe Axes
- | SetCoords Axes
- | ArcFeed ArcParams
- | ProgramEnd
- | SetFeedRate Speed
- | SetTraverseRate Speed
- | PlaneSelect Plane
- | PauseSeconds Double
- | SpindleStart { }
- | SpindleStop
- | SpindleSpeed Speed
- | CoolantMist
- | CoolantFlood
- | CoolantStop
- | ToolSelect Int
- | ToolChange
- | ToolLengthCompensation CompensationMode
- | FanOn
- | FanOff
- | SetTemperature Heater Double
- | SetTemperatureWait Heater Double
- | CancelWaitTemperature
- | LevelBed
- | DisableMotors Axes
- | DisplayMessage ByteString
- | Comment ByteString
- data CanonState = CanonState {}
- initCanonState :: CanonState
- stepCanon :: CanonState -> Canon -> CanonState
- evalCanon :: (CanonState -> CanonState -> Canon -> [a]) -> [Canon] -> [a]
Documentation
data CutterCompenstationSide Source #
Instances
Eq CutterCompenstationSide Source # | |
Defined in Data.GCode.Canon | |
Ord CutterCompenstationSide Source # | |
Defined in Data.GCode.Canon compare :: CutterCompenstationSide -> CutterCompenstationSide -> Ordering # (<) :: CutterCompenstationSide -> CutterCompenstationSide -> Bool # (<=) :: CutterCompenstationSide -> CutterCompenstationSide -> Bool # (>) :: CutterCompenstationSide -> CutterCompenstationSide -> Bool # (>=) :: CutterCompenstationSide -> CutterCompenstationSide -> Bool # max :: CutterCompenstationSide -> CutterCompenstationSide -> CutterCompenstationSide # min :: CutterCompenstationSide -> CutterCompenstationSide -> CutterCompenstationSide # | |
Show CutterCompenstationSide Source # | |
Defined in Data.GCode.Canon showsPrec :: Int -> CutterCompenstationSide -> ShowS # show :: CutterCompenstationSide -> String # showList :: [CutterCompenstationSide] -> ShowS # |
data RotationDirection Source #
Instances
Eq RotationDirection Source # | |
Defined in Data.GCode.Canon (==) :: RotationDirection -> RotationDirection -> Bool # (/=) :: RotationDirection -> RotationDirection -> Bool # | |
Ord RotationDirection Source # | |
Defined in Data.GCode.Canon compare :: RotationDirection -> RotationDirection -> Ordering # (<) :: RotationDirection -> RotationDirection -> Bool # (<=) :: RotationDirection -> RotationDirection -> Bool # (>) :: RotationDirection -> RotationDirection -> Bool # (>=) :: RotationDirection -> RotationDirection -> Bool # max :: RotationDirection -> RotationDirection -> RotationDirection # min :: RotationDirection -> RotationDirection -> RotationDirection # | |
Show RotationDirection Source # | |
Defined in Data.GCode.Canon showsPrec :: Int -> RotationDirection -> ShowS # show :: RotationDirection -> String # showList :: [RotationDirection] -> ShowS # |
data LengthUnit Source #
Instances
Eq LengthUnit Source # | |
Defined in Data.GCode.Canon (==) :: LengthUnit -> LengthUnit -> Bool # (/=) :: LengthUnit -> LengthUnit -> Bool # | |
Ord LengthUnit Source # | |
Defined in Data.GCode.Canon compare :: LengthUnit -> LengthUnit -> Ordering # (<) :: LengthUnit -> LengthUnit -> Bool # (<=) :: LengthUnit -> LengthUnit -> Bool # (>) :: LengthUnit -> LengthUnit -> Bool # (>=) :: LengthUnit -> LengthUnit -> Bool # max :: LengthUnit -> LengthUnit -> LengthUnit # min :: LengthUnit -> LengthUnit -> LengthUnit # | |
Show LengthUnit Source # | |
Defined in Data.GCode.Canon showsPrec :: Int -> LengthUnit -> ShowS # show :: LengthUnit -> String # showList :: [LengthUnit] -> ShowS # |
data HeaterType Source #
Instances
Eq HeaterType Source # | |
Defined in Data.GCode.Canon (==) :: HeaterType -> HeaterType -> Bool # (/=) :: HeaterType -> HeaterType -> Bool # | |
Ord HeaterType Source # | |
Defined in Data.GCode.Canon compare :: HeaterType -> HeaterType -> Ordering # (<) :: HeaterType -> HeaterType -> Bool # (<=) :: HeaterType -> HeaterType -> Bool # (>) :: HeaterType -> HeaterType -> Bool # (>=) :: HeaterType -> HeaterType -> Bool # max :: HeaterType -> HeaterType -> HeaterType # min :: HeaterType -> HeaterType -> HeaterType # | |
Show HeaterType Source # | |
Defined in Data.GCode.Canon showsPrec :: Int -> HeaterType -> ShowS # show :: HeaterType -> String # showList :: [HeaterType] -> ShowS # |
Some heater with id or Nothing for current / default
data CompensationMode Source #
Tool length compensation
NoCompensation | Tool length compensation is disabled |
LengthTable | Following moves will take into account tool offset from tool table |
Dynamic Axes | Apply dynamic offset |
Add Int | Add tool offset of the tool specified by the parameter to currently selected tool offset |
Instances
Eq CompensationMode Source # | |
Defined in Data.GCode.Canon (==) :: CompensationMode -> CompensationMode -> Bool # (/=) :: CompensationMode -> CompensationMode -> Bool # | |
Ord CompensationMode Source # | |
Defined in Data.GCode.Canon compare :: CompensationMode -> CompensationMode -> Ordering # (<) :: CompensationMode -> CompensationMode -> Bool # (<=) :: CompensationMode -> CompensationMode -> Bool # (>) :: CompensationMode -> CompensationMode -> Bool # (>=) :: CompensationMode -> CompensationMode -> Bool # max :: CompensationMode -> CompensationMode -> CompensationMode # min :: CompensationMode -> CompensationMode -> CompensationMode # | |
Show CompensationMode Source # | |
Defined in Data.GCode.Canon showsPrec :: Int -> CompensationMode -> ShowS # show :: CompensationMode -> String # showList :: [CompensationMode] -> ShowS # |
ArcParams | |
|
StraightTraverse Axes | Rapid motion to end position specified by Axes |
StraightFeed Axes | Machining motion |
StraightProbe Axes | Straight probe towards workpeice |
SetCoords Axes | Set coordinates to provided values without motion |
ArcFeed ArcParams | Movement along arc |
ProgramEnd | End of the program |
SetFeedRate Speed | Set feed rate for machining moves |
SetTraverseRate Speed | Set feed rate for travel moves |
PlaneSelect Plane | Set plane |
PauseSeconds Double | Do nothing for specified number of seconds |
SpindleStart | |
| |
SpindleStop | Stop spindle |
SpindleSpeed Speed | Set spindle RPM |
CoolantMist | Enable mist coolant |
CoolantFlood | Enable flood coolant |
CoolantStop | Stop all coolant flows Tools |
ToolSelect Int | Select tool by its index |
ToolChange | Perform tool change |
ToolLengthCompensation CompensationMode | Enable tool length compensation Printer |
FanOn | Enable fan |
FanOff | Disable fan |
SetTemperature Heater Double | Set temperature of the specific heater |
SetTemperatureWait Heater Double | Set temperature and wait for it to be reached |
CancelWaitTemperature | Cancel all temperature waits |
LevelBed | Perform automated bed leveling Misc |
DisableMotors Axes | Disable power to motors |
DisplayMessage ByteString | Display a message, typically on LCD |
Comment ByteString | Just a comment |
data CanonState Source #
State of the Canon interpreter
CanonState | |
|
Instances
Eq CanonState Source # | |
Defined in Data.GCode.Canon (==) :: CanonState -> CanonState -> Bool # (/=) :: CanonState -> CanonState -> Bool # | |
Ord CanonState Source # | |
Defined in Data.GCode.Canon compare :: CanonState -> CanonState -> Ordering # (<) :: CanonState -> CanonState -> Bool # (<=) :: CanonState -> CanonState -> Bool # (>) :: CanonState -> CanonState -> Bool # (>=) :: CanonState -> CanonState -> Bool # max :: CanonState -> CanonState -> CanonState # min :: CanonState -> CanonState -> CanonState # | |
Show CanonState Source # | |
Defined in Data.GCode.Canon showsPrec :: Int -> CanonState -> ShowS # show :: CanonState -> String # showList :: [CanonState] -> ShowS # |
initCanonState :: CanonState Source #
Initial state of the Canon interpreter
stepCanon :: CanonState -> Canon -> CanonState Source #
Step Canon interpreter, returning new state
evalCanon :: (CanonState -> CanonState -> Canon -> [a]) -> [Canon] -> [a] Source #