Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 7 of 15

PowerWedge 20 User's Guide: Input Editing

Pages 51 to 65 of 148, from PowerWedge 20 User's Guide

The original document is the PDF (2.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the PSC Powerwedge 20 and Datalogic Powerwedge 20

Page 51

Input Editing

Input Editing The PowerWedge 20 gives you the ability to modify input from bar code scanners, magnetic stripe readers, auxiliary serial devices, and keyboards. This feature is known as input editing. With input editing, you program the decoder to change the format of the input data before it sends the data to your computer or terminal. You can program your decoder for input editing using any programming method (see Programming the PowerWedge 20 on page 17).

table

User’s Guide

45

Page 52

Input Editing

Table 5 shows just a few of the many uses for input editing. Table 5. Examples of Input Editing By programming the decoder to …

You can change this …

To this …

Delete the first three characters of each string

A0037066 A0037067

37066 37067

Separate the input into two fields separated by a space

A0037066 A0037067

A 0037066 A 0037067 or A003 7066 A003 7067

Separate the input into three fields separated by dashes

A0037066 A0037067

A-003-7066 A-003-7067

Rearrange the order of the fields

A0037066 A0037067

0037066A 0037067A

Separate the input into fields separated by commas and rearrange the order of the fields

A0037066 A0037067

7066,A003 7067,A003

Add text to the data

A0037066 A0037067

Ser. #A0037066 Ser. #A0037067 or A0037066 Jan/95 A0037067 Jan/95

Input editing overrides standard preamble and postamble settings. Programmed preambles and postambles will be attached only to data input that doesn’t qualify for editing (see the next section).

46

PowerWedge® 20

Page 53

Input Editing

Creating Qualification Definitions To qualify for input editing, the data that enters the decoder must meet certain criteria that you define. For example, you may require the data to be Code 39, to have exactly ten numbers or letters, and to end with an X. These criteria make up a qualification definition. Any input that meets all the criteria for a definition will be edited according to the parameters that you set for it and output in the format that you specify. You can create up to four different qualification definitions for input editing. The definitions are numbered 1 through 4, and each definition has its own set of I.D. numbers for programming parameters (see Table 6). Parameters for each definition include the following:

User’s Guide

•

Symbology This specifies whether the data must be of a particular bar code type or come from a specific magnetic stripe channel, an auxiliary serial device, or keyboard input. Only data of the designated symbology can be considered for qualification. (This parameter can also be set to consider any input regardless of symbology or source.)

•

Record length This specifies what length (from 1 through 99 characters) the data must be. Only data of the designated length will be considered. (This parameter can also be set to consider data of any length.)

•

Number of input fields This specifies into how many fields (from 1 through 8) the input data will be broken down. Each field can then be defined as a specific number of characters (or any number of characters) beginning with a specific character (or any character).

•

Output sequence This specifies the order in which to output the defined fields. The output sequence can also include additional information, such as symbology identifiers, preambles, postambles, or up to 16 extra fields that contain text strings. These extra fields are numbered 0 through 9 and A through F; each field has its own programming I.D. number. (For more information about output sequencing, see Understanding Output Sequences on page 51.)

47

Page 54

Input Editing

When data is read, the decoder processes the definitions in numerical order. If the input data qualifies under definition 1, the decoder edits and outputs the data; if the data does not qualify under definition 1, the decoder tries definition 2. The process continues in order through all four definitions, and the data is edited according to the first definition under which it qualifies; the other definitions are not used. If the data doesn’t qualify under any of the four definitions, then the decoder outputs the data without editing it.

If the “allow qualified data only” parameter (I.D. #AD) is enabled, no data will be output unless it qualifies under one of the definitions. NOTE

Parameters for Input-Editing Definitions Table 6 lists I.D. numbers and predefined defaults for parameters for input-editing definitions 1 through 4. You can change your decoder’s settings for these parameters using the bar code menu, bar code batch, serial batch, or on-screen method of programming. Table 6. Input Editing Parameters

PARAMETER

I.D. #

PREDEFINED DEFAULTS

TYPE D0

D1

D2

Definition 1

Enter 1 for On and 0 for Off.

Enable

70

On/Off

Off

On

Off

Symbology (0 = any; for other values, see I.D. #B5 on page 52)

71

Value

0

C

0

Record length (01–99, or 00 for any)

72

Value

00

00

00

48

PowerWedge® 20 table

Page 55

Input Editing

Table 6. Input Editing Parameters (Continued)

PARAMETER

Number of fields (01–08)

I.D. #

73

PREDEFINED DEFAULTS

TYPE D0

D1

D2

01

05

01

Value

Fields 1–8 (length followed by qualifier; 00 = any length; (00) = any qualifier) Field 1 Field 2 Field 3 Field 4 Field 5 Field 6 Field 7 Field 8

74 75 76 77 78 79 7A 7B

Field

00(00)

00(00) 01! 00(00) 01= 03(00) 00(00) 00(00) 00(00)

00(00)

Output sequence (see Table 7)

7C

String

//

*

//

*60610561036201B1// (see Understanding Output Sequences on page 51, for explanation)

Definition 2

Enter 1 for On and 0 for Off.

Enable

80

On/Off

Off

Off

Off

Symbology (0 = any; for other values, see I.D. #B5 on page 52)

81

Value

0

0

0

Record length (01–99, or 00 for any)

82

Value

00

00

00

Number of fields (01–08)

83

Value

01

01

01

Fields (length followed by qualifier; 00 = any length; (00) = any qualifier) Field 1 Field 2 Field 3 Field 4 Field 5 Field 6 Field 7 Field 8

84 85 86 87 88 89 8A 8B

Field

00(00)

00(00)

00(00)

Output sequence (see Table 7)

8C

String

//

//

//

User’s Guide

49 table

Page 56

Input Editing

Table 6. Input Editing Parameters (Continued)

PARAMETER

I.D. #

PREDEFINED DEFAULTS

TYPE D0

D1

D2

Definition 3

Enter 1 for On and 0 for Off.

Enable

90

On/Off

Off

Off

Off

Symbology (0 = any; for other values, see I.D. #B5 on page 52)

91

Value

0

0

0

Record length (01–99, or 00 for any)

92

Value

00

00

00

Number of fields (01–08)

93

Value

01

01

01

00(00)

00(00)

00(00)

Fields (length followed by qualifier; 00 = any length; (00) = any qualifier) Field 1 Field 2 Field 3 Field 4 Field 5 Field 6 Field 7 Field 8

94 95 96 97 98 99 9A 9B

Field

Output sequence (see Table 7)

9C

String

50 table

//

//

//

PowerWedge® 20

Page 57

Input Editing

Table 6. Input Editing Parameters (Continued) I.D. #

PARAMETER

PREDEFINED DEFAULTS

TYPE D0

D1

D2

Definition 4

Enter 1 for On and 0 for Off.

Enable

A0

On/Off

Off

Off

Off

Symbology (0 = any; for other values, see I.D. #B5 on page 52)

A1

Value

0

0

0

Record length (01–99, or 00 for any)

A2

Value

00

00

00

Number of fields (01–08)

A3

Value

01

01

01

Fields (length followed by qualifier; 00 = any length; (00) = any qualifier) Field 1 Field 2 Field 3 Field 4 Field 5 Field 6 Field 7 Field 8

A4 A5 A6 A7 A8 A9 AA AB

Field

00(00)

00(00)

00(00)

Output sequence (see Table 7)

AC

String

//

//

//

Allow qualified data only

AD

On/Off

Off

Off

Off

Understanding Output Sequences An output sequence does not contain any text that will actually be output; it contains pointers to fields, which may contain input data or text strings. For example, you cannot include a comma in an output sequence; instead, you must include the output-sequence value of the field containing a comma. An output sequence can also contain autoterminators, preambles, and postambles. Each field and other type of information is assigned a specific value (either the field number or letter, or the parameter I.D. number) for inclusion in the output sequence (see Table 7). User’s Guide

51

Page 58

Input Editing

Each output sequence must end with an end-of-string character (//). Each input editing definition has its own output sequence with its own I.D. number. The order of the values in the output sequence determines the order in which the field contents and other information will appear in the output. If a field is not included in the output sequence, its contents will be stripped from the data during input editing. Table 7. Output Sequence Settings TYPE OF INFORMATION

Fields 01–08

ACTUAL OUTPUT

01–08

The contents of each specified field

Magnetic stripe preambles Channel 1 Channel 2 Channel 3

48 4E 58

Magnetic stripe postambles Channel 1 Channel 2 Channel 3

49 4F 59

A text string

A text string

Extra fields

60–6F

The contents of each specified field; see Using Extra Fields on page 53

Redirection commands

90–96

None; see Table 9

Autoterminator

B1

A single ASCII character

Symbology identifier

B5

A code identifying the input form

End-of-string character (//)

52

VALUE USED IN OUTPUT SEQUENCE

Must be used to end each output sequence

PowerWedge® 20

Page 59

Input Editing

Using Extra Fields You can define up to 16 extra fields for input editing. Use the extra fields to include text strings or keyboard actions. For example, by defining one field to contain the word aisle, another field to contain the word bin, a third field to contain a tab, and another field to contain a space, you can change N21263 to aisle N21 bin 263

You can include the value for each extra field in the output sequence of any or all of the qualification definitions. Table lists I.D. numbers and predefined defaults for extra fields. You can change your decoder’s settings for these parameters using the bar code menu, bar code batch, serial batch, or on-screen method of programming. Table 8. Extra-Field Parameters PARAMETER

I.D. #

TYPE

Extra field 0

60

Extra field 1 Extra field 2 Extra fields 3–16

D0

D1

D2

String

//

Acc#//

//

61

String

//

//*

//

62

String

//

, //†

//

63–6F§

String

//

//

//

*Two spaces †A comma followed by a space §Extra field 3 = 63 Extra field 8 = 68 Extra field 4 = 64 Extra field 9 = 69 Extra field 5 = 65 Extra field A = 6A Extra field 6 = 66 Extra field B = 6B Extra field 7 = 67 Extra field C = 6C

User’s Guide

PREDEFINED DEFAULTS

Extra field D = 6D Extra field E = 6E Extra field F = 6F

53

Page 60

Input Editing

Redirecting Output After input editing, data is normally output to the host computer or terminal. You can include output-redirection commands or system commands in the output sequence to redirect the data output (see Table 9). Table 9. Output-Redirection Settings

54

VALUE USED IN OUTPUT SEQUENCE

EFFECT

90

Switches output back to the host after data has been redirected

91

Redirects data as control commands to be sent to the system’s host-controlled indicator (HCI) parser (see )

92–95

Redirects data to the serial port’s handshake-out line using the following settings:

92 93 94 95

9600 baud, 8 data bits, no parity, 1 stop bit 9600 baud, 7 data bits, even parity, 1 stop bit 2400 baud, 8 data bits, no parity, 1 stop bit 2400 baud, 7 data bits, even parity, 1 stop bit

96

Redirects data to the serial port’s Tx line

PowerWedge® 20

Page 61

Input Editing

An Input Editing Example

NOTE

To read the bar codes in this example, your PowerWedge 20 decoder must accept Code 39 bar codes with a maximum length of 26 characters. Scan the following bar code to reset your decoder to predefined default D2 and set the maximum length for Code 39 bar codes to 26:

*$+$-D20226EE* Let’s say you are the head of security for a large manufacturing company. Each employee in your company has an identification badge with a Code 39 bar code containing the employee’s first name and last name, a five-digit employee number that begins with 0, and sometimes additional information. Names, numbers, and other information in the bar codes are separated by periods, as in the following example:

*SALLY.ROGERS.01836.MGR* To enter certain areas of the building, employees must present their badges to an I.D. badge reader that passes the data through a PowerWedge 20 to a central computer. The information output to the computer also includes the location of the I.D. badge reader. The output is in the following format: Last name, First nameEmp. #Location Today you are installing a badge reader and decoder at a new location called Area M, and you need to program the decoder to output the data in the proper format. Using the example above, you want the output to be as follows: Rogers, Sally1836Area M To get the results you want, you need to complete three steps.

User’s Guide

55

Page 62

Input Editing

Step 1: Create a Qualification Definition The definition will require the input to be Code 39 data of any length and will break that data down into seven fields, including (1) first name, (3) last name, (5) employee number with the leading zero dropped off, and (7) other information, as shown below:

*SALLY.ROGERS.01836.MGR* 1

2

3

4

5

6

7

Any input that doesn’t meet the definition criteria will not be edited. Table 10 lists the parameters and values you need to use. If you are using predefined defaults (see page 18), you need to program only the parameters whose values are different from the defaults. For example, the D1 default setting for I.D. #71 (definition 1 symbology) is C (Code 39); so if your decoder is using the D1 settings, you do not need to set I.D. #71. Table 10. Parameter Settings for the Example I.D. #

Value

Enable definition 1

70

1

Use definition 1 to filter incoming data.

Symbology

71

C

Only Code 39 input will be edited.

Record length

72

00

The incoming data can contain any number of characters.

Number of fields

73

07

The incoming data contains seven fields.

Field 1

74

00(00)

The first field can be of any length and can begin with any character.

Field 2

75

01.

The second field is exactly one character long and that character is a period.

Parameter

56

Meaning

PowerWedge® 20 table

Page 63

Input Editing

Table 10. Parameter Settings for the Example Parameter

I.D. #

Value

Meaning

Field 3

76

00(00)

The third field can be of any length and can begin with any character.

Field 4

77

02.

The second field is exactly two characters long and the first character is a period.

Field 5

78

04(00)

The fifth field is exactly four characters long and can begin with any character.

Field 6

79

01.

The sixth field is exactly one character long and that character is a period.

Field 7

7A

00(00)

The seventh field can be of any length and can begin with any character.

If you are using the bar code batch programming method and the D2 predefined defaults, your bar codes for the definition should look like the following:

*$+$-70171C73077501.EE* *$+$-7702.7804%U7901.EE* Notice that the bar codes do not include settings for record length or for fields 1, 3, and 7. Since these parameters use the defaults, it is not necessary to include them in the bar codes. Also notice the %U in the second bar code. This is the Code 39 equivalent for the null character, which is used in place of 00 in bar code batch programming.

User’s Guide

57

Page 64

Input Editing

Step 2: Program Extra Fields Set parameters for three extra fields to contain the following: •

The I.D. badge reader’s location

•

A comma and a space to separate the first name from the last name

•

A tab to separate columns in the output

Table 11 lists the parameters and data strings you need to use. Each string ends with the end-of-string character (//). Table 11. Parameter Settings for the Extra Fields Parameter

I.D. #

String

Contents

Extra field 0

60

Area M//

The location of the I.D. badge reader

Extra field 1

61

, //

Extra field 2

62

(TABR)//

A comma followed by a space A tab character

Your bar codes for the extra-field settings should look like the following:

*$+$-60A+R+E+A!M//EE* *$+$-61/L!//62$I//EE* Notice the use of the plus symbols (+) before the R, the E, and the second A. These cause the letters to be output as lowercase (a, r, and e). In the second bar code, /L is the Code 39 equivalent for a comma, and $I is the Code 39 equivalent for a tab character. Also notice that each extra-field setting ends with an end-of-string character (//).

58

PowerWedge® 20

Page 65

Input Editing

Step 3: Program the Output Sequence Enter the following codes: 03610162056260B1// where 03 is field 3 (last name) 61 is extra field 1 (comma and space) 01 is field 1 (first name) 62 is extra field 2 (tab) 05 is field 5 (employee number without the leading 0) 62 is extra field 2 (tab) 60 is extra field 0 (“Area M”) B1 is the autoterminator (a carriage return) // is the end-of-string character

Your bar code for the output sequence should look like the following:

*$+$-7C03610162056260B1//EE* Once you’ve completed these steps, your new I.D. badge reader should be able to read the bar code on each employee’s badge and report that the employee has entered Area M.

User’s Guide

59