
		OPTIMIZATION VARIABLES

# Optimization type.  May be overridden by the interface switch optimize on/off
# 0= No optimization of holes shall be done
# 1= Optimize by shortest distance
# 2= Optimize in a Grid-like pattern (Addtn'l switches are below)
# 3= Optimize using both 2 and 1. First 2 then 1.
Optimize type: 3

#If when using a grid pattern the following two switches apply.
#Tolerance is the amount by which holes along a line may differ.
#And zigzag is a True False switch.  0= No zigzag.  1= Zigzag
Tolerance: .0001
Zigzag: 1

# This defines where the optimize routine should start after a tool change
#     1= Tool change position   2= Last known XY
Last point type: 2

# IF "Last point type" is 1.  This defines the tool change type on the
# machine so that AMO can optimize the tool positions.
# A value of -99999 will choose the last position in that axis.
# Z should stay 0 since optimization is only in 2-axes.
Optimize x:	0.0
Optimize y:	0.0
Optimize z:	0.0


# SWITCHES FOR OPTIMIZING IN A GRID-LIKE PATTERN
# Refer below for a sample of hole patterns
# The angle defines the direction you want the rows optimized
# 0= X  90= Y
Angle:	90

#Row direction is the direction along the angle you want to travel.
#Direction: 1= Forward    -1= Reverse
# (i.e. Angle= 90 then Forward would go from -Y -> +Y
Row direction:	1

#Hole direction is the direction perpendicular to the angle.
# (i.e. Angle= 90 then Reverse would go from -X -> +X
Hole direction:	-1

#************************************************************
# Angle   Row dir   Hole dir    Order of 9-hole Pattern
#************************************************************
#                                       7  8  9     +Y |
#  90       1         -1                4  5  6        |
#                                       1  2  3        |-----> +X
#************************************************************
#                                       9  8  7
#  90       1          1                6  5  4
#                                       3  2  1
#************************************************************
#                                       1  2  3
#  90       -1        -1                4  5  6
#                                       7  8  9
#************************************************************
#                                       3  2  1
#  90       -1         1                6  5  4
#                                       9  8  7
#************************************************************
#                                       1  4  7
#   0       1         -1                2  5  8
#                                       3  6  9
#************************************************************
#                                       3  6  9
#   0       1          1                2  5  8
#                                       1  4  7
#************************************************************
#                                       7  4  1
#   0      -1         -1                8  5  2
#                                       9  6  3
#************************************************************
#                                       9  6  3
#   0      -1          1                8  5  2
#                                       7  4  1
#************************************************************
