gcodehs-0.1.2.0: GCode processor

Safe HaskellNone
LanguageHaskell2010

Data.GCode.Canon

Synopsis

Documentation

data Plane Source #

Constructors

XY 
YZ 
ZX 
UV 
WU 
VW 
Instances
Eq Plane Source # 
Instance details

Defined in Data.GCode.Canon

Methods

(==) :: Plane -> Plane -> Bool #

(/=) :: Plane -> Plane -> Bool #

Ord Plane Source # 
Instance details

Defined in Data.GCode.Canon

Methods

compare :: Plane -> Plane -> Ordering #

(<) :: Plane -> Plane -> Bool #

(<=) :: Plane -> Plane -> Bool #

(>) :: Plane -> Plane -> Bool #

(>=) :: Plane -> Plane -> Bool #

max :: Plane -> Plane -> Plane #

min :: Plane -> Plane -> Plane #

Show Plane Source # 
Instance details

Defined in Data.GCode.Canon

Methods

showsPrec :: Int -> Plane -> ShowS #

show :: Plane -> String #

showList :: [Plane] -> ShowS #

data Heater Source #

Some heater with id or Nothing for current / default

Constructors

Heater HeaterType (Maybe Int) 
Instances
Eq Heater Source # 
Instance details

Defined in Data.GCode.Canon

Methods

(==) :: Heater -> Heater -> Bool #

(/=) :: Heater -> Heater -> Bool #

Ord Heater Source # 
Instance details

Defined in Data.GCode.Canon

Show Heater Source # 
Instance details

Defined in Data.GCode.Canon

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

data ArcParams Source #

Constructors

ArcParams 

Fields

data Canon 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

Instances
Eq Canon Source # 
Instance details

Defined in Data.GCode.Canon

Methods

(==) :: Canon -> Canon -> Bool #

(/=) :: Canon -> Canon -> Bool #

Ord Canon Source # 
Instance details

Defined in Data.GCode.Canon

Methods

compare :: Canon -> Canon -> Ordering #

(<) :: Canon -> Canon -> Bool #

(<=) :: Canon -> Canon -> Bool #

(>) :: Canon -> Canon -> Bool #

(>=) :: Canon -> Canon -> Bool #

max :: Canon -> Canon -> Canon #

min :: Canon -> Canon -> Canon #

Show Canon Source # 
Instance details

Defined in Data.GCode.Canon

Methods

showsPrec :: Int -> Canon -> ShowS #

show :: Canon -> String #

showList :: [Canon] -> ShowS #

data CanonState Source #

State of the Canon interpreter

Constructors

CanonState 

Fields

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 #

Fully eval list of Canon commands.

Slow, only useful for testing, use Pipes variant instead