// OT7100 RtScan.DLL Version 1.2.0.4 (05/17)
// MOTOR VENDOR :  PRECISION 10/03 , Motor RC same as 9000
// speed test time :
// preview : 5.4sec
//           100     300    600    1200
//  B/W :    8.2     16.2   45.0   230
//  GRAY:    7.2     14.8   43.0   230
//  COLOR:   9.8     29.8   115.0  460.0
//  test ok 10/02
[Output]

[INIT]
//LogPath=c:\Temp\
//LogData=1
VendorID=0x04A7,0x0461
ProductID=0x022A,0x0377
Threshold=110
ID=0x71
EnableOutput=0
DECSEL=2
TpaConnect=2	// 0:Off, 1:On, 2:Autodetect
DisableButtons=0
AteGain=1,1,1   // 0:0.5  0.25/step
AteOffset=92, 86, 103	//100,100,100   
STOPTIM=1
BulkCmdDelay=50
WarmupTime=45
SleepTime=0
LineDistance=24
StaggeredLine=4
BGRLine=1
MotorDPI=1200
FastBaseSpeed=5000
FastSpeed=800
FastFactor=400
DisableGamma=0
StartPos=-1,-1,150,360
AutoPos=35,185,0x2000,0x2000,100, 4
LockCheck=144

//AfeIdleEnable=1
//DarkDelay=2000

OpticalBlack=13,62
OpticalPixel=10872
ShadingDPI=1200
ShadingStep=0,200
ShadingLines=32
ShadingLevel=0xC000,0xC000
ShadingSkip=4,4
ShadingAverage=-1
DarkLines=0
DarkSkip=2,2
AverageDark=0
LampPwmLimit=0xD000
AfeWhite=0xF000,0xF000,0xF200
ExpWhite=0xFC00,0xFB00,0xF800	//RGB  0xFC00,0xFB00,0xF900
AfeDark=0x0200,0x0200,0x0200		//Line dark  0x0300,0x0300,0x0300
ExpDark=0x0200,0x0200,0x0200		//Pixel dark
LedCode=1,2,1
AtLed=1,2,0
BackGain=-2,-2,-2
BackOffset=-2,-2,-2

DPIHW=1
DVDSET=1			// 0: disable shading, 1: enable shading
LAMPPWR=1			// 0: init lamp off, 1:init lamp on
LAMPPWM=511
GAIN4=1
OPTEST=0			// 0: normal, 2: pattern test
FSTPSEL=1
STRPIXEL=16			//85
ENDPIXEL=11000
LPERIOD=11000
BWHI=110
BWLOW=110

[REFLECTION]
Color=50:0,100:5,150:1,300:2,600:3,1200:4
Gray=50:10,100:11,150:12,300:13,600:14,1200:15
BW=50:10,100:11,150:12,300:13,600:14,1200:15

// color 50
[SET_0]

AddLine=0
ScanBaseSpeed=5000
ScanFactor=400	//600	
LPERIOD=12500	 
STEPSEL=1
AVEENB=0
STEPNO=164
FWDSTEP=64
BWDSTEP=64
FASTNO=164
MTRPWM=2

SensorSpeed=2
RSH=0
RSL=5
CPH=6
CPL=8
CKTOGGLE=0
CKDELAY=2
VSMP=16
RHI=15
RLOW=19
GHI=23
GLOW=3
BHI=7
BLOW=11

// color 100
[SET_5]

AddLine=0
ScanBaseSpeed=5000
ScanFactor=400	//600	
LPERIOD=7000
STEPSEL=1
AVEENB=0
STEPNO=164
FWDSTEP=64
BWDSTEP=64
FASTNO=164
MTRPWM=2

SensorSpeed=2
RSH=0
RSL=5
CPH=6
CPL=8
CKTOGGLE=0
CKDELAY=2
VSMP=16
RHI=15
RLOW=19
GHI=23
GLOW=3
BHI=7
BLOW=11


// color 150
[SET_1]

AddLine=0
ScanBaseSpeed=5000
ScanFactor=400	//600	
LPERIOD=11000
STEPSEL=1
AVEENB=0
STEPNO=164
FWDSTEP=64
BWDSTEP=64
FASTNO=164
MTRPWM=2

SensorSpeed=2
RSH=0
RSL=5
CPH=6
CPL=8
CKTOGGLE=0
CKDELAY=2
VSMP=16
RHI=15
RLOW=19
GHI=23
GLOW=3
BHI=7
BLOW=11

// color 300
[SET_2]

ScanBaseSpeed=4000
ScanFactor=400	
LPERIOD=5500
STEPSEL=1
AVEENB=0
STEPNO=64
FWDSTEP=32
BWDSTEP=32
FASTNO=64
MTRPWM=2

SensorSpeed=2
RSH=0
RSL=5
CPH=6
CPL=8
CKTOGGLE=0
CKDELAY=2
VSMP=16
RHI=15
RLOW=19
GHI=23
GLOW=3
BHI=7
BLOW=11

// color 600
[SET_3]

Compress=1
DummyLine=-1
ScanBaseSpeed=4000
ScanFactor=400	
LPERIOD=8500
STEPSEL=1
AVEENB=0
STEPNO=32
FWDSTEP=32
BWDSTEP=32
FASTNO=32
MTRPWM=0

SensorSpeed=2
RSH=0
RSL=5
CPH=6
CPL=8
CKTOGGLE=0
CKDELAY=2
VSMP=16
RHI=15
RLOW=19
GHI=23
GLOW=3
BHI=7
BLOW=11

// color 1200
[SET_4]

Compress=1
DummyLine=-1
ScanBaseSpeed=4000
ScanFactor=400	
LPERIOD=11000
STEPSEL=2
STEPNO=16
FWDSTEP=16	//146
BWDSTEP=16	//146
FASTNO=16
AVEENB=0
MTRPWM=0

// Gray 50
[SET_10]

ScanBaseSpeed=5000
ScanFactor=400	//600	
LPERIOD=11000
STEPSEL=1
AVEENB=0
STEPNO=164
FWDSTEP=64
BWDSTEP=64
FASTNO=164
FILTER=2
MTRPWM=2

SensorSpeed=2
RSH=0
RSL=5
CPH=6
CPL=8
CKTOGGLE=0
CKDELAY=2
VSMP=16
RHI=15
RLOW=19
GHI=23
GLOW=3
BHI=7
BLOW=11

// Gray 100
[SET_11]

ScanBaseSpeed=5000
ScanFactor=400	//600	
LPERIOD=6500
STEPSEL=1
AVEENB=0
STEPNO=164
FWDSTEP=64
BWDSTEP=64
FASTNO=164
FILTER=2
MTRPWM=2
AddThreshold=0

SensorSpeed=2
RSH=0
RSL=5
CPH=6
CPL=8
CKTOGGLE=0
CKDELAY=2
VSMP=16
RHI=15
RLOW=19
GHI=23
GLOW=3
BHI=7
BLOW=11

// Gray 150
[SET_12]

ScanBaseSpeed=5000
ScanFactor=400	//600
LPERIOD=5500
STEPSEL=1
AVEENB=0
STEPNO=164
FWDSTEP=64
BWDSTEP=64
FASTNO=164
FILTER=2
MTRPWM=2

SensorSpeed=2
RSH=0
RSL=5
CPH=6
CPL=8
CKTOGGLE=0
CKDELAY=2
VSMP=16
RHI=15
RLOW=19
GHI=23
GLOW=3
BHI=7
BLOW=11

// Gray 300 -- black line
[SET_13]

ScanBaseSpeed=5000
ScanFactor=400	//600	
LPERIOD=5500	
STEPSEL=1
AVEENB=0
STEPNO=128 
FWDSTEP=32	//64
BWDSTEP=32	//64
FASTNO=128 
FILTER=2
MTRPWM=2

SensorSpeed=2
RSH=0
RSL=5
CPH=6
CPL=8
CKTOGGLE=0
CKDELAY=2
VSMP=16
RHI=15
RLOW=19
GHI=23
GLOW=3
BHI=7
BLOW=11

// Gray 600
[SET_14]

ScanBaseSpeed=5000
ScanFactor=400	//600
LPERIOD=8500
STEPSEL=1
AVEENB=0
STEPNO=128
FWDSTEP=32	//64
BWDSTEP=32	//64
FASTNO=128
FILTER=2
MTRPWM=2

SensorSpeed=2
RSH=0
RSL=5
CPH=6
CPL=8
CKTOGGLE=0
CKDELAY=2
VSMP=16
RHI=15
RLOW=19
GHI=23
GLOW=3
BHI=7
BLOW=11

// Gray 1200
[SET_15]

Compress=1
ScanBaseSpeed=4000
ScanFactor=400	//600	
LPERIOD=15000
STEPSEL=2
STEPNO=32
FWDSTEP=16	//64
BWDSTEP=16	//64
FASTNO=32
AVEENB=0
FILTER=2
MTRPWM=0
DummyLine=-1
LAMPPWM=250
