
HP 82153A - Wand Owner Manual - page 17
Example:
Use
WNDTST
to test a copy of the above bar code. Because
WNDTST
uses R
00
as a counter, plus one storage register for each
byte in a row, be sure that the data registers R
00
through R
02
are available for this example. To run the test, scan the following bar
code.
Bar Code
Display
W: READY
Executes
WNDTST
.
WNDTST
B1.=1.1.0.1.0.1.0.0.
Corresponds to the pattern of the wide and
narrow bars in the first byte:
1 1 0 1 0 1 0 0
Test Bar Code
B2.=0.0.0.0.1.0.0.1.
Corresponds to the pattern of the wide and
narrow bars in the first byte:
0 0 0 0 1 0 0 1
CLX
0.
Clears the display. (
WNDTST
sets the display to
FIX
0 and clears the stack of any previous data.)
Note:
If flag 29 is cleared you will not see the radix marks (refer to
page 230
, Display Control Flags, in the
HP-41C Owner’s
Handbook and Programming Guide
).
If the wand correctly reads the bar code you scan, the displayed zeros will correspond to the narrow bars and the displayed ones will
correspond to the wide bars. A series of consistently misreads of a bar code row normally indicates defective bar code. However, if
the wand consistently misreads bar code that is in good condition, the wand may need service. If you suspect that your wand is
operating improperly, refer to
Appendix B
, Maintenance and Service.
How it Works.
When you execute
WNDTST
and scan a row of bar code, the value of each consecutive byte in the row is stored in a
separate data storage register. Because the wand is designed to handle rows up to 16 bytes long, you will never need more than R
00
through R
16
for any
WNDTST
operation. The byte values will always be displayed in the left-to-right sequence that the corresponding
bytes occur in the row, regardless of your direction of scan.
Programming
WNDTST
. As you would expect
WNDTST
is loaded into program memory in the same way as other HP-41C functions.
However, unlike the other wand functions,
WNDTST
is actually an HP-41C applications program that calls a wand function (
WNDTST
). For this reason, when you scan
WNDTST
or key in
XEQ WNDTST
with the HP-41C in PRGM mode, the instruction appears in
program memory as
XROM
T
WNDTST
*
WNDTST
Options.
If you use an HP 82143A Printer with your HP-41C, executing
WNDTST
will result in an automatic printout of the
displayed byte values. If you doe not use a printer, but want the HP-41C to halt for each byte value display instead of pausing, set flag
21 before executing
WNDTST
. After the first byte value appears, execute
R/S
each time you are ready to step from one byte value
display to the next.
Customized ALPHA Prompts
Using the following programming procedure you can replace initial
WNDDTA
,
WNDDTX
,
WNDSUB
,
WNDLNK
,
WNDSCN
, or
WNDTST
function prompts with your own customized ALPHA prompts.
*
If
WNDTST
has been copied into program memory first, placing the HP-41C in PRGM mode, then scanning or keying in
XEQ
WNDTST result in
XEQ
T
WNDTST
appearing as an instruction in program memory.
Содержание 82153A
Страница 32: ...HP 82153A Wand Owner Manual page 36 CF 06 CF 22 SF 28 SF 29 ...
Страница 55: ...HP 82153A Wand Owner Manual page 59 XEQ TRI 7 8 9 4 5 6 1 2 3 0 CLX ...
Страница 60: ...HP 82153A Wand Owner Manual page 64 ROW 17 112 118 ROW 18 118 120 ROW 19 120 121 ...
Страница 64: ...HP 82153A Wand Owner Manual page 68 Pace PROGRAM REGISTERS NEEDED 3 ROW 1 1 5 ROW 2 5 6 ...
Страница 66: ...HP 82153A Wand Owner Manual HEWLETT PACKARD 82153A WAND OWNER S MANUAL ...
Страница 71: ...HP 82153A Wand Owner Manual 82153A WAND ...