3 Inch Thermal Printer Technical Manual


Add to my manuals
87 Pages

advertisement

3 Inch Thermal Printer Technical Manual | Manualzz

WTP-1 50

Thermal Receipt printer

Technical manual

SEWOO TECH CO., LTD. www.miniprinter.com

TABLE OF CONTENTS

1. G eneral Spe cification s

1 .1 Printing Specifications

1.2 Character Specifications

1.3 Auto Cutter

1.4 Paper R oll Supply Device

1 .5 Paper S pecification

1.6 Printabl e Area

1.7 Printing and Cutting Positions

1.8 Internal Buffer

1.9

Electric al Characteristics

1.

10 EMI and Safety Standards Applied

1.11 Reliab ility

1.

12 Environmental Conditions

2 . Configuration

2.1 Interface

2.1.1

2.1.2

RS-232 serial interface

Specifications

2.1.3

2.1.4

2.1.5

2.1.6

Switching between on-line and off-line

Interface connector terminal assignments and signal functions

Serial interface connection example

Centronics parallel interface

2.1.7

2.1.8

2.1.9

3 . Connectors

Data Receiving Timing(Compatibility Mode)

USB Interface

Interface Connector

3.1 Interface Connectors

3.2 Electrical Characteristics

3.3 Drawer kick-out Connector (Modular Connector)

4 . Control Command Summary

TITLE : WTP-150

Page -1 -

1. General Specifications

1.1 Printing Specifications

1) Printing method: Thermal line printing

2) Dot density: 180dpi x 180dpi

203dpi x 180dpi

3) Printing direction: Unidirectional with friction feed

4) Printing width: 72mm(2.83"), 576 dot positions (203dpi)

72.2mm(2.84"), 5 12 dot positions (180dpi)

80mm(3.15"), 640 dot positions (203dpi)

5) Characters per line(default): Font A: 42

Font B: 56

6) Printin g speed: High speed mod e:

35.5lines/second maximum

(1/6inch feed) (at 24V, 20℃)

Approximate ly 150mm/sec maximum

(approx imately 5.9inchs/sec maximum)

☞ NOTE: Speeds are switched depending on the applied voltage to the printer and head temperature conditions automatically.

☞ NOTE: There may be variations in printing after switching the mode of the printing speed. To prevent this for logo printing with ESC* command, using a downloaded bit image is recommended. Change in printing speed does not occur during down loaded bit image printing.

7) Line spacing (default): 1/6 inch (4.23mm)

Programmable by control command.

TITLE : WTP-150

Page -2 -

1.2 Character Specifications

1) Number of characters: Alphanumeric characters: 95

Extended graphics 128 × 7 pages

(including one space page)

International characters: 32

① English

② Hangul

③ Chinese (GB2312,Big5)

④ Kanji

2) Character structure: Font A: 12 ⅹ 24

3) Character size:

Fon t B: 9 ⅹ 24

Hangul, Chinese: 24 ⅹ 24

Font A is selected as the defaul t

Dot density

EPSON Emulation

0.141

0.141mm/dot

(180*180dpi)

STAR Emulation

0.125

0.141mm/d ots

(203*180dpi)

[dpi: dots per 25.4mm{1

"

}]

3)Printing direction Unidirectional With friction feed

4)Paper width

82.5mm

(3.

25")

80mm

(3.15")

60mm

(2.36")

58mm

(2.28")

5)Maximum printable area

6)Character / line

72.2mm

(512do ts)

72.2mm

(512dots)

54.1mm

(384dots)

50.8mm

(360 dots)

82.5mm 80mm

(3.25") (3.15")

80mm

(640dots)

72mm

(576 dots)

60mm

(2.36")

54.5m

m

(436 dots)

Font A (12ⅹ24) 42 42 32 30 53 48 36

Font B (9ⅹ24) 56 56 42 40 71 64 48

Kanji Font (24ⅹ24) 21 21 16 15 26 24 18

1.3 Auto Cutter

Partial cut: Cutting with one point center uncut

NOTE : To prevent dot displacement, after cutting, paper must be fed approximately 1mm(14/360 inches) or more before printing.

58mm

(2.28")

52.5mm

(420 dots)

35

46

17

TITLE : WTP-150

Page -3 -

1.4 Paper Roll Supply Device

1) Supply method: Drop-in paper roll

2) Near-end sensor: a) Detection method: pool diameter: c) Near-end adjustm ent: d) Remaining amount:

Photo Reflector

Inside: 12mm(.47″ )

Outside: 18mm(.71″ )

Adjusting screw

Fixed position #1 (approximately

23mm(0.9″ )) #2 (approximately

27mm(1.06″ ))

NOTE: You can use a command to stop printing upon detection of a paper n ear-end.

1.5 Paper Specification

1) Pa per type

2) Form:

: Specified thermal paper

Paper roll

3) Paper width:

(82.5mm paper width model)

82 ±0.5mm (3.23" ±0.02")

(80mm paper width model)

79.5 ±0.5mm (3.13" ±0.02")

(60 mm paper width model)

59.

5 ±0.5mm (2.34" ±0.02")

4) Paper roll size:

(58mm paper width model)

57.5 ±0.5mm (2.26" ±0.02")

Roll diameter : Maximum 83mm

Take-up paper roll width:

80 ± 0.5, 1.0mm(3.15"±0.020", 0.04")

5) Paper roll spool diameter: Inside: 12mm(.47")

Outside: 18mm(.71")

NOTE: Paper must not be pasted to the paper roll spool.

TITLE : WTP-150

Page -4 -

1.6 Print able Area

<EPSON Emulation>

<82.5mm {3.25"} paper width model>

3mm

0.141mm

82±0.5mm

72.2mm(dot #1-#512)

512 dots

6.8mm

3mm

<80 mm {3.15"} paper width model>

0.141mm

79.5±0.5mm

72.2mm(dot #1-#512)

512 dots

4.3mm

TITLE : WTP-150

Page -5 -

3mm

<60mm {2.36"} paper width model>

0.141mm

59.5±0.5mm

54.1mm(dot #1-#384)

384 dots

2.4mm

3mm

< 58 mm {2.2

8"} paper width model>

0.141mm

57.5±0.5mm

360 dots

50.8mm(dot #1-#360)

3.7mm

TITLE : WTP-150

Fig ure 1.

6.1

P rintable Area for EPSON Emulation

Page -6 -

<STAR Emulation default setting>

<58mm {2.28"} paper width model>

2 .65mm

0.125mm

57.5±0.5mm

52.5

mm(dot #1-#420)

420 dots

2.35mm

1mm

Figure 1.6.2 Printable Area for STAR Emulation (for Default Setting)

<S TAR Em ulation when the paper width is changed>

<82.5 mm {3.25"} paper width model>

0.141mm

82±0.5mm

640 dots

1mm

80mm(dot #1-#640)

TITLE : WTP-150

Page -7 -

2.6

5m m

<80mm {3.15"} paper width model>

0.141mm

79.5±0.5mm

72mm(dot #1-#576)

576 dots

4.85mm

2.65mm

<6 0mm {2.36"} paper wid th model>

0.125mm

59.5±0.5mm

420 dots

54.5mm(dot #1-#436)

2.35mm

Figure 1.6.3

Printable Area for STAR Emulation (When the Paper Width Is Changed)

NOTE : The num eric values used here are center values to be used in designing. The paper position or toleranc e of parts.

TITLE : WTP-150

Page -8 -

1.7 Printing and Cutting Positions

Man ual-cutter position to-cutter blade position enter of the print dotline

Appro *12.6

Appro * 30.5

Paper feed direction

[Units: mm(Al the numeric values are typical.)]

N OTE: Numeric values used here are center values to be used in designing. The values may vary slight ly as a result of p aper slack or variations in the paper. Take this into account w hen setting the cutting position of the autocutter.

F igure 1.7

.1 Print ing and Cutting Positions

TITLE : WTP-150

Page -9 -

1.8 Internal Buffer

1) Receive buffer: 4kbyte

1.9 Electrical Characteristics

1) Supply voltage:

2) Curren t consumption (at 24V):

+24 VDC ± 7%

Operating: Approx. 1.5A(at ASCII Printing)

Peak:Approx. 10A(at print duty 100%, For 10 seconds or less)

Stand-by: Approx. 0.15A

1.10 EMI a nd Safety Standards Applied

1) Euro pe: EMI – EN55022 CLASS A

EMS – EN61000-3-2, EN61000-3-3, EN50082-1

Safety Standard: EN60950

2) No rth Americ a: EMI - FCC Part#15 Class A

Safety Standards- UL(1950), c-UL(No.950)

1.11

Reliability

1) MCBF: 50 million lines

(based on an average printing rate of 12.5% with paper thickness in the range 65 ㎛ to 75 ㎛).

35 mi llio n li nes

(based on an average printing rate of 12.5% with paper thickness in th e ran ge 76 ㎛ to 150 ㎛)

2) Cutter Life: 1.0 million cuttings

(if th e paper thickness is between 65 and 100 ㎛)

1.12 Environmental Conditions

1) Temperature: Operating:

S tor age:

2) Humidity: Operating:

Storage :

5

° to 45°C

-20

° to 60°C

(except for paper)

10 to 90%RH

10 to 9 0%RH (except for paper)

TITLE : WTP-150

Page -10 -

2. Configura tion

2.1 Interface

2.1.1 RS-232 serial interface

2.1.2 Specifications

Data transmission:

Sy nchronization:

Handshaking:

Si gnal levels:

Serial

Asynchronous

DTR/DSR or XON/XOFF control

MARK= -3 to – 15V: Logic “ 1”

B aud rage:

Data word length:

Pa rity Settings:

SPACE= +3 to +15V: Logic “ 0”

4800, 9600, 1

7 or 8 bits

None, e

9200, 38400 bps ven, odd

Stop bits: 1 or more

C onnector (printer side): Female DSUB-25 pin connector

NOTE: The data word length, baud rate, and parity depend on the

DIP switch settings.

2.1.

3 Sw itching between on -line and off-line

The printer does not have an on-line/off-line switch.

The printer goes off-line:

• Between when the power is turned on (including reset using the interface) and when the printer is ready to receive data.

• During the self-test.

• When the cover is open.

• D uring paper feeding using the paper feed button.

• When the printer stops printing due to a paper-end (in cases when an empty pape r supply is detected by either paper roll end detector or the paper roll near-end detector with a printing halt feature by

ESC c4).

• During macro executing stand by status.

• When a temporary abnormality occurs in the power supply voltage.

• When an error has occurred.

2.1.4 Interface connector terminal assignments and signal functions

PIN

2

3

4, 20

6

1,7

SIGNAL

TXD

RXD

DTR

DSR

GND

I/O

-

DESCRIPTION

Printer transmit data line RS-232C level

- Printer receive data line RS-232C level

Output Printer handshake to host line RS-232C level

Input

-

Data Send Ready

System Ground

TITLE : WTP-150

Page -11 -

2.1.5 Serial in terface connection example

Host s ide Printer side

TXD ………………………………… RXD

DS R ………………………………… DTR

RXD ………………………………… TXD

DTR ………………………… ……… DSR

FG ………………………………… FG

SG ………………………………… SG

DETAILS: ◦ Set the handshaking so received. that the transmit data can be t the printer after turning on the power and initializing the printer.

1 B it

7 or 8

Bit

None or

1 Bit

< Figure 2.1 Serial transmission bit frame >

TITLE : WTP-150

< Figure 2.2 Line transmission with protocol >

1 or 2

Bit

Page -12 -

2.1.6 Centronics parallel interface

PIN

1

SIGNAL

STROBE-

2-9 DATA0-7

10 ACK-

11

12

13

BUSY

PE

SELECT

14

15

16

17

18

AUTO FE

NC

ED-

GROUND

GROUND

LOGIC-H

19-30 GROUND

31 INIT-

32

33

ERROR-

GROUND

I/O

Input

Input

Output

Output

Output

Output

Input

-

-

-

-

-

Input

Output

-

DESCRIPTION

Synchronize signal Data received

Data bit Transmitted 0-7

Data receiving competed

Impossible to printer data receiving

Paper empty

Printer’ s status for ON/OFF line

ND

System Ground

System Ground

+5V

System Ground

Initialize

Printer Error

System Ground

34

35

NC

+5V

-

- +5V

36 SELECT INInput ND

1) Specificat ions

Data trans mission:

Synchroni zation:

Handshak ing:

Conne ctor:

8-bit pa rallel

STROBE pulse supplied by host computer.

ACK and BUSY

D-SUB 36(female) or equivalent

DATA Data n tHold

nStrobe

Data n+1

tSetup tSTB

Busy Peripheral Busy

tReady tBUSY

nAck

t Reply tACK tnBUSY

TITLE : WTP-150

Page -13 -

tNext

2.1.7 Data Receiving Timing (Compatibility Mode)

Specifications

Characteristics Symbol

Min [ns] Max [ns]

Data Hold Time (host) tHold 750 --

Data Setup Time

STROBE Pulse Width

READY Cycle Idle Time

BUSY Output Delay Time

Data Processing Time

ACKNLG Pulse Width

BUSY Release Time tSetup tSTB tReady tBUSY tReply tACK tnBUSY

750

750

0

0

0

500

0

ACK Cycle Idle Time tNEXT 0

•The printer latches data at a nStrobe ↓ timing

2.1.8 USB Interface

PIN SIGNAL I/O DESCRIPTION

--

--

--

500

10us

--

1 +5V - +5V

2

3

DATA-

DATA+

-

-

Printer transmit data line

Printer transmit data line

4 GND

1) Specifications

- System Ground

Data transmission:

Connector:

USB 2.0

USB “ B” type connector

2) USB interface connection example

Host side Printer side

VCC ………………………………… VCC

DATA+ ……………………………… DATA+

DATA- ……………………………… DATA-

GND ………………………………… GND

TITLE : WTP-150

Page -14 -

2.1.9 Interface Connector

<D -SUB 25 Female Serial Port> <D-SUB Centronics Parallel Port>

TITLE : WTP-150

Page -15 -

3. Connectors

3.1 Interface Conne ctors

Refer to S , I

3.2 Electrical Characteristics

1) Input Voltage: D C 24V ± 10%

2) Current Consum

Peak: ption: Operating: Approx. 1.5 A (at ASC∥ printing)

Approx. 10 A (at print duty 100%, For 10 seconds or less)

Stand-by: Approx. 0.15 A

3) P ower Connector

3.3 Drawer Kick-out Connector (Modular Connector)

The pulse specified by ESC p or D LE DC4 is output to this connector.

The host can confirm the status of the input signal by using the

DLE EOT, GS a, or GS r commands.

1) Pin assignments:

2) Connector model:

Refer to Table 2.2.2

Printer side:

U e

DAEEUN DEK-623PCB-6-B or Equivalent n )

< Drawer Kick-out Connector Pin Assignments >

Pin Number Signal Name Direction

1 Frame GND -

2

3

4

5

6

Drawer kick-out drive signal 1

Drawer open/close signal

+24V

Drawer kick-out drive signal 2

Signal GND

Output

Input

-

Output

-

+24V is output through pin 4 when the power is turned on. However, pin 4 must by used only for the drawer.

TITLE : WTP-150

Page -16 -

< Figure 3.1 Drawer Kick-out Connector >

3) Drawer kick-out drive signal

Output signal: Output voltage: Approximately 24V

Output current: 1A or less o ove rcu rrent, t he resistance of the drawer kick-out solenoid mus t b e 24 Ω or more.

Output waveform: Out puts the w aveforms in Figure 3.2 to the points A and B in Figure 3.3 t1 (ON time) and t2 (OFF time) are specified by ESC p or

DLE DC4.

< Figure 3.2 Drawer Kick-out Drive Signal Output Waveform >

4) Drawer open/close signal

Input signal level (connec tor pin 3): “ L” = 0 to 0.8V

“ H” = 3 to 5V

< Figure 3.3 Drawer Circuitry >

NOTE: 1. Use a shielded cable for the drawer connector cable.

2.

Two dri ve r trans isto rs c annot be energized simultaneously.

3. The drawer drive duty must by as shown below.

ON tim e

≤ 0.2

(ON time + OFF time)

4. Be sure to use the printer power supply (connector pin 4) for the drawer po wer source.

5. Th e resistance of the drawer kick-out solenoid must not be less than the specified. Otherwise, an overcurrent could damage the solenoid.

TITLE : WTP-150

Page -17 -

6. Do no t connect telecommunication network to the drawer kick-out connector.

4 Control Command summary

No.

1 HT

Command

2 LF

3 CR

4 FF

5 CAN

6 DLE EOT

7 DLE ENQ

8 DLE DC4

9 ESC FF

10 ESC SP

11 ESC !

12 ESC $

13 ESC %

14 ESC &

15 ESC *

16 ESC -

17 ESC 2

18 ESC 3

19 ESC =

20 ESC ?

21 ESC @

22 ESC D

23 ESC E

24 ESC G

25 ESC J

26 ESC L

27 ESC M

28 ESC R

29 ESC S

30 ESC T

31 ESC V

32 ESC W

33 ESC \

34 ESC a

35 ESC c 3

36 ESC c 4

37 ESC c 5

38 ESC d

39 ESC p

40 ESC t

41 ESC {

42 FS p

43 FS q

44 GS !

Function

Horizontal tab

Print and line feed

Print and carriage return

Print end position label to start printing

Cancel print data in page mode

Real-t ime s tatus is

Real-time request to printer

Gener ate pulse at real-time

Print data in page mode

Set character right-side spacing

Set print mode

Select/cancel user-defined character set

Define us er-defined characters

Turn underline mode on/off

Set bit image mode

Turn underline mod e on/off

Set 1/6 inch line spacing

Set line spacing using minimum units

Select peripheral device

Canc el user-defined characters

Initialize printer

Set horizontal tab positions

Select emphasized mode

Select double-strike mode

Print end feed paper using minimum units

Select page mode

Select character font

Select international character set

Select standard mode

Select print direction in page mode

Set/cancel 90

° cw rotated

character

Set printing area in page mode

Set relative position

Align position

Select paper sensor(s) to output paper-end signals

Select paper sensor(s) to stop printing

Enable/disable panel buttons

Print and feed paper

n

lines

General pulse

Select character code table

Set/cancel upside-down character printing

P rint NV bit image

Define NV bit image

Select chara cter size

TITLE : WTP-150

Page -18 -

45 GS $

46 GS *

47 GS /

48 GS :

49 GS B

50 GS H

51 GS I

52 GS L

53 GS P

54 GS V

55 GS W

56 GS \

57

GS ^

58 GS a

59

GS b

60 GS f

61 GS h

62 GS k

63 GS r

64 GS v 0

65 GS w

< A dd >

1 ESC i

2 ESC m

TITLE : WTP-150

Set ab solute vertical print position in page mode

Define downloaded bit image

Print down-loaded bit image

S tart/e nd m acro def inition

Turn white/black reverse printing mode on/off

Select printing position of HRI characters

Transmit printer ID

Set left margin

Set horizontal and vertical motion units

Cut pap er

Set printing area width

Set relative vertical print position in page mode

Execute macro

Enable/disable Automatic Status Back(ASB)

Turn smooting mode on/off

Select font for HRI characters

Set bar code height

P rint bar co de

Transmit status

Print ra ster bit im age

Set bar code width

Full cut

Partial cut

Page -19 -

Not avalible

Not avalible

Not avalible

Command Descriptions

Command Notation

[Name]

T he nam e of the control command.

[Format]

The code sequence.

In this desc r iption , < > H denotes hexad e cimal numbers, < >denotes bers B e ary numbers.

[ ] k indica tes the contents of the [ ] should be repeated k times.

[Range]

The allowable range for the arg uments.

[Description]

D escription of the command function.

[ Details]

If necessary provides important information on setting and using the printer

co mmand.

[Default]

[Reference]

Th e default values for the commands.

List related commands.

[Example]

Example of using the commands.

The numbers denoted by <>H is hexadecimal.

The numbers den oted by <>B is binary.

TITLE : WTP-150

Page -20 -

Print Commands

The WTP series supports the following commands for printing characters an d advancing paper.

HT

[ Name]

[ Format]

Horizontal tab

ASCII

Hex

HT

09

Decimal 9

[Description ] Moves the print position to the next tab position.

[Details] ·This command is ignored unless the next tab position has been set.

·If the next horizontal tab position exceeds the printing area, the printer sets the printing position to [Printing area width + 1].

·Horizontal tab positions are s et using “ ESC D” .

·If this comm and is received w hen the printing position is at [printing area width +1], the printer executes print buffer-full printing of the current line and ho rizontal tab processing from the beginning of the next line.

·The default setting of the horizontal tab position for the paper roll is font

A

(12 x 24) every 8th character (9th, 17th, 25th, … column ).

[Referenc e] ESC D

LF

[Name]

[Format]

[Descriptio n]

Print and line feed

ASCII LF

Hex 0A

Decimal 10

[ Details]

[ Reference] th in th e print bu ffer and feeds one line based on the current line spacing.

·This command sets the print position to the beginning of the line.

ESC 2, ESC 3

TITLE : WTP-150

Page -21 -

CR

[Name]

[Format]

[Description]

[Details]

Pr int and carriage return.

ASCII CR

Hex 0D

D ecimal 13

When automatic line feed is enabled, this command functions the same as LF; when automatic line feed is disabled, this command is ignored.

·Sets the print starting position to the beginning of the line.

·The automatic line feed is ignored.

LF [Reference]

FF

[Name]

[ Format]

Print and return to standard mode in page mode.

ASCII FF

Hex 0C

Decimal 12

[ Description] Prints the data in the print buffer and returns to standard mode.

[ Details] ·The buffer data is deleted after being printed.

·The printing area set by ESC W is reset to the default setting.

·The printer does not execute paper cutting.

[Referen ce]

·This command sets the print position to the beginning of the line.

·This command is enabled only in page mode.

ESC FF, ESC L, ESC S

CAN

[Name]

[Format]

Cancel rint da ta in p age mod e

ASCII CAN

Hex 18

Decimal 24

TITLE : WTP-150

Page -22 -

[Description] In page mode, delete all the print data in the current printable area.

[Details] ·This command is enabled only in page mode.

·If data that existed in the previously specified printable area also exists in

[Reference] t he currently specified printable area, it is deleted.

ESC L, ESC W

DLE EOT

n

[Name]

[Format]

Real-time status transmission.

ASCII DLE EOT n

He x 10 04 n

Decimal 16 4 n

[R ange] 1≤ n≤ 4

[D escrip tio n] according to the following parameters: n=1 : Transmit printer status n=2 : Transmit off-line status n=3 : Transmit error status n=4 : Transmit paper roll sensor

status

[Details]

Transmits the selected printer status sp ecified by n in real-time,

·The printer transmits the current status. Each status is represented by one-byte data.

·The printer transmits the status without confirming whether the host computer can receive data.

·The printer executes this command upon receiving it.

·This command is executed even when the printer is offline, the receive buffer is full, or there is an error status.

·When Auto Status Back (ASB) is enabled using the GS a command, the status transmitted by the DLE EOT command and the ASB status must be differentiated.

·Even though the printer is not selected using ESC = (select peripheral device), this command is effective.

[ Notes] ·The status is transmitted whenever the data sequence of

<10>H<04>H<n> (1 ≤ n≤ 4) is received.

Ex am ple :

In ESC * m nL nH d1…dk d1=

<10>H, d2=<04>H, d3=<01>H

·This command s hould not be used within the data sequence of another command that consists of 2 or more bytes.

TITLE : WTP-150

Page -23 -

Example :

I f y ou attempt to transmit E SC 3 n to the printer, but DTR (DSR for the h ost c omputer) goes to MARK before n i s transmitted and then

DLE EOT 3 interrupts before n is received, the code <10> H for DLE

EOT 3 is processed as the code for ESC 3 <10>H. n = 1: Printer stat us

Bit Off/On

0 Off

1

2

On

Off

On

3 Off

On

4 On

5,6 -

7 Off

Hex Decimal

00 0

02 2

00

04

00

08

10

-

00

0

4

0

8

16

-

0

Function

Not used. Fixed to Off

Not used. Fixed to On

Drawer open/close signal is LOW (connector pin 3).

Drawer open/close signal is HIGH (connector pin 3).

On-line

Off-line.

Not used. Fixed to On

Undefined.

Not used. Fixed to Off. n = 2: Off-line status

Bit Off/On

0

1

2

3

4

5

6

Off

On

Off

On

Off

On

On

Off

On

Off

On

Off

Bit Off/On

0 Off

1

2

On

-

Hex Decimal

00

08

10

00

20

00

02

00

04

00

40

00

0

8

16

0

32

0

2

0

4

0

64

0

Function

Not used. Fixed to Off

Not used. Fixed to On

Cover is closed

Cover is open

Paper is not being fed by using the FEED button

Paper is being fed by the FEED button

Not use d. Fixed to On

No paperend stop

Printin g is being stopped

No error

Error occ urs

Not u sed. Fixed to Off 7

Bit 5: Becomes on when the pape r end sensor detects paper end a nd printing stops. n= 3: Error status

Function Hex Decimal

00 0

02

-

2

-

Not used. Fixe d to Off

Not used. Fixed to On

Undefined

3

4

5

6

Off

On

On

On

Off

Off

On

00

08

10

00

20

00

40

32

0

64

0

8

16

0

No auto-cutter error

Auto-cutter error occurs

Not used. Fixed to On

No unrecoverable error

Unrecoverable error occurs

No auto-recoverable error

Auto recoverable error occurs

7 Off 00 0 Not used. Fixed to Off

Bit 3: If these errors occur due to paper jams or the like, it is possible to recover by

TITLE : WTP-150

Page -24 -

correcting the cause of the error and executing DLE ENQ n (1 ≤ n ≤ 2). If an error due to a circuit failure (e.g. wire break) occurs, it is impossible to recover.

Bit 6: When printing is stopped due to high print head temperature until the print head temperature drops sufficiently or when the paper roll cover is open during printing, bit 6 is On. n

= 4: Continuous paper sensor status

Bit Off/On

0 Off

1

2,3

On

Off

On

4

5,6

7

On

Off

On

Off

10

00

60

00

Hex Decimal

00 0

02 2

00

0C

0

12

16

0

96

0

Function

Not used. Fixed to Off

Not used. Fixed to On

Paper roll near-end sensor: paper adequate

Paper near-end is detected by the paper roll near-end sensor.

Not used. Fixed to On

Paper roll sensor: Paper present

Paper roll end detected by paper roll sensor

Not used. Fixed to Off

[Reference]

DLE ENQ n

DLE ENQ, GS a, GS r

[ Name] Real-time request to printer

[Format] ASCII DLE ENQ n

Hex 10 05 n

Decimal 16 5 n

[Range] 1≤ n≤ 2

[Description] Responds to a request from the host computer.

n

specifies the requests as follows: n Request

1

2

[Det ails]

Recover from an error and restart printing from the line where the error occurred

Recover from an error aft clearing the receive and print buffers

·When the printer is disabled wit h ESC = (Select peripheral device), this command is effective.

·This command is effective only when an auto-cutter error occurs .

·The printer starts processing data upon receiving this command.

·This command is executed even when the printer is of fline, the receive buffer is full, or there is an error status with a serial interface model.

·The status is also transmitted whenever the data sequence

<10>H<05>H< n> (1≤ n≤ 2) is received. of

Example:

In ESC * ** * m nL nH dk, d1 = <10>H, d2 = <05>H, d3 = <01>H

·This command should not be contained within another command that consists of two or more bytes.

TITLE : WTP-150

Page -25 -

Example:

If you attempt to transmit E SC 3 n to the printer, but DTR (DSR for the host computer) goes to MARK before n is transmitted, and

DLE ENQ 2 interrupts before n is received, the code <10>H for

DLE ENQ 2 is process ed as the code for ESC 3 <10>H.

[Reference] DLE EOT

DLE DC4

n m t

[ Name]

[Format]

[Range]

Generate pulse at real-time

ASCII

Hex

DLE DC4 n m t

10 14 n m t

Decimal 1 6 2 0 n m t n=1 m=0,1

1≤ t≤ 8

[ Description] Outputs the pulse specified by t to connector pin m as follows: m Connector pin

[Details]

0 Drawer kick-out connector pin 2.

1 Drawer kick-out connector pin 5.

The pulse ON time is [ t x 100 ms] and the OFF time is [ t x 100 ms].

·When the printer is in an error status when this command is processed, this com mand is ignored.

·Wh en the pulse is outp ut to the connector pin specified while ESC p or

DEL DC4 is executed while this command is processed, this comm and is ig nored.

·The printer executes this command upon receiving it.

·This co mmand is executed even when the printer is off-line, the receive buffer is full, or there is an error status.

· If print data includes the same character strings as this command, th e printer performs the same operation specified by this command. The use r must consider this.

·This c ommand should not be used within the data seque nce of another comm and that consists of 2 or more bytes.

·This command is effective even when the printer is disabled with ESC =

(Select peripheral device).

ESC p [ Reference]

TITLE : WTP-150

Page -26 -

ESC FF

[Name]

[Format]

[Descriptio n]

[Details]

Print data in page mode

C ESC FF

He x 1B

Decimal 27

0C

12

In page mode, prints all buffered data in the printable area collectively.

·This command is enabled only in page mode.

·A fter printing, the printer does not clear the buffered data, setting value for ESC T and ESC W, and the position for buffering character data.

[Reference]

ESC SP

n

FF , ESC L, ESC S

[Name]

[ Format]

[Range]

Set right-side character spacing

ASCII

H ex

0≤

ESC

1B

Decimal 27 n ≤ 255

SP

20

32 n n n

[ Description] Sets the character spacing for the right side of the character to

[ n x horizontal or vertical motion units].

[ Details] ·The right-side character spacing for double-width mode is twice the normal value. When characters are enlarged, the right-side character spacing is n times normal value.

·This command does not affect the setting of Kanji characters.

·This command sets values independently in each mode (standard and page modes).

·The horizontal and vertical motion units are specified by GS P.

Changing the horizontal or vertical motion units does not affect the current right-side spacing .

TITLE : WTP-150

Page -27 -

·The GS P command can change the horizontal (and vertical) motion unit.

However, the value cannot be less than the minimum horizontal movement amount, and it must be in even units of the minimum horizontal movement amount.

·In standard mode, the horizontal motion unit is used.

·In page mode, the horizontal or vertical motion unit differs in page m ode, depending on starting position of the printable area as follows:

①When the starting position is set to the upper left or lower right of th e printable area using ESC T, the horizontal motion unit (x) is used.

②When the starting position is set to the upper right or lower left of the printable area using ESC T, the vertical motion unit (y) is u sed.

·The maximum right-side spacing is 35.983 mm {255/ 180” }. Any setting exceeding the maximum is converted to the maximu m automatically.

[D efault]

[Reference]

ESC !

n n = 0

GS P

[Name] Se lect print mode(s)

[Format] ASCII

H ex

ESC

1B

!

21 n n n

Decimal 27 33

[Range] 0≤ n ≤ 255

[Description] Se lects print mode(s) using n as follows:

Bit

0

Off/On

Off

Hex

00

Decimal

0

Function

Character font A (12x24)

1

2

3

4

5

6

7

On

-

-

Off

On

Off

On

Off

On

-

Off

On

20

-

00

80

08

00

10

00

01

-

-

00

8

0

16

0

1

-

-

0

Character font B (9x24)

Undefined.

Undefined.

Emphasized mode not selected.

Emphasized mode selected.

Double-height mode not selected.

Double-height mode selected.

Double-width mode not selected.

32

-

0

Double-width mode selected.

Undefined.

Underline mode not selected.

128 Underline mode selected.

TITLE : WTP-150

Page -28 -

[Details] ·W hen both double-height and double-width modes are selected, quadruple size characters are printed.

·The printer can underline all characters, but can not underline the space set by HT or 90

° clockwise rotated characters.

·The thic kness of the underline is selected b y ESC-, regardless of the character size.

·When s ome characters in a line are double or more height, all the characters on the line are aligned at the baseline.

·ESC E C an also turn on or off emphasized mod e. However, the setting of the last received command is effective.

·ESC - Can also turn on or off underline mode. However, the setting of the last received command effective.

·G S ! Can also select character size, However, the setting of the last received command is effective.

·Emphasized mode is effective for alphanumeric and Kanji. All print modes except empha sized mode is effective only for alphanumeric.

[ Default]

[ Reference]

ESC $

n

L

n

H n = 0

ESC E, ESC -, GS !

[ Name]

[ Format]

[ Range]

Set absolute print position

ASCII

Hex

0≤

0≤

ESC

1B

Decimal 27 nL≤ 255 nH≤ 255

$

24

36 n

L n

L n

L n

H n

H n

H

[ Description] Sets the distance from the beginning of the line to the position at which subsequent characters are to be printed.

[ Details] ·The distance from the beginning of the line to the print position is

[( n

L

+ n

H

x

256) x (vertical or horizontal motion unit)] inches.

·Settings outside the specified printable area are ignored.

·The horizontal and vertical motion units are specified by “ GS P” .

·The GS P command can change the horizontal (and vertical) motion unit.

However, the value cannot be less than the minimum horizontal movement amount, and it must be in even units of the minimum horizontal movement amount. In standard mode, the horizontal motion

TITLE : WTP-150

Page -29 -

[Reference]

ESC % n

[Name]

[Format] unit is used.

·In page mode, the horizontal or vertical motion unit differs depending on ta os ition of th e printa ble area as follows :

1. When the starting position i s set to the upper left or lower right of the printable a rea u sing ES C T, the horizontal motion unit (x) is used.

2. When the starting position is set to the upper right or lower left of the pri ntable area using ESC T, the vertical motion unit (y) is used.

ESC \, GS $, GS \, GS P

S elect/cancel user-defined character set

ASCII

H

D ex

ESC

1B ecimal 27

%

25

37 n n n

[ Range] 0≤ n ≤ 255

[Description] Se lects or cancels the user-defined c haracter set

·When the LSB of n is 0, the user-defined character set is cance led.

[Details]

·When the LSB of n is 1, the user-defined character set is selected.

·W hen the user-defined character set is canceled, the internal character set is automatically se lected.

· n is available only for the least significant bit.

[Default] n = 0

[Reference] ESC &, ESC ?

ESC & y c1 c2 [x1 d1…d(y x x1)]..[ xk d1..d(y x xk)]

[Name]

[Format]

Defi ne user-defined characters

ASCII ESC

Hex 1B

Decimal 27

& y c1 c2

[x1 d1...d(y

× x1)]...[xk d1...d(y × xk)]

26 y c1 c2

[x1 d1...d(y

× x1)]...[xk d1...d(y × xk)]

38 y c1 c2

[x1 d1...d(y

× x1)]...[xk d1...d(y × xk)]

[R ange] y = 3

32

≤ c1

≤ c2

126

0

x

12 Font A (when font A (12 x 24) is selected)

0

≤ x

9 Font B (when font B (9 x 17) is selected)

0

d1 ... d( y x xk)

255

[ Description] Defines user-defined characters

·y specifies the number of bytes in the vertical direction.

TITLE : WTP-150

Page -30 -

·c1 specifies the beginning character code for the definition, and c2 specifies the final code. i e n umb er of do ts in the horizontal direction.

[Details]

TITLE : WTP-150

<7 E> (95charac ters). er code range is from ASCII code <20>H to

·It is possible to defin e multiple characters for consecutive character codes.

·If only one character is desired, use c1 = c2.

· d is the dot data for the characters. The dot pattern is in the horizontal direction from the left side. Any remaining dots on the right side are blank.

·The data to define a user-defined character i s (y

× x) bytes.

·Set a corresponding bit to 1 to print a dot or 0 to not print a dot.

·This command can define different user-defined character patterns by each fonts. To select a font, use ESC !

·A use r-defined character and a downloaded bit image cannot be defined simultaneously. When this command is executed, the downloaded bit image is cleared.

·The user-defined character definition is cleared when:

① ESC @ is executed.

② ESC ? is executed.

③ FS q is executed.

④ GS * is executed.

⑤ The printer is reset or the power is turned off.

·When the user-defined characters are defined in font B (9 x 24), only the most significant bit of the 3rd byte of data in vertical direction is effective.

Page -31 -

TITLE : WTP-150

Page -32 -

ESC *

m n

L

n

H

[

d1...dk

]

[ Name]

[ Format]

[ Range]

Select bit-image mode

ASCII ESC *

Hex 1B

Decimal 27

2A

42 m = 0, 1, 32, 33

0≤ n

L

≤ 255

0≤ n

H

≤ 3

0≤ d ≤ 255 m m m

TITLE : WTP-150

Page -33 - n

L n

L n

L n

H d1...dk n

H d1...dk n

H d1...dk

[Description] Selects a bit-image mode using m for the number of dots specified by nL and nH, as follows:

Vertical Direction Horizontal Direction m Mode

0 8-dot single-density

1 8-do t double -density

NO. of Dots Dot Density Dot Density

8

8

60 DPI

60 DPI

90 DPI

180 DPI

Number of (Data(K) nL + nH x

256 nL + nH x

256

32 24-dot single-density

33 24- ot doubl e-density

2 4

2 4

180 DPI

180 DPI

90 DPI

180 DPI

( nL + nH x 256) x 3

(nL + nH x 256) x 3

[dpi : dots per 25.4 mm{1” }]

[Details] ·If the values of m is out of the specified range, nL and data following are processed as normal data.

·The nL and nH indicate the number

of dots of the bit image in the horizontal direction. The number of dots is calculated by nL + nH x 256 .

·If the bit-image data input exceeds the number of dots to be printed on a line, the excess data is ignored.

· d indicates the bit-image data. S et a corresponding bit of 1 to print a dot or to 0 to not print a dot.

·If t he width of the printing a rea set by GS L and GS W less than the width required by the data sent with the ESC *command t he following will be performed on the line in question (but the printing cannot exceed the maximum printable area) :

① The width of the printing area is extended to the right to accommodate the amount of data.

② If step ① does not provide sufficient width for the data, the left margin is reduced to accommodate the data.

·After printing a bit image, the printer returns to normal data processing mode.

·This command is not affected by print modes(emphasized, double-strike, underline, character size or white/black reverse printing), except upside-down printing mode.

·Refer to Figure 3.12.3 for the bit image development position in page mode. the image data and the dots to be printed is as follows:

·When 8-dot bit image is selected:

TITLE : WTP-150

Page -34 -

ESC -

n

[ Name] Turn underline mode on/off

[Format]

[Range]

ASCII

Hex

ESC

1B

Decimal 27

-

2D

45 n n n n

0≤ n ≤ 2, 48≤ n ≤ 50

[Description] Turns underline mode on or off, based on the following values of n.

Function

0, 48

1, 49

Tu rns off underline mode

Tu rns on underline mode (1-dot thick)

2, 50 Turns on underline mode (2-dots thick)

[Details] ·The printer can underline all characters (including right-side character spacing), but cannot underline the space set by HT.

·The printe r cannot underline 90˚ clockwise rotated characters and white/black inverted characters.

·When underline mode id turned off by setting the value of n to 0 or 48, the following data is not underlined, and the underline thickness set before the mode is turned off does not change. The default underline thickness is 1 dot.

·Changing the character size does not affect the current underline thickness.

·Underline mode can also be turned on or off by using ESC!. Note, however, that the last received command is effective.

·This command does not affect Kanji printing.

[ Default]

[ Reference] n = 0

ESC !

ESC 2

[ Name]

[ Format]

Select default line spacing

ASCII ESC 2

Hex 1B

Decimal 27

32

50

[ Description] Selects approximately 4.23 mm {1/6” } spacing.

[ Details] ·The line spacing can be set independently in standard mode and in page mode.

TITLE : WTP-150

Page -35 -

[Reference]

ESC 3

n

ESC 3

[Name]

[ Format]

[Range]

[Description]

[Details]

ASCII

Hex

0≤

ESC

1B

Decimal 27 n ≤ 255 g

3

33

51 n n n

Sets the line spacing to [ n x (vertical or horiz ontal motion unit)] inches.

·The line spacing c an be set independently in standard mode and in page mode.

·The horizontal and vertic al motion unit is specified by GS P.

Changing the horizontal or vertical motion unit does not affect the current line spacing.

·The GS P command can change the horizont al (and vertical) motion unit.

However, the value cannot be less than the minimum vertical movement amo unt, and it must be in even units of the minimum vertical movement amount.

·In standard mode, the vertical motions until (y) is used.

·In page mode, this command funct ion as follow s, depending on the star ting position of the printable area :

① When the starting position is s et to the upper left or lower right to the printable area using ESC T, the vertical motion unit

(y) is used.

②When the starting position is se t to the upper right or lower left of the printable area using ESC T, the horizontal motion unit

(x) is used.

·The maximum paper feed amount is 1016 mm {40” }. Even if a paper feed amount of more than 1016 m m{40” }is set, the printer feeds the pape r only 1016 mm{40” }

Line sp ace is equivalent to approximately 4.23 mm{1/6” }. [Default]

[Reference] ESC 2 , GS P

ESC =

n

[ Name]

[ Format]

Set peripheral device

ASCII ESC =

Hex 1B 3D

Decimal 27 61 n n n

TITLE : WTP-150

Page -36 -

[Range] 1≤ n ≤ 255

[ Description] Selects device to which host computer sends data, using n as follows:

Bit

Off/On Hex Decimal Function

0 Off

On

00

01

0

1

Printer disabled

Printer enabled

1-7

[Details]

- - Undefined commands (DLE EOT, DLE ENQ, DLE DC4) until it is enabled by this command.

[Default] n=1

ESC ? n

[Name] Cancel user-defined characters

[Format] AS CII ESC ?

Hex 1B

Decimal 27

3F

63 n n n

[Range]

[ Details]

32 ≤ n ≤ 126

[ Description] Cancels user-defined characters.

·This command cancels the pattern defined for the character code specified by n. After the user-defined characters is canceled, the corresponding pattern for the internal character is printed.

·This command deletes the pattern defined for the specified code in the font selected by ESC !.

·If a user-defined character has not been defined for the specif ied character code, the printer ignores this command.

[ Reference] ESC &, ESC %

ESC @

[ Name]

[ Format]

Initialize printer

ASCII ESC @

Hex 1B

Decimal 27

40

64

[ Description] Clears the data in the print buffer and resets the printer mode to the mode that was in effect when the power was turned on.

[ Details] ·The DIP switch settings are not checked again.

·The data in the receive buffer is not cleared.

·The macro definition is not cleared.

·The NV bit image data is not cleared.

·The data of the NV user memory is not cleared.

ESC D [

n1

...

nk

] NUL

[Name ]

[Format]

[Range]

Set horizontal tab positions

ASCII ES C D n1……nk NUL

Hex 1B 44 n1……nk 00

Decimal 27

1≤

0≤ n ≤ 255 k ≤ 32

68 n1……nk 0

[Description] Set is horizon tal tab positions .

· n

specifies the c olumn num ber for s etting a horizon tal tab posit ion from the beginning of the line.

· k indicates th e total number of hori zontal tab positio ns to b e set.

[ Details] ·The horizontal tab position is stored as a value of [character width x n] measured from the beginning of the line. The character width includes the right-side character spacing, and double-width characters are set with twice the width of normal cha racters.

· This command cancels the previous horizontal tab settings.

·When setting n = 8, the print position is moved to column 9 by sending

H T.

· Up to 32 tab positions ( k=32) can be set. Data exceeding 32-tab

[Default] positions s is processed as normal data.

·Tr ansmit [ n]k in a scending order and place a NUL code 0 at the end.

· When [ n]k is less than or equal to the preceding value [n]k-1, tab setting is finished and the following data is processed as normal data,

·ESC D NUL cancels all horizontal tab positions.

·T he previously specified horizontal tab positions do not change, even if the character width changes.

·The character width is memorized for each standard and page mode.

The default tab positions are at intervals of 8 characters (column s 9, 17,

2 5, ...) for the font A (12 X 24).

[Reference] HT

ESC E

n

[Name]

[Format]

Tur n emphasized mode on/off

AS CII ESC E

Hex 1B 45 n n

TITLE : WTP-150

Page -38 -

[Range]

Decimal 27

0≤ n ≤ 255

69 n

[Description] Turns emphasized mode on or off.

·When the LSB of n is 0, emphasized mode is turned off.

·When the LSB of n is 1, emphasized mode is turned on.

[Details] ·Only the least significant bit of n is enabled.

· This command and ESC! Turn on and off emphasized mode in the same way. Be careful when this command is used with ESC!.

[Default]

[Reference] n = 0

E SC !

ESC G

n

[Name] Turn on/off double-strike mode

[Format] ASCII

H ex

ESC

1B

Decimal 27

G

47

71 n n n

[Range]

[Description]

0≤ n ≤ 255

Turns double-strike mode on or off.

·When the LSB of n is 0, double-strike mode is turned off.

·When the LSB of n is1, double-strike mode is turned on.

[Det ails]

[Default ]

·Only the lowest bit of n is enabled.

·Printer output is the same in double-strike mode and in emphasized mode. n = 0

[Reference]

ESC J

n

ESC E

[ Name] Print and feed paper

[ Format] ASCII

Hex

ESC

1B

J

4A n n n

Decimal 27 74

[ Range] 0≤ n ≤ 255

[ Description] Prints the data in the print buffer and feeds the paper [ n x vertical or horizontal motion unit].

TITLE : WTP-150

Page -39 -

[Details] ·After printing is completed, this command sets the print starting position to the beginning of the line.

·The paper feed amount set by this command does not affect the values set by ESC 2 or ESC 3.

·The horizontal and vertical motion unit is specified by GS P.

·The GS P command can change the vertical (and horizontal) motion unit.

However, the value cannot be less than the minimum vertical movement, and it must be in even units of the minimum vertical movement amount.

·In standard mode, the printer uses the vertical motion unit( y).

·In page mode, this command functions as follows, depending on the starting position of the printable area.

①When the starting position is set to the upper left or lower right o f the printable area using ESC T, the vertical motion unit (y) is used.

②When the starting position is set to the upper right or lower left of the pr intable area using ESC T, the horizontal motion unit (x) is used.

·The maximum line spacing is 1016 mm{4 0” }. When the setting value exceeds t he maximum, it is converted to the maximum automatically.

[Reference] GS P

ESC L

[Name]

[Format]

Select page mode

A SCII ESC L

H ex 1B 4C

D ecimal 27 76

[Description] Switches from standard mode to page mode.

[Details] · This command is enabled only when input at the beginning of a line in standard mode.

TITLE : WTP-150

Page -40 -

· This command has no effect in page mode.

·After printing by FF is completed or by using ESC S, the printer returns to standard mode.

·This command sets the position where data is buffered to the position specified by ESC T within the printing area defined by ESC W.

· This command is switches th e setting for the following commands (in which the values can be set independently in standard mode and page mode) to those for pa ge mode.

① Set right-side character spacing : ESC SP, FS S

② Select default line spacing : ESC 2, ESC 3

·Only valve settings is possible for the following commands in page mode; these commands are not executed.

① Turn 90

°

clockwise rotation mode on/off: ESC V

② Select justification: ESC a

③ Turn upside-down printing mode on/off: ESC {

④ Set left margin: GS L

⑤ Set printa ble area width: GS W

·The following command is ignored in page mode:

①Execute test print: GS W

·The following command is not available in page mode:

① Print NV bit image : FS p

② Define NV bit image : FS q

③ Print raster bit image : GS v 0

·The printer returns to standard mode when power is turned on, the printer is reset, or ESC @ is used.

FF, CAN, ESC FF, ESC S, ESC T, ESC W, GS $, GS \ [Reference]

ESC M n

[Name]

[Format]

[Range]

S elect character font

A SCII ESC M

H

D ex 1B ecimal 27 n = 0, 1 , 48, 49

4D

77

[Description] S elects character fonts n n n

TITLE : WTP-150

Page -41 -

[Details]

[Reference]

ESC R

n

[Name]

[Format]

[Range]

[Description]

[Default]

[Reference] n

0, 48

1, 49

Function

Character font A (12 X 24 ) Selected

Character font B (9 X 24 ) Selected

· The ESC ! command can also select the character fonts. However, the setting of the last received command is effective.

ESC !

Select an international character set

ASCII

H ex

ESC

1B

Decimal 27

R

52

82 n n n

0 ≤ n ≤ 13

Selects an international character set n from the following table: n Character Set

0

1

2

3

4

5

U. S. A

France

Germany

U. K.

Denmark I

Sweden

6

7

8

9

10

11

12

Italy

Spain I

Japan

Norway

Denmark II

Spain II

Latin America n = 0

3.2.12 International Character Set

TITLE : WTP-150

Page -42 -

ESC S

[Name]

[ Format]

[Description]

[Deta ils]

Select standard mode

ASCII ESC S

Hex 1B 53

Decimal 27 83

Switches from pa a mode.

p e mode.

·Data buffered in page mode and the printable area developed in page mode are c leared.

·This command is switches the setting for the following comma nd (in which the values can be set independently in standard mode and page mode) to those for standard mode:

① Set right-side character spa cing: ESC SP, FS S

② Sele ct default lin e spacing : ESC 2, ESC 3

·The following commands are ena bled only to set in standard mode.

① Set printing area in page mode : ESC W

② Set print direction in page mode : ESC T

·The following commands are ignored in standard mode.

① Set absolute vertical print position in page mode : GS $

② Set relative vertical print position in page mode : GS \

·Standard mode is selected automatically when power is turned on, the printer is reset, or command ESC @ is used.

[Reference] FF, ESC FF, ESC L

TITLE : WTP-150

Page -43 -

ES C T

n

[Name]

[For mat ]

[Range]

Selec t print directi e

A SCI

Hex

I ESC T n

1B

D ecimal 27

54

84 n n

0 ≤ n ≤ 3,

48 ≤ n ≤

51

[Descriptio n] n

Select the print direction and starting position in page mode. n specifies the print direction and starting position as follows:

Print Direction Starting Position

0, 48 Left to right Upper left(A in the figure)

1, 49

2, 50

Bottom to top

Right to left

Lower left(B in the figure)

Lower right(C in the figure)

3, 51 Top to bottom Upper right( D in the figure)

[Details] ·W hen the command is input in standard mode, the printer executes only internal flag operation. This command does not affect printing in standard mode.

·This c ommand sets the position where data is buffered within the printing area set by ESC W.

·Parameters for horizontal or vertical motion units

(x or y) differ as follows, depending on the starting position of th e printing area:

①If the starting position is the upper left or lower right of the printing in the direction perpendicular to the paper feed direction:

Commands using horizo ntal motion units: ESC SP, ESC $, ESC\

Commands using vertical motion units: ESC 3, ESC J, GS $, GS\

②If the starting position is the upper right or lower left of the printing area, data is buffered in the paper feed direction :

Commands using horizontal motion units :

ESC 3, ESC J, GS &, GS\

Commands using vertical motion units : ESC SP, ESC $, ESC\

[Default] n = 0

[Reference] ES C $, ESC L, ESC W, ESC\, GS $, GS P, GS\

ESC V

n

TITLE : WTP-150

Page -44 -

[Name]

[Form at]

Turn 90

° clockwise rotation mode on/off

ASCII ESC V

Hex 1B 56

Decimal 27 86 n n n

[Range] 0≤ n ≤ 1,48≤ n ≤ 49

[Description] Tu rns 90

° clockwise rotation mod e on or off. n

is used as follows: n

0, 48

1, 49

Function

Turns off 90˚ clockwise rotation mode

Turns on 90˚ clockwise rotation mode

[Details] ·When underline mode is turned on, the printer does not underline 90

° clockwise-rotated characters.

·Double-width and double-height commands in 90

° rotation mode enlarge characters in the opposite directions from double height and double-width commands in normal mode.

·This command affects printing in standard mode. However, the setting is always effective.

[Default] n = 0

[Reference] ESC !, ESC –

ESC W

xL xH yL yH dxL dxH dyL dyH

TITLE : WTP-150

Page -45 -

[Name]

[Format]

Set printing area in page mode

ASCII

Hex

De

ESC W

1B cimal 27

57

87 xL xH yL yH dxL dxH xL xH yL yH dxL dxH dyL dyH xL x dyL dyH

H yL yH dxL dxH dyL dyH

[Range]

0≤ xL xH yL yH dxL dxH dyL dyH ≤ 255 (except dxL=dxH=0 or dyL=dyH=0 )

[Description] ·The horizontal starting position, vertical starting position, p rinting area width, and printing area height are defined as x0, y0, dx, dy, respectively.

Each setting f

x0 = [(xL +

y0 = [(yL +

dx = [(dxL or the printable area is calculated as follow:

xH x 256) x (horizontal motion unit)]

yH x 256) x (vertical motion unit)]

+ dxH x 256) x (horizontal motion unit)]

dy = [(dyL + dyH x 256) x (vertical motion unit)]

The printing area is set as shown in the figure below.

[Details] · If this command is input in standard mode, the printer executes only internal flag operation. This command does not affect printing in standard mode.

·If the horizontal or vertical starting position is set outside the printable area, the printer stops command processing and processes the following data as normal data.

·If the printing area width or h eight is set to 0, the printer stops command processing and processes the following data as normal data.

·This comma nd s ets the position where data is buffered to the position specified b y ES i rint ing area.

·If (horizonta l star ting position + printing area width) exceeds the printable area, the printing area width is a automatically set to (horizontal printable - horizontal starting position).

·If (vertical starting position + printing area height) exceeds the printable area, the printing area height is automatically set to( vertical printable area - vertical starting position).

·The horizontal and vertical motion units are specified by GS P.

Chang ing the horiz ontal or vertical mo tion unit does not affect the cu rrent printing area.

·The GS P command can change the horizontal (and vertical) motion unit.

Howe ver, the value c annot be less than the m inimum horizontal m ovement amount, and it must be in even units of minimum horizontal movement amo unt.

·Use the horizontal motion unit for setting the horizontal starting position area width, and use the vertical motion unit for setting the vertical starting position and printing area height.

· When the horizonta l starting position, vertical starting position, printing

TITLE : WTP-150

Page -46 -

area width, and printing area height are defined as

X ,Y, Dx, and Dy respectively, the printing area is set as shown in the figure below.

·This print able area for this printer is approximately 72.2 mm {512/180” } in the horizontal direction and approximately 117.3 mm {1662/360” } in the vertical direction.

[ Default] xL = xH = yL = yH = 0 dxL = 0, dxH = 2, dyL =126, dyH = 6

[ Reference] CAN, ESC L, ESC T, GS P

ESC \

n

L

n

H

TITLE : WTP-150

Page -47 -

[Name]

[ Format]

[Range]

[Description]

S et relative print position

ASCII ESC \

Hex 1B 5C

Decimal 27 92

0≤ n

L

≤ 255

0≤ n

H

≤ 255 n

L

n

H n

L

n

H n

L

n

H

[Details]

[ Reference]

ESC a

n

ESC $, GS P

TITLE : WTP-150

Sets the print starting position based o n the current position by using the horizontal or vertical motion unit.

·This command sets the distance from the current position to [( n

L

+ n

H x

256

) x

(hori zontal or vertical unit)].

·Any setting that exceeds the printable area is ignor ed.

·When pitch

N is specified to the right : n

L

+ n

H

x

256

=

N

When pitch n is specified to the left (the negative direction), use the complement of 65536.

When pitch n is specified to the left : n

L

+ n

H

x

256

=

65536 – n.

·T he print sta rting position moves from the current position to [ n x horizontal or vertical motion unit].

·T he horizontal and vertical motion un its are specified by GS P.

·The GS P command can change the horizontal (and vertical) motion unit.

However, the value cannot be less than the minimum horizontal movement amount, and it must be in even units of the minimum horizontal movement amount.

·In standard mode, the horizontal motion unit is used.

·In page mode, the horizontal or vertical motion unit differs as follo ws, d epending on the starting point of the p rinting area :

①When the starting position is set to the upper left or lower right of the pri ntable area using ESC T, the horizontal motion unit ( x) is used.

②When the starting position is set to the upper right or lower left of the printable area using ESC T, the vertical motion unit ( y) is used.

Page -48 -

[Name]

[Format]

Selec t justi fication

ASCI I ES C a

H ex 1B 61

Decimal 27 97 n n n

[Range] 0≤ n ≤ 2,48 ≤ n ≤ 50

[Description ] Aligns all the data in one line to the specified position n selects the justification as follows: n

Justification

0,48 Left justification

1,49 Centering

2,50 Right justification

[Details] ·The command is enabled only when processed at the beginning of the line in standard mode.

·If this command is input in page mode, the printer performs only internal flag operation.

·This command has no effect in page mode.

·This command executes justification in the printing area.

·This command justifies the space area according to

HT, ESC $ or ESC \

[ Default]

[ Example] n = 0

Left justification Centering

ABC

ABCD

ABCDE

ABC

ABCD

ABCDE

Right justification

ABC

ABCD

ABCDE

ESC c 3

n

TITLE : WTP-150

Page -49 -

[Name]

[Format]

[Range]

Select paper sensor(s) to output paper end signals

ASCII ESC c

Hex

D

1B ecimal 27

0≤ n ≤ 255

63

99

3

33

51 n n n

[Description] Selects the paper sensor(s) to output paper end signals.

·Each bit of n is used as follows:

Bit Off / On Hex Decimal Function

0

1

2

3

Off

On

Off

On

00

04

00

08

-

00

01

00

02

0

4

0

8

-

0

1

0

2

Paper roll near-end sensor disabled

Paper roll near-end sensor enabled

Paper roll near-end sensor disabled

Paper roll near-end sensor enabled

Paper roll end sensor disabled

Paper roll end sensor enabled

Paper roll end sensor disabled

Paper roll end sensor enabled

Undefined 4 – 7 -

{Details}

On

Off

On

·It is possible to select multiple sensors to output signals. Then, if any of the sensors detects a paper end, the paper end signal is output.

·The command is available only with a parallel interface and is ignored with a serial interface.

·Sensor is switched when executing this command. The paper end signal switching be delayed depending on the receive buffer state.

·If either bit 0 or bit 1 is on, the paper roll near-end sensor is selected as the paper sensor outputting paper-end signals

·If either bit 2 or bit 3 is on, the paper roll end sensor is selected as the paper sensor outputting paper-end signals.

·When all the sensors are disabled, the paper end signal always outputs a paper present status. n = 15 [Default]

TITLE : WTP-150

Page -50 -

[Default]

ESC c 4

n

[Name] Sel ect paper sensor(s) to stop printing

[Format] AS

He

D

CII ESC c x 1B ecimal 27

63

99

4

34

52 n n n

[Range] 0≤ n ≤ 255

[Description] Se lects the paper sensor(s) used to stop printing when a paper-e nd is detected, using n as follows.

Bit Off / On Hex Decimal Function

0

1

O ff

On

Off

O n

- 2 – 7

[Details]

00

01

00

02

-

0

1

0

2

-

Paper roll near end sensor disabled.

Paper roll near end sensor enabled

Paper roll near end sensor disabled

Paper roll near end sensor enabled

Undefined

·When a paper sensor is enabled with this command, printing is stopped only when the corresponding paper is selected for printing.

·When a paper-end is detected by the paper roll sensor, the printer goes off-line after printing stops.

·When either bit 0 or 1 is on, the printer selects the paper roll near-end sensor f or the paper sensor to stop printing. n = 0

TITLE : WTP-150

Page -51 -

ESC c 5 n

[Name]

[Format]

[Range]

Enable / disable panel buttons

A SCII ESC c

Hex

Decimal 27

0≤

1B n ≤ 255

63

99

5

35

53 n n n

[Description] En ables or disables the panel buttons.

·W hen the LSB of n is 0, the panel buttons are enabled.

[ Details]

·When the LSB of n is 1, the panel buttons are disabled.

·Only the lowest bit of n is valid.

·When the panel buttons are disabled, none of them are usable when the printer cover is closed.

·In this printer, the panel buttons are the FEED button.

·In the macro ready mode, the FEED button are enabled regardless of the settings of this command; however, the paper cannot be fed by using these buttons.

[ Default] n = 0

ESC d

n

[Name]

[Format]

Print and fe

ASCII ES

Hex ed

1B

Decimal 27

C n li nes d

64

100 n n n

[ Range]

[Description]

0≤ n ≤ 255

Prints the data in the print buffer and feeds n lines.

[Details] ·This command sets the pr int starting pos ition to the beginning of the line

·This command does not affect the line spacing set by ESC 2 or ESC 3.

·The maximum paper feed amount is 1016 mm{40” }. If the paper feed amount(n x line spacing) of more than 1016 mm{40” } is specified, the printer feeds the paper only 1016 mm{40” }.

[Reference] E SC 2, ESC 3

TITLE : WTP-150

Page -52 -

[Reference]

ESC p

m t1 t2

[Name]

[Format]

[Range]

G enerate pulse

AS

H

CII ESC p ex 1B

Decimal 27

70

112 m m m t1 t1 t1 t2 t2 t2 m = 0, 1, 48, 49

0≤ t1 ≤ 255, 0≤ t2 ≤ 255

[Description] O utputs the pulse specified b y t1 and t2 to connector pin m as follows: m

Connector pin

0, 48

1, 49

Drawer kick-out connector pin2.

Drawer kick-out connector pin5.

[Details] ·The pulse ON time is [ t1 x 2 ms] and the OFF time is [ t2 x 2 ms].

·If t2 < t1, the OFF time is [ t1 x 2 ms]

DL E DC4

TITLE : WTP-150

Page -53 -

ESC t

n

[Name] Select chara cter code table

[Format] AS CII ESC t

Hex 1B

Decimal 27

74

116 n n n

[Range] 0≤ n≤ 5, 16≤ n≤ 26, n = 255

[Description] Se lects a page n from the chara cter code table. n Page

0 PC437 [U.S.A., Standard Europe]

1

2

3

4

5

17

255

[ Default]

Ka takana

PC850 [Multilingual]

PC860 [Portuguese]

PC863 [Canadian-French]

PC865 [Nordic]

PC866 [Cyrillic #2]

Space page n = 0

[ Reference] Factory default set code page

Code page

CP737

CP852

Language

Greek

Latin2

CP862

CP864

CP866

CP 1252

CP1253

ISO 8859

Turkish

Hebrew

Arabic

Cyrillic

Latin1(Spanish)

Greek

Latin5(Turkish)

TITLE : WTP-150

Page -54 -

ESC {

n

[Default]

[Example]

[Name] Turns on/off upside-down printing mode

[Format] ASCII ESC { n

Hex 1B 7B n

D ecimal 27 123 n

[Range] 0

≤ n ≤ 255

[Description] Turns upside-down printing mode on or off.

·When the LSB of n is 0, upside-down printing mode is turned off.

·When the LSB of n is 1, upside-down printing mode is turned on.

[Details] · e n is valid.

· This command is enabled only whe n processed at the beginning of a line in standard mode.

· When this command is input in page mode, the printer performs only internal flag operations.

·This command does not affect printing in page mode.

·In upside-down printing mode, the printer rotates the line to be printed by 180˚ and then prints it. n = 0

TITLE : WTP-150

Page -55 -

FS p

n m

[Name] P rint NV bit image

[Format] ASCII

H ex

FS p n m

1C 70 n m

Decimal 28 112 n m

[Range] 1

≤ n

≤ 255

0 m

≤ 3, 48 ≤ m ≤ 51

[ Description] Prints a NV bit image n using the mode specified by m. m Mode Vertical Dot Density Horizontal Dot Density

0, 48

1, 49

Normal

Double-width

2, 50 Double-height

3, 51 Quadruple

[dpi : dots per 25.4mm {1” }]

180 dpi

180 dpi

90 dpi

90 dpi

180 dpi

90 dpi

180 dpi

90 dpi

[ Details] · n is the number of the NV bit image (defined using the FS q command).

· m specifies the bit image mode.

· NV bit image means a bit image which is defined in a non-volatile memory by FS q and printed by FS p.

·This command is not effective when the specified NV bit image has not been defined.

·In standard mode, this command is effective only when there is no data in the print buffer.

·In page mode, the c omm an d is not effective.

·This command is not affe cte d by print modes (emphasized, double- strike, underline, character size, white/black reverse printing , or 90

° rotated characters, etc.), except upside-down printing mode.

·If the printing area width set by GS L and GS W for the NV bit image is less than one vertical line the following processing is performed only on the line in question. However, i n NV bit image mode, one vertic al line mea ns 1 d ot in no rmal mode (m=0,48) and in do uble-height mode

(m= 2,50), an d it m eans 2 dots in double-width mode (m=1,49) and in qua druple mo de ( m=3,51).

TITLE : WTP-150

Page -56 -

①The printing area width is extended to the right in NV bit image mode

②If the printing area width cannot be extended by one line vertically, the left margin is reduced to accommodate one line vertically.

·If the downloaded bit-image to be printed exceeds one line, the excess d ata is not printed.

·T his command feeds dots (for the h eight n of the NV bit-image) in normal a nd double-width modes, and(for the height n x 2 of the NV bit-image) in double-height and quadruple modes, regardless of the line spacing specifie d by ESC 2 or ESC 3.

·A fter printing the bit image, this command sets the print position to the beginning of the line and processes the data that follows as normal data.

[References] ES C *, FS q, GS/, GS v 0

TITLE : WTP-150

Page -57 -

FS q

n

[

xL x H yL yH d1...

dk

] 1.

..[

xL xH yL yH d1...dk

]

n

[Name ] Define NV bit image

[Format] ASCII FS q n

[xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n

H ex 1C 71 n

[xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n

Decimal 28 113 n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n

[Range] 1

≤ n

≤ 255

0

≤ xL ≤ 255

0

≤ xH ≤ 3 (when 1 ≤

(xL + xH

× 256) ≤ 1023)

0

≤ yL ≤ 255

0

≤ yL ≤

1 (when 1

≤ (yL + yH × 256) ≤ 288)

0

≤ d ≤ 255 k = (xL + xH

× × × 256) × 8

Tota l de fined data ar ea = 2M bits (256K bytes)

[D esc riptio n] D efi ne the NV bi t im age specifi ed by n.

[ Details] · n specifies the number of the defined NV bit image.

·xL, xH specifies (xL + xH

× 256) × 8 dots in the horizontal direction for the

NV bit image you are defining.

·yL, yH specifies (yL + yH

× 256) × 8 dots in the vertical direction for the

NV bit imag e yo u a re d efining.

·This com c ls all NV bit image tha t have already been defined by this command. The printer can not redefine only one of several data definitions previously defined. In this case, all data needs to be sent again.

·From the beginning of the processing of this command till the finish of hardware reset, mechanical operations (including initializing the position of the printer head when the cover is open, paper feeding by using the

FEED button, etc.) cannot be performed.

· During processing this command, the printer is in BUSY when writing the data to the NV user memory and stops receiving data. Therefore it is

TITLE : WTP-150

Page -58 -

prohibited to transmit the data including the real-time commands during the execution of this command.

· NV bit image means a bit image which is defined in a non-volatile me mory by FS q and printed by FS p.

·In standard mode, this command i s effe ctive only when processed at the beginning of the line.

·In page mode, this command is not effective.

· This command is effective when 7 bytes <FS-yH> is processed as a normal value.

·When the amount of the data exceeds the capacity left in the range defined by xL, xH, yL, yH, the printer processes xL, xH, yL, yH out of the defined range.

·In the first group of NV bit image, when any of the parameters xL, xH, yL, yH, is out of the definition range, the command is disabled.

·In groups of NV bit image other than the first one, when the printer processes xL, xH yL, yH out of the defined range, it stops processing th is command and stars writing into the NV images. At this time, NV bit image that haven’ t been defined are disabled (undefined), but any NV bit images before that are enabled.

·The d indicates the definition data. In data (d) a 1 bit specifies a dot to be printed and a 0 bit specifies a dot not to be printed.

·This command defines n as the number of a NV image. Number rise in order from NV bit imag e 01H. Therefore, the first data group [xL xH yL yH d1...dk] is NV bi t image 01H, and the last data group [xL xH yL yH grees with the number of NV bit images spe cified by command FS p.

·A definition data of a NV bit image consists of [xL xH vL vH d1...dk].

Therefore, when only one NV bit image is defined n=1, the printer processe s a data group [xL xH yL yH d1...dk] once. The printer uses

([data:( xL + xH

×256) × (yL + yH × 256) × 8] + [header:4]) bytes of NV memory.

·The definition area in this printer is a maximum of 2M bits (256K bytes).

This command can define several NV bit image, but cannot define a bit

TITLE : WTP-150

Page -59 -

[Notes] image data whose total capacity [bit image data + header] exceeds 2M bytes (256K bytes).

·The printer is busy immediately before writing into NV memory, regardless of the setting of DIP switch 2-1.

· The printer does not transmit ASB status and perform sta tus detection during processing of the command even when ASB is s pecified.

· When this command is received during macro definition, the prin ter ends macro definition, and begins performing this command.

· Once a NV bit image is defined, it not erased by performing ESC @, reset, and power off.

· This command performs only definition of a NV bit im age and does not perform printing. Printing of the NV bit im age is performed by the FS q command.

·F requent write command execution may cause damage the NV memory.

Therefore, it is recommended to write the NV memory 10 times or less a day.

· Th e printer performs a hardware reset after the procedure to place the image into the NV memory. Therefore, user-defined characters, downloaded bit image, and macros should be defined only after completing this command. The printer clears the receive and print buffers and resets the mode to the mode that was in effect at power on. At this time, DIP switch setting are checked again. n is the number of the NV bit

[ efer e FS p

[Example] When xL = 64, xH = 0, yL = 96, yH = 0

TITLE : WTP-150

Page -60 -

(xL + xH x 256) x 8 dots = 512 d ots

GS !

n

[Name] Select character size

[Format] AS CII GS ! n

H ex 1D 21 n

D ecimal 29 33 n

[Range] 0

≤ n ≤ 255

(1

vertical number of time s

≤ 8, 1 ≤ horizontal number of times ≤ 8)

[Description] Se lects the character height using bits 0 to 3 and selects the character w idth using bits 4 to 7, as follows:

Bit Off/On Hex Decimal Function

0 Character height selection. See Table 2.

1

2

3

4

5

Character width selection. See Table 1.

6

7

Table 1. Character Width Selection. Table 2. Character Height Selection.

TITLE : WTP-150

Page -61 -

Hex

00

10

20

30

Decimal

0

16

32

48

Width

1 (normal)

2 (double-width)

3

4

Hex

00

01

02

03

Decimal

0

1

2

3

Width

1 (normal)

2 (double-height)

3

4

40

50

60

70

64

80

96

112

5

6

7

8

04

05

06

07

4

5

6

7

5

6

7

8

[Deta ils] nd is effective fo r all ch arac ters (ex cept for HR I characters).

·If n is ou tside of t he de fined r ange, this com mand is i gnored .

·I n sta nda rd mode , the vertica l direc tion is th e pap er f eed dir ection , and the horizontal direction is pe rpendicular to the paper feed direction.

However, when character orientation changes in 90

° clockw iserotation mod e, the relationship between vertical and hori zontal direc tions is reversed.

·I n pag e m ode, ve rtical and ho rizont al dir ecti ons a re b ased on the character orientation.

· c are enlarged with different sizes on one characters on the line are aligned at the baseline. line, all the

· The ESC ! command can also mod es on or off.

turn double-width and double- height

How eve r, the se tting of the l ast re ceive d co mma nd i s effect ive. n

= 0 [Defau lt]

[Reference]

GS $

nL nH

ESC !

[Name] Set absolute vertical print position in page made

[ Format] ASCII GS $ nL nH

Hex 1 D 24 nL nH

Decimal 29 36 nL nH

[Range] 0

≤ nL ≤ 255, 0 ≤ nH ≤ 255

[Description] ·Sets the absolute vertical print starting position for buffer character data in page mode.

·T his comman d sets the absolute print position to [ ( nL + nH

×256) ×

(vertical or horizontal motion unit)] inches.

·If the [ ( nL + nH

× 256) × (vertical or horizontal mo tion unit)] exceeds the specified printing area, this command is ignored.

·The horizontal starting bu ffer position does not move.

·The reference starting posit ion is that specified by ESC T.

·This command operates as follows, depending on the starting position of the printing area specified by ESC T:

TITLE : WTP-150

Page -62 -

①W hen the starting position is set to the upper left or lower right, this c ommand sets the absolute position in th e vertical direction.

command sets the absolute position in the horizontal direction.

· The horizontal and vertic al motio n un its ar e spec ified by GS P .

·The G S P co mmand can c han ge the horizo ntal and vertical motion unit.

Ho wever, t he value ca nn ot be l ess than t he min imum horizontal movement amount, and it must be in even units of the minimum horizontal movement amount.

[Reference] ESC $ , ESC T, ESC W, ESC \ , GS \, GS P

GS

x y

d1...d

(x

×

y

×

8)

[Name] Define downloaded bit image

[Format] A SCII GS

∗ x

H ex 1D 2A x

D ecimal 29 42 x

[Range] 1

≤ x ≤ 255

1

≤ y ≤ 48 x x y

≤ 1536

0

≤ d ≤ 255

[Description] y y y d1 … d (x x y x 8) d1 … d (x x y x 8) d1 … d (x x y x 8)

Defines a downloaded bit image with the number of dots specified by x an d y.

· x in dicates the number of dots in the horizontal direction.

· y

indicates he number of dots in the vertical direction.

[Details] ·T he number of dots in the horizontal direction is x x

8, in the vertical d irection it is y x

8.

·If x x y is out of the specified range, this command is disabled.

·The d indicates bit-image data. Data

(d) specifies a bit printed to 1 a nd not printed to 0.

·The downloaded bit image definition is cleared whe n:

TITLE : WTP-150

Page -63 -

① ESC@ is executed.

② ESC & is executed.

③ FS q is executed.

④ Printer is reset or the power is turned off.

·The following figure shows the relationship between the downloaded bit image and the printed data.

[Reference] GS \

GS /

m

[Name] Print down-loaded bit image

[Format] ASCII

Hex

Decimal

GS /

1D 2F m m

29 47 m

[Range] 0

≤ m ≤ 3,48 ≤ m ≤ 51

[Description] Prints a downloaded bit image using the mode specified by m.

m selects a mode from the table below: m Mode Vertical Dot Density Horizontal Dot Density

0, 48 Normal

1, 49 Double-width

2, 50

3, 51

Double-height

Quadruple

180 DPI

180 DPI

90 DPI

90DPI

180 DPI

90 DPI

180 DPI

90 DPI

[dpi : dots per 25.4 mm {1” }]

[Details] ·This command is ignored if a downloaded bit image has not been defined.

· In standard mode, this command is effective on ly when the on data exists in the print buffer.

TITLE : WTP-150

Page -64 -

·This command is not affected by print m odes (emphasized, double-strike, underline, or character size, white/black reverse printing), ex cept for u psid e down mode.

·If the downloaded bit-image to be printed exceeds the printable area, the excess data is not printed.

·If the printing area width set by GS L and GS W is less than one line vertical, the following processing is performed only on the line in

① The printing area width is extended t o the right up to one line in vertical. In this case, printing does not exceed the printable area.

② If the printing area width cannot be extended by one line in vertical, the left margin is reduced to accommodate one line in vertical.

[Reference] GS

GS :

[N ame ] Star t/e nd mac ro defin ition

[ Format] ASCII GS :

Hex 1D 3A

Decimal 29 58

[ Description] Starts or ends macro definition.

[ Details] ·Macro definition starts when this command is received during normal operation. cr ini tion ends when this command is received during macro definition.

· When GS ^ is re ce ived during macro definition, the printer end s macro definition and clears the definition.

· Macro is not defined when the power is turned on.

· The defined contents of the macro are not cleared by ESC @. Therefore,

ESC @ can be included in the content s of the macro definition.

·If the printer receives GS : again immediately after previously receiving

GS : the printer remains in the macro undefined state.

·The contents of the macro can be defined up to 2048 bytes. If the macro definition exceed 2048 bytes, excess data is not stored.

TITLE : WTP-150

Page -65 -

[Reference ]

GS B

n

GS ^

[Name]

[Format]

Turn white/black reverse printing mode

ASCII GS B n

H ex 1D 42 n

D ecimal 29 66 n

[Range] 0

≤ n ≤ 255

[Description] T urns on or off white/black reverse printing mod e.

·When the LSB of n is 0, white/black reverse printing mode is turned off.

·When the LSB of n is 1, white/bla ck reverse printing mode is turned on.

[ Details] ·Only the LSB of n is effective.

·This comma nd is availa ble for built-in cha ract ers and user-defined characters.

·W hen white/bla ck reverse p rinting m ode is on, it also applie d to character spa cing set by ES C SP.

·Th is comman d does not affe ct bit im age, user-defin ed bit im age, bar code, HRI charac ters, and spacing skipped by HT, ESC $, and ESC\.

·This command does not affect the space between lines.

Even

·W hite/black reverse mode has a higher priority than underline mode.

[Default] if underline mode is on, it is disabled (but not canceled) when white/black reverse mode is selected. n = 0

GS H

n

[Name] Select printing position of HRI characters

[Format] AS CII GS H n

Hex 1D 48 n

De cimal 29 72 n

[Range] 0

≤ n ≤ 3, 48 ≤ n ≤ 51

[Description] S elects the printing position of HRI characters when printing a bar code. n selects the printing position as follows: n

Printing position

TITLE : WTP-150

Page -66 -

0, 48

1, 49

Not printe d

Above the bar code

2, 50

3, 51

Below the bar code

Both above and below the bar code

[Details] ·HRI means Human Readable Interpretation.

·HRI characters are printed using the font specified by GS f.

[Default] n = 0

[Reference] G S f, GS k

GS L

nL nH

[Name] Set left margin

[Format] ASCII

Hex

Decimal

GS L nL nH

1D

29

4C

76 nL nH nL nH

[Range] 0

≤ nL ≤ 255

0

≤ nH ≤ 255

[Description] Sets the left margin using nL and nH.

·The left margin is set to [( nL + nH

× 256) × (horizontal motion unit)] inches.

Printable area

Left m argin

TITLE : WTP-150

Page -67 -

[Details] ·This command is effective only of the beginning of a line.

·If this command is input in page made, the printer performs only internal flag operations.

·This command does not affect printing in p age made. g exceeds the prin table area, the maxi mum value of the printable area is used.

·The horizontal and vertica l moti on units are specified by GS P. Changing the horizontal or vertic al mot ion unit does not affe ct the current left ma rgin.

·The horizontal motion uni t (x) is used for calculating th e left m argin. The cal culated result is trunc ated to the minimum value of the mechanical pitch. nL = 0, nH = 0

[Default]

[Reference]

GS P

x y

GS W, GS P

[Name] Set horizon tal and vertical motion units

[Format] ASCII

Hex

GS P x

1D 50 x

Decimal 29 80 x y y y

[Range] 0

≤ x ≤ 255

0

≤ y ≤ 255

[ Description] Sets the horizontal and vertical motion units to 1/x inch and 1/y inch,

[Details] r espectively.

W hen x and u are set to 0, the default setting of each value is used. ( x =

180, y = 360)

·The horizontal direction is perpendicular to the paper feed direction and the vertical direction is the paper feed direction.

·In standard mode, the following commands use x or y, regardless character rotation (upside-down or 90

° clockwise rotation):

① Command using x : ESC SP, ESC $, ESC \, FS S, GS L, GS W

② Command using y : ESC 3, ESC J, GS V

·In page mad, the following command use x or y, depending on character

TITLE : WTP-150

Page -68 -

orientation:

①When the print starting position is set to the upper left or lower right of the printing area using ESC T (data is buffered in the direction perpendicular to the paper feed direction):

Command using x : ESC SP, ESC $, ESC W, ESC \, FS S

Command using y : ESC 3, ESC J, ESC W, GS $, GS \, GS V

②When the print starting position is set to the upper right or lower left of the printing area using ESC T (data is buffered in the paper feed direction):

Command using x: ESC 3, ESC J, ESC W, GS $, GS \

Command using y: ESC SP, ESC $, ESC W, ESC \, FS S, GS V

·The command does not affect the previously specified values.

·The calculated result from combining this command with others is truncated to the minimum value of the mechanical pitch. x = 180, y = 360

[Default]

[Reference] ESC SP, ESC $, ESC 3, ESC J, ESC W, ESC \, GS $, GS L, GS V, GS W,

GS \

① GS V

m

② GS V

m n

[Name] Select cut mode and cut paper

[Format] ①ASCII GS V m

Hex 1D 56 m

Decimal 29 86 m

②ASCII GS V m

Hex 1D 56 m

Decimal 29 86 m

[Range] ① m= 1,49

② m=66 , 0

≤ n ≤ 255 n n n

[Description] Selects a mode for cutting paper and executes paper cutting. The value of m selects the mode as follows: m

Print mode

1, 49 Partial cut(one point center uncut)

66

Feeds paper(cutting position + [n x(vertical motion unit)]) , and cuts the paper partially(one point center uncut)

TITLE : WTP-150

Page -69 -

[Details for①and②]

·This command is effective only processed at the beginning of a line.

[Note for ①]

·Only the partial cut is available; there is no full cut.

[Details for②]

·When n = 0, the printer feeds the paper to the cutting position and cuts it.

·When n ≠ 0, the printer feeds the paper to (cutting position + [ n ´ vertical motion unit

]) and cuts it.

·The horizontal and vertical motion unit are specified by GS P.

·The paper feed amount is calculated using the vertical motion unit ( y

).

However, the value cannot be less than the minimum horizontal movement amount, and it must be in even units of the minimum horizontal movement amount.

GS W

nL nH

[Name] Set printing area width

[Format] ASCII GS W nL nH

Hex 1D 57 nL nH

Decimal 29 87 nL nH

[Range] 0

≤ nL ≤ 255

0

≤ nH ≤ 255

[Description] Sets the printing area width to the area specified by nL and nH.

·The printing area width is set to [( nL

+ nH x 256) x horizontal motion unit]].

Printable area

[Details]

TITLE : WTP-150

Left margin Printing area width

·This command is effective only processed at the beginning of the line.

Page -70 -

·In page mode, the printer performs only internal flag operations.

·This command does not affect printing in page mode.

·If the [left margin + printing area width] exceeds the printable area,

[printable area width - left margin] is used.

·The horizontal and vertical motion units are specified by GS P. Changing the horizontal and vertical motion units does not affect the current left margin.

·The horizontal motion unit (x) is used for calculating the printing area width. The calculated result is truncated to the minimum value of the mechanical pitch.

·If the width set for the printing area is less than the width of one character, when the character data is developed, the following processing is performed:

① The printing area width is extended to the right to accommodate one character.

Printable area

Left margin Extended to right

Printing area width set by nL and nH

② f the printing area width cannot be extended sufficiently, the left margin is reduced to accommodate one character

Printable area

① Extended to right

Left margin ②Reduce left margin

③ If the printing area width cannot be extended sufficiently, the right space is reduced.

·If the width set for the printing area is less than one line in vertical, the following processing is performed only on the line in question when data other than character data (e.g., bit image, user-defined bit image) is developed:

① The printing area width is extended to the right to accommodate one line in vertical for the bit image within the printable area.

② If the printing area width cannot be extended sufficiently, the left margin is reduced to accommodate one line in vertical.

TITLE : WTP-150

Page -71 -

[Default]

·The commands which set the printing area width for bit image printing and its minimum widths are as follows:

·Bit image (ESC *) :

Single density mode = 2 dots

Double density mode = 1 dot

·Downloaded bit image (GS /):

Double width mode or Quadruple mode = 2 dots

Normal mode or Double-height mode = 1 dot

·NV bit image (FS p) :

Double width mode or Quadruple mode = 2 dots

Normal mode or Double-height mode = 1 dot

·Raster bit image (GS v 0) :

Double width mode or Quadruple mode = 2 dots

Normal mode or Double-height mode = 1 dot nL

= 0, nH

= 2

[Reference] GS L, GS P

GS \

nL nH

[Name] Set relative vertical print position in page mode

[Format] ASCII GS \

Hex 1D 5C nL nL nL nH nH nH

Decimal 29 92

[Range] 0

≤ nL ≤ 255

0

≤ nH ≤ 255

[Description] Sets the relative vertical print starting position from the current position in

[Details] page mode.

·This command sets the distance from the current position to [( nL

+ nH x

256) vertical or horizontal motion unit] inches.

·This command is ignored unless page mode is selected.

·When pitch N is specified to the movement downward: nL

+ nH x 256 = N

TITLE : WTP-150

Page -72 -

When pitch N is specified to the movement upward (the negative direction), use the complement of 65536.

When pitch N is specified to the movement upward: nL

+ nH x 256 = 65536 – N

·Any setting that exceeds the specified printing area is ignored.

·This command function as follows, depending on the print starting position set by ESC T:

① When the starting position is set to the upper left or lower right of the printing, the vertical motion unit ( y) is used.

② When the starting position is set to the upper right or lower left of the printing area, the horizontal motion unit ( x) is used.

·The horizontal and vertical motion unit are specified by GS P.

·The GS P command can change the horizontal (and vertical) motion unit.

However, the value cannot be less than the minimum horizontal movement amount, and it must be in even units of the minimum horizontal movement amount.

[Reference] ESC $, ESC T, ESC W, ESC \, GS $, GS P

GS ^

r t m

[Name]

[Format]

Execute macro

ASCII

Hex

Decimal

GS ^

1D 5E r r

29 94 t t r

[Range] 0

≤ r ≤ 255

0

≤ t ≤ 255 m=0,1

[Description] Executes a macro.

·r specifies the number of times to execute the macro. m m t m

·t specifies the waiting time for executing the macro.

·m specifies macro executing mode.

When the LSB of m = 0:

The macro executes r times continuously at the interval specified by t.

When the LSB of m = 1:

After waiting for the period specified by t, the PAPER OUT LED

TITLE : WTP-150

Page -73 -

[Details]

[Reference] GS : indicators blink and the printer waits for the FEED button to be pressed. After the button is pressed, the printer executes the macro once. The printer repeats the operation r times.

·The waiting time is t * 100 ms for every macro execution.

·If this command is received while a macro is being defined, the macro definition is aborted and the definition is cleared.

·If the macro is not defined or if r is 0, nothing is executed.

·When the macro is executed (m = 1), paper always cannot be fed by using the FEED button.

GS a

n

[Name] Enable/Disable Automatic Status Back (ASB)

[Format] ASCII GS a

Hex 1D 61

Decimal 29 97 n n n

[Range] 0

≤ n ≤ 255

[Description] Enables or disables ASB and specifies the status items to include, using n as follows:

Bit Off/ On Hex Decimal Status for ASB

0

1

2

Off

On

Off

On

Off

On

00

01

00

02

00

04

0

1

0

2

0

4

Drawer kick-out connector pin 3 status disabled.

Drawer kick-out connector pin 3 status enabled.

On-line/off-line status disabled.

On-line/off-line status enabled

Error status disabled

Error status enabled.

TITLE : WTP-150

Page -74 -

3

Off

On

-

00

08

-

0

8

-

Paper roll sensor status disabled.

Paper roll sensor status enabled.

Undefined. 4– 7

[Details] ·If any of the status items in the table above are enabled, the printer transmits the status when this command is executed. The printer automatically transmits the status whenever the enabled status item changes. The disabled status items may change, in this case, because each status transmission represents the current status.

·If all status items are disabled, the ASB function is also disabled.

·If the ASB is enabled as a default, the printer transmits the status when the printer data reception and transmission is possible at the first time from when the printer is turned on.

·The following four status bytes are transmitted without confirming whether the host is ready to receive data. The four status bytes must be consecutive, except for the XOFF code.

·Since this command is executed after the data is processed in the receive buffer, there may be a time lag between data reception and status transmission.

·When the printer is disabled by ESC = (Select peripheral device), the four status bytes are transmitted whenever the status changes.

·When using DLE EOT, GS I , or GS r, the status transmitted by these commands and ASB status must be differentiated.

·The status to be transmitted are as follows:

First byte (printer information)

Bit Off/On

0 Off

1 Off

2

3

Off

On

Off

On

4

5

6

7

On

Off

On

Off

On

Off

Hex

00

00

00

04

00

08

10

00

20

00

40

00

Decimal Status for ASB

0 Not used. Fixed to Off

0 Not used. Fixed to Off

0

4

0

8

Drawer kick-out connector pin 3 is LOW

Drawer kick-out connector pin 3 is HIGH

On-line

Off-line

16

0

32

0

64

0

Not used. Fixed to On

Cover is closed

Cover is open

Paper is not being fed by using the PAPER FEED button

Paper is being fed by using the PAPER FEED button

Not used. Fixed to Off

Second byte (printer information)

Bit Off / On

0 -

1 -

Hex Decimal Status for ASB

- - Undefined.

- - Undefined.

TITLE : WTP-150

Page -75 -

2

3

4

5

6

-

Off

On

Off

Off

On

Off

On

00

20

00

40

-

00

08

00

0

32

0

64

-

0

8

0

Undefined.

No auto cutter error

Auto cutter error occurred

Not used. Fixed to Off

No unrecoverable error

Unrecoverable error occurred

No automatically recoverable error

Automatically recoverable error occurred

7 Off 00 0 Not used. Fixed to Off

Bit 3: If these errors occur due to paper jams or the like, it is possible to recover by correcting the cause of the error and executing DLE ENQ n (1 ≤ n ≤ 2). If an error due to a circuit failure (e.g. wire break) occurs, it is impossible to recover.

Bit 6: When printing is stopped due to high print head temperature until the print head temperature drops sufficiently or when the paper roll cover is open during printing, bit 6 is On.

Third byte (paper sensor information)

Bit Off / On

Off

0,1

On

Off

2,3

4

5,6

On

Off

-

Hex

00

03

00

0C

00

-

Decimal Status for ASB

0 Paper roll near-end sensor: paper adequate

3

0

Paper roll near-end sensor: paper near end

Paper roll end sensor: paper present

12

0

-

Paper roll end sensor: paper not present

Not used. Fixed to Off

Undefined

7 Off 00 0 Not used. Fixed to Off

Fourth byte (paper sensor information)

Bit

0-3

4

5,6

Off / On Hex Decimal Status for ASB

-

Off

-

-

00

-

-

0

-

Undefined

Not used. Fixed to Off

Undefined

7 Off 00 0

[Default] n = 0.

[Reference] DLE EOT, GS r

Not used. Fixed to Off.

GS f

n

[Name] Select font for Human Readable Interpretation (HRI)characters

[Format] ASCII GS f n

Hex 1D 66 n

Decimal 29 102 n

TITLE : WTP-150

Page -76 -

[Range] n = 0, 1, 48, 49

[Description] selects a font for the HRI characters used when printing a bar code. n selects the font from the following table: n

Font

0, 48

1, 49

Font A (12 x 24)

Font B (9 x 24)

[Details] ·HRI means Human Readable Interpretation.

·HRI characters are printed of the position specified by GS H.

[Default] n = 0

[Reference] GS H, GS k

GS h

n

[Name] Select bar code height

[Format] ASCII GS h n

Hex

Decimal

1D 6B n

29 104 n

[Range] 1

≤ n ≤ 255

[Description] Select the height of the bar code. n specifies the number of dots in the vertical direction.

[Default] n = 162

[Reference] GS k

TITLE : WTP-150

Page -77 -

①GS k m d1…dk NUL ② GS k m n d1…dn

[Name] Print bar code

[Format] ① ASCII GS k m d1…dk NUL

Hex 1D 6B m d1…dn 00

Decimal 29 107 m d1…dn 0

② ASCII GS k m n d1…dn

Hex 1D 6B m n d1…dn

Decimal 29 107 m n d1…dn

[Range] ① 0

≤ m ≤ 6( k and d depends on the code system used)

② 65

≤ m ≤ 73 n and d depends on the code system used)

[Description] Selects a bar code system and prints the bar code. m selects a bar code system as follows: m

Bar Code System

0 UPC – A

1 UPC – E

2 EAN13

3 EAN8

4 CODE39

5 ITF

6 CODABAR

65 UPC – A

66 UPC – E

67 EAN13

68 EAN8

69 CODE39

70 ITF

Number of Character

11

≤ k ≤ 12

11

≤ k ≤ 12

12

≤ k ≤ 13

7

≤ k ≤ 8

1

≤ k

1

≤ k (even number)

1

≤ k

11

≤ n ≤ 12

11

≤ n ≤ 12

12

≤ n ≤ 13

7

≤ n ≤ 8

1

≤ n ≤ 255

1

≤ n ≤ 255

(even number)

Remarks

48

≤ d ≤ 57

48

≤ d ≤ 57

48

≤ d ≤ 57

48

≤ d ≤ 57

48

≤ d ≤ 57, 65 ≤ d ≤ 90,

32,36,37,43,45,46,47

48

≤ d ≤ 57

48

≤ d ≤ 57, 65 ≤ d ≤ 68,

36,43,45,46,47,58

48

≤ d ≤ 57

48

≤ d ≤ 57

48

≤ d ≤ 57

48

≤ d ≤ 57

48

≤ d ≤ 57, 65 ≤ d ≤ 90,

32,36,37,43,45,46,47

48

≤ d ≤ 57

TITLE : WTP-150

Page -78 -

71 CODABAR

72 CODE93

73 CODE128

1

≤ n ≤ 255

1

≤ n ≤ 255

2

≤ n ≤ 255

48

≤ d ≤ 57, 65 ≤ d ≤ 68,

36,43,45,46,47,58

0

≤ d ≤ 127

0

≤ d ≤ 127

[Details for ① ] ·This command ends with a NUL code.

·When the bar code system used is UPC-A or UPC-E, the printer prints the bar code data after receiving 12 bytes bar code data and processes the following data as normal data.

·When the bar code system used is JAN 13, the printer prints the bar code after receiving 13 bytes bar code data and processes the following date as normal data.

·When the bar code system used is JAN 8, the printer prints the bar code after receiving 8 bytes bar code data and processes the following data as normal data.

·The number of data for ITF bar code must be even numbers. When an odd number of data is input, the printer ignores the last received data.

[Details for②] · n indicates the number of bar code data, and the printer processes n bytes from the next character data as bar code data.

·If n is outside of the specified range the printer stops command processing and processes the following data as normal data.

[Details in standard made]

·If d is outside of the specified range, the printer only feeds paper and process the following data as normal data.

·If the horizontal size exceeds printing area, the printer only feeds the paper.

·This command feeds as much paper as is required to print the bar code, regardless of the line spacing specified by ESC 2 or ESC 3.

·This command is enabled only when on data exists in the print buffer.

When data exists in the print butter, the printer processes the data following m as normal data.

·After printing bar code, this command sets the print position to the beginning of the line.

·This command is not affected by print modes (emphasized, doublestrike, underline, character size, white/black reverse printing, or 90˚ rotated character, etc), except for upside-down printing mode.

[Details in page made]

·This command develops bar coed data in the print buffer, but does not print it. After processing bar cod data, this command moves the print position to the right side dot of the bar code.

·If d is out of the specified rang, the printer stops command processing and processes the following data as normal data. In this case, the data butter position does not change.

·If bar code width exceeds the printing area, the printer does not print the bar code but moves the data buffer position to the left side out of the printing area.

·Refer to Figure 3.12.3 for bar code data buffer position.

TITLE : WTP-150

Page -79 -

When CODE93 (m=72) is used :

·The printer prints an HRI character (□ )as start character at the beginning of the HRI character string.

·The printer prints an HRI character(□ )as a stop character at the end of the HRI character string.

·The printer HRI characters (■ +an alphabetic character) as a control character(<00>H to <1F>H and <7F>H):

Control character Control character

HRI character

LF

VT

FF

CR

SO

SI

ASCⅡ Hex Decimal

NUL 00 0

SOH

STX

ETX

EOT

ENQ

ACK

BEL

BS

HT

01

02

03

04

05

06

07

08

09

6

7

8

9

1

2

3

4

5

0A

0B

0C

0D

0E

10

11

12

13

14

[Example]

■ F

■ G

■ H

■ I

■ J

■ K

■ L

■ M

■ N

■ U

■ A

■ B

■ C

■ D

■ E

Hex

10

16

17

18

19

11

12

13

14

15

1A

1B

1C

1D

1E

ASCⅡ

DLE

DC1

DC2

DC3

DC4

NAK

SYN

ETB

CAN

EM

SUB

ESC

FS

GS

RS

Decimal

16

22

23

24

25

17

18

19

20

21

26

27

28

29

30

0F 15 ■ 0 US 1F 31

DEL 7F 127

Printing GS k 72 7 67 111 100 101 13 57 51

HRI character

■ V

■ W

■ X

■ Y

■ Z

■ A

■ B

■ C

■ D

■ E

■ T

■ P

■ Q

■ R

■ S

■ T

■ U

When CODE 128 (m = 73) is used:

·Refer to Appendix J for the information of the CODE 128 bar code and is code table.

·When using the CODE 128 in this printer, take the following points into account for data transmission:

① The top of the bar code data string must be code set selection character (any of CODE A, CODE B or CODE C) which selects the first code set.

② Special characters are defined by combining two characters

TITLE : WTP-150

Page -80 -

[Example]

“ {“ and one character. The ASCⅡ character “ {“ is defined by transmitting “ {“ twice consecutively.

Transmit data

Specific character

ASCⅡ Hex Decimal

SHIFT {S 7B,53 123,83

CODE A

CODE B

CODE C

FNC1

FNC2

FNC3

FNC4

“ {“

{2

{3

{4

{{

{A

{B

{C

{1

7B,41

7B,42

7B,43

7B,31

7B,32

7B,33

7B,34

7B,7B

123,65

123,66

123,67

123,49

123,50

123,51

123,52

123,123

Example data for printing “ No. 123456”

In this example, the printer first prints “ No.” using CODE B, then prints the following numbers using CODE C.

GS k 73 10 123 66 78 111 46 123 67 12 34 56

·If the top of the bar code data is not the code set selection character, the printer stops command processing and processes the following data as normal data.

·If combination of “ {“ and the following character does not apply any special character, the printer stops command processing and processes the following data as normal data.

·If the printer receives characters that cannot be used in the special code set, the printer stops command processing and processes the following data as normal data.

·The printer does not print HRI characters that correspond to the shift characters or code set selection characters.

·HRI character for the function character is space.

TITLE : WTP-150

Page -81 -

<Others>

·HRI characters for the control character (<00>H to <1F>H and <7F>H)are space.

Be sure to keep spaces on both right and left sides of a bar code.

(Spaces are different depending on the types of the bar code.)

[Reference]

GS r

n

GS H, GS f, GS h, GS w

[Name] Transmit status

[Format] ASCII GS r n

Hex 1D 72 n

Decimal 29 114 n

[Range] n=1, 2, 49, 50

[Description] Transmits the status specified by n as follows:

TITLE : WTP-150

Page -82 -

n Function

1,49

2,50

Transmits paper sensor status

Transmits drawer kick-out connector status

[Details] ·When using a serial interface

·When DTR/DSR control is selected, the printer transmits only 1 byte after confirming the host is ready to receive data (DSR signal is SPACE). If the host computer is not ready to receive data (DSR signal is MARK), the printer waits until the host is ready.

When XON/XOFF control is selected, the printer transmits only 1 byte without confirming the condition of the DSR signal.

·This command is executed when the data in the receive buffer is developed. Therefore, there may be a time lag between receiving this command and transmitting the status, depending on the receive buffer status.

·When Auto Status Back (ASB) is enabled using GS a, the status transmitted by GS r and the ASB status must be differentiated using the table in Appendix G.

·The status types to be transmitted are shown below:

Paper sensor status ( n = 1, 49):

Bit Off / On Hex Decimal Status for ASB

0,1

2,3

4

5,6

7

Bits 2 and 3:

Off

On

Off

On

Off

-

Off

00

03

00

(0C)

00

-

00

0

3

0

(12)

0

-

0

Paper roll near-end sensor: paper adequate.

Paper roll near-end sensor: paper near end.

Paper roll end sensor: paper adequate.

Paper roll end sensor: paper near end.

Not used. Fixed to Off.

Undefined.

Not used. Fixed to Off.

When the paper end sensor detects a paper end, the printer goes off-line and does not execute this command. Therefore, bits 2 and 3 do not transmit the status of paper end.

Drawer kick-out connector status ( n = 2, 50):

Bit

0

1-3

4

5,6

7

Off / On Hex

Off

On

00

01

-

Off

-

Off

-

00

-

00

Decimal

0

1

-

0

-

0

Function

Drawer kick-out connector pin 3 is LOW.

Drawer kick-out connector pin 3 is HIGH.

Undefined.

Not used. Fixed to Off.

Undefined.

Not used. Fixed to Off.

[Reference] DLE EOT, GS a

GS v 0 m xL xH yL yH d1....dk

TITLE : WTP-150

Page -83 -

[Name]

[Format] d1...dk

Print raster bit image

ASCII GS v 0 m xL xH yL yH d1...dk

Hex 1D 76 30

Decimal

m xL xH yL yH d1...dk

29 118 48 m xL xH yL yH

[Range] 0

≤ m ≤ 3, 48 ≤ m ≤ 51

0

≤ xL ≤ 255

0

≤ xH ≤ 255

0

≤ yL ≤ 255

0

≤ yH ≤ 8

0

≤ d ≤ 255 k=(xL + xH x 256) x (yL + yH x 256) (k≠ 0)

[Description] Selects Raster bit-image mode.

The value of m selects the mode, as follows: m Mode Vertical Dot Density Horizontal Dot Density

0, 48

1, 49

2, 50

Normal

Double-width

Double-height

3, 51 Quadruple

[dpi : dots per 25.4mm {1” }]

180 dpi

180 dpi

90 dpi

90 dpi

180 dpi

90 dpi

180 dpi

90 dpi

·xL, xH, select the number of data bytes (xL+xH

×256) in the horizontal direction for the bit image.

·yL, yH, select the number of data bytes (xL+xH

×256) in the vertical direction for the bit image.

[Details] ·In standard mode, this command is effective only when there is no data in the print buffer.

·This command has no effect in all print modes (character size, emphasized, double-strike, upside-down, underline, white/black reverse printing, etc.) for raster bit image.

·If the printing area width set by GS L and GS W is less than the minimum width, the printing area is extended to the minimum width only on the line in question. The minimum width means 1 dot in normal (m=0,48) and double-height (m=2,50), 2dots in double-width (m=1,49) and quadruple

TITLE : WTP-150

Page -84 -

(m=3,51) modes.

·Data outside the printing area is ready in and discarded on a dot-by-dot basis.

·The position at which subsequent characters are to be printed for raster bit image is specified by HT(Horizontal Tab) ESC $ (Set absolute print position), ESC \ (Set relative print position), and GS L (Ste left margin).

If the position at which subsequent characters are to be printed is not a multiple of 8, print speed may decline.

·The ESC a (Select justification) setting is also effective on raster bit image.

·When this command is received during macro definition, the printer ends macro definition, and begins performing this command. The definition of the command should be cleared.

·d indicates the bit-image data. Set time a bit to 1 prints a dot and setting it to 0 does not print a dot.

GS w

n

[Name]

[Format]

Set bar code width

TITLE : WTP-150

ASCII GS w n

Hex 1D 77 n

Decimal 29 119 n

Page -85 -

[Range] n

2

2

≤ n ≤ 6

[Description] Set the horizontal size of the bar code. n specifies the bar code width as follows:

Module width (mm) for

Mult-level Bar code

0.282

Binary-level Bar Code

Thin element width (mm)

0.282

Thick element width (mm)

0.706

3

4

5

6

0.423

0.564

0.706

0.847

0.423

0.564

0.706

0.847

1.129

1.411

1.834

2.258

·Multi-level bar codes are as follows:

UPC-A, UPC-E, JAN13 (EAN13), JAN8 (EAN8), CODE93, CODE128

·Binary-level bar codes are as follows:

CODE39, ITF, CODABAR n = 3

[Default]

[Reference] GS k

ESC i

[Name]

[Format] ASCII

Hex

Execute paper full cut.

Decimal

ESC i

1B 69

27 105

[Description] When this command is received, paper is cut (only when the auto cutter is loaded).

ESC m

[Name] Execute paper partial cut.

[Format] ASCII

Hex

Decimal

ESC m

1B 6D

27 109

[Description] When this command is received, paper is cut (only when the auto cutter is loaded).

TITLE : WTP-150

Page -86 -

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement