LP 990  (260-2879)             Control Codes           Faxback Doc. # 4682


DIABLO 630/630 ECS

The printer commands available in this emulation are given in the table
below.

DIABLO 630 COMMAND CODES

FUNCTION           MNEMONIC   HEX.     DEC.      REMARKS

Bell               BELL       07       7

Backspace          BS         08       8

Carriage Return    CR         0D       13

Delete             DEL        7F       127       This command is ignored.

Supplementary      EM         19       25        Access for one character
Character Select                                 selection when in 7-bit ESC
                                                 mode.

Page End           FF         0C       12

Horizontal Tab     HT         09       9

Line Feed          LF         0A       10

Null               NUL        00       0

Shift In           SI         0F       15        8-bit ESC mode blanks the
                                                 character at 80H-90f.
                                                 7-bit ESC mode selects the
                                                 primary character set.
                                                  
Shift Out          SO         0E       14        8-bit ESC mode blanks the
                                                 character at 80H-90f.
                                                 7-bit ESC mode selects the
                                                 primary character set.

Vertical Tab       VT         0B       11

Top Margin Set     ESC T      1B 54    27 84

Bottom Margin Set  ESC L      1B 4C    27 76     The specified value of this
                                                 sequence gives the logical
                                                 page length.

Top/Bottom Margin  ESC C      1B 43    27 67
Cancel

Left Margin Set    ESC 9      1B 39    27 57

Right Margin Set   ESC 0      1B 30    27 48

Horizontal Tab     ESC 1      1B 31    27 49
Set

Horizontal Tab     ESC 8      1B 38    27 56
Cancel

Vertical Tab Set   ESC -      1B 2D    27 45
                   (minus)

All Tab Cancel     ESC 2      1B 32    27 50

Lines/Page         ESC FF (n) 1B 0C    27 12     Page Size=VMI *n

Horizontal         ESC US (n) 1B 1F    27 31     HMI=1/120" x n
Movement Index                                   (0 < n < 126)
(HMI) Set

Default HMI        ESC S      1B 53    27 83
Select

Move to Hori-      ESC HT (n) 1B 09    27 9      Hpos=HMI x n (0 < n < 255)
zontal Absolute
Position

Auto Backward      ESC /      1B 2F    27 47     This command is ignored due
Print ON                                         to mechanical carriage
                                                 movement.

Auto Backward      ESC \      1B 5C    27 92     Same as above.
Print OFF

Auto CR/LF ON      ESC ?      1B 3F    27 63

Auto CR/LF OFF     ESC !      1B 21    27 33

Reverse Print ON   ESC <      1B 3C    27 60

Reverse Print OFF  ESC >      1B 3E    27 62

Backward Print     ESC 6      1B 36    27 54    Cleared by CR.

Forward Print      ESC 5      1B 35    27 53

Vertical Movement  ESC RS (n) 1B 1E    27 30    VMI=1/48" x n (0 < n < 125)
Index VMI Set

Move to Vertical   ESC VT (n) 1B 0B    27 11    Not returnable to preceding
Absolute Position                               page due to cut sheet.
                                                VT=1/48" x n (0 < n < 648)

Half Line Feed     ESC U      1B 55    27 85

Backward Half      ESC D      1B 44    27 68    Not returnable to preceding
Line Feed                                       page due to cut sheet.

Backward Line      ESC LF     1B 0A    27 10    Not returnable to preceding
Feed                                            page due to cut sheet.

Graphic Mode ON    ESC 3      1B 33    27 51    No print position change after
                                                text printing. (Cleared by CR)

Graphic Mode OFF   ESC 4      1B 34    27 52    ESC 3 mode cancel. Exit plot
                                                made.

Red Ribbon         ESC A      1B 41    27 65    This command is ignored.
Print ON

Black Ribbon       ESC B      1B 42    27 66    This command is ignored.
Print ON

Print Suppress     ESC 7      1B 37    27 55    Cleared by CR.
Start

20 H Code          ESC Y      1B 59    27 89
Designation

7F H Code          ESC Z      1B 5A    27 90
Designation

P/S Character      ESC P      1B 50    27 80
Print Start

P/S Character      ESC Q      1B 51    27 81
Print End

Character Spacing  ESC DC1 (n)1B 11    27 17    Spacing=1/120" x n (-63<n<=63)
Offset Set

Underline Start    ESC E      1B 45    27 69

Underline End      ESC R      1B 52    27 82

Boldface Overprint ESC O      1B 4F    27 79    Double printing at 1-dot
ON                                              spacing. (Cleared by CR).

Shadow Print ON    ESC W      1B 57    27 87    Double printing at 2-dot
                                                spacing. (Cleared by CR).

Boldface/Shadow    ESC &      1B 26    27 38
Print OFF

Carriage Setting   ESC %      1B 25    27 37    This command is ignored.
Time Extend

Carriage Setting   ESC N      1B 4E    27 78    This command is ignored.
Time Extend Cancel

Auto Justify       ESC M      1B 4D    27 77

Auto Center        ESC =      1B 3D    27 61    Cleared by CR.

1/120" Backspace   ESC BS     1B 08    27 8

Program Mode       ESC SO M   1B OE 4D 27 14 77 This command is ignored.
Select

Word Processor     ESC X      1B 58    27 88
Mode Cancel

Envelope Feed ON   ESC EM E   1B 19 45 27 25 69

Tray 1 Feed ON     ESC EM 1   1B 19 31 27 25 49

Tray 2 Feed ON     ESC EM 2   1B 19 32 27 25 50

Page End           ESC EM R   1B 19 52 27 25 82 Causes the same operation as 
Designation                                     FF code.

Printer Initialize ESC SUB I  1B 1A 49 27 26 73 Power-on initialization.

Remote Error Reset ESC SUB R  1B 1A 52 27 26 82

Status Byte 1      ESC SUB 1  1B 1A 31 27 26 49 In RS-232C I/F mode only.
Request                                         Printer always sends NULL
                                                (0x00) code to host computer.
                                                 
Status Byte 3      ESC SUB 3  1B 1A 33 27 26 51 In RS-232C I/F mode only.
Request                                         Printer always sends NULL
                                                (0x00) code to host computer.

Memory Test        ESC SUB SO 1B 1A 53 27 26 83 This command is ignored.
Request                       4F       79

Hy Plot ON         ESC G      1B 47    27 71    Cleared by CR
(Absolute Move)

Hy Plot ON         ESC G BEL  1B 47 07 27 71 7  Cleared by CR
(Absolute Plot)

Hy Plot ON         ESC V      1B 56    27 86    Cleared by CR
(Relative Move)

Hy Plot ON         ESC V BEL  1B 56 07 27 86 7  Cleared by CR
(Relative Plot

Change Plot        ESC,       1B 2E    27 46
Precision         `character'

Set Plot           ESC, hv    1B 2C    27 44 104
Precision                     68 76    118

Parameter          ESC CR P   1B 0D 50 27 13 80 Initialization of print
Initialize                                      control parameters only.

Print Wheel Down   ESC SO DC2 1B 0E 12 27 14 18 This command is ignored.
Load Mode ON

Toggles SRQ Line   ESC CAN    1B 18    27 24    This command is ignored.

Remote Print       ESC SYN (p)1B 16    27 22    This command is ignored.
Wheel Selection

X-ON/OFF Protocol  ESC GS A   1B 1D 41 27 29 65 Disables NAK.

X-ON/OFF Protocol  ESC GS B   1B 1D 42 27 29 66 Re-enables NAK.

Text Block End     ETX        03       3         Only when ETX/ACK hand-shake
                   ACK        06       6         is designated in RS-232 I/F
                                                 mode.

Paper Source       ESC EM (n)

                    1B 19 31    27 25 49  n=1 TRAY 1
                    1B 19 32    27 25 50  n=2 TRAY 2
                    1B 19 45    27 25 69  n=E ENVELOPE FEEDER *
                    1B 19 4D    27 25 77  n=M SELECT TRAY 1 THEN TRAY 2 *
                    1B 19 43    27 25 67  n=C EJECT THE CURRENT PAGE
                    1B 19 52    27 25 82  n=R

Paper Size*        ESC d (n)

                    1B 64 42    27 100 66  n=B LEGAL
                    1B 64 44    27 100 68  n=D LETTER
                    1B 64 50    27 100 80  n=P EXECUTIVE
                    1B 64 45    27 100 69  n=E INVOICE
                    1B 64 48    27 100 72  n=H A4
                    1B 64 4C    27 100 76  n=L B5
                    1B 64 52    27 100 82  n=R COMMERCIAL 10
                    1B 64 53    27 100 83  n=S INTERNATIONAL DL
                    1B 64 55    27 100 85  n=U INTERNATIONAL C5
                    1B 64 4D    27 100 77  n=M MONARCH 7 3/4

Orientation*       ESC I      7C       124      PORTRAIT
                   ESC _      5F       95       LANDSCAPE

* These codes are not part of the original code set for the Diablo 630. 
  They are unique to LP-990.

Select Font    ESC F (n)  1B 46     27 70       INTERNAL FONT
               ESC FI (n) 1B 46 49  27 70 73    INTERNAL FONT
               ESC FA (n) 1B 46 41  27 70 65    A FONT SLOT
               ESC FB (n) 1B 46 42  27 70 66    B FONT SLOT
               ESC G (n)  1B 47     27 71       INTERNAL FONT & ADJUST SPACINT
               ESC GI (n) 1B 47 49  27 71 73    INTERNAL FONT & ADJUST SPACING
               ESC GA (n) 1B 47 41  27 71 65    A FONT SLOT & ADJUST SPACINT
               ESC GB (n) 1B 47 42  27 47 66    B FONT SLOT & ADJUST SPACINT
                                                (n) indicates the selected font
                                                    number.
                                              
Paper Source       //n//

          2F 2F 31 2F 2F    47 47 49 47 47      n=1 TRAY 1
          2F 2F 32 2F 2F    47 47 50 47 47      n=2 TRAY 2
          2F 2F 45 2F 2F    47 47 69 47 47      n=E E ENVELOPE FEEDER *
          2F 2F 4D 2F 2F    47 47 77 47 47      n=M MANUAL *
          2F 2F 43 2F 2F    47 47 67 47 47      n=C SELECT TRAY 1 THEN TRAY 2*
          2F 2F 52 2F 2F    47 47 82 47 47      n=R EJECT THE CURRENT PAGE

Paper Size *  //d (n)//

     2F 2F 64 42 2F 2F     47 47 100 66 47 47   n=B LEGAL
     2F 2F 64 44 2F 2F     47 47 100 68 47 47   n=D LETTER
     2F 2F 64 50 2F 2F     47 47 100 80 47 47   n=P EXECUTIVE
     2F 2F 64 45 2F 2F     47 47 100 69 47 47   n=E INVOICE
     2F 2F 64 48 2F 2F     47 47 100 72 47 47   n=H A4
     2F 2F 64 4C 2F 2F     47 47 100 76 47 47   n=L B5
     2F 2F 64 52 2F 2F     47 47 100 82 47 47   n=R COMMERCIAL 10
     2F 2F 64 53 2F 2F     47 47 100 83 47 47   n=S INTERNATIONAL DL
     2F 2F 64 55 2F 2F     47 47 100 85 47 47   n=U INTERNATIONAL C5
     2F 2F 64 4D 2F 2F     47 47 100 77 47 47   n=M MONARCH 7 3/4

Orientation *  //|//  2F 2F 7C 2F 2F  47 47 124 47 47  PORTRAIT
               //_//  2F 2F 5F 2F 2F  47 47 95 47 47   LANDSCAPE

Select Font
 //F (#)//   2F 2F 46 2F 2F     47 47 68 47 47       INTERNAL FONT

 //FI (#)//  2F 2F 46 49 2F 2F  47 47 68 73 47 47    INTERNAL FONT

 //FA(#)//   2F 2F 46 41 2F 2F  47 47 68 65 47 47    A FONT SLOT

 //FB (#)//  2F 2F 46 42 2F 2F  47 47 68 66 47 47    B FONT SLOT

 //G (#)//   2F 2F 47 2F 2F     47 47 71 47 47       INTERNAL FONT & ADJUST
                                                     SPACINT

 //GI (#)//  2F 2F 47 49 2F 2F  47 47 71 73 47 47    INTERNAL FONT & ADJUST
                                                     SPACING

 //GA (#)//  2F 2F 47 41 2F 2F  47 47 71 65 47 47    A FONT SLOT & ADJUST
                                                     SPACINT

 //GB (#)//  2F 2F 47 42 2F 2F  47 47 71 66 47 47    B FONT SLOT & ADJUST
                                                     SPACINT

                                                     (#) indicates the selected
                                                         font number.

* These codes are not part of the original code set for the Diablo 630. 
  They are unique to LP-990.


(smm 07/27/93)
(smm 08/25/93)