Specifications
Rev. A Application 2-1
TM–U950/U950P Information Manual
Chapter 2
Application
This chapter presents an example illustrating ESC/POS command functions and printing results. The
example shows how to print the same data on both receipt and journal paper.
Combining Receipt and Journal Printing
Print Sample
Procedure Commands used Description
1. Define stamp data
GS
✻
Defines the stamp data. (
GS
✻
defines a user-defined bit
image of the data.)
2. Print stamp data
ESC c 0 , ESC a,
GS /
,
ESC J
Prints the stamp data on receipt paper after
ESC a
centers
the print position.
3. Print item A
ESC a
,
ESC c 0
ESC z , ESC ! , LF
ESD d
Selects left justification after printing the date and time.
Selects both receipt and journal paper for printing. Prints
item A after turning on parallel printing mode.
4. Print item B
ESC c 0 , ESC z
ESC ! , LF, ESC d
Turns off parallel printing mode.
Prints item B after selecting receipt paper for printing.
5. Print stamp data
ESC c 0 , ESC a
GS / , ESC J
Prints the stamp data on the next receipt after
ESC a
centers the print position.
Advances the paper to the auto-cutter position.
6. Cut receipt
ESC i
Cuts the paper.
<Receipt> <Journal>
YOUR RECEIPT
Thank you
APRIL 1, 1995, 15:00
TM-U950
PS-150
SUBTOTAL
TAX @ 6%
TOTAL
-----------------------------------------
PAID
CHANGE
_____ ____________________
YOUR RECEIPT
Thank you
95.0
15.0
110.0
6.6
116.6
120.0
3.4
Stamp
Item A
Stamp the next receipt
Item B
TM-U950
PS-150
SUBTOTAL
TAX @ 6%
TOTAL
95.0
15.0
110.0
6.6
116.6
Item A