JP 250 (26-2873)           IBM Control Codes           Faxback Doc. # 4136

The control code functions supported in IBM X24E are summarized below.

Summary of Control Codes:

Dec.    Hex.     Mnemonic         Function

 0       00      NUL              Command terminator
 7       07      BEL              Beeper
 8       08      BS               Backspace
 9       09      HT               Horizontal Tab
10       0A      LF               Line Feed
11       0B      VT               Vertical Tab
12       0C      FF               Form Feed
13       0D      CR               Carriage Return
14       0E      SO               Select One-Line Double-Width Mode
15       0F      SI               Select Condensed Mode
17       11      DC1              Select Printer
18       12      DC2              Select 10 CPI
19       13      DC3              Deselect Printer
20       14      DC4              Cancel One-Line Double-Width Mode
24       18      CAN              Cancel Line
27       1B      ESC              Escape sequences
32       20      SP               Space

Escape (ESC) Sequences:

Dec.             Hex.           Mnemonic      Function

27 45 n          1B 2D n        ESC - n       Underlining
27 48            1B 30          ESC 0         Set 1/8" Line Spacing
27 49            1B 31          ESC 1         Set 7/72" Line Spacing
27 50            1B 32          ESC 2         Start Line Spacing Set by ESC A
27 51 n          1B 33 n        ESC 3 n       Set Graphics Line Spacing
27 52            1B 34          ESC 4         Set Top of Form
27 53 n          1B 35 n        ESC 5 n       Automatic Line Feed
27 54            1B 36          ESC 6         Select IBM Set 2
27 55            1B 37          ESC 7         Select IBM Set 1
27 58            1B 3A          ESC :         Select 12 Pitch
27 61 n1 n2      1B 3D n1 n2    ESC = n1 n2   24-dot font image download
27 65 n          1B 41 n        ESC A n       Set Text Line Spacing
27 66 n1..0      1B 42 n...00   ESC B n...0   Set Vertical Tabs
27 67 n          1B 43 n        ESC C n       Set Form Length in Lines
27 67 0 n        1B 43 00 n     ESC C NUL n   Set Form Length in Inches
27 68 n1...n0    1B 44 n1...n0  ESC D n...00  Set Horizontal Tabs
27 69            1B 45          ESC E         Select Emphasized Mode
27 70            1B 46          ESC F         Cancel Emphasized Mode
27 71            1B 47          ESC G         Select Double-Strike Mode
27 72            1B 48          ESC H         Cancel Double-Strike Mode
27 73 n          1B 49 n        ESC I n       Select Print Mode
27 74 n          1B 4A n        ESC J n       Execute Graphics Line Feed
27 75 n1 n2      1B 4B n1 n2    ESC k n1 n2   Select Normal-Density Graphics
27 76 n1 n2      1B 4C n1 n2    ESC L n1 n2   Select Double-Density Graphics
27 78 n          1B 4E n        ESC N n       Set Skip Over Perforation
27 79            1B 4F          ESC O         Cancel Skip Over Perforation
27 80 n          1B 50 n        ESC P n       Proportional Mode
27 81 3          1B 51 03       ESC Q 3       Deselect Printer
27 82            1B 52          ESC R         Set All Tabs to Default Setting
27 83 n          1B 53 n        ESC S n       Select Super/Subscript Mode
27 84            1B 54          ESC T         Cancel Super/Subscript Mode
27 85 n          1B 55 n        ESC U n       Unidirectional Printing Mode
27 87 n          1B 57 n        ESC W n       Double-Width Mode
27 88 n1 n2      1B 58 n1 n2    ESC X n1 n2   Set Left and Right Margins
27 89 n1 n2      1B 59 n1 n2    ESC Y n1 n2   Double-Density image graphics
27 90 n1 n2      1B 5A n1 n2    ESC Z n1 n2   Quadruple-Density image graphics
27 91 64         1B 5B 40       ESC [ @ n1    Set presentation highlight
n1 n2            n1 n2          n2
27 91 75 n1 n2   1B 5B 4B n1 n2 ESC [ K n1 n2 Initialize Printer
27 91 84 n1 n2   1B 5B 54 n1 n2 ESC [ T n1 n2 Set code page
27 91 92 n1 n2   1B 5B 5C n1 n2 ESC [ \ n1 n2 Change graphics line spacing
27 91 103 n1 n2  1B 5B 67 n1 n2 ESC [ g n1 n2 High resolution graphics
27 92 n1 n2      1B 5C n1 n2    ESC \ n1 n2   Print Continuously from All
                                              Characters Chart
27 94 n          1B 5E n        ESC ^ n       Print Single Character from All
                                              Characters Chart
27 95 n          1B 5F n        ESC _ n       Overscoring
27 100 n1 n2     1B 64 n1 n2    ESC d n1 n2   Relative move inline forward
27 106           1B 6A          ESC j         Go offline
27 51 n          1B 33 n        ESC 3 n       Set graphics line spacing (AGM)
27 65 n          1B 41 n        ESC A n       Set text line spacing (AGM)
27 74 n          1B 74 n        ESC J n       Graphics line spacing (AGM)
27 42 m n1 n2    1B 42 m n1 n2  ESC * m n1 n2 Select graphics mode (AGM)

Note: The n or m indicates a parameter that features the control code
      functions. 

AGM means alternate graphics mode.

Emulation Restrictions of IBM Mode:

The IBM Mode emulation of this printer has a few restrictions, described 
below, because of hardware differences. If you make programs for the printer 
in IBM Mode, pay special attention to these restrictions.

The reverse feed code ESC ] is not supported. The styles of block graphics 
characters at 12 cpi are different. With the Auto Sheet Feeder (26-2884) 
attached, the printer might skip the last two lines on a page.This only
becomes a problem when you direct the output of some DOS command to the
printer (e.g. "dir > prn"), and the text on the page exceeds the number of
printable lines (64).

(jej 04/26/94)