16. HOW TO CONNECT THE PRINTER WITH PROTABLE LCD KEYBOARD
EM1-33046A
16. HOW TO CONNECT THE PRINTER WITH PORTABLE LCD KEYBOARD
16. HOW TO CONNECT THE PRINTER WITH PORTABLE
LCD KEYBOARD
To connect a portable LCD keyboard to the printer, we must write a program with particular commands
as below:
Example:
DOWNLOAD "KEYBOARD.BAS"
SIZE 4.00, 5.00
CLS
SPEED 2
DENSITY 8
SET CUTTER OFF
DIRECTION 0
REFERENCE 0,0
GAP 0.10, 0.00
:START
CLS
INPUT "ITEM:" ; ITEMS
:L1
INPUT "QTY:" ; QTY
IF QTY<0 THEN GOTO L1
:2
N=1
INPUT "How many to print:", N
IF N<1 THEN GOTO L2
TEXT 100, 100, "4", 0, 1, 1, "ITEM:"
TEXT 210, 100, "4", 0, 1, 1, ITEM$
TEXT 100, 160, "4", 0, 1, 1, "QTY:"
TEXT 200, 160, "4", 0, 1, 1, STR$ (QTY)
CODE$=ITEM$ + ":" +STR$ (QTY)
BARCODE 100, 240, "39", 96, 1, 0, 2, 4, CODE$
BOX 10, 70, 790, 450, 2
PRINT N
GOTO START
EOP
16-1