Epson Commands Notes
Function (ASCII, Decimal, Hexadecimal)
n3, n4 set vertical length of bars: normal
value is ([n3 x 10] + n4) (15/180-inch)
n5 sets width of modules or black bars,
depending on style engaged.
n6 sets spacing
n7 sets ratio of wide element to narrow
element
n8: Specifies whether or not characters
are to be attached
n8=0: characters not attached
n8=1 or more: LQ characters attached
Print Industrial Bar Code ASCII: ESC DLE B m n [data] Prints bar code data.
Data Dec: 27 16 66 m n [data] m=amount of data (in bytes) to follow n
Hex: 1B 10 42 m n [data] specifies Code 128 mode (when Code
128 is selected) as follows: n=65: Set A
n=66: Set B
n=67: Set C
Print Postnet Bar Code ASCII: ESC DLE C n [data] n=amount of data (in bytes) to follow:
Data Dec: 27 16 67 n [data] n=1 to 20
Hex: 1B 10 43 n [data] Data consists of single-digit numbers
(0 to 9).
Print Bar Code ASCII: ESC (B Ln Hn k m S v1 v2 c Select Barcode type and Print Barcode.
DATA Ln Hn: number of parameter, number of
Dec: 27 40 66 Ln Hn k m S v1 v2 c parameter=Ln + Hn x 256
DATA k: Barcode type 00=EAN13, 1=EAN8,
Hex: 1B 28 42 Ln Hn k m S v1 v2 c
DATA 2=I20f5, 3= UPC-A, 4= UPC-E,
5=Code39, 6= Code128, 7= Postnet
m: module width (black and white bar),
2= 2 dots, 3= 3 dots, 4= 4 dots, 5= 5
dots (unit: 1/180")
s: adjustment of white bar, FDH=-3,
FEH=-2, FFH=-1, 00H=0, 01H=+1,
02H=+2, 03H=+3 (unit: 1/360")
v1, v2: specifies the height, height=
v1+v2x256 (unit: 15/180")
c: control information
bit0 check digit 0: no, 1= yes
bit1 human-readable character 0:
yes, 1= no
DATA: barcode data
94 Appendix C: Printer Commands
Epson Commands Notes
Function (ASCII, Decimal, Hexadecimal)
n=0: Utility printing
Print Features ASCII: ESC x n n=1: NLQ printing
Utility / LQ Selection Dec: 27 120 n Select Draft Font type.
Hex: 1B 78 n= 0: Utility
Select Draft Font ASCII: ESC y n n= 1: HSD
Dec: 27 121 n n=0: Roman
Select LQ Typeface Hex: 1B 79 n n=1: Swiss
ASCII: ESC k n n=2: Courier
Dec: 27 107 n n=3: Prestige
Hex: 1B 6B n n=7: Orator
n=122: Swiss Bold
Select font by pitch and ASCII: ESC X m n1 n2 n=124: Gothic
point Dec: 27 88 m n1 n2 n=126: MENU setting
Hex: 1B 58 m n1 n2 Selects Multipoint (scalable font) mode.
Printable font is selected by character
pitch and point
Character pitch
m=0: unchanged
m=1: Proportional
m>5: m /360 inch
Point size=(n1 + [n2 x 256]) x 0.5 point
Point size can be selected between a
minimum of 8 point to a maximum of 64
point.
ML790/791 Plus Printer Handbook 95
Epson Commands Notes
Function (ASCII, Decimal, Hexadecimal)
See also ESC ! n command.
Proportional Spacing ASCII: ESC p n n=1: Start proportional spacing
Dec: 27 112 n n=0: Stop proportional spacing
Hex: 1B 70 n Normally, selects 10 cpi (Pica). In com-
pressed mode, selects 17.1 cpi.
Select 10 cpi Pitch (Pica) ASCII: ESC P Normally, selects 12 cpi (Elite). In com-
Dec: 27 80 pressed mode, selects 20 cpi.
Hex: 1B 50 Selects 15 cpi pitch.
Select 12 cpi Pitch (Elite) ASCII: ESC M Pitch depends on current pitch selected:
Dec: 27 77 10 cpi becomes 17.1 cpi
Hex: 1B 4D 12 cpi becomes 20 cpi
Cancels 15 cpi print selected by SI or
Select 15 cpi Pitch ASCII: ESC g ESC SI command.
Dec: 27 103 Adds n dots of space (depending on the
Hex: 1B 67 current pitch) between characters.
n=0 to 127
Select Compressed Print ASCII: SI or ESC SI Sets the amount of space between char-
Dec: 15 or 27 15 acters (HMI).
Hex: 0F or 1B 0F HMI= (n1+ [n2 x 256])/ 360 inch.
The specification is invalid if HMI ex-
Cancel Compressed Print ASCII: DC2 ceeds 3 inches.
Dec: 18 The command is invalid when n1=n2=0.
Hex: 12 See also ESC !, ESC 7.
Set Character Spacing ASCII: ESC SP n Clears italic printing engaged by ESC 4
Dec: 27 32 n command.
Hex: 1B 20 n
Select horizontal motion ASCII: ESC c n1 n2
index (HMI) Dec: 27 99 n1 n2
Hex: 1B 63 n1 n2
Select Italic Characters ASCII: ESC 4
Cancel Italics Dec: 27 52
Hex: 1B 34
ASCII: ESC 5
Dec: 27 53
Hex: 1B 53
96 Appendix C: Printer Commands
Epson Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Selects underline, strike-through, or
Score (Lines) ASCII: ESC ( - j h l n1 n2 overscore.
Selection Dec: 27 40 45 j h l n1 n2 jand h specify amount of data to follow,
Hex: 1B 28 2D j h 0 l n1 n2 calculated as j + h x 256
n1= 1: Start underline
Turn Underlining on/ off ASCII: ESC - n n1= 2: Start strike through
Dec: 27 45 n n1= 3: Start overscore
Hex: 1B 2D n n2= 0: Cancel score mode selected by n1
n2= 1: Start single continuous line
Start Superscript/ ASCII: ESC S n n2= 2: Start double continuous line
Subscript Dec: 27 83 n n2= 5: Start single dashed line
Hex: 1B 53 n n2= 6: Start double dashed line
Underlines all text except tabs.
Stop Superscript/ ASCII: ESC T n= 1: Start underlining
Subscript Dec: 27 84 n= 0: Stop underlining
Hex: 1B 54 n= 0: Start superscript
n= 1: Start subscript
Select Character Style ASCII: ESC q n
(normal, shadow, outline, Dec: 27 113 n n= 0: Normal
outline& shadow) Hex: 1B 71 n n= 1: Outline
n= 2: Shadow
Start Emphasized ASCII: ESC E n= 3: Outline with shadow
Printing Dec: 27 69
Hex: 1B 45 Prints horizontally shifted double dots
in utility mode at half speed. See also
Stop Emphasized ASCII: ESC F ESC ! command.
Printing Dec: 27 70 Override MENU until Initialize, Soft-
Start Enhanced (Double Hex: 1B 46 ware I-PRIME or Change Emulation
Strike) Printing ASCII: ESC G command is received, or until printer is
Dec: 27 71 turned off.
Hex: 1B 47 Clears emphasized printing engaged by
ESC E command.
Prints vertically shifted double dots in
two passes. See also ESC ! command.
ML790/791 Plus Printer Handbook 97
Epson Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Stop Enhanced Printing ASCII: ESC H Clears double strike printing set by ESC
Dec: 27 72 G command.
Hex: 1B 48
Double Width (Expan- ASCII: ESC W n n= 1: Start double width printing
ded) Printing Dec: 27 87 n n= 0: Stop double width printing
Hex: 1B 57 n
Immediate Double Width ASCII: SO or ESC SO Prints double width only to end of line:
Dec: 14 or 27 14 can also be canceled by DC4, ESC W 0
Hex: 0E or 1B oE and ESC ! commands.
Stop Immediate Double ASCII: DC4 Only cancels double width set by SO or
Width Printing Dec: 20 ESC SO.
Hex: 14
Double Height Printing ASCII: ESC w n or ESC US n OKI unique command
Dec: 27 119 n or 27 31 n n= 1: Start double height
Hex: 1B 77 n or 1B 1F n n= 0: Stop double height
Graphics, 8 & 24-pin
Mode
For all graphics com-
mands the number of dot
columns of graphic data
is as follows: dots= n1 +
(n2 x 256)
Graphics Select/ Print ASCII: ESC * m n1 n2[graphic data] Selects 8-pin and 24-pin graphic modes
Dec: 27 42 m n1 n2[graphic data] and prints graphic data.
Hex: 1B 2A m n1 n2[graphic data] m= 0: Single density, 8-pin 60 dpi
m= 1: Double density, 8-pin, 120 dpi
m= 2: Double speed, double density, 8-
pin, quasi-120 dpi (dots can not be prin-
ted directly adjacent to one another)
m= 3: Quadruple density, 8-pin, quasi-
240 dpi (dots can not be printed directly
adjacent to one another)
m= 4: CRT I, 8-pin, 80 dpi
m= 6: CRT II, 8-pin, 90 dpi
m= 32: Single density, 24-pin, 60 dpi
m= 33: Double density, 24-pin, 120 dpi
m= 38: CRT III, 24-pin, 90 dpi
m= 39: Triple density, 24-pin, 180 dpi
m= 40: Hex-density, 24-pin, quasi-360
dpi (dots can not be printed directly ad-
jacent to one another)
98 Appendix C: Printer Commands
Epson Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Graphics, 8 -pin Mode ASCII: ESC K n1 n2 [graphic data] n1, n2= 0 to 255: specifies amount of
Single Density Graphics Dec: 27 75 n1 n2 [graphic data] subsequent Bit Image bytes received,
Hex: 1B 4B n1 n2 [graphic data] calculated as n1 + (n2 x 256)
Double Density Graphics ASCII: ESC L n1 n2 [graphic data] Dot density 60 dpi horizontal, 72 dpi
Dec: 27 76 n1 n2 [graphic data] vertical.
Hex: 1B 4C n1 n2 [graphic data] Maximum data per line: ML390
Turbo=480: ML391 Turbo=816
Quasi Double Density ASCII: ESC Y n1 n2 [graphic data] n1, n2= 0 to 255: specifies amount of sub-
Graphics Dec: 27 89 n1 n2 [graphic data] sequent Bit Image bytes received, calcu-
Quadruple Density Hex: 1B 59 n1 n2 [graphic data] lated as n1 + (n2 x 256)
Graphics ASCII: ESC Z n1 n2 [graphic data] Dot density 120 dpi horizontal, 72 dpi
Dec: 27 90 n1 n2 [graphic data] vertical.
Hex: 1B 5A n1 n2 [graphic data] Maximum data per line: ML390 Turbo=
960: ML391 Turbo= 1632
Reassign Graphics ASCII: ESC ? m n n1, n2= 0 to 255: specifies amount of sub-
Dec: 27 63 m n sequent Bit Image bytes received, calcu-
Hex: 1B 3F m n lated as n1 + (n2 x 256)
Same as double density graphics (120
dpi), but printer can't put two adfacent
dots in the same row.
Dot density 240 dpi horizontal, 72 dpi
vertical. Printer can't put two adjacent
dots in the same row.
Maximum data per line: ML390 Tur-
bo=1920: ML391 Turbo=3264
n1, n2= 0 to 255: specifies amount of sub-
sequent Bit Image bytes received, calcu-
lated as n1 + (n2 x 256)
Converts ESC K, ESC L, ESC Y, or ESC Z
command to a graphics select command:
For ESC K: m=75
For ESC L: m=76
For ESC Y: m=89
For ESC Z: m=90
n=0: Single density, 60 dpi
n=1: Double density, 120 dpi
ML790/791 Plus Printer Handbook 99
Epson Commands Notes
Function (ASCII, Decimal, Hexadecimal)
n=2: Double speed, double density, qua-
Composite Command ASCII: ESC ! n si- 120 dpi (adjacent dots can not be
DEc: 27 33 n printed)
Hex: 1B 21 n n=3: Quadruple density, quasi- 240 dpi
(adjacent dots can not be printed)
Miscellaneous ASCII: ESC { n n=4: CRT I, 80 dpi
Select emulation mode Dec: 27 123 n n=6: CRRT II, 90 dpi
Hex: 1B 7B n n=38: CRT III, 90 dpi
Calculate n as the sum of the values of
Initialize printer ASCII: ESC @ the features to be activated. If a feature's
Dec: 27 64 value is not included in the sum, it will
Hex: 1B 40 be deactivated.
n=0: 10 cpi
Cancel ASCII: CAN n=1: 12 cpi
Dec: 24 n=2: Proportional spacing
Hex: 18 n=4: Compressed
n=8: Emphasized
n=16: Enhanced
n=32: Double Width
n=64: Italics
n=128: Underlining
OKI unique command. Switches printer
emulation mode, copying the custom
character data in buffer and saving the
print and receive buffers.
MENU settings unaffected.
n=0: IBM mode (general)
n=2: IBM X24e PPR, XL24e PPR
n=3: IBM X24e AGM, XL24e AGM
n=64: Epson mode (general)
n=66: Epson LQ 850, LQ 1050
Clears print buffer (receive buffer unaf-
fected), resets printer to menu defaults,
current position becomes top of page.
Custom character data is not touched.
This command is acknowledged only if
Reset Inhibit in MENU is set to " No"
(factory default).
Clears print buffer (receive buffer unaf-
fected) and executes carriage return;
commands and custom character data
unaffected.
100 Appendix C: Printer Commands
Epson Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Set the MSB (8th bit) to 1.
Set Most Significant Bit ASCII: ESC >
(MSB) to 1 Dec: 27 62 Sets the MSB (8th bit) to 0.
Hex: 1B 3E
Cancels ESC > or ESC =. MSB accepted
Set Most Significant Bit ASCII: ESC = "as is" from computer.
(MSB) to 0 Dec: 27 61 Places printer in Print Suppress Mode
Hex: 1B 3D after printing data in print buffer.
Ignores all further commands except
Reset Most Significant Bit ASCII: ESK # DC1 command.
(MSB) Dec: 27 35 Print Suppress Effective item in MENU
Hex: 1B 23 must be set to "Yes" for this command to
be acknowledged.
Print Suppress Mode On ASCII: DC3 Clears Print Suppress Mode, re-activat-
Dec: 19 ing printer to once again process all data
Hex: 13 received.
OKI unique command. Disables paper-
Print Suppress Mode Off ASCII: DC1 out sensor, even if Paper Out Override
Dec: 17 in MENU is set to "On" the (factory de-
Hex: 11 fault). If data flows onto next page and
reaches top of form setting for that page,
Disable Paper-Out ASCII: ESC 8 printer ALARM light will come on to in-
Sensor Dec: 27 56 dicate paper-out error.
Hex: 1B 38 OKI unique command. Enables paper-
out sensor to detect when less than 1/2
Enable Paper-Out ASCII: ESC 9 inch of paper is left. When ALARM light
Sensor Dec: 27 57 is on, pressing SELECT prints 1 line of
Hex: 1B 39 data at a time until the top of form set-
ting for the next page is reached.
Half-Speed ASCII: ESC s n Sensor can also be controlled by the
Printing On/ Off Dec: 27 115 n menu.
Hex: 1B 73 n Prints at 50% of normal speed to reduce
noise.
n=1: Half-speed printing On
n=0: Half-speed printing Off
ML790/791 Plus Printer Handbook 101
Epson Commands Notes
Function (ASCII, Decimal, Hexadecimal)
OKI unique command. Clears data in
Software I-Prime ASCII: ESC } NUL print buffer (receive buffer unaffected);
Dec: 27 125 0 resets printer to menu default if applica-
Hex: 1B 7D 00 ble, non-menu features returned to fac-
tory default. Executes paper eject in Cut
Set unit ASCII: ESC ( U n1 n2 m Sheet Feeder mode.
Dec: 27 40 85 n1 n2 m Sets the basic unit of horizontal and vert-
Hex: 1B 28 55 n1 n2 m ical lengths.
n1=1, n2=0: specifies the number of
Set/ Reset Incremental ASCII: ESC i n parameters (in bytes) to follow
Print Mode Dec: 27 105 n The commands affected by this com-
Raster Graphics Hex: 1B 69 n mand are:
Select graphics mode ASCII: ESC ( G n1 n2 m ESC (V, ESC (v, ESC \, ESC $, ESC (C,
Dec: 27 40 71 n1 n2 m ESC (c.
Hex: 1B 28 47 n1 n2 m n1=1, Sets the Incremental print mode
n=0: Reset Incremental print mode
n=1: Set Incremental print mode
Sets the raster graphics mode.
n2=0: specifies the number of parame-
ters (in bytes) to follow
This command can be deactivated by
ESC @ (printer initialization). The raster
graphics command ESC is valid only
while in this mode.
The printer is initialized by this com-
mand.
102 Appendix C: Printer Commands
Epson Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Turn raster graphics ASCII: ESC DLE G Pn0 Pn OKI unique command. Activates and
mode ON/ OFF Dec: 27 16 71 Pn0 Pn deactivates raster graphics mode.
Hex: 1B 10 47 Pn0 Pn Pn0=1: specifies the number of parame-
Print raster graphics ters (in bytes) to follow
Pn=odd number: raster graphics mode
activated
Pn=even number: raster graphics mode
deactivated
ASCII: ESC . Pc Pv Ph Pm n1 n2 [data] Input data is printed with bit pattern in
Dec: 27 46 Pc Pv Ph Pm n1 n2 [data] horizontal direction.
Hex: 1B 2E Pc Pv Ph Pm n1 n2 [data] Pc: mode setting
Pc=0: full graphics mode
Pc=1: compressed mode
PvPP:vvv==e21rt00i::c33a66l 00d00ir//ePPcvvtiofifin13d6800otDDdPPeIInsity setting
Ph: horizontal direction dot density set-
ting
Ph=10: 3600/ Ph fi 360 DPI
Ph=20: 3600/ Ph fi 180 DPI
Pm: horizontal direction dot number
Horizontal direction dot number=n1 +
[n2 x 256]
The command is ignored when
Pv=10 and Ph=20.
ML790/791 Plus Printer Handbook 103
104 Appendix C: Printer Commands
ภ าคผนวก D: การจ�ำ ลองค�ำ สั่ง IBM
ในภาคผนวกนจี้ ะประกอบดว้ ยชดุ จำ�ลองค�ำ ส่งั ของ IBM X24e/ XL24e Proprinter และ X24e AGM/ XL24e AGM , โดยมีการจดั
กลมุ่ ตามฟังกช์ น่ั
โดยปกติ ค�ำ สัง่ ในตารางนจ้ี ะถูกสง่ ไปแทนทีก่ ารต้ังค่าเมนขู องเครอ่ื งพรนิ เตอร์ ยกเวน้ รายการทรี่ ะบุไว,้ คำ�สงั่ การต้ังค่าเหลา่
นจี้ ะถูกยกเลกิ ก็ต่อเม่ือเครอ่ื งพรินเตอร์ได้รับค�ำ ส่ังใหก้ ลบั ไปใชค้ า่ เรม่ิ ต้น, ซอฟท์แวร์ I-Prime, หรอื การเปลี่ยนการจำ�ลอง
คำ�ส่งั (Emulation command), หรอื ปดิ และเปดิ เครอ่ื งพรินเตอร์ใหม่อีกคร้งั
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Horizontal Control ASCII: CR Prints data in buffer and performs car-
Carriage Return Dec: 13 riage return.
Set Horizontal Tabs Hex: 0D Sets horizontal tab stop positions.
ASCII: ESC D n1 n2 ááá nk NUL n=1 to 255: specifies position of tab stop-
Horizontal Tab Dec: 27 68 n1 n2 ááá nk 0 maximum is number of characters per
Reset Tabs to Default Hex: 1B 44 n1 n2 ááá nk 00 line
k=1 to 28; n1=0: clear tabs
ASCII: HT Default: every 8 columns
Dec: 9 Move to next horizontal tab stop
Hex: 09
ASCII: ESC R Reset horizontal tabs for default: every
Dec: 27 82 8th character. Also resets vertical tabs to
Hex: 1B 52 default of 1 line.
ML790/791 Plus Printer Handbook 105
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Move to the Left ASCII: ESC e n1 n2 Move to the left, relative to present posi-
(Backwards) Dec: 27 101 n1 n2 tion, calculated as
Hex: 1B 65 n1 n2 (n1 =[n2 x 256])/ 120 inches
n1=0 to 255
Self Left & Right Margins ASCII: ESC X n m n2=0 to 255
Dec: 27 88 n m n1=n2=0: no movement
Hex: 1B 58 n m Sets left (n) and right (m) margins in
character columns at current pitch. Once
set, margins remain fixed even if charac-
ter pitch is changed. m must be at least
10 character space (at 10 cpi) to the right
of n.
n=0 to 255; n=0: left margin unchanged
m=0 to 255; m=0: right margin unchan-
ged
Engage/ Disengage ASCII: ESC U n n=1: Unidirectional printing On
Unidirectional Printing Dec: 27 85 n n=0: Unidirectional printing Off (return
Backspace Hex: 1B 55 n to bidirectional)
ASCII: BS
Set Print Position Dec: 8 Prints data in buffer and moves one
Hex: 08 character to the left according to current
ASCII: ESC DLE @ Pn A1 A2 P1 P2 character pitch.
P3 P4
Dec: 27 16 64 [data] OKI unique command. Sets horizontal
Hex: 1B 10 40 [data] position of printhead.
Pn: specifies number of bytes to follow,
range 0 to 127 (MSB ignored)
A1: specifies if motion is absolute (even
number) or relative (odd number)
A2: specifies direction of relative move-
ment right (even number) or left (odd
number)
P1, P2, P3, P4=0 to9: specify print posi-
tion, in four digits:
(P1 x 1000) + p(Po2sixti1o0n0i)s+1/(P336x0 10) + P4
Unit of print inch in LQ
mode; 1/240 inch in Utility mode.
Maximum default value for left and
right margins: 2880 for ML390 Turbo:
4896 for ML 391 Turbo
106 Appendix D: Printer Commands
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
1/8 -inch Line Spacing=8 lines per inch.
Vertical Control ASCII: ESC 0
Set 1/8-inch Dec: 27 48 This is the line spacing used for graph-
Line Spacing Hex: 1B 30 ics.
Set 7/72-inch ASCII: ESC 1
Line Spacing Dec: 27 49 This command is required to activate the
Activate Line Spacing Hex: 1B 31 line spacing set by the ESC A n com-
ASCII: ESC 2 mand (see below).
nS/et60n-/in72c-hinch or Dec: 27 50 In PPR emulation, sets and stores n/72-
Line Spacing Hex: 1B 32 n inch line spacing; in AGM emulation,
ASCII: ESC A n sets and stores n/60-inch line spacing.
Dec: 27 65 n The ESC 2 command must be sent to ini-
Hex: 1B 41 n tiate the line spacing change.
n=1 to 255
Set n/360-inch ASCII: ESC % 8 n n=0: no change in line sapcing.
Line Spacing Dec: 27 37 56 n OKI unique command. Sets line spacing
Hex: 1B 25 38 n to n/360-inch.
n=1 to 255
Set n/216-inch or n/180- ASCII: ESC 3 n n=0: no line feed
inch Dec: 27 51 n For PPR emulation, sets n/216-inch line
Line Spacing Hex: 1B 33 n spacing; for AGM emulation, sets
n/180=inch line spacing.
Line Feed ASCII: LF n=1 to 255
Dec: 10 n=0: command is ignored
Hex: 0A Prints buffer data and moves printhead
down by current by current line spacing
Reverse Line Feed ASCII: ESC ] value. In PPR emulation, performs car-
Dec: 27 93 riage return only if Auto CR in MENU
Hex: 1B 5D has been changed to Yes (factory default
is No). In AGM emulation performs car-
riage return regardless of Auto CR set-
ting.
Prints buffer data and performs one re-
verse line feed at the current line spac-
ing. Movement will not go above top of
form. Not recommended for use with
optional pull tractor.
ML790/791 Plus Printer Handbook 107
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
n=Odd: Line feed automatically added
Automatic Line Feed ASCII: ESC 5 to each CR (carriage return)
Control Dec: 27 53 n n=Even: auto line feed turned Off
n/360-inch Line Feed Hex: 1B 35 n OKI unique command. Prints data in
ASCII: ESC % 4 n buffer and executes a single n/360-inch
Dec: 27 37 52 n line feed without changing line spacing.
Hex: 1B 25 34 n n=1 to 255
n=0: no line feed
n/216-inch or n/180-inch ASCII: ESC J n In PPR emulation, prints data in buffer
Line Feed Dec: 27 74 n and executes a single n/216-inch line
Hex: 1B 4A n feed: in AGM emulaiton, executes a sin-
gle n/180-inch line feed, both without
Form Feed ASCII: FF changing line spacing. Carriage Return
Vertical Tab Dec: 12 determined by menu setting.
Set Vertical Tab Stops Hex: 0C n=1 to 255
Set Form Length in n=0: no line feed
Inches ASCII: VT Prints data in buffer and advances pa-
Dec: 11 per to next top of form. With Cut Sheet
Hex: 0B Feeder installed, will eject or insert pa-
ASCII: ESC B n1 n2 ááá nk NUL per depending on status of feeder.
Dec: 27 66 n1 n2 ááá nk 0 Print buffer data and move to next vert-
Hex: 1B 42 n1 n2 ááá nk 00 ical tab stop.
ASCII: ESC C NUL n
Dec: 27 67 0 n Sets vertical tab stops at specified lines.
Hex: 1B 43 00 n k=1 to 64: number of tabs
n=1 to 255: line number where tabs is to
be set
Sets page length in inches.
n=1 to 255 inches
n=0: Command ignored
This command cancels Skip Over Per-
foration setting.
108 Appendix D: Printer Commands
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Sets page length in lines, relative to cur-
Set Form Length in Lines ASCII: ESC C n rently selected line spacing, calculated
Dec: 27 67 n by multiplying value of n by line spac-
Hex: 1B 43 n ing ratio.
n=1 to 255
Set Skip Over Perforation ASCII: ESC N n This command cancels Skip Over Per-
Dec: 27 78 n foration setting.
Hex: 1B 4E n Activates Skip Over Perforation feature
and sets it for n lines at the current line
Cancel Skip Over ASCII: ESC O spacing. When the printer reaches the
Perforation Dec: 27 79 bottom of the page, it will skip n lines to
Hex: 1B 4F next top of form. Command overrides
menu.
Set Top of Form ASCII: ESC 4 n=1 to 255 lines
Dec: 27 52 n=0: command ignored
Hex: 1B 34 Deactivates Skip Over Perforation.
Command override menu.
Cut Sheet Feeder Sets top of form at current printhead
(Option) position. Command ignored in CSF or
Auto-Feed mode.
Cut Sheet Feeder Control ASCII: ESC EM n
Dec: 27 25 n OKI unique command. Controls Cut
Hex: 1B 19 n Sheet Feeder accessory.
n=1: Select bin 1
n=2: Select bin 2 (if present)
n=73 (ASCII "I" ): Insert sheet
n=82 (ASCII "R" ): Eject sheet
ML790/791 Plus Printer Handbook 109
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Character Sets Select ASCII: ESC [ T1h NUL NUL Hcp Selects Code Page
Code Page Lcp NUL 1, h=0 to 255: specify amount of data to
Dec: 27 91 84 1 h 0 0 Hcp Lcp 0 follow, calculated as 1 = (h x 256)
Select International Hex: 1B 5B 54 1 h 00 00 Hcp Lcp 00 Hcp, Lcp=0 to 255: specifies Code Page
Character Set ID No., calculated as 1 + (Hcp x256)+Lcp
ID No.=437: USA
Print from IBM ID No.=850: Multilngual
Character Set III ID No.=860: Portugal
Print One Character ID No.=863: Canadian French
from IBM Character ID No.=865: Norway
Set III ID No.=1040: BRASCII
ID No.=1041: Abicomp
ASCII: ESC ! n OKI unique command. Select character
Dec: 27 33 n set containing special characters used in
Hex: 1B 21 n foreign language printing:
n=64: US ASCII, slashed zero
ASCII:ESC \ n1 n2 n=65: US ASCII (unslashed zero)
Dec: 27 92 n1 n2 n=66: British
Hex: 1B 5C n1 n2 n=67: German
ASCII: ESC ^ n n=68: French
Dec: 27 94 n n=69: Swedish
Hex: 1B 5E n n=70: Danish
n=71: Norwegian
n=72: Dutch
n=73: Italian
n=74: French Canadian
n=75: Spanish
n=76: Latin American
n=90: Publisher
This character set includes printable
characters for commands. Specify total
number of characters to be printed, cal-
culated as n1 + (n2 x 256).
Prints character n from IBM Character
Set III n=0 to 255.
110 Appendix D: Printer Commands
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Selects IBM Character Set I
Select IBM Character ASCII: ESC 7
Set I Dec: 27 55 Selects IBM Character Set II
Hex: 1B 37
Select IBM Character ASCII: ESC 6
Set II Dec: 27 54
Hex: 1B 36
Bar Code Commands
Select Bar Code Type and ASCII: ESC DLE A m n1 ááá n8 OKI unique command
Size Dec: 27 16 65 m n1 ááá n8 m=number of parameters specified
(m=0, 1 or 3: command ignored)
Hex: 1B 10 41 m n1 ááá n8 n1, n2: selects bar code style
n1, n2=0, 1: EAN8
n1, n2=0, 2: EAN13
n1, n2=1, 0: UPC-A
n1, n2=1, 4: UPC-E
n1, n2=2, 0: CODE39
n1, n2=3, 0: Interleaved 2 of 5
n1, n2=4, 0: Code 128
1un03n],itn+s4no: 4fse)1tx5s/1v15e8/r01t-i8icn0ac"lhl,ecnagltchuloaftebdarass, in x
([n3
n5: sets black bars; n5=1 to 7
n6: sets spacing; n6=1 to 7
n7: sets ratio of wide element to narrow
element; n7=1 to 7
n8: specifies whether or not characters
are to be attached
n8=0: characters not attached
n8=1 or more: LQ characters attached
Print Industrial Bar Code ASCII: ESC DLE B n m [data] OKI unique command
Data Dec: 27 16 66 n m [data] n: specifies amount of data to follow
Hex: 1B 10 42 n m [data] m: selects CODE128 mode (CODE128
must be selected for this command to be
recognized)
m=65: Set A
m=66: Set B
m=67: Set C
ML790/791 Plus Printer Handbook 111
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Print Postnet Bar Code ASCII: ESC DLE C n [data] OKI unique command.
Data Dec: 27 16 67 n [data] n: designates amount of data to follow
Hex: 1B 10 43 n [data] n=1 to 20
Select Barcode type Data consists of single-digit numbers.
ASCII: ESC [ f Ln Hn Pk Pm Ps Lv Specifies the barcode setting.
Hv Pc Ln Hn specifies the byte number of
16-digit: 1B 5B 66 Ln Hn Pk Pm Ps parameter.
Lv Hv Pc byte number of parameter = Ln+Hn x 256
10-digit: 27 91 102 Ln Hn Pk Pm Ps Pk: Barcode type
Lv Hv Pc
Pk (Hex) Barcode type
B2 EAN-13
B3 EAN-8
B4 Code 39
B6 Interleaved 2 of 5
B7 UPC-A
B9 POSTNET
BA Code 128
Pm: specifies the module width (black or
SP bar).
Pm (Hex) Module width (unit: 1/180")
00 2 dots
01 1 dot
02 2 dots
03 3 dots
04 4 dots
Ps: specifies the PS bar width based on
the parameter Pm setting.
Ps (Hex) regulable value for the stan-
dard width of the SP bar.
FD -3
FE -2
FF -1
00 0 (factory default)
01 +1
02 +2
03 +3
Lv Hv: specifies the height of the black
bar (unit: 1/2160")
Height=Lv+Hv x 256
Lv Hv setting will be ignored for
Pk=07H (when POSTNET specified)
112 Appendix D: Printer Commands
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Pc: specifies the control information.
Print Barcode ASCII: ESC [ f Ln Hn DATA Pc Description
Print Features 16-digit: 1B 5B 70 Ln Hn DATA bit0 sets the check digit.
Select LQ Typeface 10-digit: 27 91 112 Ln Hn DATA
0: does not add check digit.
Select Font 1: add check digit.
bit1 sets the human-readable character.
0: performs print.
1: does not perform print.
bit2 (reserved)
bit3 (reserved)
bit4 (reserved)
bit5 (reserved)
bit6 (reserved)
bit7 (reserved)
Prints the barcode.
Ln Hn: indicates the byte number (=
Ln+Hn x 256) of the parameter located
after Ln Hn
DATA: Barcode data
ASCII: ESC k n OKI unique command. Selects typeface
Dec: 27 107 n according to value of n:
Hex: 1B 6B n n=0: Roman
n=1: Swiss
n=2: Courier
n=3: Prestige
n=4: Script
n=5: OCR-B
n=6: OCR-A
n=7: Orator
n=8: Orator-S
n=122: Swiss Bold
n=124: Gothic
ASCII: ESC [I j h Hfid Lfid Hfwd Lfwd fa Sets the font typeface, character width
Nul Hc Lc and spacing attributes.
Dec: 27 91 73 j h Hfid Lfid Hfwd Lfwd fa j, h: set number of parameters to follow,
Nul Hc Lc calculated as j + (h x 256) bytes
Hex: 1B 5B 49 j h Hfid Lfid Hfwd Lfwd j, h=0 or1: command invalid
fa Nul Hc Lc j, h=2, 3: fid setting valid, other modes
unchanged
j, h=4: fid, fwd settings valid; fa unchan-
ged
j, h=5: all settings valid
j, h=6 or more: all settings and parameter
data beyond 6 bytes will be ignored
ML790/791 Plus Printer Handbook 113
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Hfid, Lfid: sets font typeface, calculated
as (Hfid.Lfid=(Hfid x 256) + Lfid
Hfwd, Lfwd: Sets character width (cpi),
calculated as
Hfwd, Lfwd=(Hfwd x 256) + Lfwd
fa: sets spacing attribute;
n=2: prints Proportional;
n=any other value, cpi set by Hfwd, Lfwd
Hc Lc: Code page setting, ID=Hc x
256+Lc
Code page ID (Hex) Code page name
1B5 USA
352 Multilingual
35A Multilingual 858
35C Portugal
35F Canada French
361 Norway
410 BRASCII
411 Abicomp
439 ISO 8859-15
Select Print Quality ASCII: ESC [ d Ln Hn Pn Specifies the Print Quality setting.
16-digit: 1B 5B 64 Ln Hn Pn Ln Hn specifies the number of para-
10-digit: 27 91 100 Ln Hn Pn meter (Ln, Hn).
Number of parameter= Ln+Hn x 256
Pn: Parameter Quality setting
Pn
00H invalid
01H-3FH HSD
40H-7FH Utility
80H-FEH LQ
FFH (depending on the menu settings)
Select font by pitch and ASCII: ESC DLE F Pn0 m n1 n2 Sets the Multipoint (scalable font) mode.
point Dec: 27 16 70 Pn0 m n1 n2 Printable font is selected by character
Hex: 1B 10 46 Pn0 m n1 n2 pitch and point.
Pn0=3: specifies the number of parame-
ters (in bytes) to follow
Character Pitch
m=0: unchanged
m=1: Proportional
m>5: m/360 inch
Point size=(n1 + [n2 x 256]) x 0.5 point
Point size can be selected between a
minimum of 8 point to a maximum of
64 point.
114 Appendix D: Printer Commands
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Engages/ cancels proportional spacing
Proportional Spacing ASCII: ESC P n n=0 to 255:
Dec: 27 80 n n is odd number: start proportional
Hex: 1B 50 n spacing
n is even number: stop proportional
Set 10 Cpi Pitch ASCII: DC2 spacing
Set 12 Cpi Pitch Dec: 18 When printer is in utility mode, this
Hex: 12 command will switch it to LQ propor-
Set 15 Cpi Pitch ASCII: ESC : tional until it is canceled.
Set Compressed Pitch Dec: 27 58 This is standard pica typewriter size.
Hex: 1B 3A
Changes to 12 cpi except if Menu item
ASCII: ESC g "SI Select (12 CPI)" is set to "20", then
Dec: 27 103 ESC: will change 17.1 cpi to 20 cpi and
Hex: 1B 67 will not change 20 cpi.
ASCII: SI OKI unique command. Sets 15 cpi.
Dec: 15
hex: 0F Condenses cpi as follows (depending on
MENU setting for SI Select Pitch):
Set 20 Cpi Pitch ASCII: ESC SI 10 cpi: 15 cpi for SI=10; 17.1 cpi for SI=12
Dec: 27 15 12 cpi: 12 cpi for SI=10; 20 cpi for SI=12
Hex: 1B 0F 15 cpi: 15 cpi for SI=10; 17.1 cpi for SI=12
17.1 cpi: 15 cpi for SI=10; 17.1 cpi for
Select pitch printer mode, ASCII: ESC I n SI=12
and ROM versus RAM Dec: 27 73 n 20 cpi: 15 cpi for SI=10;17.1 cpi or 20 cpi
character generator. Hex: 1B 49 n for SI=12
OKI unique command.
Selects character font according to the
value of n:
n=0: 10 cpi, utility (UTL), ROM
n=2: 10 cpi, letter quality (LQ), ROM
n=3: Proportional, LQ, ROM
n=8: 12 cpi, UTL, ROM
n=10: 12 cpi, LQ, ROM
n=12: 12 cpi, LQ, ROM
n=16: 17 cpi, UTL, ROM
n=18: 17 cpi, LQ, ROM
ML790/791 Plus Printer Handbook 115
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Start Italic Printing ASCII: ESC % G n=24: 15 cpi, UTL, ROM
Stop Italic Printing Dec: 27 37 71 n=26: 15 cpi, LQ, ROM
Underlining Hex: 1B 25 47 n=32: 20 cpi, UTL, ROM
Select Score ASCII: ESC % H n=34: 20 cpi, LQ, ROM
Dec: 27 37 72 OKI unique command. Italic characters
Start Subscript/ Hex: 1B 25 48 may overlap slightly.
Superscript ASCII: ESC - n
Stop Subscript/ Dec: 27 45 n OKI unique command. Cancels italic
Superscript Hex: 1B 2D n printing engaged by ESC % G com-
116 ASCII: ESC [ - Ln Hn P1 P2 mand.
16-digit: 1B 5B 2D Ln Hn P1 P2
10-digit: 27 91 45 Ln Hn P1 P2 Underlines all text except tabs.
n=0 to 255
ASCII: ESC S n n=odd: start underlining
Dec: 27 83 n n=even: stop underlining
Hex: 1B 53 n
ASCII: ESC T Selects the score type and its line type.
Dec: 27 84 Ln Hn: indicates the byte number (=
Hex: 1B 54 Ln+Hn x 256) of the parameter located
after Ln Hn.
P1: selects the score type.
P1 value specified Score type to be
(Hex) specified.
01 selects the underscore.
02 selects the strikethrough.
03 selects the overscore.
P2: selects the line type for score line
specified.
P2 value specified Score type to be
(Hex) specified.
00 selects none.
01 selects the single line.
02 selects the double-line.
03-FEH selects the single line.
FFH does not print the score
line regardless of the P1
value.
Engages subscript or superscript print-
ing.
n=0 to 255
n=odd: start subscript
n=even: start superscript
Cancels subscript or superscript printing
Appendix D: Printer Commands
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Selects character style.
Select Character Style ASCII: ESC q n n=0: normal
Dec: 27 113 n n=1: outline
Hex: 1B 71 n n=2: shadow
n=3: outline with shadow
Start Emphasized ASCII: ESC E Prints horizontally shifted double dots
Printing Dec: 27 69 in utility mode at half speed.
Hex: 1B 45 Cancels emphasized printing.
Stop Emphasized ASCII: ESC F Prints vertically shifted double dots in
Printing Dec: 27 70 two unidirectional passes.
Hex: 1B 46 Cancels enhanced printing.
Start Enhanxed (Double ASCII: ESC G n=odd: start double width printing
strike) Printing Dec: 27 71 n=even: stop double width printing
Hex: 1B 47 Prints double width only to end of line;
can be canceled by DC4 or ESC W 0
Stop Enhanced Printing ASCII: ESC H command.
Dec: 27 72 Cancels double width set by SO com-
Hex: 1B 48 mand.
Sets double height, double width, or
Double Width ASCII: ESC W n both double height and double width
(Expanded) Printing Dec: 27 87 n l=0 to 255
Hex: 1B 57 n m=0 to 255
n1, n2 ignored
Immediate Double Width ASCII: SO n3: specifies character height and line
Dec: 14 feed
Hex: 0E n3=17: single line feed, standard height
n3=34: double line feed, double height
Stop Immediate Double ASCII: DC4 n4: specfied character width
Width Printing Dec: 20 n4=1: standard width
Hex: 14 n4=2: double width
Command will be ignored when print-
Control Double Height/ ASCII: ESC [ @ l m n1 n2 n3 n4 ing bit image graphics.
Width Dec: 27 91 64 l m n1 n2 n3 n4
Hex: 1B 5B 40 l m n1 n2 n3 n4
ML790/791 Plus Printer Handbook 117
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Overscore ASCII: ESC _ n Prints a continuous overscore over all
Dec: 27 95 n text characters except for tab spaces.
Hex: 1B 5F n n=0 to 255
n=odd: start overscore
Graphics, 8-Pin Mode n=even: stop overscore
For all 8-pin graphics
commands the number of Dot density 60 dpi horizontal, 72 dpi
dot columns of graphic vertical.
data=n1 + (n2 x 256) Maximum data per line: ML390 Tur-
bo=480: ML391 Turbo=816
Single Density Graphics ASCII: ESC K l h [graphics data] l,h=0 to 255: specifies amount of subse-
Dec: 27 75 l h [graphics data] quent Bit Image bytes received, calcula-
Hex: 1B 4B l h [graphics data] ted as l + (h x 256).
Dot density 120 dpi horizontal, 72 dpi
Double Density Graphics ASCII: ESC L l h [graphics data] vertical.
Dec: 27 76 l h [graphics data] Maximum data per line: ML390 Tur-
Hex: 1B 4C l h [graphics data] bo=960: ML391 Turbo=1632
l, h=0 to 255: specifies amount of subse-
Quasi-Double Density ASCII: ESC Y l h [graphics data] quent Bit Image bytes received,
Graphics Dec: 27 89 l h [graphics data] calculated as l + (h x256).
Quadruple Density Hex: 1B 59 l h [graphics data] Same as low speed double density (120
Graphics ASCII: ESC Z l h [graphics data] dpi), but printer can't put two adjacent
Dec: 27 90 l h [graphics data] dots in the same row.
Hex: 1B 5A l h [graphics data] Dot density 240 dpi horizontal, 72 dpi
vertical. Printer can't put two adjacent
Set Aspect Ratio for Bit ASCII: ESC n n dots in the same row.
Image Graphics Dec: 27 110 n Maximum data per line: ML390 Tur-
Hex: 1B 6E n bo=1920: ML391 Turbo=3264
l,h=0 to 255: specifies amount of subse-
quent Bit Image bytes received,
calculated as l + (h x 256).
In PPR emulation, sets ratio of vertical to
horizontal dot density in bit image
graphics. Valid only for ESC K, ESC L,
118 Appendix D: Printer Commands
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
ESC Y, and ESC Z commands. Ratio is
Graphics, 8 & 24-Pin determined by value of variable n:
Mode n=0 or 1: 5 horizontal/ 6 vertical
Graphics Select/ Print n=2: 1 horizontal/ 1 vertical
n=3: Command ignored
Graphics Select Invalid (trapped) in IBM AGM emula-
tion.
ASCII: ESC * m l h [graphics data] Selects 8-pin and 24-pin graphic modes
Dec: 27 42 m l h [graphics data] and prints graphic data. Valid only for
Hex: 1B 2A m l h [graphics data] IBM AGM.
m=0: Single density, 8-pin, 60 dpi
m=1: Double density, 8-pin, 120 dpi
m=2: Double speed, double density, 8-
pin, quasi-120 dpi (dots can not be prin-
ted directly adjacent to one another)
m=3: Quadruple density, 8-pin, quasi-
240 dpi (dots can not be printed directly
adjacent to one another)
m=4: CRT I, 8-pin, 80 dpi
m=6: CRT II, 8-pin, 90 dpi
m=32: Single density, 24-pin, 60 dpi
m=33: Double density, 24-pin, 120 dpi
m=38: CRT III, 24-pin, 90 dpi
m=39: Triple density, 24-pin, 180 dpi
m=40: Hex-density, 24-pin, quasi-360
dpi (dots can not be printed directly ad-
jacent to one another).
l, h=0 to 255: specifies amount of subse-
quent Bit Image bytes received,
calculated as l + (h x 256)
ASCII: ESC [ g l h m [graphics data] Selects graphics and prints
Dec: 27 91 103 l h m [graphics data] m=0: Single density, 8-pin, 60 dpi
Hex: 1B 5B 67 l h m [graphics data] [same as ESC * () ]
m=1: Double density, 8-pin, 120 dpi
[same as ESC * 1]
m=2: Double speed, double density, 8-
pin, quasi-120 dpi [same as ESC * 2]
m=3: Quadruple density, 8-pin, quasi-
240 dpi [same as ESC * 3]
m=8: Single density, 24-pin, 60 dpi
[same as ESC * 32]
ML790/791 Plus Printer Handbook 119
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
m=9: Double density, 24-pin, 120 dpi
Miscellaneous ASCII: ESC { n [same as ESC * 33]
Commands Dec: 27 123 n m=11: Triple density, 24-pin, 180 dpi
Select Emulation Mode Hex: 1B 7B n [same as ESC * 39]
m=12: Hex-density, 24-pin, quasi-360
Cancel ASCII: CAN dpi [same as ESC * 40]
Dec: 24 l, h=0 to 255: specifies amount of subse-
Hex: 18 quent Bit Image bytes received,
calculated as l + (h x 256)
OKI unique command. Switches printer
emulation mode, copying the custom
character data in buffer and saving the
print and receive buffers. MENU set-
tings unaffected.
n=0: IBM emulation (general)
n=2: IBM X24e PPR, XL24e PPR
n=3: IBM X24e AGM, XL24e AGM
n=64: Epson emulation (general)
n=66: Epson LQ 850, LQ 1050
Clears buffer and cancels single double-
width set by SO or ESC SO command;
does not affect custom characters or
other commands.
120 Appendix D: Printer Commands
IBM Commands Notes
Function (ASCII, Decimal, Hexadecimal)
Prints out data in print buffer and puts
Print Suppress Mode On ASCII: ESC Q n printer in Print Suppress Mode until
Dec: 27 81 n DC1 command is received, I-PRIME sig-
Hex: 1B 16 n nal is received, or SEL button is pushed.
Command will be ignored unless Print
Print Suppress Mode Off ASCII: DC1 Suppress Effective item in MENU is set
Dec: 17 to "YES."
Hex: 11
n=36: Model ML390 Turbo (narrow carriage)
Stop Printing ASCII: ESC j n=35: Model ML391 Turbo (wide carriage)
Dec: 27 106
Hex: 1B 6A Cancels Print Suppress Mode. Printer
becomes active, processes all data re-
Disable Paper-Out ASCII: ESC 8 ceived.
Sensor Dec: 27 56 Deselects the printer. Press SELECT to
Hex: 1B 38 reactivate. No data is lost.
Enable Paper-Out Sensor ASCII: ESC 9 Paper-out sensor is deactivated:
Dec: 27 57 printer will print to next top of form be-
Hex: 1B 39 fore registering paper end error.
This command will be ignored if the Pa-
Software I-Prime ASCII: ESC } NUL per Out Override in MENU is set to No
Dec: 27 125 0 (the factory default).
Hex: 1B 7D 00 Sensor detects when less than 1/2 inch
of paper is left. When PAPER OUT light
Set/ Reset Incremental ASCII: ESC i n is on, pressing SELECT prints 1 line of
Print Mode Dec: 27 105 n data at a time until top of form position
Hex: 1B 69 n on next page is reached. Sensor can also
be controlled by the MENU.
OKI unique command. Sets the printer
to the same state as if it had been shut off
and turned back on (print buffer cleared,
receive buffer unaffected).
Sets the Incremental print mode
n=0: Reset Incremental print mode
n=1: Set Incremental print mode
ML790/791 Plus Printer Handbook 121
122 Appendix D: Printer Commands
ภ าคผนวก E: รหัสตัวอกั ษร ASCII
ชุดตัวอักษร ASCII
ML790/791 Plus Printer Handbook 123
124 Appendix E: ASCII Character Codes
ML790/791 Plus Printer Handbook 125
126 Appendix E: ASCII Character Codes
รหัสตวั อกั ษร (Code Page)
ML790/791 Plus Printer Handbook 127
128 Appendix E: ASCII Character Codes
ภ าคผนวก F: การเชือ่ มตอ่ (Interface)
ภาคผนวกน้จี ะอธิบายถึงสัญญาณการเชอื่ มตอ่ แบบขนาน (Parallele Interface) และแบบ USB (Universal Serial Bus) นอกจากนี้
ยังจะอธบิ ายถึงวธิ กี ารติดตัง้ แผงวงจรการเชอ่ื มตอ่ แบบอนกุ รม (Serial Interface Board) ตลอดจนสัญญาณการเชอื่ มต่อตา่ งๆของการ
เช่ือมต่อแบบอนุกรม (Serial Interface)
สญั ญาณเชอื่ มตอ่ แบบขนาน (Pin Assignments for Parallel Interface Signals)
1 129
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19-30
31
32
33
34
35
36
* คา่ สงู สุดไมเ่ กนิ 50 mA
ML790/791 Plus Printer Handbook
การเชื่อมต่อแบบ USB (Universal Serial Bus)
คณุ สมบตั ิดา้ นเทคนคิ สอดคลอ้ งกับการเชอื่ มต่อแบบ USB เวอรช์ น่ั 1.1
1. คอนเนคเตอร์ (Connector)
• Printer Side: “B” Receptacle (Upstream Input to the USB Device)
• Cable Side: Series “B” Plug
2. สายเชื่อมตอ่
• ความยาวของสายเขือ่ มต่อ : สงู สดุ 5 เมตร (สายเช่อื มต่อต้องเป็นไปตาม USB Spec Rev 1.1 ส�ำ หรบั การใชง้ านแบบปกต)ิ
3. ตารางของสัญญาณการเชอ่ื มตอ่ แบบ USB สัญญาณ
Vbus (Not Used)
ขา
1 D-
2 D+
3 GND
4 Shield
Sell
4. การจัดเรียงขา (Connector pin arrangement)
21
34
130 Appendix F: Interfacing
การตดิ ตั้งแผงวงจรอนุกรม (Serial Interface)
ขอ้ ควรระวงั ! การจบั ตอ้ งแผงวงจรอนกุ รม (Serial Interface) จะต้องท�ำ อย่างระมดั ระวังเพอื่ หลกี เล่ียงความเสียหายจากไฟฟา้ สถิตท่ี
อาจจะเกิดกับอุปกรณ์ที่อยูบ่ นแผงวงจรอนุกรม (Serial Interface) ได้ ควรทจ่ี ะเก็บรักษาแผงวงจรนี้ไวใ้ นบรรจุภณั ฑเ์ ดมิ ซึง่ สามารถ
ป้องกันไฟฟ้าสถิตได้จนกว่าจะได้อ่านคำ�แนะนำ�เหล่าน้ีและพร้อมท่ีจะติดต้ัง ตรวจสอบให้แน่ใจเคร่ืองพรินเตอร์ปิดอยู่ก่อนที่จะทำ�การ
ติดตัง้ แผงวงจรน้ี
พอรต ขนาน 1. นำ�แผ่นพลาสติกที่ตำ�แหน่งติดตั้งแผงวงจรอนุกรม (Serial
(Parallel) Interface) ทอี่ ย่ดู า้ นหลังเคร่ืองออก :
-- แทรกปลายของไขควงปากแบนท่ดี ้านบน และบิดหรืองดั
พลาสตกิ ทยี่ ดึ ใหห้ ลดุ ออก เพอ่ื ใหแ้ ผน่ พลาสตกิ ทปี่ ดิ อยสู่ ามารถ
ขยบั ออกได้
-- ท�ำ ซำ�้ขน้ั ตอนการนี้กับดา้ นลา่ งของฝาครอบ
-- กดเข้าด้านในและดึงออกจนกระท่งั พลาสติกทยี่ ึดหลุดออก
ดบา นนแทผม่ี งีอวปุ งกจรรณ 2. จับแผงวงจรที่คอนเนคเตอร์ โดยให้ด้านที่มีอปุ กรณ์ (Com-
ponent side) อยู่ตรงข้ามกับแผงวงจรเชื่อมต่อแบบขนาน
นอตยึด (Parallele) จากน้ันเล่ือนแผงวงจรเข้าอย่างระมัดระวัง แล้ว
จงึ ดันแผงวงจรนีเ้ ขา้ ให้แนน่
ML790/791 Plus Printer Handbook 131
แผงวงจร 3. จากการตดิ ตงั้ และเลอ่ื นแผงวงจรเขา้ นี้ ทปี่ ลายสดุ ของแผงวงจร
ตวั ลอ ค กจ็ ะถูกล็อคโดยลอ็ คชิน้ ส่วนทอ่ี ยูภ่ ายใน
4. เชื่อมต่อสายเคเบิลอินเตอร์เฟซที่เหมาะสม (ต้องซื้อแยกต่าง
หาก) โดยท่ีปลายด้านหน่ึงของเคเบิลต่อเข้ากับคอนเนคเตอร์
ของเคร่ืองพรินเตอร์และปลายอีกด้านหน่ึงต่อเข้ากับพอร์ต
อนกุ รมของคอมพวิ เตอรข์ องคณุ ใหแ้ นใ่ จวา่ จะขนั สกรทู ปี่ ลาย
ท้งั สองของสายเคเบิลท่ีเก็บไวใ้ นที่
ท่ีสำ�คัญ! เมื่อต้องการใช้การเชื่อมต่อแบบอนุกรม (Serial Inter-
face) ตรวจสอบใหแ้ น่ใจวา่ ไม่ได้ต่อสายเคเบลิ แบบขนาน (Paral-
lele cable)กบั เครอื่ งพรนิ เตอรอ์ ยู่ ผใู้ ชส้ ามารถสลบั ไปใชก้ ารเชอ่ื ม
ตอ่ แบบขนานไดโ้ ดยทไี่ มจ่ �ำ เปน็ ตอ้ งถอดแผงวงจรการเชอ่ื มตอ่ แบบ
อนกุ รม (Serial Interface) ออก แตจ่ ะตอ้ งมเี พยี งสายเชอื่ มตอ่ แบบ
ใดแบบหน่ึงเทา่ น้นั ท�ำ การเชือ่ มตอ่ อยู่
เม่ือมีการเช่ือมตอ่ แบบอนุกรม (Serial Interface) รายการในเมนู
ที่เกีย่ วกบั การเชือ่ มตอ่ แบบอนกุ รมจะปราฏกเพิ่มข้นึ (ดหู น้า 73)
132 Appendix F: Interfacing
สัญญาณเช่ือมตอ่ แบบอนกุ รม (Pin Assignments for Serial Interface Signals)
1 PG
2 TD
3 RD
4 RTS
5
6 DSR
7 SG
8-10
11 SSD
12-19
20 DTR
21-25
ML790/791 Plus Printer Handbook 133
Oki Data (Singapore) 438A Alexandra Road Tel:(65) 6221 3722
Pte. Ltd. #02-11/12, Lobby 3, Alexandra Fax:(65) 6594 0609
Technopark
Singapore(119967) http://www.oki.com/sg/printing
Oki Systems (Thai- 1168/32 Lumpini Tower, Tel: (662) 679 9235
land) Ltd. 16th Floor Rama IV Road Fax: (662) 679 9243 , 45
Tungmahamek, Sathorn http://www.oki.com/th/printing
Bangkok 10120
Oki Data(S) P Ltd. Ma- Suite 21.03, 21st Floor Menara Tel: (60) 3 2287 1177
laysia Rep Office IGB, Fax: (60) 3 2287 1166
Mid Valley City, http://www.oki.com/my/printing
Lingkaran Syed Pura 59200,
Kuala Lumpur, Malaysia
Oki Systems (Thailand) Ltd.
1168/32, Lumpini Tower, 16th
Floor, Rama IV Rd., Bangkok
Thailand 10120