C O N F I D E N T I A L
Paper roll
Usable application programs and tips
Ver. 4.0
p. 948
Tips (Print commands)
These are the print commands. All the commands have the same printing result but an operation after
printing differs depending on the command. Using the appropriate command enables you to easily make an
effective program for issuing a receipt.
<
LF
: Print and line feed>
The command is used to print and feed one line.
<
CR
: Print and carriage return>
With a serial interface or a parallel interface with auto line feed disabled, if the printer has a serial dot
head, printing on the same line is enabled. The program example shows a procedure for overwriting the
previous line.
The program example illustrates printing with
CR
shown in lines 100, 120, and 140 and if you do not
have any corrections, then you feed paper with
LF
shown in lines 110, and 150. When you have a
correction, transmitting [character data +
LF
] to perform printing on the same line shown in line 130.
Sending bit image data instead of character data enables execution of mesh printing.
Program Example
Print Sample
100 PRINT #1, “TM-U200B
$20.00”;CHR$(&HD);
←
Print using CR
110 PRINT #1, CHR$(&HA);
←
Line feed using LF
120 PRINT #1, “TM-U200D
$24.00”;CHR$(&HD);
←
Print using CR
130 PRINT #1, “
”;CHR$(&HA);
←
Print and line feed using LF
140 PRINT #1, “TM-U200D
$21.00”;CHR$(&HD);
←
Print using CR
150 PRINT #1, CHR$(&HA);
←
Line feed using LF
TM-U200B
$20.00
TM-U200D
$24.00
TM-U200D
$21.00