Paxar Gold 6037EX User Manual

Size:
2.78 Mb
Download

C O D E 9 3 I N F O

The CODE93INFO data structure contains scanner configuration information about Code 93 bar codes. To read these values, applications call scnGetCode93Info; to set these values, they call scnSetCode93Info.

typedef struct _Code93Info

{

unsigned char uchEnable; unsigned char uchLength1; unsigned char uchLength2;

} CODE93INFO;

Field Description

uchEnable Enable/disable the ability to scan Code 93 bar codes.

Default: SCN_DISABLE

uchLength1 Specifies lengths (including check digits) foruchLength2 Code 93 bar codes. You can specify one or two

lengths, a range of lengths, or that any length is valid. Enter values as follows:

Option

uchLength1

uchLength2

1

Length

Value

0

2

Lengths

Higher Value

Lower Value

Range

Min. Value

Max. Value

Any length

0

0

Default: 4(uchLength1) and 55(uchLength2).

Data Structure Reference 5-7

D 2 O F 5 I N F O

The D2OF5INFO data structure contains scanner configuration information about D 2 of 5 bar codes. To read these values, applications call scnGetD2of5Info; to set these values, they call scnSetD2of5Info.

typedef struct _D2of5Info

{

unsigned char uchEnable; unsigned char uchLength1; unsigned char uchLength2;

} D2OF5INFO;

Field Description

uchEnable Enable/disable the ability to scan D 2 of 5 bar codes.

Default: SCN_DISABLE

uchLength1 Specifies lengths (including check digits) for D 2uchLength2 of 5 bar codes. You can specify one or two

lengths, a range of lengths, or that any length is valid. Enter values as follows:

Option

uchLength1

uchLength2

1

Length

Value

0

2

Lengths

Higher Value

Lower Value

Range

Min. Value

Max. Value

Any length

0

0

Selecting the any length option may lead to misscans.

Default: 12(uchLength1) and 0(uchLength2)

5-8Programmer’s Manual

G E N E R A L I N F O

The GENERALINFO data structure contains general scanner configuration information. To read these values, applications call scnGetGeneralInfo; to set these values, they call scnSetGeneralInfo.

typedef struct _GeneralInfo

{

unsigned char uchLaserOnTime; unsigned char uchPowerMode; unsigned char uchTriggerMode; unsigned char uchSameSymbolTMO; unsigned char uchLinearCodeSecur; unsigned char uchBiDirRedun;

} GENERALINFO;

Field

Description

uchLaserOnTime

The maximum time (in increments of .1

 

seconds) of a scan. Values are 5-99.

 

Default: 30

uchPowerMode

Specifies whether power remains on or

 

the scanner goes into low power mode

 

after a scan. If uchTriggerMode is1

 

(Continuous) and uchPowerMode is1

 

(Low Power), the scanner remains

 

continually on. Values are:

 

0

Continually On

 

1

Low Power

 

Default: 1

uchTriggerMode

The method that starts the scanner. If

 

uchTriggerMode is1 (Continuous) and

 

uchPowerMode is1 (Low Power), the

 

scanner remains continually on. Values

 

are:

 

 

0

Trigger

 

1

Continuous (always on)

 

Default: 0

Data Structure Reference 5-9

Field

Description

 

 

uchSameSymbolTMO

The minimum time that must elapse

 

between scans of the same bar code (in

 

increments of .1 seconds). You must set

 

uchTriggerMode to 1 when setting this

 

parameter. Values are 1-99.

 

Default: 10

uchLinearCodeSecur

The scan security level for linear bar

 

codes. Values are 1-4.Select a higher

 

level for lower quality bar codes. See

 

“Scan Security Levels” for more

 

information.

 

Default: 1

uchBiDirRedun

Enable/disable the requirement to scan

 

bar codes in both directions (forward and

 

reverse).

 

Default: SCN_DISABLE

Scan Security Levels

The following table describes the security levels used with the uchLinearCodeSecur parameter.

Level Number

Description

 

 

 

 

1

The following bar code types (provided they meet

 

the specified length requirements) must be

 

scanned successfully twice:

 

Codabar

Any length

 

MSI

4

characters or less

 

D 2 of 5

8

characters or less

 

I 2 of 5

8

characters or less

2

All bar code types of all lengths must be scanned

 

successfully twice.

 

 

5-10Programmer’s Manual

Level Number

Description

 

 

 

 

3

Bar code types other than the following (or these

 

bar codes, as long as they do not meet the

 

length specification) must be scanned

 

successfully twice:

 

 

 

MSI

4

characters or less

 

D 2 of 5

8

characters or less

 

I 2 of 5

8

characters or less

4

All bar code types of all lengths must be scanned

 

successfully three times.

Data Structure Reference 5-11

I 2 O F 5 I N F O

The I2OF5INFO data structure contains scanner configuration information about I 2 of 5 bar codes. To read these values, applications call scnGetI2of5Info; to set these values, they call scnSetI2of5Info.

typedef struct _I2of5Info

{

unsigned char uchEnable; unsigned char uchLength1; unsigned char uchLength2;

unsigned char uchChkDgtAlgorithm; unsigned char uchXmitCheckDigit; unsigned char uchCvtI2of5toEAN13;

} I2OF5INFO;

Field

Description

 

 

uchEnable

Enable/disable the ability to scan I 2 of 5

 

bar codes.

 

 

 

Default: SCN_ENABLE

 

uchLength1

Specifies lengths (including check digits)

uchLength2

for I 2 of 5 bar codes. You can specify

 

one or two lengths, a range of lengths, or

 

that any length is valid. Enter values as

 

follows:

 

 

 

Option

uchLength1 uchLength2

 

1 Length

Value

0

 

2 Lengths

High Value

Low Value

 

Range

Min. Value

Max. Value

 

Any length

0

0

 

Selecting the any length option may lead

 

to mis-decodes.

 

 

Default: 14(uchLength1) and 0

 

(uchLength2).

 

5-12Programmer’s Manual

Field

Description

 

 

uchChkDgtAlgorithm

Specifies whether the scanner should

 

check the integrity of I 2 of 5 bar codes to

 

ensure they comply with either the Uniform

 

Symbology Specification (USS) or Optical

 

Product Code Council (OPCC) algorithms.

 

Values are:

 

0

Do not check the integrity

 

1

Check the integrity against the

 

 

USS algorithm

 

2

Check the integrity against the

 

 

OPCC algorithm

 

Default: 0

uchXmitCheckDigit

Enable/disable the requirement to transmit

 

check digits with the data.

 

Default: SCN_DISABLE

uchCvtI2of5toEAN13

Enable/disable the requirement to convert

 

14-characterI 2 of 5 bar codes into EAN13

 

bar codes, and transmit them as EAN13

 

bar codes.

 

To use this parameter, enable uchEnable,

 

set the length to 14, and ensure the data

 

has a leading zero and a valid EAN 13

 

check digit.

 

Default: SCN_DISABLE

Data Structure Reference 5-13

M S I I N F O

The MSIINFO data structure contains scanner configuration information about MSI bar codes. To read these values, applications call scnGetMSIInfo; to set these values, they call scnSetMSIInfo.

typedef struct _MSIInfo

{

unsigned char uchEnable; unsigned char uchLength1; unsigned char uchLength2; unsigned char uchCheckDigits; unsigned char uchXmitCheckDigit;

unsigned char uchChkDgtAlgorithm; } MSIINFO;

Field

Description

 

 

uchEnable

Enable/disable the ability to scan MSI bar

 

codes.

 

 

 

Default: SCN_DISABLE

 

uchLength1

Specifies lengths for MSI bar codes. You

uchLength2

can specify one or two lengths, a range of

 

lengths, or that any length is valid. Enter

 

values as follows:

 

 

Option

uchLength1 uchLength2

 

1 Length

Value

0

 

2 Lengths

High Value

Low Value

 

Range

Min. Value

Max. Value

 

Any length

0

0

 

Default: 6(uchLength1) and 55

 

(uchLength2).

 

5-14Programmer’s Manual

Field

Description

 

 

uchCheckDigits

The number of check digits to use with the

 

bar codes. Values are:

 

0

One check digit

 

1

Two check digits. For this value, you

 

 

must also set uchChkDgtAlgorithm.

 

Default: 0

uchXmitCheckDigit

Enable/disable the requirement to transmit

 

data with the check digit.

 

Default: SCN_DISABLE

uchChkDgtAlgorithm

Specifies the check digit algorithm to use.

 

Values are:

 

0

Mod 10/Mod 11

 

1

Mod 10/Mod 10

 

Default: 1

Data Structure Reference 5-15

U P C E A N I N F O

The UPCEANINFO data structure contains scanner configuration information about UPC and EAN bar codes. To read these values, applications call scnGetUPCEANInfo; to set these values, they call scnSetUPCEANInfo.

typedef struct _UPCEANInfo

{

unsigned char uchEnableUPCA; unsigned char uchEnableUPCE; unsigned char uchEnableUPCE1; unsigned char uchEnableEAN8; unsigned char uchEnableEAN13; unsigned char uchEnableBookEAN; unsigned char uchEnableSupps; unsigned char uchEnableSuppRedun; unsigned char uchXmitUPCAChkDgt; unsigned char uchXmitUPCEChkDgt; unsigned char uchXmitUPCE1ChkDgt; unsigned char uchUPCAPreamble; unsigned char uchUPCEPreamble; unsigned char uchUPCE1Preamble; unsigned char uchCvtUPCEtoUPCA; unsigned char uchCvtUPCE1toUPCA; unsigned char uchEAN8ZeroExtend; unsigned char uchCvtEAN8toEAN13; unsigned char uchSecurityLevel; unsigned char uchEnableCouponCode;

} UPCEANINFO;

Field

Description

uchEnableUPCA

Enable/disable the ability to scan UPCA

 

bar codes.

 

Default: SCN_ENABLE

uchEnableUPCE

Enable/disable the ability to scan

 

UPCE0 bar codes.

 

Default: SCN_ENABLE

5-16Programmer’s Manual