The text of a manual · part 3 of 6
Hand Held Scanner User's Manual, pages 21 to 30
Pages 21 to 30 of 55
The original document is the PDF (211 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Unitech MS180 and Unitech MS210
Page 21
•
The following issues should be observed: The sequence of the strings that the scanner dumped is important. You have to print the bar code labels and scan them in the same sequence as the one that the scanner dumped.
•
When you scan the batch setup labels to configure a scanner, the previous settings on that scanner are reset to default and then replaced by the settings contained in the batch labels.
•
Only the settings that are different from the default values will be dumped. So the number of labels produced depends on how many settings being changed compare to the factory default setting.
•
The settings can be dumped to a PC or terminal only if that PC or terminal matches the type defined by Device Type of the scanner. The previous example of “Keyboardless Wedge” as Device Type is equivalent to a PC/AT interface, so you can not dump that settings to a system which dose not support a PC/AT keyboard interface. The following label let you dump the settings to a PC/AT regardless what kind of device has been chosen on the scanner.
Dump Settings On PC/AT
•
You can adjust the length of the dumped strings by combining multiple strings into one or breaking one string into multiple strings. The following strings have the same effect as the dumped string listed above: ...I800C06D51DJ8080 80A0O7C005354415254. You can not delete any character from or add any character into the strings and the first three characters (“...”) must present in the first string.
•
All characters in dumped strings are in upper case. If you see lowercase characters in dumped strings, change them to upper case.
Page 20
Page 22
Chapter 7
Output Data Editing
The function described here can be replaced by the “Pre-defined Labels” function in 6.1.5 Predefined Labels. So if data-editing function is defined, “Pre-defined Labels” will be removed. They can not be defined at the same time.
7.1. General The purpose of Data Edit is allowing you to define and modify a data record that comes from decoding of a bar code. By using combination of formulas, you can perform the following functions on the data received by the scanner: A. Rearrange the output sequences. B. Delete characters from the record. C. Insert characters to the record, including function codes. D. Duplicate characters in the record. E. Insert time delay in the record
7.2. Formula Formula is a structure that tells the scanner what and how to process the original data record to produce the desired output. The Wedge allows multiple Formulas, but the number of the Formulas can be defined depends on the memory size allocated for Data Editing. 7.2.1. Original Data Structure The original data is the decoded data plus preamble and postamble. The original data structure is as follow: Preamble
Decoded Data
Postamble
7.2.2. Formula Structure: A Formula consists of two parts: Qualifier and Modifier (See Figure 7.1). Qualifier is used to verify if the data record meets the conditions specified and Modifier is processed only if all conditions in Qualifier are met. 7.2.3. Execution Sequence If several Formulas were defined, data editing will perform sequentially from the first Formula to the last Formula. If a Formula is qualified and executed, the further formulas will be ignored. If none of the Formulas is executed, the data record will be discarded and there will be no output to the host. Page 21
Page 23
Formular
Qualifier
Input ID
[Length]
Modifier
[Match]
Input ID
[Length]
[Match]
[Match]
... [Match]
A-String: String to be added. O-String: Modified original data. [] : Optional. Figure 7.1 Formula Structure
7.3. Programming 7.3.1. Programming Sequence: Each Formula is entered into the Reader by the following sequence: Input_ID>>Length>>Match>>A-String>>O-String>>...>>O-String >>Enter A Formula starts with Input_ID and ends with “Enter”(a label in programming sheet). If a field is optional and missing, the next one in the sequence can be entered. But “Enter” must be the last input of a formula. 7.3.2. Preparation To start the data editing, the following barcode sheets are needed: -- Programming Sheet.( Setup Sheet in Appendix D). -- Full ASCII Sheet (Appendix E). -- Function Code Sheet (Appendix B or C). Before programming Data Editing, you should know the format of the original data record that may be altered by the setup groups.
Page 22
Page 24
7.3.3. Programming Sheet The bold and italicized characters in following sections mean a barcode label on the Programming Sheet. Enter Group 10 Group Default Review
Backspace , " * # Enter 0 to 9 IN_ID LEN MATCH O-STR + Exit
Scan this label to start the formula input. Erase all formulas. To see the formulas programmed in the Wedge. If scanning this label during a formula input (without finished by scanning “Enter”), the current formula will be displayed. Otherwise, all programmed formulas will be displayed. Delete the last character. Delimiter to separate parameters. String specifier. Wild character to specify any digit or any position. Wild character to specify any letter(A--Z, a-z) or last position To end the current formula. For digit input. For ID field input. For Length field input. For Match field input. For O-String input. For O-String input. For O-String input. Save all formulas and exit setup.
Note: The '*', '#', '" ' and ',' on Programming Sheet have special meanings as mentioned above and are different from those represented in Full ASCII chart. Always use characters in Full ASCII chart for string parameters unless a special function is required. 7.3.4. Parameter Entry a) Digit Parameters and Numbers Each digit parameter or number is represented by one to three digits with ‘,’ as terminator. For example: 1, 023, Page 23
Page 25
b) String Parameters A string is a set of characters, wild characters, or sequence of adjacent characters enclosed in double quotation marks, which are on the Programming Sheet. For example: "A*B# " Here * and # are wild characters on the setup sheet.
7.4. Qualifier There are three conditional fields in the Qualifier: Input ID, Length and Match. 7.4.1. Input ID Format: IN_ID,ID1, ... ,IDi, Input ID is required and the original data record must correspond to Input ID of a formula in order to be processed. ID1 to IDi are represented by digits. The following Input IDs are available: 0 = Code 39 Full ASCII 1 = Code 39 Standard 2 = EAN 13 3 = EAN 8 4 = UPC A 5 = UPC E 6 = I 2 of 5 7 = Codabar 8 = Code 128 9 = Code 93 10 = S 2 of 5 11 = MSI 19 = UCC/EAN128 28 = All Inputs There is no limitation on the number of IDs to be defined. Example: IN_ID,0,11, means the original data can be Code 39 or MSI. Page 24
Page 26
7.4.2. Length: Format: LEN,Min,Max, Length field consists of two length parameters: minimum length (Min) and maximum length (Max). When defined, a formula will be performed if the length of the original data falls between MIN and MAX When missing, the following fields of current Formula are always processed. Example: LEN,9,48, means the length of original data must be within 9 and 48. 7.4.3. Match Format: MATCH, P0 ,"C0" ,P1, "C1" ,...,Pn, "Cn" , a pair of Pn and Cn forms a Match field (n indicates a sequential integer number). To define a Match field, two parameters are required. The first is character position (Pn) and the second is a string (Cn). Character position means the number of characters, counting from the first character to the one to be positioned in the data record. For example, in the following data BARCODE 'B' has position 1. 'A' has position 2. ... 'E' has position 7. When Match field is defined, the original data string starts at the position specified by the first parameter P and will be compared with string "C". If the match is identical, processing of current Formula continues. The position parameter P could be a wild character * for any position or # for the last position in the original data. If # is used, #-N is valid. Here N is a digit parameter. The string parameter C can include * for any digit or # for any letter. Examples: MATCH,3,"AB",#,"?", Page 25
Page 27
Checks if the original data has 'A' at position 3, 'B' at position '4' and last character is '?'. MATCH , 10 , " *A*", Checks if the original data includes a string with a digit as first character and "A*" followed at position 10.
7.5. Modifier Modifier has two types of fields: A-String and O-String to define the output contents. 7.5.1. A-String Format: "abc..." 'a', 'b' and 'c' in the string can be any character. A-String defines a string of characters to be added to the output. For example, if the original data is: BCD and output string is BarCoDe "ar", 'o' and 'e' in output string are added strings and can be defined by A-Strings. Note: If '*' on Programming Sheet are included in A-String, one interblock delay defined by Group 2 will be inserted. 7.5.2. O-String Format: O-STR , P, N, O-String always applies to the original data. It contains two parameters. The first is position parameter (P) that specifies the start output position in the original data. Parameter N tells how many characters will be included beginning from P. Example: Original data is: Barcode Then O-Str , 4, 4, Gives output as code Note: -- N can be '#' for all remaining characters from P. -- If P greater than the length of original data, the O-String will be skipped. Page 26
Page 28
-- If N greater than the number of remaining characters counting from P, the remaining characters are included as valid.
7.6. Examples 7.6.1. Example 1 If the original data is Code 39 and content is "AA", output "ABC Company", and otherwise output the original data as it is. IN_ID,0,LEN,2,2,MATCH,1,"AA","ABC company",Enter IN_ID,19,O-STR,1,#,Enter 7.6.2. Example 2 If the original data is Code 128 and logically divided into: -- First six characters are personal ID, -- Other characters are person's name. The output will be: -- Personal ID first, -- A 'CR' character, -- Two interblock delay, -- Name, -- A 'CR' character. The Formula will be: IN_ID,8,O-STR,1,6,"<CR>**",O-STR,7,#,"<CR>",Enter <CR> is a Carriage Return character scanned from Full ASCII Chart.
7.7. Advanced Features The O-String has the format: O-STR,P,N, Both parameters of O-String mentioned above are numbers. But both parameters can be specified as strings. If N is a string, it becomes a position and the meaning of O-String will be "Output from position P to position N". If P is defined as: "ab...ik" a, b, , i and k can be any character, the position will be evaluated as -- Start from the first position of the original string and search character 'a'. -- From the position next to 'a' in original data, search for 'b'. -- .... Page 27
Page 29
-- From the position next to 'i', search for k. -- If above searches are all found, the result of the parameter will be the position where 'k' is located. If N is a string, the position evaluation of N is the same as P except that the searching position is starting from P+1. For both P and N, if string is defined, a value can be added to or subtracted from the position. That following O-Strings: "ab...ik"+M, And "ab...ik"-M, Are meaningful. M is a integer number. Example: Suppose the following is a message to be modified: %B012345678901234^ABEL/STEVE L MGR ^90010129999999? in this message: "%" is start sentinel. "012345678901234" is account number. "^" is a separator 6. "ABEL" is surname. "/" is a separator. "STEVE" is first name. "L" is initial. "MGR" is title "^" is a separator. "9001" is expiration date. "?" is end sentinel. The output sequence desired is: Surname, First Name [CR] Account Number [CR] Expiration Date [CR] The formula input will be: IN_ID,0,O-STR,"^"+1,"/"-1,",",O-STR,"/"+1,"<SP>"-1,"<CR>", O-STR,3,"^"-1,"<CR>",O-STR,"^^"+1,4,"<CR>",Enter Here <SP> is Space character and <CR> is Carriage Return character. The output of above input will be ABEL,STEVE[CR] 012345678901234[CR] 9001[CR] Page 28
Page 30
Chapter 8 8.1
Pin Assignment and Specification
Pin Assignments
10
The modular connector located at the bottom of the scanner handle has the pin numbering as shown at the right picture
1
Modular Connector ( Front View)
8.1.1. Keyboard Interface The next table shows the modular connector pinout for keyboard interface:
Pin Number
Signal
1 2 3 4 5 6 7 8 9 10
Not Used VCC(+5V, output) DET GND Terminal Data Terminal Clock Power Input (+5V) Keyboard Clock Keyboard Data Not Used
Note: DET signal is bi-directional I/O pin and for internal use only. As keyboard interface, there are two other connectors on the interface cable. The connector type and pinout differ from terminal to terminal and are not listed here. 8.1.2. RS232 Interface The scanner supports TTL RS232 at modular connector and standard RS232 after the interface cable is attached.
Page 29