//Carman CCD:Nec8872
//Carman- 2.2-Release Beta9
[TestThroughput]
FWTestCount=11903400
FWTestTime=11859
FWTestThroughRate=1.082

IOTestCount=6533196
IOTestTime=8864
IOTestThroughRate=0.817

CompressionRate=0.549
CalTotalTime=4654
CalAdcOffsetTime=491
CalAdcGainTime=350
CalBlackShadingTime=685
CalWhiteShadingTime=1200

[WaveTest]
DCgainR=1
DCgainG=1
DCgainB=1
DCoffsetR=128
DCoffsetG=128
DCoffsetB=128
PwmLampFrequency600=10
PwmLampOffDuty600=7

[SCAN_PARAM]
SampleRate=1		// 1: Pixel-Rate 0:Line-Rate
SensorType=1		// 1: CCD  0: CIS

;DebugMode=1            // debug message                  1: enable 0:disable
;Calibrate=0            // calibrate mode enable          1: enable 0:disable
;ScanWhiteBoard=1       // park to home after calibrate   1: enable 0:disable
;Throughput=1

Zipper=1 		// 1: enable, 0: disable
ZipTH1=10		// Zip threshold
ZipTH2=4

ECG1=112 116//0xC0
ECG2=110 95 //0xC0
ECG3=116 94 //0xC0
OCG1=112 116//0xC0
OCG2=110 95 //0xC0
OCG3=116 94 //0xC0

VGAG1=1                  // VGA gain for Red if no calibrate
VGAG2=1                  // VGA gain for Green if no calibrate
VGAG3=1                  // VGA gain for Blue if no calibrate

[SCAN_CALI]
DCOffsetItem[1]=188
DCOffsetItem[2]=189
DCOffsetItem[3]=191
VGAGain[1]=2
VGAGain[2]=2
VGAGain[3]=2
DCOffsetItem2[1]=179
DCOffsetItem2[2]=199
DCOffsetItem2[3]=187

[PLATFORM]
DumpIniValue=0
WriteIniFile=1
SensorChannelPos=1              // 1:Red is first line    0:Blue
Sensor1200LineDistance=24       //12
Sensor1200StaggerLineDistance=4
Sensor600LineDistance=12
Sensor300LineDistance=6
Sensor200LineDistance=4
//SensorResolution=1200
ADFMotorResolution=600
MotorType=2		   // 0:2003 1:3966 2:6219_2916_FC(full current), 3:6219_2916_23C(2/3 current), 4:3955
MotorResolution=1200       // by full-step resolution
MotorBaseSpeed=500         // by full-step pps
MotorParkSpeed=3000//3800//4700//sometimes fail @4900,4800//always fail @5000
MotorMoveToScanSpeed=3000  // speed of move to scan position //
MotorStep1PPS=400
MotorStep2PPS=1000//1300
MotorStep3PPS=1500//2000
MotorStep4PPS=2000//2500
MMTIStep1=4//5
MMTIStep2=3
MMTIStep3=2
MMTIStep4=1
ParkStep1=40
ParkStep2=20
ParkStep3=10
ParkStep4=1
DelayBeforePark=200
BufferFullMotorBackStep=14
LampOffTimer=5
SSBuf=256  //start stop buffer
CurCCDType=7

FlbStartFromHome=150//200//100//140
CalibratetoScan=850//520//470
LeftBlackPos=200 210
TargetPPS=242

PwmLampEnable=1

PwmLampFrequencyFLB600=10
PwmLampOffDutyFLB600=7

PwmLampFrequencyTA600=10
PwmLampOffDutyTA600=7

PwmLampFrequencyNEG600=10
PwmLampOffDutyNEG600=7


[FIXED_TG]
CVTR1M=0x7
CVTR2M=0x7
CVTR3M=0x7

RSCLPC=0 0x1
CVTRP=0x1
CVTRW=0x6//0x3 //0x6
CVTRBPW=0x2//0x3 //0x2
CVTRFPW=0x2//0x1 //0x2

[TG_1200]
CPH0P=0x01FFE0
CISCKP=0xfe001f
CSMPP=0x01FFE0

CRSP=0x380000//0xCFFFFF
CCLPP=0x030000//0xF9FFFF

CPH0S=0x1//CPH0PS=0x1
CISCKS=0x1//CPH0LPS=0x0
CSMPS=0x1//CPH1LPS=0x0

CISCKL=0x0
CSMPL=0x1
CRSL=0x0//0x1
CCLPL=0x0//0x1

CDSS1=0xb
CDSC1=0xd
CDSS2=0x17
CDSC2=0x1

[TG_600]
CPH0P=0x7FF800
CISCKP=0x8007ff
CSMPP=0x7FF800

CRSP=0xE00001   //0xF80007
FIT_CRSP=0xF00007
CCLPP=0x0C0000  //0x018000
FIT_CCLPP=0x030000

CPH0S=0x0//CPH0PS=0x1
CISCKS=0x0//CPH0LPS=0x0
CSMPS=0x0//CPH1LPS=0x0

CISCKL=0x0//0x1
CSMPL=0x1
CRSL=0x0//0x1
CCLPL=0x0//0x1

CDSS1=0xB  //0xA
FIT_CDSS1=0xA 
CDSC1=0xC
CDSS2=0x12
FIT_CDSS2=0x11
CDSC2=0x13 //0x14

[TG_300]
CPH0P=0x0FF83E
CISCKP=0x03FF00
CSMPP=0x0000F8

CRSP=0x0007FE
CCLPP=0x300000

CPH0S=0x0//CPH0PS=0x1
CISCKS=0x0//CPH0LPS=0x0
CSMPS=0x0//CPH1LPS=0x0

CISCKL=0x1
CSMPL=0x0
CRSL=0x0//0x1
CCLPL=0x0//0x1

CDSS1=0x3
CDSC1=0x5
CDSS2=0xb
CDSC2=0xd

[TG_200]
CPH0P=0xE3F878
CISCKP=0x00FE00
CSMPP=0x0001E0

CRSP=0x0007F8
CCLPP=0x000003

CPH0S=0x0//CPH0PS=0x1
CISCKS=0x0//CPH0LPS=0x0
CSMPS=0x0//CPH1LPS=0x0

CISCKL=0x1
CSMPL=0x0
CRSL=0x0//0x1
CCLPL=0x0//0x1

CDSS1=0x1
CDSC1=0x3
CDSS2=0xC
CDSC2=0xD

[TG_150]
CPH0P=0x7fc700
CISCKP=0x0//CPH0LP=0x0
CSMPP=0x0//CPH1LP=0x0

CRSP=0x300000
CCLPP=0x060000

CPH0S=0x0//CPH0PS=0x1
CISCKS=0x0//CPH0LPS=0x0
CSMPS=0x0//CPH1LPS=0x0

CISCKL=0x0//0x1
CSMPL=0x0
CRSL=0x0//0x1
CCLPL=0x0//0x1

CDSS1=0x7
CDSC1=0x9
CDSS2=0x17
CDSC2=0x1

[RES1200Color]
TargetCode=0xFDFDFD        // Blue Green Red
;DummyLine=2
MotorMode=2                // 0:fullstep   1:halfstep   2:quaterstep
CCDTiming=0                // 0:TG_1200 1:TG_600 2:TG_300 3:TG_200 4:TG_150 5:TG_100
ThroughRate=2              // 0:1MHz  1:1.5MHz  2:2MHz// 0:1MHz  1:2MHz  2:4MHz  3:8MHz   4:1.5MHz
ExposureTime=16500
TAThroughRate=2
TAExposureTime=16500
TAExpRatio=0x111           //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
NEGThroughRate=2
NEGExposureTime=16500
NEGExpRatio=0x124          //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
TACVTR1PMPT=0xf            //(Masking Pattern Table/4bit)
TACVTR2PMPT=0xa            //(Masking Pattern Table/4bit)
TACVTR3PMPT=0x8            //(Masking Pattern Table/4bit)
NEGCVTR1PMPT=0xf           //(Masking Pattern Table/4bit)
NEGCVTR2PMPT=0xa           //(Masking Pattern Table/4bit)
NEGCVTR3PMPT=0x8           //(Masking Pattern Table/4bit)
TAYTableSelect=0           //select valid line (Ex.0,1,2...)
NEGYTableSelect=0          //select valid line (Ex.0,1,2...)
SensorResolution=1200

[RES600Color]
TargetCode=0xF0F0FD	   // Blue Green Red
MotorMode=1                // 0:fullstep   1:halfstep   2:quaterstep
CCDTiming=1                // 0:TG_1200 1:TG_600 2:TG_300 3:TG_200 4:TG_150 5:TG_100
ThroughRate=0 2            // 0:1MHz  1:1.5MHz  2:2MHz// 0:1MHz  1:2MHz  2:4MHz  3:8MHz   4:1.5MHz
ExposureTime=16500
TAThroughRate=0
TAExposureTime=16500
TAExpRatio=0x111           //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
NEGThroughRate=0
NEGExposureTime=16500
NEGExpRatio=0x124          //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
TACVTR1PMPT=0xf            //(Masking Pattern Table/4bit)
TACVTR2PMPT=0xa            //(Masking Pattern Table/4bit)
TACVTR3PMPT=0x8            //(Masking Pattern Table/4bit)
NEGCVTR1PMPT=0xf           //(Masking Pattern Table/4bit)
NEGCVTR2PMPT=0xa           //(Masking Pattern Table/4bit)
NEGCVTR3PMPT=0x8           //(Masking Pattern Table/4bit)
TAYTableSelect=0           //select valid line (Ex.0,1,2...)
NEGYTableSelect=0          //select valid line (Ex.0,1,2...)
SensorResolution=600

[RES300Color]
TargetCode=0xFDFDFD        // Blue Green Red
MotorMode=2                // 0:fullstep   1:halfstep   2:quaterstep
CCDTiming=2                // 0:TG_1200 1:TG_600 2:TG_300 3:TG_200 4:TG_150 5:TG_100
ThroughRate=0              // 0:1MHz  1:1.5MHz  2:2MHz// 0:1MHz  1:2MHz  2:4MHz  3:8MHz   4:1.5MHz
ExposureTime=8250
TAThroughRate=0
TAExposureTime=8250
TAExpRatio=0x111           //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
NEGThroughRate=0
NEGExposureTime=8250
NEGExpRatio=0x124          //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
TACVTR1PMPT=0xf            //(Masking Pattern Table/4bit)
TACVTR2PMPT=0xa            //(Masking Pattern Table/4bit)
TACVTR3PMPT=0x8            //(Masking Pattern Table/4bit)
NEGCVTR1PMPT=0xf           //(Masking Pattern Table/4bit)
NEGCVTR2PMPT=0xa           //(Masking Pattern Table/4bit)
NEGCVTR3PMPT=0x8           //(Masking Pattern Table/4bit)
TAYTableSelect=0           //select valid line (Ex.0,1,2...)
NEGYTableSelect=0          //select valid line (Ex.0,1,2...)
SensorResolution=300

[RES200Color]
TargetCode=0xFDFDFD        // Blue Green Red
MotorMode=1                // 0:fullstep   1:halfstep   2:quaterstep
CCDTiming=3                // 0:TG_1200 1:TG_600 2:TG_300 3:TG_200 4:TG_150 5:TG_100
ThroughRate=0              // 0:1MHz  1:1.5MHz  2:2MHz// 0:1MHz  1:2MHz  2:4MHz  3:8MHz   4:1.5MHz
ExposureTime=5500
TAThroughRate=0
TAExposureTime=5500
TAExpRatio=0x111           //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
NEGThroughRate=0
NEGExposureTime=5500
NEGExpRatio=0x124          //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
TACVTR1PMPT=0xf            //(Masking Pattern Table/4bit)
TACVTR2PMPT=0xa            //(Masking Pattern Table/4bit)
TACVTR3PMPT=0x8            //(Masking Pattern Table/4bit)
NEGCVTR1PMPT=0xf           //(Masking Pattern Table/4bit)
NEGCVTR2PMPT=0xa           //(Masking Pattern Table/4bit)
NEGCVTR3PMPT=0x8           //(Masking Pattern Table/4bit)
TAYTableSelect=0           //select valid line (Ex.0,1,2...)
NEGYTableSelect=0          //select valid line (Ex.0,1,2...)
SensorResolution=200

[RES150Color]
TargetCode=0xFDFDFD        // Blue Green Red
MotorMode=1                // 0:fullstep   1:halfstep   2:quaterstep
CCDTiming=2                // 0:TG_1200 1:TG_600 2:TG_300 3:TG_200 4:TG_150 5:TG_100
ThroughRate=0              // 0:1MHz  1:1.5MHz  2:2MHz// 0:1MHz  1:2MHz  2:4MHz  3:8MHz   4:1.5MHz
ExposureTime=8250
TAThroughRate=0
TAExposureTime=8250
TAExpRatio=0x111           //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
NEGThroughRate=0
NEGExposureTime=8250
NEGExpRatio=0x124          //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
TACVTR1PMPT=0xf            //(Masking Pattern Table/4bit)
TACVTR2PMPT=0xa            //(Masking Pattern Table/4bit)
TACVTR3PMPT=0x8            //(Masking Pattern Table/4bit)
NEGCVTR1PMPT=0xf           //(Masking Pattern Table/4bit)
NEGCVTR2PMPT=0xa           //(Masking Pattern Table/4bit)
NEGCVTR3PMPT=0x8           //(Masking Pattern Table/4bit)
TAYTableSelect=0           //select valid line (Ex.0,1,2...)
NEGYTableSelect=0          //select valid line (Ex.0,1,2...)
SensorResolution=300

[RES100Color]
TargetCode=0xFDFDFD        // Blue Green Red
MotorMode=0                // 0:fullstep   1:halfstep   2:quaterstep
CCDTiming=3                // 0:TG_1200 1:TG_600 2:TG_300 3:TG_200 4:TG_150 5:TG_100
ThroughRate=1              // 0:1MHz  1:1.5MHz  2:2MHz// 0:1MHz  1:2MHz  2:4MHz  3:8MHz   4:1.5MHz
ExposureTime=3700
TAThroughRate=0
TAExposureTime=3700
TAExpRatio=0x111           //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
NEGThroughRate=0
NEGExposureTime=3700
NEGExpRatio=0x124          //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
TACVTR1PMPT=0xf            //(Masking Pattern Table/4bit)
TACVTR2PMPT=0xa            //(Masking Pattern Table/4bit)
TACVTR3PMPT=0x8            //(Masking Pattern Table/4bit)
NEGCVTR1PMPT=0xf           //(Masking Pattern Table/4bit)
NEGCVTR2PMPT=0xa           //(Masking Pattern Table/4bit)
NEGCVTR3PMPT=0x8           //(Masking Pattern Table/4bit)
TAYTableSelect=0           //select valid line (Ex.0,1,2...)
NEGYTableSelect=0          //select valid line (Ex.0,1,2...)
SensorResolution=200

[RES1200Gray]
TargetCode=0xFDFDFD        // Blue Green Red
MotorMode=1                // 0:fullstep   1:halfstep   2:quaterstep
CCDTiming=0                // 0:TG_1200 1:TG_600 2:TG_300 3:TG_200 4:TG_150 5:TG_100
ThroughRate=0              // 0:1MHz  1:1.5MHz  2:2MHz// 0:1MHz  1:2MHz  2:4MHz  3:8MHz   4:1.5MHz
ExposureTime=11000
TAThroughRate=0
TAExposureTime=11000
TAExpRatio=0x111           //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
NEGThroughRate=0
NEGExposureTime=11000
NEGRGBRatio=0x111          //RGB(4bit/chanel)
TACVTR1PMPT=0xf            //(Masking Pattern Table/4bit)
TACVTR2PMPT=0xa            //(Masking Pattern Table/4bit)
TACVTR3PMPT=0x8            //(Masking Pattern Table/4bit)
NEGCVTR1PMPT=0xf           //(Masking Pattern Table/4bit)
NEGCVTR2PMPT=0xa           //(Masking Pattern Table/4bit)
NEGCVTR3PMPT=0x8           //(Masking Pattern Table/4bit)
TAYTableSelect=0           //select valid line (Ex.0,1,2...)
NEGYTableSelect=0          //select valid line (Ex.0,1,2...)
SensorResolution=1200

[RES600Gray]
TargetCode=0xFDFDFD        // Blue Green Red
MotorMode=1                // 0:fullstep   1:halfstep   2:quaterstep
CCDTiming=1                // 0:TG_1200 1:TG_600 2:TG_300 3:TG_200 4:TG_150 5:TG_100
ThroughRate=0              // 0:1MHz  1:1.5MHz  2:2MHz// 0:1MHz  1:2MHz  2:4MHz  3:8MHz   4:1.5MHz
ExposureTime=5500
TAThroughRate=0
TAExposureTime=5500
TAExpRatio=0x111           //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
NEGThroughRate=0
NEGExposureTime=5500
NEGRGBRatio=0x111          //RGB(4bit/chanel)
TACVTR1PMPT=0xf            //(Masking Pattern Table/4bit)
TACVTR2PMPT=0xa            //(Masking Pattern Table/4bit)
TACVTR3PMPT=0x8            //(Masking Pattern Table/4bit)
NEGCVTR1PMPT=0xf           //(Masking Pattern Table/4bit)
NEGCVTR2PMPT=0xa           //(Masking Pattern Table/4bit)
NEGCVTR3PMPT=0x8           //(Masking Pattern Table/4bit)
TAYTableSelect=0           //select valid line (Ex.0,1,2...)
NEGYTableSelect=0          //select valid line (Ex.0,1,2...)
SensorResolution=600

[RES300Gray]
TargetCode=0xFDFDFD        // Blue Green Red
MotorMode=1                // 0:fullstep   1:halfstep   2:quaterstep
CCDTiming=2                // 0:TG_1200 1:TG_600 2:TG_300 3:TG_200 4:TG_150 5:TG_100
ThroughRate=0              // 0:1MHz  1:1.5MHz  2:2MHz// 0:1MHz  1:2MHz  2:4MHz  3:8MHz   4:1.5MHz
ExposureTime=5500
TAThroughRate=0
TAExposureTime=5500
TAExpRatio=0x111           //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
NEGThroughRate=0
NEGExposureTime=5500
NEGRGBRatio=0x111          //RGB(4bit/chanel)
TACVTR1PMPT=0xf            //(Masking Pattern Table/4bit)
TACVTR2PMPT=0xa            //(Masking Pattern Table/4bit)
TACVTR3PMPT=0x8            //(Masking Pattern Table/4bit)
NEGCVTR1PMPT=0xf           //(Masking Pattern Table/4bit)
NEGCVTR2PMPT=0xa           //(Masking Pattern Table/4bit)
NEGCVTR3PMPT=0x8           //(Masking Pattern Table/4bit)
TAYTableSelect=0           //select valid line (Ex.0,1,2...)
NEGYTableSelect=0          //select valid line (Ex.0,1,2...)
SensorResolution=300

[RES200Gray]
TargetCode=0xFDFDFD        // Blue Green Red
MotorMode=1                // 0:fullstep   1:halfstep   2:quaterstep
CCDTiming=3                // 0:TG_1200 1:TG_600 2:TG_300 3:TG_200 4:TG_150 5:TG_100
ThroughRate=0              // 0:1MHz  1:1.5MHz  2:2MHz// 0:1MHz  1:2MHz  2:4MHz  3:8MHz   4:1.5MHz
ExposureTime=4125
TAThroughRate=0
TAExposureTime=4125
TAExpRatio=0x111           //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
NEGThroughRate=0
NEGExposureTime=4125
NEGRGBRatio=0x111          //RGB(4bit/chanel)
TACVTR1PMPT=0xf            //(Masking Pattern Table/4bit)
TACVTR2PMPT=0xa            //(Masking Pattern Table/4bit)
TACVTR3PMPT=0x8            //(Masking Pattern Table/4bit)
NEGCVTR1PMPT=0xf           //(Masking Pattern Table/4bit)
NEGCVTR2PMPT=0xa           //(Masking Pattern Table/4bit)
NEGCVTR3PMPT=0x8           //(Masking Pattern Table/4bit)
TAYTableSelect=0           //select valid line (Ex.0,1,2...)
NEGYTableSelect=0          //select valid line (Ex.0,1,2...)
SensorResolution=200

[RES150Gray]
TargetCode=0xFDFDFD        // Blue Green Red
MotorMode=1                // 0:fullstep   1:halfstep   2:quaterstep
CCDTiming=2                // 0:TG_1200 1:TG_600 2:TG_300 3:TG_200 4:TG_150 5:TG_100
ThroughRate=0              // 0:1MHz  1:1.5MHz  2:2MHz// 0:1MHz  1:2MHz  2:4MHz  3:8MHz   4:1.5MHz
ExposureTime=4125
TAThroughRate=0
TAExposureTime=4125
TAExpRatio=0x111           //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
NEGThroughRate=0
NEGExposureTime=4125
NEGRGBRatio=0x111          //RGB(4bit/chanel)
TACVTR1PMPT=0xf            //(Masking Pattern Table/4bit)
TACVTR2PMPT=0xa            //(Masking Pattern Table/4bit)
TACVTR3PMPT=0x8            //(Masking Pattern Table/4bit)
NEGCVTR1PMPT=0xf           //(Masking Pattern Table/4bit)
NEGCVTR2PMPT=0xa           //(Masking Pattern Table/4bit)
NEGCVTR3PMPT=0x8           //(Masking Pattern Table/4bit)
TAYTableSelect=0           //select valid line (Ex.0,1,2...)
NEGYTableSelect=0          //select valid line (Ex.0,1,2...)
SensorResolution=300

[RES100Gray]
TargetCode=0xFDFDFD        // Blue Green Red
MotorMode=0                // 0:fullstep   1:halfstep   2:quaterstep
CCDTiming=3                // 0:TG_1200 1:TG_600 2:TG_300 3:TG_200 4:TG_150 5:TG_100
ThroughRate=0              // 0:1MHz  1:1.5MHz  2:2MHz// 0:1MHz  1:2MHz  2:4MHz  3:8MHz   4:1.5MHz
ExposureTime=4125
TAThroughRate=0
TAExposureTime=4125
TAExpRatio=0x111           //RGB(4bit/chanel,Ex.112,113,114,122,124,133,144)
NEGThroughRate=0
NEGExposureTime=4125
NEGRGBRatio=0x111          //RGB(4bit/chanel)
TACVTR1PMPT=0xf            //(Masking Pattern Table/4bit)
TACVTR2PMPT=0xa            //(Masking Pattern Table/4bit)
TACVTR3PMPT=0x8            //(Masking Pattern Table/4bit)
NEGCVTR1PMPT=0xf           //(Masking Pattern Table/4bit)
NEGCVTR2PMPT=0xa           //(Masking Pattern Table/4bit)
NEGCVTR3PMPT=0x8           //(Masking Pattern Table/4bit)
TAYTableSelect=0           //select valid line (Ex.0,1,2...)
NEGYTableSelect=0          //select valid line (Ex.0,1,2...)
SensorResolution=200

[CalibReflective]
//strip info
WStripXPos=20
WStripYPos=0 //60
BStripXPos=0
BStripYPos=0
WRefR=236
WRefG=235
WRefB=230
BRefR=7 
BRefG=7 
BRefB=7
RefBitDepth=8

//ADC OFFSET
CalibOffsetOn=2

AdcOffQuickWay=1
AdcOffPredictStart=160 
AdcOffPredictEnd=200
AdcOffPredictR=150
AdcOffPredictG=150
AdcOffPredictB=150

DCoffset=160
DCoffsetfac=85
OffsetR=128
OffsetG=128
OffsetB=128

AdcOffEvenOdd=1
OffsetR_Even=128
OffsetG_Even=128
OffsetB_Even=128
OffsetR_Odd=128
OffsetG_Odd=128
OffsetB_Odd=128

OffsetHeight=10
OffsetPixelStart=10 //
OffsetNPixel=20
OffsetNSigma=16
OffsetTargetMax=50
OffsetTargetMin=2
OffsetAvgTarget=12 

//ADC GAIN
CalibGainOn=1
GainR=1
GainG=1
GainB=1
GainHeight=30
GainTargetFactor=90

// BWShading
TotShading=2 1

// SHADING
WShadingOn=1
WShadingHeight=20
WShadingPreDiffR=-1
WShadingPreDiffG=-1
WShadingPreDiffB=-1

// SHADOW
BShadingOn=1
BShadingHeight=20
BShadingPreDiffR=1
BShadingPreDiffG=1
BShadingPreDiffB=1

//
SaveCalibFile=0
CalibMethod=0 
IsDump=0

// Peak
PeakR=180
PeakG=180
PeakB=180
MinR=90
MinG=90
MinB=90


[CARMON]
AutoEdgeBlack=-97  //40
RemoveDarkEdge=40


[ScanInfo]
ScanXStart=0 
ScanYStart=495 530 //
ScanXPAYStart=2800
ParkHomeAfterCalib=1
;//HwGamma=17 10   // divide by 10 , raw=10
DefGamma=0  10 ; 0    ;gamma = (10+n)/10
DefBkLinear=20
; GammaR=0
; GammaG=0
; GammaB=0
; BkLinearR=20
; BkLinearG=20
; BkLinearB=20
WarmupT1=30     // overdrive
WarmupT2=5      // normal
SleepTime=900   // sec
PreviewDPI=100
ColorCompress=1
ShadingTime_16Bit=0
ShadowTime_16Bit=0
ShadingTime_8Bit=0
ShadowTime_8Bit=0

swGamma=1			// read gtdata.txt for gamma correction
[Scanner Can]
CanRGBCorrect=1               //1: Read color matrix  0: do not Read color matrix
[COLORMATCH]
sRGB=1.651824,-0.25657,-0.246483,0.014392,0.893072,0.234243,0.116977,-0.417026,1.409899

[CalibMotorAcc]
MotorBaseSpeed=700         // by full-step pps
MotorParkSpeed=3000 //4700//sometimes fail @4900,4800//always fail @5000
MotorStep1PPS=500          //mmtits
MotorStep2PPS=800//1300    //mmtit1
MotorStep3PPS=1500//2000   //mmtit2
MotorStep4PPS=2000//2500   //mmtit3
MMTIStep1=4//5  //mmtiss
MMTIStep2=3     //mmtit1s
MMTIStep3=2     //mmtit2s
MMTIStep4=1     //mmtit3s
BufferFullMotorBackStep=14

[RFT_1200]
CutOff_R=-40  //divided by 10
CutOff_G=-40  //divided by 10
CutOff_B=-40  //divided by 10
BUniformR=0
BUniformG=0
BUniformB=0

[RFT_600]
CutOff_R=-40  //divided by 10
CutOff_G=-40  //divided by 10
CutOff_B=-40  //divided by 10
BUniformR=0
BUniformG=0
BUniformB=0

[RFT_300]
CutOff_R=-40  //divided by 10
CutOff_G=-45  //divided by 10
CutOff_B=-45  //divided by 10
BUniformR=0
BUniformG=0
BUniformB=0

[RFT_200]
CutOff_R=-40  //divided by 10
CutOff_G=-40  //divided by 10
CutOff_B=-40  //divided by 10
BUniformR=0
BUniformG=0
BUniformB=0

[RFT_150]
CutOff_R=-40  //divided by 10
CutOff_G=-45  //divided by 10
CutOff_B=-45  //divided by 10
BUniformR=0
BUniformG=0
BUniformB=0

[RFT_100]
CutOff_R=-40  //divided by 10
CutOff_G=-40  //divided by 10
CutOff_B=-40  //divided by 10
BUniformR=0
BUniformG=0
BUniformB=0
