[INIFiles]
LMABQHPROTOCOL_INI=LMABQHPt.INI
LMABQHTEMP_INI=LMABQHTp.INI
LMABQMFP_PROFILE=LMABQPrf.ini
LMABQSCANNERLIST=LMABQSLT.dat

[RunTime]
IniVersion=0001 		// INI version
FWVersion=0001			// Firmware version
SensorType=0 			// 0: NEC 8872 	1:TOSHIBA 2953 	2:TOSHIBA 2905
MotorType=0			// 0: 6219
DriverVersion=1.41.0.0
DriverType=1
//DriverType: 1.USB 2.Network 3.Mixed

[KPaper]
VisualHomePosY=472		// Unit: half step
WhiteStartPosY=472		// Unit: half step
ScanInAccPosY=0			// Unit: half step
TA_VisualHomePosY=4300		// Unit: half step
TA_WhiteStartPosY=4300		// Unit: half step
TA_ScanInAccPosY=3600		// Unit: half step

[PWM_Control]
PWM_Enable=0			// 1: Enable lamp PWM; 0: Disable lamp PWM
DurationOn=100			// Lamp on Duration (2-bytes)
DurationOff=100			// Lamp off Duration (2-bytes)

[LampInverter]
InverterEnable=1		// 1: With inverter circuit; 0: Without
SwitchDelayTime=3000		// Unit: milli-second

[Motor]
MotorCurrent100dpi=2		// 2-bits: 0 ~ 3
MotorCurrent150dpi=2		// 2-bits: 0 ~ 3
MotorCurrent300dpi=1		// 2-bits: 0 ~ 3
MotorCurrent600dpi=1		// 2-bits: 0 ~ 3
MotorCurrent1200dpi=1		// 2-bits: 0 ~ 3
MotorCurrent2400dpi=1		// 2-bits: 0 ~ 3
MotorCurrentBackHome=2		// 2-bits: 0 ~ 3
TA_MotorCurrent=1		// 2-bits: 0 ~ 3

MotorSpeedMode100dpi=1		// 0: Full step, 1: Half step, 2: Micro step
MotorSpeedMode150dpi=1		// 0: Full step, 1: Half step, 2: Micro step
MotorSpeedMode300dpi=2		// 0: Full step, 1: Half step, 2: Micro step
MotorSpeedMode600dpi=2		// 0: Full step, 1: Half step, 2: Micro step
MotorSpeedMode1200dpi=2		// 0: Full step, 1: Half step, 2: Micro step
MotorSpeedMode2400dpi=2		// 1: Half step, 2: Micro step (Not support Full step)
MotorSpeedModeBackhome=2	// 0: Full step, 1: Half step, 2: Micro step

Run100dpiAccStep=845		// Max 1023 step
Run150dpiAccStep=845		// Max 1023 step
Run300dpiAccStep=255		// Max 1023 step
Run600dpiAccStep=255		// Max 1023 step
Run1200dpiAccStep=255		// Max 1023 step
Run2400dpiAccStep=255		// Max 1023 step
BackHomeAccStep=1023		// Max 1023 step

StepOfSSByUserSetting=0		// 0: Calculate by LLD driver;	1: Setting by user
SS100dpiStep=959		// For 100dpi Stop/Start, Max 1023 step
SS150dpiStep=959		// For 150dpi Stop/Start, Max 1023 step
SS300dpiStep=479		// For 300dpi Stop/Start, Max 1023 step
SS600dpiStep=447		// For 600dpi Stop/Start, Max 1023 step
SS1200dpiStep=255		// For 1200dpi Stop/Start, Max 1023 step
SS2400dpiStep=255		// For 2400dpi Stop/Start, Max 1023 step

TA_MotorSpeedMode300dpi=1	// 0: Full step, 1: Half step, 2: Micro step
TA_MotorSpeedMode600dpi=1	// 0: Full step, 1: Half step, 2: Micro step
TA_MotorSpeedMode1200dpi=1	// 0: Full step, 1: Half step, 2: Micro step
TA_MotorSpeedMode2400dpi=1	// 1: Half step, 2: Micro step  (Not support Full step)


[Debug]
DumpMessage=1			// Dump debug message. 1:Enable; 0:Disable.
DumpLogFile=1			// Dump to log file. 1:Enable; 0:Disable.
DumpMotorStepLogFile=0		// Dump motor step to log file. 1:Enable; 0:Disable.
ShowLeadingPositionBox=0	// 1: show; 0: disable
DumpRawImage=0                  // Dump debug image. 1:Enable; 0:Disable.
showscantime=0                  // 1: show; 0: disable

[DeviceID]
DeviceID0=VID_043d&PID_001d
DeviceID1=VID_043d&PID_0109

[CheckLock]
Method=0			// 0: "Motor Move" method; 1: "Check White-Sheet" method
ForwardSteps=550		// For "Motor Move" method, based on half step
BackwardSteps=330		// For "Motor Move" method, based on half step

[WarmUp]
FastWarmTime=45			// Warm up time in second (If use Canon's warm up sequence, this value is igored).
FirstWarmTime=3			// For Canon warm-up sequence, S2
SecondWarmTime=5		// For Canon warm-up sequence, S14
FinalWarmTime=45		// For Canon warm-up sequence, S4
LowTempWarmTime=60		// For Canon warm-up sequence, S15
S14LLTarget=45			// (Flatbed) Target value for S14 L/L way cheching.
S18LLTarget=50			// (Flatbed) Target value for S18 L/L way cheching.
WarmUpCCDTarget=210		// (Flatbed) The target value of CCD output after WarmUp finished.
TA_S14LLTarget=35		// (FAU) Target value for S14 L/L way cheching.
TA_S18LLTarget=50		// (FAU) Target value for S18 L/L way cheching.
TA_WarmUpCCDTarget=210		// (FAU) The target value of CCD output after WarmUp finished.

[LOSSLESS]
LosslessEnable=0		// 1: Enable JPEG function;	0: Disable
LossLessValue=7			// Use Decimal format (Combine keep bit and encode bit value)

[LUT]
DefaultLUTFileEnable=1		// 1: Combine this LUT;		0: Bypass this LUT.
FLB_300_LUT=LMABQ600.plg		// Gamma mapping file for fletbed 300 dpi.
FLB_600_LUT=LMABQ600.plg		// Gamma mapping file for fletbed 600 dpi.
FLB_1200_LUT=LMABQ120.plg		// Gamma mapping file for fletbed 1200 dpi.
PTA_300_LUT=C1210TA.plg		// Gamma mapping file for FAU Positive 300 dpi.
PTA_600_LUT=C1210TA.plg		// Gamma mapping file for FAU Positive 600 dpi.
PTA_1200_LUT=C1210TA.plg	// Gamma mapping file for FAU Positive 1200 dpi.


[Property]
RGB_Line_Shift=24		// Line spacing
COLOR_SEQUENCE=0		// 1: RGB;	0: BGR
HIGH_BUFFER_SIZE=1048576          //2048000	// Ring Buffer size
HIGH_BUFFER_NUM=12		// The number of buffer
MEDIUM_BUFFER_SIZE=1024000	// Ring Buffer size
MEDIUM_BUFFER_NUM=16		// The number of buffer
LOW_BUFFER_SIZE=256000		// Ring Buffer size
LOW_BUFFER_NUM=30		// The number of buffer

Max_Diff_Of_Gain=4096
Max_Diff_Of_Dark=2048

MaxGainAmpBit=8			// 2
MaxOffsetAmpBit=8		// 2
BitAllocation=2			// (Gain/Offset) 0:8/8, 1:10/6, 2:12/4


[FlatBed]
FB_ExposureTime_Preview=2.0	// Flatbed, Exposure time of Preview, Unit:ms
FB_ExposureTime_300=2.0		// Flatbed, Exposure time of 300 dpi, Unit:ms
FB_ExposureTime_600=2.2		// Flatbed, Exposure time of 600 dpi, Unit:ms
FB_ExposureTime_1200=3.6	// Flatbed, Exposure time of 1200 dpi, Unit:ms

[TA_Positive]
PTA_ExposureTime_300=5.0	// Positive, Exposure time of 300 dpi, Unit:ms
PTA_ExposureTime_600=10.0	// Positive, Exposure time of 600 dpi, Unit:ms
PTA_ExposureTime_1200=10.0	// Positive, Exposure time of 1200 dpi, Unit:ms

[TA_Negative]
NTA_ExposureTime_300=5.0	// Negative, Exposure time of 300 dpi, Unit:ms
NTA_ExposureTime_600=10.0	// Negative, Exposure time of 600 dpi, Unit:ms
NTA_ExposureTime_1200=10.0	// Negative, Exposure time of 1200 dpi, Unit:ms

[VendorCommand]
BulkOnly=0			// 0: via Control pipe;	1: via Bulk in/out pipes

[Calib_Parm]
FindLeadingEdgeEnable=1		// 1: Do this action;	0: Skip this action
PixelGainEnable=1		// 1: Do this action;	0: Skip this action
PixelDarkEnable=1		// 1: Do this action;	0: Skip this action

Exposure_TargetWhite_R=180	// Target white for Exposure time adjust
Exposure_TargetWhite_G=180	// Target white for Exposure time adjust
Exposure_TargetWhite_B=180	// Target white for Exposure time adjust

TargetWhite_R=222		// Target Code for calculating R channel VGA Gain
TargetWhite_G=222		// Target Code for calculating G channel VGA Gain
TargetWhite_B=224		// Target Code for calculating B channel VGA Gain

TargetDark_R=8			// Target Code for calculating R channel DC Offset
TargetDark_G=8			// Target Code for calculating G channel DC Offset
TargetDark_B=8			// Target Code for calculating B channel DC Offset

TA_Exposure_TargetWhite_R=180	// Target white for Exposure time adjust
TA_Exposure_TargetWhite_G=180	// Target white for Exposure time adjust
TA_Exposure_TargetWhite_B=180	// Target white for Exposure time adjust

TA_TargetWhite_R=230		// Target Code for calculating R channel VGA Gain
TA_TargetWhite_G=230		// Target Code for calculating G channel VGA Gain
TA_TargetWhite_B=230		// Target Code for calculating B channel VGA Gain

TA_TargetDark_R=4		// Target Code for calculating R channel DC Offset
TA_TargetDark_G=4		// Target Code for calculating G channel DC Offset
TA_TargetDark_B=4		// Target Code for calculating B channel DC Offset

// Initial value of AFE
PGAGainR=75			// Initial value of AFE Gain (Channel R)
PGAGainG=75			// Initial value of AFE Gain (Channel G)
PGAGainB=75			// Initial value of AFE Gain (Channel B)
DACOffsetR=128			// Initial value of AFE Offset (Channel R)
DACOffsetG=128			// Initial value of AFE Offset (Channel G)
DACOffsetB=128			// Initial value of AFE Offset (Channel B)


[Shading_Parm]
ShadingOnce=0			// 1: Enable, only do pixel gain and offset at each mode first time, 0: Disable, always do pixel gain and offset
SoftwareShadingEnable=0		// 1: Enable software shading;  0: Disable
PixelOffsetDPCM=1		// 1: Do this action;	0: Skip this action

TurnOffLampDelayTime=1000	// How long the time after turn off lamp we can start to get data for Dark Shading (millisecond).

// Sorting method of Dark/White Shading,
//	0: Drop the fixed pixel (Low & High).
//	1: Scrap the data which lower than specific percentage of the highest.
SortingMethod=0
DarkShadingLines_FLB=20		// (Fletbed)
WhiteShadingLines_FLB=60	// (Fletbed)
DarkShadingLines_TA=20		// (FAU)
WhiteShadingLines_TA=60		// (FAU)

// For Sorting Method 0 (FIX),
FIX_TopSkipLines_FLB=10		// (Fletbed)
FIX_BottomSkipLines_FLB=30	// (Fletbed)
FIX_TopSkipLines_TA=10		// (FAU)
FIX_BottomSkipLines_TA=30	// (FAU)

// For Sorting Method 1 (PCT),
PCT_KeepPercent_FLB=75		// (Fletbed) The data which lower than the percentage of the highest will be scraped.
PCT_KeepPercent_TA=75		// (FAUd) The data which lower than the percentage of the highest will be scraped.
PCT_TopSkipLines_FLB=0		// (Fletbed)
PCT_TopSkipLines_TA=0		// (FAU)

PreviewModePixelDarkOffset_R=-256
PreviewModePixelDarkOffset_G=-256
PreviewModePixelDarkOffset_B=-256

NoStaggerModePixelDarkOffset_R=-256
NoStaggerModePixelDarkOffset_G=-256
NoStaggerModePixelDarkOffset_B=-256

StaggerModePixelDarkOffset_R=-256
StaggerModePixelDarkOffset_G=-256
StaggerModePixelDarkOffset_B=-256

Scan300ModePixelDarkOffset_R=-256
Scan300ModePixelDarkOffset_G=-256
Scan300ModePixelDarkOffset_B=-256

TA_Scan300ModePiexlDarkOffset_R=0
TA_Scan300ModePiexlDarkOffset_G=0
TA_Scan300ModePiexlDarkOffset_B=0

TA_NoStaggerModePiexlDarkOffset_R=0
TA_NoStaggerModePiexlDarkOffset_G=0
TA_NoStaggerModePiexlDarkOffset_B=0

TA_StaggerModePiexlDarkOffset_R=0
TA_StaggerModePiexlDarkOffset_G=0
TA_StaggerModePiexlDarkOffset_B=0

Preview_Shading_Factor_R=1148
Preview_Shading_Factor_G=1148
Preview_Shading_Factor_B=1138

NoStagger_Shading_Factor_R=1148
NoStagger_Shading_Factor_G=1148
NoStagger_Shading_Factor_B=1138

Stagger_Shading_Factor_R=1148
Stagger_Shading_Factor_G=1148
Stagger_Shading_Factor_B=1138

300_Shading_Factor_R=1148
300_Shading_Factor_G=1148
300_Shading_Factor_B=1138

TA_300_Shading_Factor_R=1000
TA_300_Shading_Factor_G=1000
TA_300_Shading_Factor_B=1000

TA_NoStagger_Shading_Factor_R=1000
TA_NoStagger_Shading_Factor_G=1000
TA_NoStagger_Shading_Factor_B=1000

TA_Stagger_Shading_Factor_R=1000
TA_Stagger_Shading_Factor_G=1000
TA_Stagger_Shading_Factor_B=1000

// The following are for BK Smooth Method
BK_MovingAvgPixel=100	// The pixel number of smooth moving window
BK_Offset=-20		// 16bits signed data
BK_Threshold=48		// 16bits data
//BK_MovingAvgPixel_300=100	// The pixel number of smooth moving window for 300 dpi.
//BK_Offset_300=-20		// 16bits signed data for 300 dpi.
//BK_Threshold_300=48		// 16bits data for 300 dpi.
//BK_MovingAvgPixel_600=100	// The pixel number of smooth moving window for 600 dpi.
//BK_Offset_600=-20		// 16bits signed data for 600 dpi.
//BK_Threshold_600=48		// 16bits data for 600 dpi.
//BK_MovingAvgPixel_1200=100	// The pixel number of smooth moving window for 1200 dpi.
//BK_Offset_1200=-20		// 16bits signed data for 1200 dpi.
//BK_Threshold_1200=48		// 16bits data for 1200 dpi.

[StartPos_Parm]
SearchOnce=0			// 0: Search Start Position Every Time; 1: Search Once. 

Default_X=290
Default_Y=1350
X_Offset=50	//40		// (unit: 1200 dpi)
Y_Offset=370	//350		// (unit: half step)
X_Range=10000
Y_Range=10000
X_RealSet=198
Y_RealSet=1226

TA_Default_X=4500
TA_Default_Y=6800
TA_X_Offset=380		//136			// (unit: 1200 dpi)
TA_Y_Offset=2370	//2400		// (unit: half step)
TA_X_Range=10000
TA_Y_Range=10000
TA_X_RealSet=4472
TA_Y_RealSet=7062


[Driving_Setting_Register]
DrivingSettingEnable=1		// 1: Enable; 0: Disable
ADCDRVReg=241			// Default=0xF1 (Refer to M5623 Data Sheet Register 0xFE0C)
GPODRVReg=227			// Default=0xE3 (Refer to M5623 Data Sheet Register 0xFE0D)

