DMP 2102 (26-2817) Codes Faxback Doc. # 4442 CONTROL CODES Before investigating the various print modes, consider how the computer communicates with the printer. All the information is sent to the printer as numbers between 0 and 255 decimal 900-FF in hexadecimal). The printer interprets numbers according to the American Standard Code for Information Interchange, commonly referred to as the ASCII code. Most numbers (or codes) are printed as letters, numbers or symbols. However, the numbers 0-31, as well as some special sequences of code numbers, are used to "control" various functions of the printer. These control codes allow you to change character sets, select print modes, under- line, superscript, subscript, and perform other special features. The control codes have different meanings, depending on the current print mode. If a code is not recognized by the printer, it is ignored. The next few sections demonstrate how some of the control codes activate various printer functions. TANDY CODE SET For Models I, II, III, 4, 4D, 4P, 12, 16, and 16B, set the printer to Tandy mode and character set, and designate the correct line feed. Refer to the "Menu Selection" section. IBM CODE SET When you select the code set for IBM, the printer emulates the IBM Proprin- ter XL24 code set. If you select this operation mode, you can use the printer with the Tandy MS-DOS personal computer system or MS-DOS-compatible systems without code conversion and get the same results as you would with an IBM Proprinter XL24. Detailed information is in chapter 7, "Selecting a Code Set and a Character Set." SELECTING THE PRINTER DRIVE IN YOUR SOFTWARE When you install most applications software, you are prompted to enter the type of printer that you are using. Usually you select the appropriate file, known as a "printer driver," from a list of choices that appear on the screen. The printer driver provides important data about your printer so that it operates correctly with the software. For best results, choose one of the following printer drivers, if they are available in your software. * IBM PROPRINTER II * IBM GRAPHICS PRINTER * EPSON LQ * TANDY DMP 2110 * TANDY DMP 2100P * NOTE: (Epson LQ printer drivers only) These drivers are for graphics only and not for text mode application. Be sure to use the built-in menu setting feature to set up your printer to select the IBM emulation mode, and set "IBM Processing" to "AGM" (alternated graphics mode). Your printer can then operate correctly with your software for graphic applications. For the proper menu settings, refer to the chart below: ────────────────────────────────────────────────────────────────────────────── PRINTER DRIVER SET PRINTER MENU TO ────────────────────────────────────────────────────────────────────────────── IBM PROPRINTER X 24/XL 24 IBM emulation, IBM processing TANDY DMP 2102 Tandy emulation or IBM emula- tion,as the printer driver calls for IBM PROPRINTER II IBM emulation, IBM processing IBM GRAPHICS PRINTER IBM emulation, IBM processing Epson LQ See note above TANDY DMP 2110 Tandy emulation or IBM emulation, as the printer driver calls for TANDY DMP 2100P Tandy emulation or IBM emulation, as the printer drives calls for ────────────────────────────────────────────────────────────────────────────── If you do not get proper results when you print, be sure you to have installed your software correctly. If you still have problems, contact your software supplier for further instruction. TANDY CONTROL CODES ───────────────────────────────────────────────────────────────────────────── Code Dec. Hex Symbol DP Mode WP Mode Graphics Mode ────────────────────────────────────────────────────────────────────────────── 8 (08) BS Backspace Backspace n n n (n=Binary) (n=Binary) n:BS Point NO. n:BS Point NO. ---------- ────────────────────────────────────────────────────────────────────────────── 10 (0A) LF Line Feed Line Feed Line Feed (Full LF) (7/60 inch LF) ────────────────────────────────────────────────────────────────────────────── 12 (0C) FF Form Feed Form Feed Form Feed ────────────────────────────────────────────────────────────────────────────── 13 (0D) CR Carriage Return Carriage Return Carriage Return (Latched Data) (1/6 inch) (7/60) ────────────────────────────────────────────────────────────────────────────── 14 (0E) SO End Underlined End Underlined ---------- ────────────────────────────────────────────────────────────────────────────── 15 (0F) SI Start Underlined Start Underlined ---------- ────────────────────────────────────────────────────────────────────────────── 18 (12) DC2 Select Graphics Select Graphic ---------- Mode Mode ────────────────────────────────────────────────────────────────────────────── 19 (13) DC3 --------------- Select Data ---------- Processing Mode ────────────────────────────────────────────────────────────────────────────── 20 (14) DC4 Select Word --------------- ----------- Processing Mode ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 1 (01) 01 Proportional Proportional ----------- | | | Spacing Spacing 9 (09) (09) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Full Reverse Full Reverse Line ----------- 10 (0A) LF Line Feed (Set) Feed (Executive) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Start Elongation Start Elongation Start Elongation 14 (0E) SO ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC End Elongation End Elongation End Elongation 15 (0F) SI ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Positioning Positioning Positioning 16 (10) DEL (2 pitches are (2 pitches are (2 pitches are n1 n1 n1 available) available) available) n2 n2 n2 (n: Binary) (n: Binary) (n: Binary) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Select 17 (11) DC1 Proportional Proportional ------------ Character Character ────────────────────────────────────────────────────────────────────────────── Select Select 27 (1B) ESC Correspondence-10 Correspondence-10 ------------ 18 (12) DC2 Character Character ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Standard-10 Select Standard-10 ------------ 19 (13) DC3 Character Character ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Select Condensed 20 (14) DC4 Condensed Character ------------ Character ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select CR Only Select CR Only Select CR Only 21 (15) NAK ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select CR=NL Select CR=NL Select CR=NL 22 (16) SYN (LF) (LF) (LF) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Standard-12 Select Standard-12 ------------- 23 (17) ETB Character Character ────────────────────────────────────────────────────────────────────────────── 27 (1B) FSC Half Forward Half Forward 28 (1C) FS Line Feed (Set) Line Feed ------------- (Executive) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Select 29 (1D) GS Correspondence-12 Correspondence-12 ------------- Character Character ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Half Reverse Half Reverse 30 (1E) RS Line Feed (Set) Line Feed -------------- (Executive) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Start Bold Start Bold -------------- 31 (1F) US ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC End Bold End Bold -------------- 32 (20) SP ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Enter IBM Enter IBM Enter IBM 33 (21) ! Emulation Mode Emulation Mode Emulation Mode ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Load User Font Load User Font -------------- 38 (26) & ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 1/20 1/20 1/20 49 (31) 1 Forward Line Feed Forward Line Feed Forward Line Fd ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 52 (34) 4 Form Length Set Form Length Set Form Length Set n n n ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Set Full Forward 54 (36) 6 Line Feed ---------------- --------------- (No motion) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 3/4 Forward Line 3/4 Forward Line 56 (38) 8 Feed (Set) Feed (Executive) --------------- ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select IBM Select Tandy 58 (3A) : Character Set 1 Character Set 1 --------------- ───────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Tandy Select Tandy 59 (3B) ; Character Set Character Set --------------- ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Font Assign Font Assign 61 (3D) = Correspondence-10 Correspondence-10 --------------- n n n Character Character ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Font Assign Font Assign 62 (3E) > Correspondence-12 Correspondence-12 --------------- n n n Character Character ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Font Assign Font Assign 63 (3F) ? Proportional Proportional --------------- n n n Character Character ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC End Italic End Italic 66 (42) B Character Character --------------- 48 (30) O ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Italic Select Italic 66 (42) B Character Character --------------- 49 (31) 1 ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 4/5 Forward Line 4/5 Forward Line 4/5 Forward Line 71 (47) G Feed (Executive) Feed (Executive) Feed (Executive) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Perforation Perforation 72 (48) H Skip Set Skip Set --------------- n n n ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 73 (49) I High-Resolution High-Resolution High-Resolution n1 n1 n1 Graphics Graphics Graphics n2 n2 n2 (n1n2: (n1n2: (n1n2: d1 d1 d1 Column length) Column length) Column length | | | (d1 -- dk: (d1--dk: (d1--dk: dk dk dk Image cut) Image cut) Image cut) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Microfont Select Microfont --------------- 77 (4D) M ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 81 51 Q Set Left Margin Set Left Margin --------------- n n n ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 82 (52) R Set Right Margin Set Right Margin --------------- n n n ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Superscript Select Superscript 83 (53) S Character Character --------------- n n n (n=O) (n=O) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Superscript Select Superscript 83 (55) S Character Character --------------- n n n (n=1) (n=1) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Bidirec- Select Bidirec- Select Bidirec- 85 (55) U tional printing tional printing tional printing n n n (n=O) (n=O) (n=O) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Select Select 85 55 U Unidirectional Unidirectional Unidirectional n n n Printing Printing Printing (n=1) (n=1) (n=1) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Double- Select Double- --------------- 87 57 W Height Character Height Character ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC End Super-/ End Super-/ 88 (58) X Subscript Subscript --------------- Character Character ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 89 (59) Y International International --------------- n n n Character Set Character Set ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 90 (5A) Z Enhanced Enhanced --------------- n n n ────────────────────────────────────────────────────────────────────────────── 28 (1C) FS Repeat Printable Repeat Printable Repeat Printable n1 n2 n1 n2 n1 n2 Character Character Character ────────────────────────────────────────────────────────────────────────────── 30 (1E) RS End Graphics End Graphics End Graphics Mode Mode Mode ────────────────────────────────────────────────────────────────────────────── CODE SET FOR IBM PROPRINTER XL24 MODE ────────────────────────────────────────────────────────────────────────────── Function Code Symbol────────────────────────────────────────────────────────── Dec. Hex PPR (ASCII) AGM ────────────────────────────────────────────────────────────────────────────── 8 (08) BS Backspace Backspace ────────────────────────────────────────────────────────────────────────────── 9 (09) HT Horizontal Tab Horizontal Tab ────────────────────────────────────────────────────────────────────────────── 10 (0A) LF Line Feed Line Feed ────────────────────────────────────────────────────────────────────────────── 11 (0B) VT Vertical Tab Vertical Tab ────────────────────────────────────────────────────────────────────────────── 12 (0C) FF Form Feed Form Feed ────────────────────────────────────────────────────────────────────────────── 13 (0D) CR Carriage Return Carriage Return ────────────────────────────────────────────────────────────────────────────── 14 (0E) SO Double Wide By Line Double Wide By Line ────────────────────────────────────────────────────────────────────────────── 15 (0F) SI Set Condensed Print Set Condensed Print 17.1 cpi 17.1 cpi ────────────────────────────────────────────────────────────────────────────── 17 (11) DC1 Select Printer Select Printer ────────────────────────────────────────────────────────────────────────────── 18 (12) DC2 Set 10 CPI Set 10 CPI ────────────────────────────────────────────────────────────────────────────── 20 (14) DC4 Cancel Double Wide Cancel Double Wide ────────────────────────────────────────────────────────────────────────────── 24 (18) CAN Cancel Data Cancel Data ────────────────────────────────────────────────────────────────────────────── 27 (12) ESC Return to Tandy Mode Return to Tandy Mode 33 (21) ! ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Select Graphic Mode 42 (2A) . (m: Graphics mode) m m -------------------- (n1 n2 Column length) n1 n1 See page 116 n2 n2 ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 45 (2D) - Set/Reset Underline Set/Reset Underline n n (n=1: Set,n=O: Reset) (n=1: Set,n=O: Reset) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 48 (30) O Set 1/8" Line Spacing Set 1/8" Line Spacing ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 49 (31) 1 Set 7/72" Line Spacing Set 7/72" Line Spacing ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Activate LF Pitch Activated LF Pitch 50 (32) 2 That Was Set by ESC A That Was Set by ESC A ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC Set n/180" Line Spacing 51 (33) 3 Set n/216" Line Spacing (n:Binary, 1 < n < 255) n (n) n = = ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 52 (34) 4 Set Top of Form Set Top of Form ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 53 (35) 5 Set/Reset Auto LF Set/Reset Auto LF n (n=1: Set,n=O:Reset) (n=1: Set,n=O:Reset) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 54 (36) 6 Select Character Set 2 Select Character Set 2 ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 55 (37) 7 Select Character Set 1 Select Character Set 1 ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 58 (3A) : Set 12 CPI Set 12 CPI ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 61 (3D) = Down Line Loading Down Line Loading ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 65 (41) A ------------------ Set n/60" Line Spacing n n (n: Binary, 1 < n < 255) = = ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 65 (41) A Set n/72" Line Spacing n n (n: Binary, 1 < n < --------------------- 255) = = ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 66 (42) B n1 n1 Set Vertical Tab Set Vertical Tab | | (n: Tab position 1 > nk nk = = ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 67 (43) C Set from Length Set from length n n (n lines (s)) (n line(s)) (n: Binary) (n:Binary) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 67 (43) C Set from Length Set from Length 48 (30) O (n inch(es)) (n inch(es)) n n (n:Binary) (n:Binary) ────────────────────────────────────────────────────────────────────────────── 27 (1B) ESC 68 (44) D Set Horizontal Tab Set Horizontal Tab n1 n1 (n:TAB Position, 1