Epson U590P, TM-U590 Information Manual

CONFIDENTIAL
TM-U590/U590P
Information Manual
Using this online information guide
The words on the left side of this screen are bookmarks for all the topics in this guide.
Use the scroll bar next to the bookmarks to find any topic you want. Click a bookmark to instantly jump to its topic. (If you wish, you can increase the size of the bookmark area by dragging the dividing bar to the right.)
Use the scroll bar on the right side of this screen to move through the text.
Use the zoom tools to magnify or reduce the page display.
Click the Find button if you want to search for a particular term. (However, using the bookmarks is usually quicker.)
Complete online documentation for Acrobat Reader is located in the Help directory for Acrobat Reader.
Return to main menu
EPSON
Guide to
TM-U590/U590P
SEIKO EPSON C O RPORATION
®
400707100
CONFIDENTIAL
Confidential
CONFIDENTIALITY AGREEMENT
BY USING THIS DOCUMENT, YOU AGREE TO ABIDE BY THE TERMS OF THIS AGREEMENT. PLEASE RETURN THIS DOCUMENT IMMEDIATELY IF YOU DO NOT AGREE TO THESE TERMS.
1. This document contains confidential, prop rietary informat ion of Seiko Epson Corporation or its affiliates. You must keep such information confidential. If the user is a business entity or organization, you must limit disclosure to those of your employees, agents and contractors who have a need to know and who are also bound by obligations of confidentiality.
2. On the earlier of (a) termination of your relationship with Seiko Epson, or (b) Seiko Epson’s request, you must stop using the confidential information. You must then return or destroy the information, as directed by Seiko Epson.
3. If a court, arbitrator, government agency or the like orders you to disclose any confidential information, you must immediately notify Seiko Epson. You agree to give Seiko Epson reasonable cooperation and assistance in resisting disclosure.
4. You may use confidential information only for the purpose of operating or servicing the products to which the document relates, unless you obtain the pr ior written consent of Seik o Epson for some other use.
5. Seiko Epson warrants that it has the right to disclose the confidential information. SEIKO EPSON MAKES NO OTHER WARRANTIES CONCERNING THE CONFIDENTIAL INFORMATION OR ANY OTHER INFORMATION IN THE DOCUMENT, INCLUDING (WITHOUT LIMITATION) ANY WARRANTY OF TITLE OR NON-INFRINGEMENT. Seiko Epson has no liability for loss or damage arising from or relating to your use of or reliance on the information on the document.
6. You may not reproduce, store or transmit the confidential information in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise) without the prior written permission of Seiko Epson.
7. Your obligations under this Agreement are in addition to any other legal obligations. Seiko Epson does not waive any right under this Agreement by failing to exercise it. The laws of Japan apply to this Agreement.
SEIKO EPSON CORPORATION
SYSTEM DEVICE DIVISION
2070 Kotobuki Koaka, Matsumoto-shi, Nagano-ken 399, Japan
CONFIDENTIAL
Rev. A i
Introduction
ESC/POS
The market for store automation equipment is changing rapidly with the widespread introduction of POS (point of sale) terminals. These terminals are now appearing even in small retail stores and specialty shops. They occupy a secure position in the range of applications available for personal computers.
As more personal computers come to be used as POS terminals, the demand for matching standardized peripheral devi ces is expected to rise. At present, however, many of t he competing POS terminal printer displays on the market employ mutually incompatible command sets. This imposes limits on the expandability and range of applications possible with PC-based systems. There is a need for a new command set designed to provide the expandability and universal applicability demanded by the market.
To meet this need, Seiko Epson Corporation proposes the adoption of a newly developed command set to standardize POS terminal peripheral devices: ESC/POS (Epson Standard Code for Point of S ale).
The aim when developing ESC/POS was to create a set of control codes that could be used to operate any output device c onnected to a PO S terminal. T hese new codes ar e intended to replace the mutually incompatible command sets previously in use.
TM/DM series models already support ESC/POS, and they have been evaluated highly in the marketplace.
Seiko Epson Corporation plans to produ ce new models in t he TM/DM series offeri ng ESC/POS support and to continue to work for the standardization of the entire POS environment to promote the dissemination of ESC/POS.
About This Manual
Chapter 1 contains a table of supported commands, descriptions of all the commands
arranged by function with program examples and print samples, and character code tables.
Chapter 2 contains an example showing several commands used in a program for issuing a
coupon containing bar codes.
Chapter 3 contains a table of the commands listed by function type and a table showing
which commands are supported by various EPSON printers.
CONFIDENTIAL
ii Rev. A
Features
The TM-U590/U590P is a high-quality POS printer that can print on slip paper. This specification applies the following models of the TM-U590 series printer.
The printer has the following features:
Wide slip paper capability (maximum characters per line: 88 with 7 × 9 font). Copy printing is possible. Optional Magnetic Ink Character Recognition (MICR) reader that enables the printer to
perform consecutive reading and processing of MICR characters and printing endorsements.
High throughput using bidirectional, minimum distance printing. EPSON customer display series connection (DM-D). Command protocol based on the ESC/POS
TM
standard.
Automatic Status Back (ASB) function that automatically transmits changes in the printer
status.
Selectable receive buffer size (69 bytes or 4K bytes).
Options
EPSON power supply unit, PS-170. MICR reader (factory-installed option). Direct connection customer display (DM-D102/DM-D203).
CONFIDENTIAL
Rev. A iii
Specifications
Printing specifications
Printing m ethod: Serial impact dot matrix Head wire configuration: 9-pin vertical line, wire pitch 1/72 inch Head wire diameter: 0.29 mm (.01”) Printing direction: Bidirectional, minimum distance printing Printing speed: Up to 233 characters per second [Font A (9x9)]
Up to 311 characters per second [Font B (7x9)]
Character specifications
Number of characters: Alphanumeric characters: 95
International characters: 32 Extended graphics: 128 × 7 pages (including one space page)
Character structure: Font A: 9 × 9 3-dot spacing (in half dot units)
Font B: 7 × 9 2-dot spacing (in half dot units) Larger spacing can be changed by using ESC SP.
Characters per line: 66 [Font A (9x9)] / 88 [Font B (7x9)] Characters per inch: 12.5 [Font A (9x9)] / 16.7 [Font B(7x9)] Character size: 1.6 (W) x 3.1 (H) mm [Font A (9x9)]
1.3 (W) x 3.1 (H) mm [Font B (7 x9)]
Paper size: 70 mm x 70 mm to 210 mm x 297 mm (A4) Interface: RS-232 (seria l interface)
IEEE 1284 (parallel interface) RS-485 (dealer option)
Receive buffer: 4k or 69 byte (selectable by DIP switch)
POWER
ERROR
RELEASE
SLIP
FORWARD
REVERSE
RELEASE
EPSON
CONFIDENTIAL
Rev. A Command Descriptions 1-1
TM–U590/U590P Information Manual
Chapter 1
Command Descriptions
Following this table are all the commands organized by function and described with program examples and print samples. The print samples are images of the printing results of the program examples; they do not represent actual printing.
Supported Commands
Command Name Function Type
Page Number
HT
Horizontal tab Print position 1-23
LF
Print and line feed Print 1-4
FF
Print and eject cut sheet Print 1-7
CR
Print and carriage return Print 1-4
DLE EOT
Real-time status transmission Status 1-32
DLE ENQ
Real-time reques t to p rin t e r Miscellaneous function 1-45
ESC SP
Set right-side character spacing Character 1-10
ESC !
Select print mode(s) Character 1-15
ESC $
Set absolute print position Print position 1-22
ESC %
Select/cancel user-define d chara cte r set Character 1-11
ESC &
Define user- defined characters Character 1-11
ESC
Select bit-image mode Bit image 1-25
ESC –
Turn underline mode on/off Character 1-16
ESC 2
Select default line spacing Line spacing 1-8
ESC 3
Set line spacing Line spacing 1-8
ESC <
Return home Mechanism control 1-36
ESC =
Select peripheral device Miscellaneous function 1-44
ESC ?
Cancel user-defined charac ters Character 1-12
ESC @
Initialize printer Miscellaneous function 1-42
ESC C
Set cut sheet eject length Line spacing 1-9
ESC D
Set horizontal tab positions Print position 1-23
ESC E
Turn emphasized mode on/off Character 1-16
ESC F
Set/cancel cut sheet reverse eject Mechanism control 1-37
ESC G
Turn double-strike mode on/off Character 1-17
ESC J
Print and feed paper Print 1-5
ESC K
Print and reverse feed Print 1-5
ESC R
Select an international charac ter set Character 1-13
ESC U
Turn unidirectional printing mode on /o ff Mechanism control 1-36
CONFIDENTIAL
1-2 Command Descriptions Rev. A
The following commands are supported only by the TM-U590/U59 0P with the optional Magnetic Ink Character Recognition (MICR) reader. (The MICR reader is a factory-installed option.)
ESC \ Set relative print position Print position 1-22 ESC a Select justificatio n Print position 1-23 ESC c 3 Select paper sensor(s) to output pap er-en d
signals
Paper sensor
1-20
ESC c 4 Select paper sensor(s) to stop printing Paper sensor 1-20 ESC c 5 Enable/disable panel buttons Panel button 1-19 ESC d Print and feed n lines Pr int 1-6 ESC e Print and reverse feed n lines Print 1-7 ESC f Set cut sheet wait time Printing paper 1-18 ESC p Generate pulse Miscellaneous function 1-44 ESC q Paper release Mechanism control 1-37 ESC t Select character code table Character 1-14 ESC { Turn upside-down printing mode on/off Character 1-18 GS ! Select character size Character 1-17 GS
Define downloaded bit image Bit image 1-26
GS / Print downloaded bit image Bit image 1-27 GS I Transmit printer ID Miscellaneous function 1-43 GS L Set left ma rgi n Print positio n 1-24 GS P Set horizontal and vertical motion units Miscellaneous function 1-41 GS W Set printing area width Print position 1-24 GS a Enable/disable Automatic Status Back (ASB) Status 1-29 GS r Transmit status Status 1-31
Command Name Function Type
Page Number
DLE EOT BS Real-time M IC R status transm ission Status 1-35 FS a 0 Read check paper MICR 1-38 FS a 1 Load check paper to print starting position MICR 1-40 FS a 2 Eject check paper MICR 1-40
FS b
Request retransmission of check paper readin g result
MICR 1-39
FS c MICR mechanism cleaning MICR 1-38
Command Name Function Type
Page Number
CONFIDENTIAL
Rev. A Command Descriptions 1-3
TM–U590/U590P Information Manual
Using Bit Value Tables
For each command that has a compl ex method o f determi ning the variable n, there is a t able sho wing how to calculate the variable in three numbering systems: binary, hexadecimal, and decimal.
When you look at the table, first find the value of each component of the variable. Then add the values of the components together to determine the value of the variable n.
For example, here is how you would use the table below, which selects the print mode, to combine double height, double width, and underline. In the table, you see that bit 4 on (or hex 10 or decimal
16) turns on double height, bit 5 on (or hex 20 or decimal 32) turns on double width, and bit 7 on (or hex 80 or decimal 128) turns on underline mode.
To combine all three, turn on bits 4, 5, and 7, which is 10110000 in binary. Or you can add the hex values 10, 20, and 80 for the hex sum of B0, or you can add the decimal values 16, 32, and 128 for the decimal value of 176.
Therefore, you send the following to turn on do uble hei ght , doubl e wid th , and underli ne, d epending on the numbering system used:
ASCII ESC ! n Hex 1B 21 B0 Decimal 28 33 176
Note that the program examples throughout this chapter use decimal numbers, but binary, decimal, and hexadecimal numbers all have the same printing results.
Bit Off/On Hex Decimal Function
0
Off 00 0 Character font A sele cted. On 01 1 Character font B selected.
1, 2 Undefined.
3
Off 00 0 Emphasized mode not selected. On 08 8 Emphasized mode selected.
4
Off 00 0 Double-height mode not selected. On 10 16 Double-he ig ht m o de s elected.
5
Off 00 0 Double- w id th mo de not selected. On 20 32 Double-wid th mo de selected.
6 Undefined.
7
Off 00 0 Underl ine mode not selected. On 80 128 Underline mode selected.
CONFIDENTIAL
1-4 Command Descriptions Rev. A
Print Commands
The TM-U590/U590P supports the following commands for printing characters and advancing paper.
Command Name LF Print and line feed CR Print and carriage return ESC J Print and feed paper ESC K Print and reverse feed ESC d Print and feed n lines ESC e Print and reverse feed n lines FF Print and eject cut sheet
LF
[Name] Print and line feed [Format] ASCII LF
Hex 0A Decimal 10
LF prints the data i n the print buffer and feeds one li ne. The amount of paper fed per li ne i s based on the value set using the line spacing command. The default setting is 1/6 inch.
CR
[Name] Print and carriage return [Format] ASCII CR
Hex 0D Decimal 13
When auto line feed is enabled, CR functions in the same way as LF. When auto l ine feed is disabled, CR prints the data in the print buffer and does not feed the paper. With a serial interface, auto line feed is disabled. With a parallel interface, whether enabling or disabling the auto line feed can be selected by DIP switch 1-1.
Program Example Print Sample
PRINT #1, "AAAAA"; CHR$(&HA); AAAAA PRINT #1, "BBBBB"; CHR$(&HA); BBBBB
CONFIDENTIAL
Rev. A Command Descriptions 1-5
TM–U590/U590P Information Manual
ESC J n
[Name] Print and feed pa per [Format] ASCII ESC J n
Hex 1B 4A n Decimal 27 74 n
[Range] 0 n 255 ESC J n prints the data in the print buffer an d feeds the paper n × vertical motion unit. This command
is used to temporarily feed a specific length without changing the line spacing set by other commands. The maximum paper feed amount is 40 inches. The vertical motion unit set by GS P is used. The default value of the vertical motion unit is 1/144 inch.
ESC K n
[Name] Print and reverse feed [Format] ASCII ESC K n
Hex 1B 4B n Decimal 27 75 n
[Range] 0 n 255 ESC K n prints the data in the print buffer and feeds the paper n × vertical motion unit in the reverse
direction. This command is used to temporarily feed a specific length without changing the line spacing set by other commands. In the reverse direction, the maximum paper feed amount is 40 inches. Th e vertical motion unit set by GS P is used. The default value of the vertical motion unit is 1/144 inch.
Program Example Print Sample
PRINT #1, "AAAAA"; CHR$(&HD);
AAAAA
PRINT #1, " BBBBB"; CHR$(&HA); BBBBB
Auto line feed enabled
AAAAABBBBB
Auto line feed disabled
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(150);CHR$(144); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&H1B);"J";CHR$(72); PRINT #1, "CCCCC"; CHR$(&HA); PRINT #1, "DDDDD"; CHR$(&HA)
AAAAA BBBBB
CCCCC DDDDD
ESC J used to print one line and advance the paper by 72/144 inc
h
CONFIDENTIAL
1-6 Command Descriptions Rev. A
ESC d n
[Name] Print and feed n lines [Format] ASCII ESC d n
Hex 1B 64 n Decimal 27 100 n
[Range] 0 n 255 ESC d n prints the data in the print buffer and feeds n × line spacing. The amount of paper fed per
line is based on the value set using ESC 2 or ESC 3. The maximum paper feed amount is 40 inches. The default setting of the paper feed amount is 1/6 inch.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(150);CHR$(144); PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&H1B);"K";CHR$(24); PRINT #1, " CCCCC"; CHR$(&HA);
AAAAACCCCC BBBBB
ESC K used to print one line and then reverse feed the paper by
24/144 inch
Program Example Print Sample
PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&H1B);"d";CHR$(6); PRINT #1, "CCCCC"; CHR$(&HA);
AAAAA BBBBB
CCCCC
ESC d used to print one line and advance the paper by six lines
CONFIDENTIAL
Rev. A Command Descriptions 1-7
TM–U590/U590P Information Manual
ESC e n
[Name] Print and reverse feed n lines [Format] ASCII ESC e n
Hex 1B 65 n Decimal 27 101 n
[Range] 0 n 255 ESC e n prints the data in the print buffe r and feeds n × line spacing in the reverse direction. The
amount of paper fed per line is based on the value set using ESC 2 or ESC 3. The maximum reverse paper feed amount is 40 inches. The default setting of the paper feed amount is 1/6 inch.
FF
[Name] Print and eject cut sheet [Format] ASCII FF
Hex 0C Decimal 12
FF prints the data in the print buffer and ejects the slip paper. The amount of paper fed is based on the value set u s ing ESC C. The slip is ejected in the direction specified by ESC F.
Program Example Print Sample
PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&H1B);"e";CHR$(1); PRINT #1, " CCCCC"; CHR$(&HA);
AAAAACCCCC BBBBB
Paper reverse fed one line after printing the line of Bs
Program Example Print Sample
PRINT #1, "AAAAA"; CHR$(&HA); AAAAA PRINT #1, "BBBBB"; CHR$(&HC); BBBBB
Eject the sheet
CONFIDENTIAL
1-8 Command Descriptions Rev. A
Line Spacing Commands
The TM-U590/U590P supports the following commands for setting line spacing. These commands only set the line spacing; they do not actually advance the paper. The line spacing set using these commands affects the results of LF, or ESC d, or FF is executed and paper feed using the FORWARD or REVERSE button.
Command Name ESC 2 Select default line spacing ESC 3 Set line spacing ESC C Set cut sheet eject length
ESC 2
[Name] Select default line spacing [Format] ASCII ESC 2
Hex 1B 32 Decimal 27 50
ESC 3 n
[Name] Set line spacing [Format] ASCII ESC 3 n
Hex 1B 33 n Decimal 27 51 n
[Range] 0 n 255
ESC 2 sets the line spacing to 1/6 inch. This is equivalent to 12 dots. ESC 3 n sets the line spacing to n × vertical motion unit. The defaul t setting of the paper feed amount
is 1/6 inch (n = 24). The maximum line spacing amount is 40 inches. The vertical motion unit set by GS P is used. The default setting of the vertical motion unit is 1/144 inch.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(150);CHR$(144); FOR n=20 TO 44 STEP 6 PRINT #1, CHR$(&H1B);"3";CHR$(n);
Set line spacing
PRINT #1, "AAAAA"; CHR$(&HA); NEXT n PRINT #1, CHR$(&H1B);"2";
Set the default
PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, "CCCCC"; CHR$(&HA);
AAAAA AAAAA
AAAAA AAAAA
AAAAA
BBBBB CCCCC
20/144-inch line spacing 26/144-inch line spacing
32/144-inch line spacing
38/144-inch line spacing
44/144-inch line spacing
1/6-inch line spacing
CONFIDENTIAL
Rev. A Command Descriptions 1-9
TM–U590/U590P Information Manual
ESC C n
[Name] Set cut sheet eject length [Format] ASCII ESC C n
Hex 1B 43 n Decimal 27 67 n
[Range] 0 n 255 ESC C n sets the eject length for slip paper to n × line spacing. The maximum eject length is 17.72
inches. The default setting of the eject length is n = 0. No eject length is set if n=0. When n=0, the paper is fed until it can be ejected.
If the printer cannot detect the edge of the sheet after feeding the sheet for maximum value (17.72 inches), it is a slip ejection error (recoverable error).
Program Example Print Sample
PRINT #1, CHR$(&H1B);"C";CHR$(8);
Set eject length
PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, "BBBBB"; CHR$(&HC);
AAAAA BBBBB
Eject length set to 8 lines using ESC C
CONFIDENTIAL
1-10 Command Descriptions Rev. A
Character Commands
The TM-U590/U590P supports the following commands for setting character font and size:
Command Name ESC SP Set right-side character sp acing ESC % Select/cancel user-defined character set ESC & Define user-defined characters ESC ? Cancel user-defined characters ESC R Select an international character set ESC t Select character code table ESC ! Select print mode(s) ESC – Turn underline mode on/off ESC E Turn emphasized mode on/off ESC G Turn double-strike mode on/off GS ! Select character size ESC { Turn upside-down printing mode on/off
ESC SP n
[Name] Set right-side character spacing [Format] ASCII ESC SP n
Hex 1B 20 n Decimal 27 32 n
[Range] 0 n 255 ESC SP n sets the right-side character spacing to n
×
horizontal motion unit. It is used to change the
spacing between characters. The default setting is n=0. The horizontal motion unit set by GS P is used. The default setting of the horizontal motion unit is 1/150 inch.
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(150);CHR$(144); PRINT #1, CHR$(&H1B);" ";CHR$(0);
Character spacing set to 0
PRINT #1, "AAAAA"; CHR$(&HA); PRINT #1, CHR$(&H1B);" ";CHR$(6);
Character spacing set to 6
PRINT #1, "BBBBB"; CHR$(&HA); PRINT #1, CHR$(&H1B);" ";CHR$(12);
Character spacing set to 12
PRINT #1, "CCCCC"; CHR$(&HA);
AAAAA
0-inch right-side character spacing
BBBBB
6/150-inch right-side character spacing
CCCCC
12/150-inch right-side character spacing
CONFIDENTIAL
Rev. A Command Descriptions 1-11
TM–U590/U590P Information Manual
ESC % n
[Name] Select/cancel user-defined character set [Format] ASCII ESC % n
Hex 1B 25 n Decimal 27 37 n
[Range] 0 n 255
ESC & y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)]
[Name] Define user-defined characters [Format] ASCII ESC & y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)]
Hex 1B 26 y
c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)]
Decimal 27 38 y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)]
[Range] y = 2
32 c1 c2 126 0 x 12 (for the fontA) 0 x 9 (for the fontB) 0 d1 ... d(y × xk) 255 k = c2-c1+1
CONFIDENTIAL
1-12 Command Descriptions Rev. A
ESC ? n
[Name] Cancel user-defined characters [Format] ASCII ESC ? n
Hex 1B 3F n Decimal 27 63 n
[Range] 32 n 126 ESC % n selects or cancels the user-defined character set. When the LSB (least significant bit) of n is 1,
the user-defined character set is selected. When it is 0, the int ern al cha rac ter set is selected; this is the default settin g.
ESC & y c1 c2 [x1 d1 ... d(y × x1)] ... [xk d1 ... d(y × xk)] defines user-defined characters from chara cter code c1 to c2. y and x are the configuration of a user-defined character. y specifies the number of bytes in the vertical direction. x specifies the number of dots in the horizontal direction. Character codes from the alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) ca n be defined by c1 and c2. Data (d) specifies a bit printed to 1 and not printed to 0. The most significant bit is available for even number of bits of d. Adjacent dots cannot be set. As the default, user-defined characters are not defined and the internal character set is printed. Once the user-defined characters have been defined, they are available until ES C ?, o r GS ✻, or ES C @ is executed ; the user -defined c haracter s are redefined; the power is turned off; or the printer is reset. When this command is executed, the downloaded bit image is cleared.
ESC ? n cancels the user-defined characters defined for the character code n. After the user-defined characters are canceled, the internal character set is printed.
Program Example Program Example (continued)
y=2 PRINT #1, CHR$(&H1B);"&";CHR$(y);"AC"; x=9: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i x=9: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i x=9: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i PRINT #1, CHR$(&H1B);"%";CHR$(0); ←
Select internal character
PRINT #1, "A B C D E"; CHR$(&HA); PRINT #1, CHR$(&H1B);"%";CHR$(1); ←
Select user-defined character
PRINT #1, "A B C D E"; CHR$(&HA): PRINT #1, CHR$(&H1B);"?";"A";
Cancel the user-defined character
PRINT #1, "A B C D E"; CHR$(&HA);
DATA &H18,&H00,&H00,&H00,&H3C,&H00,&H00,&H00
DATA &H18,&H00 DATA &H18,&H00,&H00,&H00,&H24,&H00,&H00,&H00 DATA &H42,&H00,&H00,&H00,&H24,&H00,&H00,&H00 DATA &H18,&H00 DATA &H10,&H00,&H20,&H00,&H5F,&H00,&H00,&H00 DATA &H81,&H00,&H00,&H00,&H5F,&H00,&H20,&H00 DATA &H10,&H00
Print Sample
ABCDE
Characters from internal character set
DE
Characters from user-defined character set
A
DE
Characters from user-defined character set (cancel
one character)
DATA &H7E,&H00,&H00,&H00,&H3C,&H00,&H00,&H00
Defines the user-defined
characters as "A","B",and "C"
CONFIDENTIAL
Rev. A Command Descriptions 1-13
TM–U590/U590P Information Manual
ESC R n
[Name] Select an international character set [Format] ASCII ESC R n
Hex 1B 52 n Decimal 27 82 n
[Range] 0 n 10 ESC R n selects an international character set n as follows. The default value is U.S.A. (n=0).
n Country
ASCII code
Hex2324405B5C5D5E607B7C7D 7E
Dec 35 36 64 91 92 93 94 96 123 124 125 126
0 U.S.A. # $ @
[
\
]
^` { ¦}
~
1 Fra nc e # $ à ° ç § ^ ` é ù è ¨
2 G ermany # $ § Ä Ö Ü ^ ` ä ö ü ß
3U.K. £
$@
[
\
]
^`
{ ¦ }
~
4 Denmark I # $ @ Æ Ø Å ^ ` æ ø å
~
5 Swe de n # ¤ É Ä Ö Å Ü é ä ö å ü
6 Ita ly # $ @ ° \ é ^ ù à ò è ì
7 Sp ai n Pt $ @ ¡ Ñ ¿ ^ ` ¨ ñ }
~
8 Japan # $ @
[
¥
]
^` { ¦}
~
9 Nor wa y # ¤ É Æ Ø Å Ü é æ ø å ü
10 Denma rk II # $ É Æ Ø Å Ü é æ ø å ü
Program Example Print Sample
FOR n=0 TO 10
PRINT #1, CHR$(&H1B);"R";CHR$(n); PRINT #1, "# $ @ [ \ ] ^ ` { ¦ }
~
"; CHR$(&HA);
NEXT n
# $@[ \]^` { ¦}
~
n
=0 (Default setting)
# $à°ç§^`éùè¨
n
=1
# $§ÄÖÜ ^ `äöüß
n
=2
£ $@[\]^`{ ¦}
~
n
=3
# $ @ÆØÅ^` æø å
~
n
=4
# ¤ЙДЦЕЬйдцеь
n
=5
# $@°\й^щатим
n
=6
Pt $@¡Ñ¿^` ¨ñ}
~
n
=7
# $@[¥]^`{¦}
~
n
=8
# ¤ЙЖШЕЬйжшеь
n
=9
# $ЙЖШЕЬйжшеь
n
=10
CONFIDENTIAL
1-14 Command Descriptions Rev. A
ESC t n
[Name] Select character code table [Format] ASCII ESC t n
Hex 1B 74 n Decimal 27 116 n
[Range] 0 n 5 , n = 255 ESC t n selects a page n from the character code table as follows. The alphanumeric characters (20H
(decimal 32) to 7FH (decimal 127)) are the same for each page. The extended characters (80H (decimal 128) to FFH (decimal 255)) are different for each page. The default setting is page 0 (n=0). For page 255, font A and font B support different characters.
n Character Code Table
0 Page 0 [PC437 (U.S.A. , Standard Europe)]
1 Page 1 [Katakana]
2 Page 2 [PC850 (Multilingual)]
3 Page 3 [PC860 (Portuguese)]
4 Page 4 [PC863 (Canadian-French)]
5 Page 5 [PC865 (Nordic)]
255 Page 255
Font A: Space
Font B: Special Characters
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(150);CHR$(144); PRINT #1, CHR$(&H1D);"W";CHR$(248);CHR$(1); PRINT #1, CHR$(&H1B);"t";CHR$(0); ←
Select page 0
GOSUB printing PRINT #1, CHR$(&H1B);"t";CHR$(1);
Select page 1
GOSUB printing END
printing: FOR i=&H20 TO &H7F PRINT #1, CHR$(i); NEXT i PRINT #1, CHR$(&HA); FOR i=&H80 TO &HFF PRINT #1, CHR$(i); NEXT i PRINT #1, CHR$(&HA); RETURN
CONFIDENTIAL
Rev. A Command Descriptions 1-15
TM–U590/U590P Information Manual
ESC ! n
[Name] Select print mode(s) [Format] ASCII ESC ! n
Hex 1B 21 n Decimal 27 33 n
[Range] 0 n 255 ESC ! n selects or cancels print modes collectively using n as follows. The default setting is n=0.
Bit Off/On Hex Decimal Function
0
Off 00 0 C haract er font A (9 x 9) selected. On 01 1 Character font B (7 x 9) selected.
1, 2 U n defined.
3
Off 00 0 Emphasized mode not selected. On 08 8 Emphasized mode selected.
4
Off 00 0 Double-height mode not selected. On 10 16 Double-height mode selected.
5
Off 00 0 Double-width mode not select ed . On 20 32 Double-width mode selected.
6 Undefined.
7
Off 00 0 Underline mode not selected. On 80 128 Underline mode selected.
Program Example Print Sample
PRINT #1, CHR$(&H1B);"U";CHR$(1); ←
Select unidirectional
PRINT #1, CHR$(&H1B);"!";CHR$(0); "AA"; PRINT #1, CHR$(&H1B);"!";CHR$(8); "BB"; PRINT #1, CHR$(&H1B);"!";CHR$(16); "CC"; PRINT #1, CHR$(&H1B);"!";CHR$(24); "DD"; PRINT #1, CHR$(&H1B);"!";CHR$(32); "EE"; PRINT #1, CHR$(&H1B);"!";CHR$(40); "FF"; PRINT #1, CHR$(&H1B);"!";CHR$(48); "GG"; PRINT #1, CHR$(&H1B);"!";CHR$(56); "HH"; CHR$(&HA); PRINT #1, CHR$(&H1B);"!";CHR$(129); "AA";
AA: Normal
PRINT #1, CHR$(&H1B);"!";CHR$(137); "BB";
BB: Emphasized
PRINT #1, CHR$(&H1B);"!";CHR$(145); "CC";
CC: Double-height
PRINT #1, CHR$(&H1B);"!";CHR$(153); "DD";
DD: Emphasized + Double-height
PRINT #1, CHR$(&H1B);"!";CHR$(161); "EE";
EE: Double-width
PRINT #1, CHR$(&H1B);"!";CHR$(169); "FF";
FF: Emphasized + Double-width
PRINT #1, CHR$(&H1B);"!";CHR$(177); "GG";
GG: Double-height + Double-width
PRINT #1, CHR$(&H1B);"!";CHR$(185); "HH"; CHR$(&HA);
HH: Emphasized + Double-height + Double-width
Font A (9x9)
Font B (7x9)
with underline
CONFIDENTIAL
1-16 Command Descriptions Rev. A
ESC – n
[Name] Turn underline mode on/off [Format] ASCII ESC n
Hex 1B 2D n
Decimal 27 45 n
[Range] n=0, 1, 48, 49 ESC – n turns underline mode on or off. When n=1 or 49, underline mode is t urned on, and when n=0
or 48, underline mode is turned off. The default setting is n=0.
ESC E n
[Name] Turn emphasized mode on/off [Format] ASCII ESC E n
Hex 1B 45 n Decimal 27 69 n
[Range] 0 n 255 ESC E n turns emphasized mode on or off. When the LSB (least significant bit) of n is 1, emphasized
mode is turned on; when it is 0, emphasized mode is turned off. The default setting is n=0.
Program Example Print Sample
PRINT #1, CHR$(&H1B);"-";CHR$(1); ←
Select
AAAAA
Underline turned on
PRINT #1, "AAAAA"; CHR$(&HA); BBBBB
Underline turned off
PRINT #1, CHR$(&H1B);"-";CHR$(0); ←
Cancel
PRINT #1, "BBBBB"; CHR$(&HA);
Program Example Print Sample
PRINT #1, CHR$(&H1B);"E";CHR$(1);
Select
AAAAA ←
Emphasized
PRINT #1, "AAAAA"; CHR$(&HA); BBBBB ←
Normal
PRINT #1, CHR$(&H1B);"E";CHR$(0);
Cancel
PRINT #1, "BBBBB"; CHR$(&HA);
CONFIDENTIAL
Loading...
+ 52 hidden pages