Programming Techniques 6-5
B u i l d i n g P a c k e t s D y n a m i c a l l y
An application can use fixed packets or packets that change
every time they are used, such as in an application where the
operator enters the quantity for the batch. When packets
change every time they are used, the application must build the
packet dynamically.
SAMPLE3.C in the Samples sub-directory illustrates building
packets dynamically.
U s i n g t h e S c a n n e r
An application uses the printer’s scanner to read bar codes as
follows:
1.
Enable the scanner with scnScannerOpen or
scnOpenScannerShared.
2.
If necessary, configure the scanner using the scnGet
xxx
and scnSet
xxx
functions.
3.
Use any scanner function to operate the scanner. These
functions are described in Chapter 4 and all begin with an
scn
prefix.
4.
Disable the scanner with scnCloseScanner.
SAMPLE5.C in the Samples sub-directory illustrates how to use
the scanner.
R e a d i n g T r i g g e r P u l l s
Pressing any key (including pulling the trigger) sends a code to
the application for it to read. The trigger emulates an F11 as an
extended character code. To read a trigger pull, the application
reads two characters. If the first character is a zero and the
second is 0x85, the operator pulled the trigger.
SAMPLE1.C in the Samples sub-directory illustrates reading
trigger pulls.
Содержание Gold 6037EX
Страница 1: ... ROG TC6037EXPM Rev AA 8 03 Printed in the U S A 2003 Paxar Americas Inc All rights reserved ...
Страница 2: ... Trademarks 0 1 2 0 0 3 4 5 6 7 78 ...
Страница 10: ...viii Table of Contents ...
Страница 30: ...2 16 Programmer s Manual ...
Страница 36: ...3 6 Programmer s Manual ...
Страница 154: ...4 118 Programmer s Manual ...
Страница 228: ...14 Index ...
Страница 229: ......
Страница 230: ......