Command Sets. Tally Dascom MIP-480

Add to My manuals
138 Pages

advertisement

Command Sets. Tally Dascom MIP-480 | Manualzz

C

Command Sets

This appendix describes printer commands and their parameters.

This printer has the following two resident command sets (Emulations):

• IBM Proprinter XL24E (2390+)

• Epson-EP2

Select the same Emulation on the printer and in your software.

C-1

Command Sets

IBM 2390+ Emulation Quick Reference Guide

This section describes the printer commands for the IBM 2390+ Emulation. Asterisks in the

“Function” column indicate extended commands that are not supported by the original printer.

Function Command

Print Mode Control

Double-strike (bold) printing on

Double-strike (bold) printing off

Emphasized (shaded) printing on

Emphasized (shaded) printing off

Single-line double-width characters on

Single-line double-width characters off

Double-width characters on/off

(on: n = 1, off: n = 0)

Double-height/double-width characters n

1 = 4, n

2 = 0, m

1 = 0, m

2 = 0 m

3 controls character height and line spacing: m

3

ESC G

ESC H

ESC E

ESC F

SO or ESC SO

DC4

ESC W (

Height Spacing n

ESC [ @ (

) n

1) ( n

2) ( m

1) ... ( m

4)

0 Unchanged Unchanged

1 Normal Unchanged

2 Double Unchanged

16 Unchanged Single

17 Normal

18 Double

Single

Single

32 Unchanged Double

33 Normal Double

34 Double Double m

4 controls character width: m

4 Width

0 Unchanged

1 Normal

2 Double

Condensed characters on

Subscript or superscript printing on

(subscript: n = 1, superscript: n = 0)

Subscript and superscript printing off

Underline on/off (on: n = 1, off: n = 0)

Overline on/off (on: n = 1, off: n = 0)

SI or ESC SI

ESC S ( n )

ESC T

ESC - ( n

ESC (

) n )

C-2

Function

Score select n

1 = 2, n

2 = 0 m

1 selects score location: m

1

Score location

0 Underscore

1 Strikethrough

2 Overscore m

2 selects score type: m type

0 Cancel

1 Single

2 Double

Command

ESC [ - ( n

1) ( n

2) ( m

1) ( m

2)

Command Sets

C-3

Command Sets

Function Command

Horizontal Control

Space

Backspace

Carriage return

Select 10cpi

Elite characters on

Proportionally spaced characters on/off

(on: n = 1, off: n = 0)

SP

BS

CR

DC2 :

ESC :

ESC P ( n )

Vertical Control

Line feed

Form feed

Advance paper n/216 inch (1

n

255)

Advance paper n/180 inch (in AG mode)

(1

≤ n

255)

Set line spacing to 1/8 lines

Set line spacing to 7/72 inch

Set line spacing to n/216 inch

(0

≤ n

255)

Set line spacing to n/180 inch (in AG mode)

(0

≤ n

255)

Preset line spacing to n/72 inch

(1

≤ n

255)

Preset line spacing to n/60 inch (in AG mode)

(1

≤ n

255)

Set line spacing to 1/6 inch or to the value preset by line spacing command ESC A ( n )

Change graphics line spacing base to

LF

FF

ESC J (

ESC J (

ESC 0

ESC 1 n n

)

)

ESC 3 ( n )

ESC 3 (

ESC A (

ESC A (

ESC 2 n n n

)

)

)

ESC [ \ ( m

1) ( m

2) ( t

1) ... ( t

4)

1/216 or 1/180 inch (for ESC J and ESC 3) m

1 = 4, m

2 = 0

0

t

1

255, 0

t

2

255, t

3 = 0 t

4 = 180 or 216

Reverse line feed ESC ]

Tabulation

Horizontal tab execution

Set horizontal tabs

HT

ESC D ( n

1)

... ( n k) NUL

The values of n

1to n k in this command are the

ASCII values of the print columns (at the current character width) at which tabs are to be set.

(1

≤ n

255) (1

≤ k

28)

Clear all horizontal tabs

Move print position right by n/120 inch

ESC D NUL

ESC d ( n

1) ( n

2)

(0

n

1, n

2

255) (n = n

1 +

n

2 X 256)

C-4

Function Command

Vertical tab execution

Set vertical tabs

VT

ESC B ( n

1) ... ( n k) NUL

The values of n

1to n k in this command are the ASCII values of the lines (at the current line spacing) at which tabs are to be set.

(1

≤ n

255) (1

≤ k

64)

Clear all vertical tabs ESC B NUL

Reset tabs to default values ESC R

Page Formatting

Set left margin at column n and right margin at column m (0

≤ n , m

255)

Set perforation skip by n lines

(1

≤ n

255)

Perforation skip off

Set page length to n lines (1

≤ n

255)

Set page length to n inches (1

≤ n

22)

Set top of form

Character Set Control

Select character set 1

Select character set 2

Print n

1 +

n

2 X 256 characters from all-character set

( chars .: codes of characters to print,

0

≤ chars .

255)

Print a character from all-character set

( char .: a code of character to print,

0

≤ char .

255)

ESC X (

ESC N (

ESC O

ESC C ( n )

ESC C NUL ( n )

ESC 4

ESC 7

ESC 6

ESC \ ( n

1) ( n

2) ( chars .)

ESC ^ ( n n

) (

) m char

)

.)

Command Sets

C-5

Command Sets

Function

Select code page table

(0

n

1, n

2

255) (n = n

1 +

n

2 X 256) c1, c2: Decimal ( n

1 = 4,

n

2 = 0) c

1 c

2

Code page ID

3

3

3

3

3

3

3

3

3

3

3

3

1

3

3

3

181

82

83

84

87

89

90

92

94

95

96

97

98

101

152

155

Code page 437

Code page 850

Code page 851

Code page 852

Code page 855

Code page 857

Code page 858**

Code page 860

Code page 862

Code page 863

Code page 864

Code page 865

Code page 866

Code page 869

Code page 920

Code page 923**

40

42

197

101

Code page 437G

Code page 853

42 114 Code page USSR GOST

**Code page contains Euro currency symbol

Clear input buffer

Select printer

Deselect printer (ignore input)

Command

ESC [ T ( n

1) ( n

2) 0 0 ( c

1) ( c

2)

CAN

DC1

ESC Q #

ESC Q $

C-6

Command Sets

5

10

12

15

17.1

20

24

Prop.

Function

Set font global

(0

n

1, n

2

255) (n = n

1 +

n

2 X 256)

H f,

L f: Font global ID

H f,

L f

Font global ID

Normal Font Global ID for Hex ( Hf Lf)

17

20

24

PS

Pitch

10

12

15

Courier

000B

01EB

01EC

01ED

01EE

011E

00AB

Prestige

000C

01EF

01F0

01C9

01CA

011F

01A4

Additional Font Global ID for Hex (Hf Lf)

Pitch Courier

Normal Emph Italic Emph

/Italic

Prestige

Normal

Gothic

0024

018F

018E

018D

018C

0120

00AE

Command

ESC [ I (

( n

1) (

H c) (

Orator

0005

01CB

01CC

01CD

01CE

0121

00C6

Emph Italic n

2) (

L c)

Gothic

Normal

H f) (

L f) (

H s) (

L s) (

S m) 0

Script

01D4

01D5

01D6

01D7

01D8

0124

00C8

Emph Italic

F4/F6

0B

1EB/55

1EC/DF

1ED/FF

1EE

11E

AB

FD

B8

F5

2E

6C

D6

AC

12

5C

D7

B9

39

74

D8

0C

1EF/56

1F0/DD

1C9/100

1CA

11F

A4

3C

6F 70

F1

24

18F/57

18E/DE

18D/FF

18C/1119*

120

AE 9D

F2

6E

A2

6D

Emph

/D.stri

ke

F3

C-7

Command Sets

H s,

L f,

S m: Size parameters

H s,

L s,

S m Size parameters

The size parameters (Hs, Ls and Sm) specify the pitch as follows.

These size parameters are valid when font ID (Hf, Lf) is not valid.

Null data is ignored.

0,0 - 0,65

0,66 - 0,77

0,78 - 0,89

0,90 - 0,107

0000 - 0041

0042 - 004D

004E - 0059

005A - 006B

24 CPI Subscript

20 CPI Subscript

17 CPI Normal

0,108 - 0,131

0,132 - 0,155

0,156 - 0,179

0,180 - 0,215

0,216 - 0,254

006C - 0083

0084 - 009B

009C-00B3

00B4-00D7

00D8 - 00FE

15 CPI Normal

12 CPI Normal

10 CPI Normal

8.5 CPI(17 CPI double-wide)

7.5 CPI(15 CPI double-wide)

0,255 – 256, 256 0100-FFFF

6 CPI (12 CPI double-wide, doublehight)

5 CPI (10 CPI double-wide, doublehigh)

Note: The Hs and Ls Parameters are effective only when hexadecimal 01 (decimal = 1) is specified in the Size Modifier parameter (Sm) and Hf Lf is not found.

Sizemod (Sm) : The binary number that is the size modifier. The valid sizes are:

H c,

L c: Code page ID

H c,

L c Code page ID

HC

03H

03H

03H

03H

03H

03H

03H

28H

2AH

2AH

01H

03H

03H

03H

03H

03H

03H

03H

03H

LC(Hex)

5CH

5EH

5FH

60H

61H

62H

65H

98H

9BH

C5H

65H

72H

B5H

52H

53H

54H

57H

59H

5AH

Code Page

437

850

851

852

855

857

858

860

862

863

864

865

866

869

920

923

437G

853

USSR GOST

C-8

Command Sets

Function

Set print quality

(0

n

1, n

2

255) (n = n

1 +

n

2 X 256) m f: Quality

Command

ESC [ d ( m Quality m(hex) Quality

00

01-7F

80-FE

FF

Draft

LQ

Default Font

Downloading

Select resident or downloaded font ESC I ( n ) n

1) ( n

2) ( m )

Create download font

Bit Image Graphics

Single-density graphics

Double-density graphics

High-speed double-density graphics

Quadruple-density graphics

High-resolution graphics

Select graphics mode (in AG mode only)

ESC = ( n

1) (

ESC K ( n

1) (

ESC Y ( n

1) (

ESC Z ( n

1) (

ESC [ g ( n

ESC * ( m ) ( c n

1) (

2) ID (

ESC L ( n

1) ( n

2) ( n

2) ( n

2) ( n

2)

1) ( c

(m

2) ( m data

) (

1) ( n

2) ( data ) data ) data )

) data m

2) ( data

)

) data )

C-9

Command Sets

Function

Barcode

Setup barcode parameter

(0

n

1, n

2

255) (n = n

1 +

n

2 X 256) k : Barcode type

k Barcode type k value

B1 hex

B2 hex

B3 hex

B4 hex

B5 hex

B6 hex

B7 hex

B8 hex

BA hex

Command

ESC [f ( n

1) ( n

2) ( k ) ( m ) ( s ) ( v

1) ( v

2)

( c ) ( data ) barcode type

CODABAR (NW7)

EAN-13

EAN-8

CODE 39

INDUSTRIAL 2 OF 5

INTERLEAVED 2 OF 5

UPC-A

UPC-E

CODE128 m : Module width

m Module width

00 hex

01 hex

02 hex

03 hex

04 hex default(2 dots)

2 dots

2 dots

3 dots

4 dots s : Space width adjustment

s Space width adjustment

“s” is used for fine adjustment for each “spaces” to match the optical conditions.

There is no effect for the “bar” width adjustment.

Range :-3 ≦ s ≦ 3 v

1, v

2: Bar length v

1,

v

2

Bar length

Bar length is described 2 bytes v1 shows lower byte. v2 shows upper bytes.

And bar length is controlled by multiple value of an unit of 1/2160 inch.

Minimum value of v1, v2: 288 dec vertical pitch : All the input data is rounded to the multiple value.

C-10

Command Sets c : Control flag

c Control flag b0: Check Digit

0: No check code is generated by the printer.

The host computer should generate the check code.

1: Check code is generated automatically by the printer. b1: Human Readable Character

0 : Print On

1 : Print Off

Note: Human readable character is proportionally printed under the barcode in OCR-B font. b2: EAN-13, UPC-A flag character position

(EAN-13 : 13th digit)

(UPC-A : number system character)

0 : Center

1 : Under b3-b7: not used

Set barcode data ESC [p ( n

1) ( n

2) ( data ) n

1, n

2: Command length

n1, n2 Command length

“n1, n2” show data quantity followed “ESC [ p n1, n2”.

“n1” is a low byte of command length data in hexadecimal.

“n2” is a high byte of command length data in hexadecimal.

“n1,n2” value should be the value in the following tables.

If undefined value is found in data string, the printer will ignore all the received barcode data which length is defined as “n1, n2”.

1) Case of “automatic check digit generation flag off”

Barcode Style n1 (lowbyte)

EAN-13

EAN-8

CODE 39

INTERLEAVED 2 of 5

0D hex

08 hex

01 to FF hex

01 to FF hex

UPC-A 0C hex

CODE 128 02 to FF hex

2) Case of “automatic check digit generation flag on”

Barcode Style n1 (lowbyte)

EAN-13

EAN-8

CODE 39

INTERLEAVED 2 of 5

UPC-A

CODE 128

0C hex

07 hex

01 to FF hex

01 to FF hex

0B hex

02 to FF hex n2 (high byte)

00

00

00

00

00

00 n2 (high byte)

00

00

00

00

00

00

C-11

Command Sets

Remarks

1) Definition barcode term

E

F

Width

D C

A: Dark module

B

A

The concept of module is applied to EAN-13, EAN-8, UPC-A and CODE-128.

One or multiple dark module makes bar element.

B: Light module

The concept of module is applied to EAN-13, EAN-8,UPC-A, and COD-128.

One or multiple light module makes space element.

C: Bar element

This element is actually printed “dark” by wire dot pins.

Bar width is modulated to each barcode symbology method.

D: Space element

This element is not printed i.e. “space” area.

Space width is modulated to each barcode symbology method.

Combination of multiple bars and spaces makes one barcode character.

E: Barcode character

Encoded pattern from one or two digit(s) of receiving barcode data.

Case of CPU, EAN, CODE 39 and Code A/B group of CODE-128, each one byte data corresponds to one barcode character.

Case of INTERLEAVED 2 OF 5 and Code C group of CODE-128, two bytes data is encoded to one barcode character.

F: Barcode

Printed result specified by each barcode standard format.

Width: width of horizontal direction.

Length: length of vertical direction.

2) If LF operation is made by an operation switch during printing the barcode, the received barcode data is cleared and the barcode printing is stopped.

3) Barcode printing is always performed in a single direction.

4) Receiving after the barcode data, page length and right/left margin change may affect barcode printing.

5) Barcode data and other print data are controlled independently.

So it is necessary to make a space for barcode print area when mixed print is needed.

(See Appendix B)

6) In the case of Interleaved 2 of 5, if received data strings is an odd number

(if check digit flag is on, the check data includes this number) the printer will add a zero to the most digit.

7) In the case of CODE 39, the printer will add a start/stop character to the barcode and human readable character automatically.

8) In the case of CODE 128, the first byte of barcode data strings defines a character set of its followed data. If undefined character is included for

Bar Length

(Height)

C-12

Command Sets the first byte except “A”,”B”, or “C”, the printer will ignore all the data for barcode.

Character Set 1st byte

A

B

C

A (41 hex)

B (42 hex)

C (43 hex) meaning

Start character set A (Code A)

Start character set B (Code B)

Start character set C (Code C)

9) In the case of CODE 128 and character set C, if received data strings is an odd number

(if check digit flag is on, the check data includes this number) the printer will add a zero “0” character to the most digit.

10) In the case of CODE 128, the printer does not print both special function code of

CODE 128 and ASCII function code for the human readable character.

11) In the case of CODE 128, even if the printer finds undefined code after the character set is changed by the function code, the printer will ignore all the barcode data defended by data length parameter “n1,n2”, and no barcode print is performed.

12) When a paper empty error is occurred during barcode printing, the printer will stop printing and cancel all the barcode data already received.

13) When the module parameter is set to 1(m=1), the printer will always ignore the human readable flag. And also, if the printer finds out there is no space to print the human readable character in the barcode area, the printer may ignore the human readable flag.

Cut Sheet Feeder Control*

Eject a page from the printer*

Miscellaneous

Unidirectional printing on/off

(on: n = 1, off: n = 0)

Add a carriage return to all line feeds

(on: n = 1, off: n = 0)

Printer offline

Select default settings

ESC EM R

ESC U (

ESC 5 (

ESC j n n

)

)

ESC [ K ( n

1) ( n

2) ( i ) ( ID ) ( p

1) ( p

2)

C-13

Command Sets

Epson EP2 Quick Reference Guide

This section describes the printer commands for the Epson EP2 Emulation. Asterisks in the

“Function” column indicate extended commands that are not supported by the original printer.

Function Command

Print Mode Control

Double-strike (bold) printing on

Double-strike (bold) printing off

Emphasized (shadow) printing on

Emphasized (shadow) printing off

Italic printing on

Italic printing off

Select character style n = 0:Normal

1:Outlined

2:Shaded

3:Outlined and shadowed

One-line double-width characters on

One-line double-width characters off

Double-width characters on/off

(on: n = 1, off: n = 0)

Double-height characters on/off

(on: n = 1, off: n = 0)

Condensed characters on

Condensed characters off

Subscript or superscript printing on

(subscript: n = 1, superscript: n = 0)

Subscript and superscript printing off

Underline on/off

(on: n = 1, off: n = 0)

Select line n

1 = 3, n

2 = 0, d

1 = 1 d

2

= 0:Ignore

1:Underline

ESC G

ESC H

ESC E

ESC F

ESC 4

ESC 5

ESC q ( n )

SO or ESC SO

DC4

ESC W ( n )

ESC w ( n

SI or ESC SI

DC2

ESC S (

ESC T

ESC - ( n

ESC ( - ( n

)

) n

)

1) ( n

2) ( d

1) ( d

2) ( d

3)

3:Overscore d

3

= 0 or 4:Cancel line selection

2 or 3:Double line

6 or 7:Double-dotted line

C-14

Function Command

Select printing style ESC ! ( n )

This command allows you to combine various printing styles.

The value of n is the sum of the values of the styles you want to combine.

n 0: Pica pitch

1: Elite pitch

2: Proportional spacing

4:

8:

16: Bold

32:

64:

Horizontal Control

Space

Backspace

Carriage return

Set elite pitch

Set pica pitch

Set 15 CPI

Proportionally spaced characters on/off

(on: n = 1, off: n = 0)

Set inter-character space to n/120 inch (for draft) or n/180 inch (for letter and proportional)

(0

n

127)

Set character pitch to ( n

1 +

n

2 X 256)/360 inch

(0

≤ n

1

255) (0

≤ n

2

4)

Select character pitch (specify unit of pitch) n

1 = 1, n

2 = 0 d = 10 to 19: 10/3600 inch = 1/360 inch d = 20 to 29: 20/3600 inch = 1/180 inch d = 30 to 39: 30/3600 inch = 1/120 inch d = 40 to 49: 40/3600 inch = 1/90 inch d = 50 to 59: 50/3600 inch = 1/72 inch d = 60 to 69: 60/3600 inch = 1/60 inch

SP

BS

CR

ESC M

ESC P

ESC g

ESC p (

ESC c ( n

ESC SP ( n

) n )

1) (

ESC ( U ( n n

1) (

2) n

2) ( d )

Command Sets

C-15

Command Sets

Function Command

Vertical Control

Line feed

Form feed

Advance paper n/180 inch (1

≤ n

255)

Set line spacing to 1/8 inch

Set line spacing to n/180 inch (0

n

255)

Set line spacing to n/60 inch (0

n

127)

Set line spacing to 1/6 inch

Set line spacing to n/360 inch (0

n

255)

LF

FF

ESC J (

ESC 0

ESC 2

ESC + ( n

ESC 3 ( n )

ESC A ( n ) n

)

)

Tabulation

Horizontal tab execution

Set horizontal tabs

HT

ESC D ( n

1)

... ( n k) NUL

The values of n

1to n k in this command are the ASCII values of the print columns (at the current character width) at which tabs are to be set.

(1

≤ n

255) (1

≤ k

32)

Move print position n/120 inch (for draft)(*1) ESC $ ( n

1) ( n

2) or n/180 inch (for letter)(*1) right from left margin

(n = n

1 + n

2 X 256)

Move print position n/120(*1) inch (for draft) ESC \ ( n

1) ( n

2) or n/180(*1) inch (for letter) left or right from the current position

(n = n

1 +

n

2 X 256)

Vertical tab execution

Set vertical tabs

VT

ESC B ( n

1)

... ( n k) NUL

The values of n

1to n k in this command are the

ASCII values of the lines (at the current line spacing) at which tabs are to be set.

(1

≤ n

255) (1

≤ k

16)

Move to dot line ( d

1 + d

2 X 256)/360

(*2) inch

ESC ( V ( n

1) ( n

2) ( d

1) ( d

2) n

1 = 2, n

2 = 0

(0

≤ d

1

255) (0

≤ d

2

127)

Vertical relative move by ( d

1 + d

2 X 256)/360

(*2) inch ESC ( v ( n

1) ( n

2) ( d

1) ( d

2) n

1 = 2, n

2 = 0

(0

≤ d

1

255) (0

≤ d

2

127)

–32768

d1 + d2 X 256

32768

*1 The value depends on the pitch set by the ESC (U command.

*2 The value depends on the pitch set by the ESC (U command. The default is 1/360 inch

.

C-16

Command Sets

Function Command

Page Formatting

Set right margin to column n

(1

≤ n

255)

Set left margin to column n

(0

≤ n

255)

Set top and bottom margins from top of page n

1 = 4, n

2 = 0

• Top margin = ( t

1 + t

2 X 256)/360

(*1) inch

(0 t

2

127)

• Bottom margin =( b

1 + b

2 X 256)/360

(*1)i nch

≤ b

1

2

127)

Set perforation skip by n lines

(1

≤ n

127)

Perforation skip off

Set page length to n lines (1

≤ n

127)

Set page length to n inches (1

≤ n

22)

Set page length to ( d

1 + d

2 X 256)/360

(*1) inch n

1 = 2, n

2 = 0

(0

≤ d

1

255) (0

≤ d

2

127)

Character Set Control

Select character set 1

Select character set 2

Select the active character set assigned with the

ESC (t command (0

n

3)

ESC Q (

ESC l ( n n

ESC ( c (

ESC N (

ESC O

ESC C (

ESC 7

ESC 6 n

) n n

ESC t ( n )

)

)

1) (

)

ESC C NUL ( n

2) ( t

1) ( n )

ESC ( C ( n

1) ( n

2) ( t

2) ( b

1) ( d

1) ( d

2) b

2)

*1 The value depends on the pitch set by the ESC (U command. The default is 1/360 inch.

C-17

Command Sets

Function

Select international character set n = 0: USA

1: France

3: United Kingdom

4: Denmark 1

6: Italy

7: Spanish 1

Command

ESC R ( n )

2 Select the same Emulation on the printer and in your software.

Assign a character set to active character set ESC ( t ( n

1) ( n

2) ( d

1) ( d

2) ( d

3) number 0 to 3, n1 = 3, n2 = 0 d2, d3: Decimal d1 = 0: Active character set number 0, default is Italics

1:

2:

Active character set number 1, default is Graphics

Active character set number 2,

3: default is DLL

Active character set number 3, default is Graphics d

2 d Set

6

7

8

9

10

11

12

13

3

3

4

5

0 0 Italic

1

1

0

16

PC 437 (USA)

PC 437G (Greek)

0

16

0

0

PC 850 (Multilingual)

PC 858 (Multillingual + Euro)**

PC 851 (Greek)

PC 853 (Turkish)

0

0

0

0

0

0

0

0

PC 855 (Cyrillic)

PC 860 (Portugal)

PC 863 (Canada-French)

PC 865 (Norway)

PC 852 (East Europe)

PC 857 (Turkish)

PC 862 (Israel)

PC 864 (Arabic)

14

15

0

0

PC 866 (Russian)

PC 869 (Greek)

16 0 USSR

29 15 PC 923 (Latin-9)**

31 0 PC920

**Code page contains Euro currency symbol

C-18

Function

Print n

1 +

n

2 X 256 characters from all-character set

( character codes )

(0

≤ n

1

255) (0

≤ n

2

127)

(0

≤ n

1 + n

2 X 256

255)

(0

≤ character codes

254)

Clear input buffer

Delete a character

Force most significant bit to 1

Force most significant bit to 0

Cancel control over most significant bit

Font Selection and Downloading

Select font n = 0:Resident character set

1:Downloaded character set

Select letter or draft quality n = 0: Draft

Command

ESC ( ^ ( n

1) ( n

2)

CAN

DEL

ESC >

ESC =

ESC #

ESC % ( n )

ESC x ( n )

ESC k ( n ) Select type style

• Bitmap font: n = 0:Roman

2:Courier*

3:Prestige*

4:Script*

5:OCR-B*

6:OCR-A*

7:Orator*

11:Sans serif H*

12:Bold*

13:Gothic*

* On some code pages or point sizes, the Roman font or Sans serif font is selected.

Set scalable font mode ESC X m ( n

1) ( n

2)

• m sets character pitch. m = 0:Keep previous pitch

1:Set proportional space mode

5:Select character pitch (m/360 inch)

(Reset proportional space mode)

Command Sets

C-19

Command Sets

Function

• n

1 and n

2 set point size of font.

Point size = ( n

1 + n

2 X 256) X 0.5 point

1

255) (0

≤ n

2

127)

Copy resident character set to download area

Create download font

Command

ESC : NUL ( n ) ( s )

ESC & NUL ( n

1) ( n

2) ( d

0) ( d

1)

( d

2) ( data )

Bit Image Graphics

Graphics type m graphics

Bit image mode definition

Single-density graphics

Double-density graphics

High-speed double-density graphics

Quadruple-density graphics

Select raster image graphics n

1 = 1, n

2 = 0 d = 1: Raster image graphics mode

Print raster image graphics

ESC * ( m ) ( n

1) ( n

2)

( data )

ESC ? ( s ) ( n )

ESC K ( n

1) ( n

2) ( data )

ESC L ( n

1) ( n

2) ( data )

ESC Y ( n

1) ( n

2) (data)

ESC Z ( n

1) ( n

2) ( data )

ESC ( G ( n

1) ( n

2) ( d )

ESC . ( c ) ( v ) ( h ) ( m ) ( n

1) ( n

2) ( data )

Barcode

Barcode setup and print

(0

n

1, n

2

255) (n = n

1 +

n

2 X 256) k : Barcode type

ESC (B ( n

1) ( n

2) ( k ) ( m ) ( s ) ( v

1) ( v

2)

( c ) ( data )

k Barcode type k value

00 hex

01 hex

02 hex

03 hex

04 hex

05 hex

06 hex barcode type

EAN-13

EAN-8

INDUSTRIAL 2 OF 5

UPC-A

UPC-E

CODE 39

CODE128 m : Module width

m Module width

02 hex

03 hex

04 hex

2 dots(default)

3 dots

4 dots s : Space width adjustment

s Space width adjustment

“s” is used for fine adjustment for each “spaces” to match the optical conditions.

There is no effect for the “bar” width adjustment.

Range :-3 ≦ s ≦ 3

C-20

v

1, v

2: Bar length v

1,

v

2

Bar length

Bar length is described 2 bytes v1 shows lower byte. v2 shows upper bytes.

And bar length is controlled by multiple value of an unit of 1/2160 inch.

Minimum value of v1, v2: 288 dec vertical pitch : All the input data is rounded to the multiple value. c : Control flag

c Control flag b0: Check Digit

0: No check code is generated by the printer.

The host computer should generate the check code.

1: Check code is generated automatically by the printer. b1: Human Readable Character

0 : Print On

1 : Print Off

Note: Human readable character is proportionally printed under the barcode in OCR-B font. b2: EAN-13, UPC-A flag character position

(EAN-13 : 13th digit)

(UPC-A : number system character)

0 : Center

1 : Under b3-b7: not used

Cut Sheet Feeder Control

Eject a page from the printer

Miscellaneous

Select unidirectional mode 1line

Unidirectional printing on/off

(on: n = 1, off: n = 0)

Initialize printer

ESC EM R

ESC <

ESC U (

ESC @ n )

Command Sets

C-21

advertisement

Related manuals

advertisement

Table of contents