Unitech Hand Held Scanner user manual Examples, Advanced Features

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-Stringmentioned 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-Stringwill 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

Image 28
Contents User’s Manual RS232 Serial Interface PIN Assignment and Specification Chapter Overview Installation procedures InstallationKeyboard Interface Installed on PC/AT without keyboard or laptop computer Installed on MacintoshInstalled as an USB Interface Intercharacter DelayInterblock Delay Understanding the Operating ParametersFunction Code Alt Key ModeCaps-Lock Installed as a Serial Interface RS232 Serial InterfaceBaud Rate, Parity and Data Bit Device TypeHandshaking BCC Character Serial TTLTime Out Installing as a Terminal Wedge Terminal InterfaceData Direction Code 39 Output Wand EmulationNative Output Level Duration of Minimum Width Appendix D Output of Wand Emulation Appendix DPolarity of Idle Appendix D Bar Code Menu Setup Chapter SetupSetup Procedures Bar Code Length Setting Code ID SettingPreamblePrefix and PostambleSuffix Predefined LabelsQuick Setup Batch SetupI800C06D51DJ8 08080A0O7C005354 I800C06D51DJ8080 80A0O7C005354415254 General Output Data EditingFormula Programming Programming SequenceInputIDLengthMatchA-StringO-String...O-String Enter PreparationProgramming Sheet Parameter EntryQualifier Input ID FormatLength Match FormatModifier String FormatExamples Advanced FeaturesExample Example Pin Assignment and Specification Pin Number SignalPin Assignments Keyboard InterfacePin NumberTTL RS232 Interface Standard RS232 InterfaceHost Side connector Terminal InterfacePin Number Signal Terminal Side connectorWand Emulation Specification A.1 A.2 Device Selection and Default Appendix D. Setup MenuDevice ID Device Type Beeps and Delays MPU Idle StatusKeyboard Wedge Settings RS232 Settings Scanner Port Define Code IDMagnetic Reader Code 39 / I 2 of 5 / S 2 of 5 / Code 32 / EAN128 ReserveCode 128 / MSI Code / Code 93 / Codabar/ Label Code MSI /Pleasey CodeUPC / EAN / Delta Code UPC-EData Editing Dump Setup Strings Appendix E. Full Ascii Chart E.1E.2 E.3 E.4 Appendix F. Bar Code Test Chart