################################################################################
#
#       Copyright (c) 2005-2011, Stratasys Inc.
#       All Rights Reserved Worldwide.
#
#       MODELER2.CFG FILE FOR 1230 SST
#
################################################################################

# History:
# Rev A:  increased support std purge time to 35.             
#         decreased model std purge time to 25.     BND 10-11-07    
# Rev B:  added head motor current limits.   BND 11-9-07                             
# Rev C:  increased model purge rollback.    BND 11-28-07
# Rev D:  increased gluelessrate to 12 IPS.
#         increased model purge rollback to -2400.  TPP 12-04-07
# Rev F:  Added comments to stepper motor current limits.  BND 12-12-07        
# Rev G:  Added look-ahead setback temperature (LATS).  BND 7-8-11
# Rev H:  Enabled model & support purge FE detection & model end of curve FE detection. 
#         Decreased MDLCURRENTLIMIT from 13652 to 12000.  
#         Increased SPTCURRENTLIMIT from 13652 to 14000.
#         Decreased SUPADDROLLBACK from 10k to 2k.  Reorganized file.  BND 12-9-11
# 
#
# This file contains the following information:
#   head motor PID values
#   select head purge parameters
#   head PID control parameters
#   autoload parameters
#   Stepper Motor Currents:
#   XYZ Axis Speed Parameters:
#   Purge and Tip Wipe Locations:
#
# Hawaii conversion factors:  MICS = (counts/cycle)/815
#                             MIC  = (counts)/.0494
# ------------------------------------------------
# Head Motor PID:
SPTHEADMOTORKP=90               
SPTHEADMOTORKI=100
SPTHEADMOTORKD=5
SPTHEADMOTORKAFF=900
SPTHEADMOTORKVFF=0
SPTHEADMOTORAC=50000
SPTHEADMOTORIL=15000
SPTHEADMOTORDS=10
MDLHEADMOTORKP=90
MDLHEADMOTORKI=100
MDLHEADMOTORKD=5
MDLHEADMOTORKAFF=900
MDLHEADMOTORKVFF=0
MDLHEADMOTORAC=50000
MDLHEADMOTORIL=15000
MDLHEADMOTORDS=10
#
# Head Motor Currents:
MDLCURRENTLIMIT=12000           # (1/32767)*3A = 1.10A
SPTCURRENTLIMIT=14000           # (1/32767)*3A = 1.28A
FIRSTLAYERCURRENTLIMIT=14000    # (1/32767)*3A = 1.28A
#
# Purge Parameters:
SUPPREPURGEDELAY=0              # 1/10 sec
SUPPREPURGEROLLBACK=0           # counts
SPTLONGPURGERATE=800000         # triggered by TIPIDLETIMEOUT.  counts/cycle
SPTLONGPURGETIME=50             # 1/10 seconds
SPTLONGPURGERBRATE=1600000      # counts/cycle
SPTLONGPURGERBDIST=-200         # counts
SPTSTDPURGERATE=600000          # counts/cycle
SPTSTDPURGETIME=35              # 1/10 sec
SPTSTDPURGERBRATE=1600000       # counts/cycle
SPTSTDPURGERBDIST=-1500         # controls purge seam.  counts
SUPPOSTPURGEDELAY=1             # sec
SUPADDROLLBACK=-2000           # counts
IDLEPURGEDELAY=1                # 1/10 sec
TIPIDLETIMEOUT=1800             # sec - triggers long purge if idle at temp for more than XX sec.
MDLPREPURGEDELAY=0              # 1/10 sec
MDLPREPURGEROLLBACK=0           # counts
MDLLONGPURGERATE=400000         # triggered by TIPIDLETIMEOUT.  counts/cycle
MDLLONGPURGETIME=200            # 1/10 sec
MDLLONGPURGERBRATE=1600000      # counts/cycle
MDLLONGPURGERBDIST=-200         # counts
MDLSTDPURGERATE=600000          # counts/cycle
MDLSTDPURGETIME=25              # 1/10 sec
MDLSTDPURGERBRATE=1600000       # counts/cycle
MDLSTDPURGERBDIST=-2400         # controls purge seam.  counts
MDLPOSTPURGEDELAY=1             # sec
MDLADDROLLBACK=-10000           # counts
MDLSHBLOWEROFFTIME=0            # turn off hb for msec for model
SUPSHBLOWEROFFTIME=3000         # turn off hb for msec for support
MDLTEMPSOAKTIME=30              # delay between reaching temp and purge (sec).  Modified during build by soak modifier in extrusion constants
SUPTEMPSOAKTIME=15              # delay between reaching temp and purge (sec).  Modified during build by soak modifier in extrusion constants
#
# Head PID Parameters:
KTEMPERATURETODAC=7             # Head temp PID
TIMETEMPERATUREINTEGRATION=95   # Head temp PID
KPROPORTIONALACTION=30          # Head temp PID
TDERIVITIVE=4                   # Head temp PID
MDLTEMPTOL=70                   # 1/10 degrees C
MDLHIGHTEMPALARM=3330           # 1/10 degrees C
MDLLOWTEMPALARM=2399            # 1/10 degrees C
SUPTEMPTOL=70                   # 1/10 degrees C
SUPHIGHTEMPALARM=3330           # 1/10 degrees C
SUPLOWTEMPALARM=2399            # 1/10 degrees C
#
# Autoload Parameters:
HOTTEMPERATURE=3000             # 1/10 degrees C  AUTOLOAD PURGE TEMP
COOLTEMPERATURE=2500            # 1/10 degrees C  UNLOAD AND LOAD (not purge) TEMP
SUPHOTTEMPERATURE=3000          # 1/10 degrees C  AUTOLOAD PURGE TEMP
SUPCOOLTEMPERATURE=2000         # 1/10 degrees C  UNLOAD AND LOAD (not purge)TEMP
MODUNLOADTEMPERATURE=3000       # 1/10 degrees C  UNLOAD PURGE HOT TEMP
SUPUNLOADTEMPERATURE=2900       # 1/10 degrees C  UNLOAD PURGE HOT TEMP
LCLOADSPEED=400000              # counts/cycle
LCDETECTSPEED=600000            # counts/cycle
UCBACKOUTSPEED=800000           # counts/cycle
#
# Stepper Motor "High Power" Currents ("Low Power" currents are compile time):
XAXISPOWER=22000                # (1/32767)*3A = 2.0A
YAXISPOWER=26666                # (1/32767)*3A = 2.4A
ZAXISPOWER=22000                # (1/32767)*3A = 2.0A
#
# XYZ Axis Speed Parameters:
GLUELESSRATE=100                # Additional percent increase over 7 IPS = #*.05IPS
GLUELESSACCELERATION=0          # Additional percent increase over 96.8 in/s^2 = #*.968in/s^2
ZAXISVELOCITY=0                 # Additional percent increase over 1 IP = #*.015IPS
ZAXISACCELERATION=100           # Additional percent increase over 38 in/s^2 = #*.38in/s^2
FHCRAWL=0                       # Additional percent increase over .9 IPS = #*.05IPS
FHVELOCITY=0                    # Additional percent increase over 1.25 IPS = #*.05IPS
#
# Purge and Tip Wipe Locations:
XPURGEPOSITION=0                # position modifier = #*.01
XBRUSHPOSITION=0                # position modifier = #*.01
YPURGEPOSITION=10               # position modifier = #*.01
YBRUSHPOSITION=0                # position modifier = #*.01
TWBRUSHLEN=0                    # position modifier = #*.01
TWBRUSHWID=0                    # position modifier = #*.01
TWWIPELEN=0                     # position modifier = #*.01
TWWIPEWID=0                     # position modifier = #*.01
TWWIPESTEP=0                    # position modifier = #*.01
SYSTEMREVISION=1
HMRUNTIME=6000
#
# Head Temperature Setback and No Ooze Parameters
MDLSETBACKTEMP=2000             # model liquifier setback temperature
SUPSETBACKTEMP=1800             # support liquifier setback temperature
MDLLOOKAHEADSETBACKTEMP=3000    # 1/10 C model end of layer setback temp
SUPLOOKAHEADSETBACKTEMP=2750    # 1/10 C support end of layer setback temp
MODNOOOZETEMP=3050              # 1/10 C, waits for inactive head to fall below in select head
SUPNOOOZETEMP=2800              # 1/10 C, waits for inactive head to fall below in select head
#
# End of curve following error monitoring
MODPOSITIONERRORMAX    = 1000	# encoder counts, -1 disables
MODPOSITIONERRORWAIT   =  500	# time in msec
SUPPOSITIONERRORMAX    = 1000	# encoder counts, -1 disables
SUPPOSITIONERRORWAIT   =  500	# time in msec
FIRSTPOSITIONERRORMAX  = 2000	# encoder counts, -1 disables
FIRSTPOSITIONERRORWAIT =  500	# time in msec
#
# Purge following error monitoring
SPTLONGPURGEFEMAX   =    500    # counts, -1 to disable
SPTLONGPURGEFEWAIT  =   1000    # msec
SPTSTDPURGEFEMAX    =    200    # counts, -1 to disable
SPTSTDPURGEFEWAIT   =    500    # msec
MDLLONGPURGEFEMAX   =    500    # counts, -1 to disable
MDLLONGPURGEFEWAIT  =   1000    # msec
MDLSTDPURGEFEMAX    =    200    # counts, -1 to disable
MDLSTDPURGEFEWAIT   =    500    # msec

