# G-Code settings

# Length step is how many steps there should be between each point
# 4 means "4 steps between each point". 
# Higher number gives finer grade but less speed.
g.lengthStep = 4

# Cross step is how many steps there should be between each line, how
# many passes the machine should do lengthwise.
# 4 means "4 runs between each line". 
# Higher number gives finer grade but more cutting time.
g.crossStep = 4

# Speed for cutting the board.
g.speed = 4000.0

# Should the machine cut the stringer? If this is set the
# stringer will be milled with three cuts.
g.cutStringer = 1

# Speed for cutting the stringer, if stringer is cut.
g.stringerSpeed = 1000.0

# Specifies if the rail should be cut, or shaped later.
g.cutRail = 1

# What cutter model that should be used.
g.toolName = flatcutter.stl
g.toolScaleX = 1.0
g.toolScaleY = 1.0
g.toolScaleZ = 1.0

# If the board is supposed to be laminated with sandwich Boardcad
# can compensate for the extra thickness.
g.sandwichThickness = 0.0

# Specify if rail is perimeter stringer.
g.perimeterSize = 0.0

# Safe height for traversing, transport etc.
g.zMaxHeight = 400.0

g.cutDownOffset = 5.0

# G-code settings for formatting the output.
g.includeComments = true
g.commentStart = (
g.commentEnd = )
g.stopSign = M2

# Machine settings
# Boardcad expects the board to be placed on two supports and an end stop.
# The supports are compared with the end stop that acts like "origo" and
# centerline.
# Each support is supposed to have two "pucks" for placing the board,
# but there's only coordinates for one of each puck as the board will
# be symmetric. The width between the pucks will be calculated with
# help of the centerline/end support. 
# If the center is placed at Y400 in the machine and the first support
# Y value is 500, the support has a width of 200 mm.
machine.support1X = 700
machine.support1Y = 500
machine.support1Z = 202.50
machine.support1Radius = 20
machine.support2X = 1800
machine.support2Y = 550
machine.support2Z = 202.50
machine.support2Radius = 20
machine.supportEndX = 100
machine.supportEndY = 400
machine.supportEndZ = 202.50

# Coordinate transformation between Boardcad and the machine. The machine
# can cut the board in a different direction and these settings transforms
# the directions in Boardcad to the machine. The directions can be seen in 
# Boardcad when a 3D model is created.
machine.axisForBoardcadX = Y
machine.axisForBoardcadY = -Z
machine.axisForBoardcadZ = X

  