Bar Code ScanningAppendix —A
363TE 2000
5250 Terminal Emulation Programmer’s Guide
Terminating Keys
Terminating keys are the nonprintable ASCII sequences and action keys.
When the terminal encou nters them in a bar code, an action is taken, and
the terminal sends the data in the buff er to the host computer. Terminat-
ing keys should appear only at the end of the bar code. If they are located
in the middle of a bar code, they are executed normally, but the data fol-
lowing them in the bar code is ignored. Ter minating keys cause a termi-
nal-to-base station transmission. The terminal ignores data in the bar code
buffer following these keys once a transmission takes place.
For example, the terminal interprets the following sequence:
123$V456
as
123F6
The terminal does not send “456” to the host computer, because it follows
terminating key F6.
ASCII sequences can be used any time before a terminating key. For ex-
ample, the terminal interprets
+H+E+L+L+O$M
as
hello<Enter>
Escape Characters
The four e scape characters in the previous table yield a 5250 data stream
key press equivalent when followed by another character. The escape char-
acters are: $ (dollar sign)
%(percent)
+(plus)
/(forwardslash)
For example:
S If a bar code contains the sequence “%U” somewhere within it, the ter-
minal converts this sequence to an [ENTER] key and processes it as
soon as encountered in the scanning buffer.
S “+B” is converted to the lower case “b.”
S “%B” is converted to an F11 key press.
IfyouwanttheEncodedCode39optionbutthebarcodestobescanned
alreadycontainthe“$,”“%,”“+,”or“/,”character,theneachplacewhere
these characters occur must be expanded to a special “/” sequence:
S Every bar code where the “$” is maintained must be expanded to a “/D”
sequence.
S Percentsigns(%)mustbeexpandedto“/E”.
S Forward slashes (/) must be expanded to the letter “/O”.
S Plus signs (+) must be expanded to “/K”.