| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.GCode.Canon
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
data RotationDirection Source #
Constructors
| ClockWise | |
| CounterClockWise |
Instances
| Eq RotationDirection Source # | |
Defined in Data.GCode.Canon Methods (==) :: RotationDirection -> RotationDirection -> Bool # (/=) :: RotationDirection -> RotationDirection -> Bool # | |
| Ord RotationDirection Source # | |
Defined in Data.GCode.Canon Methods 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 Methods showsPrec :: Int -> RotationDirection -> ShowS # show :: RotationDirection -> String # showList :: [RotationDirection] -> ShowS # | |
data LengthUnit Source #
Constructors
| Inches | |
| MilliMeters | |
| CentiMeters | |
| Meters |
Instances
| Eq LengthUnit Source # | |
Defined in Data.GCode.Canon | |
| Ord LengthUnit Source # | |
Defined in Data.GCode.Canon Methods 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 Methods showsPrec :: Int -> LengthUnit -> ShowS # show :: LengthUnit -> String # showList :: [LengthUnit] -> ShowS # | |
data HeaterType Source #
Constructors
| HeatedExtruder | |
| HeatedBed | |
| HeatedChamber |
Instances
| Eq HeaterType Source # | |
Defined in Data.GCode.Canon | |
| Ord HeaterType Source # | |
Defined in Data.GCode.Canon Methods 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 Methods showsPrec :: Int -> HeaterType -> ShowS # show :: HeaterType -> String # showList :: [HeaterType] -> ShowS # | |
Some heater with id or Nothing for current / default
Constructors
| Heater HeaterType (Maybe Int) |
data CompensationMode Source #
Tool length compensation
Constructors
| 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 Methods (==) :: CompensationMode -> CompensationMode -> Bool # (/=) :: CompensationMode -> CompensationMode -> Bool # | |
| Ord CompensationMode Source # | |
Defined in Data.GCode.Canon Methods 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 Methods showsPrec :: Int -> CompensationMode -> ShowS # show :: CompensationMode -> String # showList :: [CompensationMode] -> ShowS # | |
Constructors
| ArcParams | |
Fields
| |
Instances
| Eq ArcParams Source # | |
| Ord ArcParams Source # | |
| Show ArcParams Source # | |
Constructors
| 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 | |
Fields
| |
| 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
Constructors
| CanonState | |
Fields
| |
Instances
| Eq CanonState Source # | |
Defined in Data.GCode.Canon | |
| Ord CanonState Source # | |
Defined in Data.GCode.Canon Methods 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 Methods 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 #