Citizen CMP-10 Printer User Manual


Add to my manuals
74 Pages

advertisement

Citizen CMP-10 Printer User Manual | Manualzz

Command Reference

MOBILE LINE THERMAL PRINTER

MODEL

CMP-10

Rev. 2.00 Revised on June 30, 2003

REVISION

Rev. No.

Rev. 1.00

Rev. 1.01

Rev. 1.02

Rev. 2.00

Date

2002/11/15

2002/12/18

2003/01/17

2003/06/30

Comment

Newly issued

Revised P. 1, P. 2, P. 47, P. 54, P. 56, P. 59

Added Chapter 3 (Character Codes Table) and Chapter 4

Added ESC >, ESC l, FF (Firmware Ver. 1.95)

Revised GS )

Added Chapter 5 to Chapter 10

1. CMP-10 COMMAND SET

Code

1 BEL

2 HT

3 LF

4 CR

5 ESC RS

6 ESC SP

7 ESC !

8 ESC $

9 ESC %

10 ESC &

11 ESC *

12 ESC +

13 ESC –

14 ESC .

15 ESC 2

16 ESC 3

17 ESC =

18 ESC >

19 ESC ?

20 ESC @

21 ESC D

22 ESC E

23 ESC G

24 ESC J

25 ESC R

26 ESC S

27 ESC T

28 ESC V

29 ESC Y

30 ESC Z

31 ESC \

32 ESC _

33 ESC `

34 ESC a

35 ESC c5

36 ESC d

37 ESC v

38 ESC x

39 ESC {

40 GS )

41 GS *

42 GS /

43 GS :

Sounds the Buzzer

Horizontal Tab Command

Command Function

Printing and Paper Feed Command

Print one line Command

Sounds the Buzzer

Setting the right space amount of the character

Collective Specifying Printing Mode

Specifying the Absolute Positions

Specifying/Canceling Download Character Set

Define user characters

Specifying the Bit Image Mode

Switch OFF the printer

Specifying/ Canceling Underline

Printer self test

Specifying 1/6-inch line feed rate

Setting line feed rate of minimum pitch

Data Input Control

Saving current setting

Reading magnetic stripe reader

Initializing the Printer

Setting Horizontal Tab Position

Specifying/canceling highlighting

Specifying/canceling Double Printing

Printing and feeding paper n/203 inch

Selecting Code table

Setting serial interface communication speed

Printing Diagnostic information

Specifying/Canceling 90°-right- turned

Characters

Specifying print density

Returning diagnostic information

Specifying the relative positions

Setting the printer in default state

Returning the battery voltage and Printer

Head temperature

Aligning the characters

Enabling/Disabling Panel Switches

Printing and Feeding the paper by n lines

Transmitting the printer status

Selecting the time interval for automatically switching Off the printer

Specifying/Canceling the Inverted Characters

Setting of printer flags

Defining the Download Bit Image (LOGO)

Printing the Download, Bit Image

Starting/Ending Macro Definition

— 1 —

40

41

42

43

44

45

35

36

37

38

39

21

22

23

24

25

18

18

19

20

26

27

27

28

28

8

9

11

12

13

14

17

17

Page

4

5

6

7

7

29

30

31

34

34

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*

Code

44 GS H

45 GS L

46 GS W

47 GS ^

48 GS a

49 GS f

50 GS h

51 GS k

52 GS w

53 ESC l

54 FF

Command Function

Selecting of Printing Position of HRI Code

Setting the left margin

Setting the print area width

Executing the Macro

Enabling/Disabling

ASB (Automatic Status Back)

Selecting the font of HRI characters

Selecting the height of the Bar Code

Printing the bar code

Selecting the horizontal size (Scale factor) of the Bar Code

Specify/canceling black mark function

Printing and paper feeding to the black mark position

* indicates a unique command or a non-compatible command.

50

53

54

55

60

62

62

Page

46

47

48

49

— 2 —

2. COMMAND DETAILS

2.1 Description of Items

XXXX ALL

[Function]

[Code]

[Range]

Command Function

A sequence of code constituting a command is represented in hexadecimal number for < >H, binary number for < >B, and decimal number for < >, respectively; [ ]k represents a repeat count of k-times.

Indicates an argument value (setting range) for the command in hexadecimal number

(partly in decimal number).

* When used for application other than defined in each control, an error may occur.

Always use in the defined range.

Describes a command outline.

Describes a caution as required.

[Outline]

[Caution]

[Default]

Describes an initial value in hexadecimal number for the command when accompanied by an argument.

Describes the associated commands for use.

[See Also]

[Sample Program]

Describes a coding example in the Q-BASIC sample program.

* This example is only for your reference and differs depending on the language used, version, and so on. For details, see the manual for the language used.

— 3 —

BEL

[Function]

[Code]

[Outline]

Sounds the Buzzer

<07>H

By executing this command the buzzer will beep.

This command functions in the same manner as ESC RS.

— 4 —

HT

[Function]

[Code]

[Outline]

[Caution]

Horizontal Tab Command

<09>H

Shifts the printing position to the next horizontal tab position.

• Ignored when the next horizontal tab position has not been set.

• The horizontal tab position is set by ESC D.

• Initial setting of the horizontal tab position is each 8 characters in 9th, 17th, 25th, columns from FONT A.

[See Also]

[Sample Program]

ESC D

PRINT #1, “0123456789012345678901”;

PRINT #1, CHR$ (&HA);

PRINT #1, CHR$ (&H9) + “AAA”;

PRINT #1, CHR$ (&H9) + “BBB”;

PRINT #1, CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “D”;

PRINT #1, CHR$ (3) + CHR$ (7) + CHR$ (14) + CHR$ (0);

PRINT #1, CHR$ (&H9) + “AAA”;

PRINT #1, CHR$ (&H9) + “BBB”;

PRINT #1, CHR$ (&H9) + “CCC” + CHR$ (&HA);

[Print Results]

123456789012345678901

AAA BBB

← Initially set horizontal tab

AAA BBB CCC

← When set to the 4th, 8th, and 15th digits

— 5 —

LF

[Function]

Printing and Paper Feed Command

[Code]

[Outline]

[See Also]

[Sample Program]

<0A>H

Prints data inside the input buffer and feeds lines based on the line feed amount having been set.

• The head of the line becomes the next print starting position.

ESC 2, ESC 3

PRINT #1, “AAA” + CHR$ (&HA);

PRINT #1, “BBB” + CHR$ (&HA);

PRINT #1, CHR$ (&HA);

PRINT #1, “CCC” + CHR$ (&HA);

[Print Results]

AAA

← Print and line feed

BBB

← Print and line feed

← Line feed only

CCC

← Print and line feed

— 6 —

CR

[Function]

[Code ]

[Outline]

[Default]

[See Also]

Print one line Command

<0D>H

This command is ignored or its action is the same as LF depending on the last execution of GS ) 2 command (FLAG SETTING COMMAND).

If Flag 2 is 0, carriage return (CR) command is ignored.

If Flag 2 is 1, CR comamnd will act as LF command.

CR command is ignored. If you want that it acts like LF command set flag 2 to 1 by

GS ) command.

GS )

ESC RS

[Function]

[Code]

[Outline]

Sounds the Buzzer

<1B>H<1E>H

By executing this command the buzzer will beep.

This command functions in the same manner as BEL.

— 7 —

ESC SP n

[Function]

[Code]

[Range]

[Outline]

[Caution]

Setting the right space amount of the character

<1B>H<20>H<n>

{0 =< n =< 20(Hex)}

The rightward space amount is set in dot unit (1/203 inch unit).

The rightward space amount in doublewide mode is made double of the set volume.

[Default]

[Sample Program]

n = 0

PRINT #1, CHR$ (&H1B) + “ “ + CHR$ (0);

PRINT #1, “AAAAA” + CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “ “ + CHR$ (1);

PRINT #1, “AAAAA” + CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “ “ + CHR$ (12);

PRINT #1, “AAAAA” + CHR$ (&HA);

[Print Results]

AAAAA

A A A A A

← 0-dot space

← 1-dot space

A A A A A

← 12-dot space

— 8 —

ESC ! n

[Function]

[Code]

[Range]

[Outline]

[Caution]

[Default]

[See Also]

Collective Specifying Printing Mode

<1B>H<21>H<n>

{0 =< n =< FF(Hex)}

Printing mode is assigned.

Bit

0

3

4

1

2

5

6

7

Character Font

Undefined

Undefined

High-lighting

Double height

Double width

Undefined

Underline

Function

0

Font A

Value

Canceled

Canceled

Canceled

1

Font B

Specified

Specified

Specified

Canceled Specified

Each n bit indicates the following:

• With double height and double width being specified simultaneously, double wide and double high characters are consisted.

• An underline is attached to the full character width, which, however, is not attached to the part having been skipped by the horizontal tab.

Neither is it attached to 90°-right-turned characters.

• The underline width is as having been specified by <ESC ->. (The default setting is

1 dot width.)

• n case that double wide character and normal character exist in same one line, the layout of underline is consistent one.

n = 0

ESC E, ESC –

— 9 —

[Sample Program]

PRINT #1, CHR$(&H1B) + “!” + CHR$(&H00) + “H” ;

PRINT #1, CHR$(&H1B) + “!” + CHR$(&H01) + “H” ;

PRINT #1, CHR$(&H1B) + “!” + CHR$(&H08) + “H” ;

PRINT #1, CHR$(&H1B) + “!” + CHR$(&H10) + “H” ;

PRINT #1, CHR$(&H1B) + “!” + CHR$(&H20) + “H” ;

PRINT #1, CHR$(&H1B) + “!” + CHR$(&HB9) + “H” ;

PRINT #1, CHR$(&HA) ;

END

[Print Results]

Font A

Font B

Font A + Emphasis

Font B + Emphasis + Quadruple + Underline

Font + Underline

Font A + Double Width

Font A + Double Height

— 10 —

ESC $ n1 n2

[Function]

Specifying the Absolute Positions

[Code]

[Range]

[Outline]

[Caution]

[Default]

[See Also]

[Sample Program]

<1B>H<24>H<n1><n2>

{0 =< n1 =< FF(Hex)}

{0 =< n2 =< 1(Hex)}

The printing start position is specified in the number of dots (1/203 inch unit) from the beginning of line.

• The number of dots is divided by 256, whose quotient is taken as n2 and the residual as n1.

• Therefore, the printing start position is equal to n1 + n2

× 256 from the beginning of line.

Specifying beyond the line end is ignored.

The initial value is not specified.

ESC \

PRINT #1, CHR$ (&H1B) + “$”;

PRINT #1, CHR$ (0) + CHR$ (0) + “A”;

PRINT #1, CHR$ (&H1B) + “$”;

PRINT #1, CHR$ (50) + CHR$ (0) + “B”;

PRINT #1, CHR$ (&H1B) + “$”;

PRINT #1, CHR$ (0) + CHR$ (1) + “C”;

PRINT #1, CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “$”;

PRINT #1, CHR$ (100) + CHR$ (0) + “A”;

PRINT #1, CHR$ (&H1B) + “\”;

PRINT #1, CHR$ (&HC2) + CHR$ (&HFF) + “B”;

PRINT #1, CHR$ (&HA);

[Print Results]

0 50 100 256

A B

B A

>

>

C

— 11 —

ESC % n

[Function]

[Code]

[Range]

[Outline]

[Caution]

[Default]

[See Also]

Specifying/Canceling Download Character Set

<1B>H<25>H<n>

{0 =< n =< FF(Hex)}

Specifying/canceling download characters.

Further, only the lowest bit (n0) is valid for n.

n (Hex)

0

1

Function

Selecting download character set

Canceling download character set

This setting cannot be restored to initial value even with Initialize command or by turning power OFF. It can be restored to the initial value by ESC _, a command for returning to initial state.

n = 0

ESC &

— 12 —

ESC & m n1 n2 [d] k

[Function]

[Code]

[Range]

[Outline]

[Caution]

Define user characters

<1B>H<26>H<m><n1><n2>[<d>]k

{m = 0, 1, 2, 3(Hex)}

{20 =< n1 =< FF(Hex)}

{n1 =< n2 =< FF(Hex)}

{k=(n2-n1+1)*48} (m=2)

{k=(n2-n1+1)*16} (m=3)

Defines a group of user characters.

m=0: Copy internal character set A to user character set A

(Parameters n1, n2 and d are omitted) m=1: Copy internal character set B to user character set B

(Parameters n1, n2 and d are omitted) m=2: For Font A (12

× 24), n1 denotes Start character code and n2 End character code. Every character is 48 bytes, two bytes for each line. Only the first nibble of the second byte is used.

m=3: Define character group with ASCII codes between >= n1 and =< n2 for character set B (9

× 16). Every character is 16 bytes.

The data for character set A is composed from left to right and from top to bottom with two bytes for each horizontal line. The first byte contains the first 8 bits with the left most bit is MSB. From the second byte only the first nibble (the most significant

4 bits) is valid.

The data for character set B is composed from left to right and from top to bottom with only one byte for each horizontal line. The nineth bith is alawys 0.

Downloaded characters are valid even after switching off the printer or after issuing

Initialize command.

Download character

Font A (12

× 24)

(Last 4 bits are not used and fixed as zero.) d1 d3 d5 d7 d9 d2 d4 d6 d8 d10

Font B (9

× 16)

(9th dot is fixed as space.) d1 d2 d3 d4 d5

16

24 d14 d15 d16

8 7 6 5 4 3 2 1 d43 d45 d47 d44 d46 d48

MSB 0 0 0 0

8 7 6 5 4 3 2 1

LSB

— 13 —

ESC * m n1 n2 [d] k

[Function]

Specifying the Bit Image Mode

[Code]

[Range]

[Outline]

[Caution]

<1B>H<2A>H<m><n1><n2> [d] k

{m= 0, 1, 20, 21(Hex)}

{0 =< n1 =< FF(Hex)}

{0 =< n2 =< 1(Hex)}

{0 =< d =< FF(Hex)}

{k = n1 + FF(Hex) x n2} (m=0, 1(Hex)) Number of bytes containing image data

{k = (n1 + FF(Hex) x n2) x 3} (m=20, 21(Hex)) Number of bytes containing image data

According to the number of dots specified in n1, n2, specify the bit image of mode m.

• The No. of dots printed is divided by 256, whose quotient is taken as n2 and residual as n1.

• Bit image data is sent starting from the top to bootom and from the left to right

(vertical columns scanning). In modes m=0, and 1 only one byteper column is sent and in mode m-20h, 21h 3 bytes for each column are sent.

• d is bit image data, the bits subject to printing are taken as “1” and those not as

“0”.

• The bit image modes specified by m are shown as follows:

m (Hex)

0

1

20

21

Mode

8-dot single density

8-dot double density

24-dot single density

24-dot double density

Vertical Direction Horizontal Direction

Dots Dot Density Dot Density Max. Dots

8

8

24

24

67 DPI

67 DPI

203 DPI

203 DPI

101 DPI

203 DPI

101 DPI

203 DPI

192

384

192

384

• When the values set in m (bit image mode) are out of the above range, the data following after n1 is processed as normal printing data.

• After completion of bit image printing, printer returns to normal data processing mode.

• Line space is automatically set to 0.

— 14 —

[Sample Program]

PRINT #1, CHR$(&H1B) + “ * ”;

PRINT #1, CHR$(0) + CHR$(20) + CHR$(0);

GOSUB IMG1

PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&H1B + “ * ”;

PRINT #1, CHR$(1) + CHR$(20) + CHR$(0);

GOSUB IMG1

PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&H1B) + “ * ”;

PRINT #1, CHR$(32) + CHR$(20) + CHR$(0);

GOSUB IMG2

PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&H1B) + “ * ”;

PRINT #1, CHR$(33) + CHR$(20) + CHR$(0);

GOSUB IMG2

PRINT #1, CHR$(&HA);

END

IMG1:

PRINT #1, CHR$(&HFF);

FOR I=1 TO 18

PRINT #1, CHR$(&H85);

NEXT I

PRINT #1, CHR$(&HFF);

RETURN

IMG2:

PRINT #1, CHR$(&HFF);

PRINT #1, CHR$(&HFF);

PRINT #1, CHR$(&HFF);

FOR I=1 TO 18

PRINT #1, CHR$(&H80);

PRINT #1, CHR$(&H00);

PRINT #1, CHR$(&H05);

NEXT I

PRINT #1, CHR$(&HFF);

PRINT #1, CHR$(&HFF);

PRINT #1, CHR$(&HFF);

RETURN

[Print Results]

← 8-dot single density

← 8-dot double density

← 24-dot single density

← 24-dot double density

— 15 —

This command has one more version.

[Function]

[Code]

[Range]

Specifying the Bit Image Mode (PCX format)

<1B>H<2A>H<m><n>{<a><00>H} [d]k

[Outline]

{m= 10, 11 or 12(Hex)}

{0 =< n =< 30(Hex)}

{0 =< a =< 18(Hex)}

{0 =< d =< FF(Hex)}

{0 =< k =< n x 18(Hex)}

Designates a bit image of n*8 dots horizontal by 24 or a dots vertical.

Dot density is fixed at 203 dpi both horizontally and vertically.

Bit image mode selected by the value of m is shown in the following table.

m (Hex)

10

11

12

Type

Non-compressed data of 24 dots vertical

(Argument “a” and 00(Hex) are not used.)

Compressed data of 24 dots vertical

(Argument “a” and 00(Hex) are not used.)

Compressed data of a dots vertical n denotes the number of bytes for horizontal size of a bit image.

d denotes a graphic data.

In 10(Hex) mode, data is in n

× 24 bytes.

For data in 11(Hex) mode, the size in non-compressed format shall be n

× 24 bytes.

For data in 12(Hex) mode, the size in non-compressed format shall be n

× a bytes.

Compression system in 11(Hex) and 12(Hex) is the same as that for PCX file format

(monochrome). The printer receives the compressed data, reproduces it in the following format and prints as bit-image data.

A If either of upper two bit of input byte is 0, the byte is treated as graphic data.

If both of upper two bit of graphic data to be printed are 0, it is necessary to send the data to printer in “B” format described below.

B If both of upper two bit of input byte are 0, the remaining 6 bit specifies the times the data is repeated. The number of times to be repeated is specified in 0-3F(Hex).

The byte follows this byte is treated as graphic data to be repeated.

Graphics data should line up from left to right and from top to bottom.

— 16 —

ESC +

[Function]

[Code]

[Range]

[Outline]

Switch OFF the printer

<1B>H<2B>H

None

This command is used for switching off the printer from the host.

Sending this command causes the same operation as that by setting the power switch to off.

ESC – n

[Function]

[Code]

[Range]

[Outline]

[Caution]

Specifying/ Canceling Underline

<1B>H<2D>H<n>

{0 =< n =< 02(Hex)}

Specifying/canceling an underline.

• Types of underlines by n value are shown below:

n (Hex)

0

1

2

Type

Canceling an underline.

Specifying an underline for 1-dot width.

Specifying an underline for 2-dots width.

• An underline is attached to the full character width. It is, however, not attached to the part having been skipped by horizontal tab command.

• An underline is not attached to a 90°- right-turned characters.

n = 0

[Default]

[See Also]

ESC !

[Sample Program]

PRINT #1, CHR$ (&H1B) + “–” + CHR$ (0);

PRINT #1, “AAAAA” ;

PRINT #1, CHR$ (&H1B) + “–” + CHR$ (1);

PRINT #1, “AAAAA” + CHR$ (&HA);

[Print Results]

>

>

A A A A A A A A A A

>

Underline Specified

— 17 —

ESC .

[Function]

[Code]

[Range]

[Outline]

[See Also]

Printer self test

<1B>H<2E>H

None

Prints test page, downloaded bit image, and self-diagnostic information. The selfdiagnostic information includes print density, print head temperature, battery voltage,

Serial or IrDA interface, baud rate, and memory switch setting.

ESC T

ESC 2

[Function]

[Code]

Specifying 1/6-inch line feed rate

<1B>H<32>H

[Outline]

[Sample Program]

The line feed rate per line is specified by 1/6 inch.

PRINT #1, “AAAAA” + CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “3” + CHR$ (0);

PRINT #1, “AAAAA” + CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “3” + CHR$ (50);

PRINT #1, “AAAAA” + CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “2”;

PRINT #1, “AAAAA” + CHR$ (&HA);

PRINT #1, “AAAAA”;

PRINT #1, CHR$ (&H1B) + “J” + CHR$ (100);

PRINT #1, “AAAAA” + CHR$ (&HA);

PRINT #1, “AAAAA” + CHR$ (&HA);

[Print Results]

A A A A A

A A A A A

A A A A A

1/6-inch line feed

0/203-inch line feed

50/203-inch line feed

A A A A A

A A A A A

1/6-inch line feed

100/203-inch line feed

A A A A A

A A A A A

1/6-inch line feed

— 18 —

ESC 3 n

[Function]

[Code]

[Range]

[Outline]

Setting line feed rate of minimum pitch

<1B>H<33>H<n>

{0 =< n =< FF(Hex)}

The line feed rate per line is specified by n/203 inch.

[Default]

n = 22(Hex) 1/6-inch

[Sample Program]

See Sample Program and Print Results for ESC 2.

— 19 —

ESC = n

[Function]

[Code]

[Range]

[Outline]

[Caution]

Data Input Control

<1B>H<3D>H<n>

{0 =< n =< FF(Hex)}

Selecting equipment in which data input from the host is effective.

• Each bit of n indicates as follows:

Bit Equipment

0

Invalid

Value

1

Valid 0

3

4

1

2

5

6

7

Printer

Not defined

Not defined

Not defined

Not defined

Not defined

Not defined

Not defined

• When the printer has not been selected, this printer abandons all the received data until it is selected by this command.

• Even when the printer has not been selected, it can become BUSY state through printer operation.

• When the printer is deselected, this printer discards all the data until it is selected with this command.

[Default]

[Sample Program]

The initial value of n is “1”.

PRINT #1, “AAAAA”;

PRINT #1, CHR$ (&H1B) + “=” + CHR$ (0);

PRINT #1, “aaaaa” + CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “=” + CHR$ (1);

PRINT #1, “AAAAA” + CHR$ (&HA);

[Print Results]

A A A A A A A A A A

a a a a a

— 20 —

ESC > n

[Function]

[Code]

[Range]

[Outline]

[Caution]

[Default]

[See Also]

Saving current setting

<1B>H<3E>H<n> n = 0 or 1

This command saves International character, Serial port baud rate, Print density, Auto power off time and maximum speed at Infrared communication to NV memory so that the setting can be resumed automatically when power on after setting data on

RAM memory is gone by like battery is disconnected.

n (Hex)

0

1

Type

Max speed at Infrared communication is 115200 bps.

Max speed at Infrared communication is 57600 bps.

Do NOT use this command frequently.

NEVER turn the printer off during command is running. Otherwise there is a risk to lose the firmware updating function.

Power is turned off automatically when setting is saved.

n = 0

ESC R, ESC S, ESC Y, ESC x

— 21 —

ESC ? n

[Function]

[Code]

[Range]

[Outline]

[Caution]

Reading magnetic stripe reader

<1B>H<3F>H<n>

{0 =< n =< 7(Hex)}

When the command is received the bicolor LED is shining in RED and the printer is waiting for the magnetic card to be swiped through the reader. If even after 10 seconds the card is not swiped the command is aborted automatically.

Printer returns the information read from the tracks followed by 00(Hex).

Reads the data of the track in the following table by the value of n.

Track n (Hex)

0

1

4

5

2

3

6

7

Invalid

Track 1

Track 2

Track 1 and 2

Track 3

Invalid

Track 2 and 3

Invalid

The format of the data read is as follows.

Track Header Card data Footer

Track

Header

Track 1 is F1 (Hex)

Track 2 is F2 (Hex)

Track 3 is F3 (Hex)

Track 1: “%”

Track 2: “;”

Card data

Footer

Track 3: “+” or “;”

ASCII data

“?”

If reading track is more than one (n=3 or 6), footer data of track 1 or 2 is followed by track data of track 2 or 3.

The command for reading multiple tracks at a time may often result in read error.

If reading is unsuccessful, repeat it.

— 22 —

ESC @

[Function]

[Code]

[Outline]

[Caution]

Initializing the Printer

<1B>H<40>H

Clears data stored in the print buffer and brings various settings to the initial state

(Default state). Items not cleared are as shown below.

• Data inside the internal input buffer are not cleared.

• Does not clear any data in the internal input buffer.

• Does not clear downloaded characters.

• Does not clear defined downloaded characters.

• Does not clear defined downloaded bit image.

• Does not clear defined macro.

• Does not clear setting for print density.

• Does not clear baud rate setting of serial port.

• Does not clear valid/invalid setting for panel switch.

• Does not clear ASB mode setting.

• Does not clear setting for auto power-off time.

• Does not clear memory switch.

At power off, the following settings are cleared in addition to the items cleared by this command.

• Clears input buffer.

• Clears macro.

• Return ASB mode according to the memory switch setting.

• Clears valid/invalid setting for panel switch.

[Sample Program]

PRINT #1, CHR$ (&H1B) + “ ! “ + CHR$ (&H30) ;

PRINT #1, CHR$ (&H1B) + “V” + CHR$ (1);

PRINT #1, “AAA” + CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “@”;

PRINT #1, “AAA” + CHR$ (&HA);

[Print Results]

A A A

— 23 —

ESC D [ n ] k NUL

[Function]

Setting Horizontal Tab Position

[Code]

[Range]

[Outline]

[Caution]

<1B>H<44>H [ <n> ] k<00>H

{0 =< n =< FF(Hex)}

{0 =< k =< 20(Hex)}

Specifying a horizontal tab position.

• “n” indicates the no. of columns from the beginning to the horizontal tab position.

At this time, n= set position – 1 is to be specified. For example, to set the position at 9th column, n=8 is to be specified.

• k denotes the number of horizontal tab positions you want to set.

• The tab position is set at position where it is “character width

× n” from the line beginning. The character width, at this time, includes the rightward space amount.

In double wide characters, it is made double of the ordinary case.

• Tab positions can be specified are maximum 32. Specifying exceeding this is ignored. <n> k, which denotes a setting position, is input in the increasing order and ends at <00> H.

• ESC D NUL clears all the set tab positions. Following clearing, horizontal tab command is ignored.

When the data, <n> k, is equal to or smaller than its preceding data, <n> k-1, it is assumed that tab setting is finished. If this is the case, the next data onward will be processed as normal data. When the data, <n> k, exceeds a 1-line print area, set the horizontal tab position, assuming “Set digit position = Maximum print digits + 1.”

The horizontal tab position does not change even if the character width is altered after setting the horizontal tab position.

[Default]

[See Also]

Initial value is specified every eight characters (9th, 17th, 25th, and on) of Font A.

HT

[Sample Program]

[Print Results]

See Sample Program and Print Results for HT.

— 24 —

ESC E n

[Function]

[Code]

[Range]

[Outline]

[Caution]

Specifying/canceling highlighting

<1B>H<45>H<n>

{0 =< n =< FF(Hex)}

Specifying/canceling the highlighting characters.

• “n” is valid only for the lowest bit (n0).

n (Hex)

0

1

Canceling highlighting.

Specifying highlighting.

Type

• This is effective only for font A (12

× 24 dots)

• Dot configuration of a highlighted character includes one extra dot added at its side.

The double printing and highlighted character printing commands provide exactly the same operation.

n = 0

[Default]

[See Also]

[Sample Program]

ESC !

PRINT #1, CHR$ (&H1B) + “E” + CHR$ (0);

PRINT #1, “AAABBB” + CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “E” + CHR$ (1);

PRINT #1, “AAABBB” + CHR$ (&HA);

[Print Results]

A A A B B B

←

Highlighting canceled

A A A B B B

←

Highlighting canceled

— 25 —

ESC G n

[Function]

[Code]

[Range]

[Outline]

[Caution]

Specifying/canceling Double Printing

<1B>H<47>H<n>

{0 =< n =< FF(Hex)}

Specifying/canceling the double printing.

• “n” is valid only for the lowest bit (n0).

• Control by n is shown as follows.

n (Hex)

0

1

Canceling double printing.

Specifying double printing.

Type

• This is effective to font A (12

× 24 dots)

• The print result of Double printing and highlight character printing is completely same.

n = 0

[Default]

[See Also]

[Sample Program]

ESC E

PRINT #1, CHR$ (&H1B) + “G” + CHR$ (0);

PRINT #1, “AAABBB” + CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “G” + CHR$ (1);

PRINT #1, “AAABBB” + CHR$ (&HA);

[Print Results]

A A A B B B

←

Highlighting canceled

A A A B B B

←

Highlighting canceled

— 26 —

ESC J n

[Function]

[Code]

[Range]

[Outline]

Printing and feeding paper n/203 inch

<1B>H<4A>H<n>

{0 =< n =< FF(Hex)}

Prints data in the print buffer and feeds paper by n/203 inch.

• This function is temporary and does not affect the feed operation thereafter.

• The beginning of the line is to be considered as the next printing start position.

[Default]

Initial value is not defined.

[Sample Program]

See Sample Program and Print Results for ESC 2 on Page 18.

ESC R n

[Function]

[Code]

[Range]

[Outline]

[Default]

[See Also]

Selecting Code table

<1B>H<52>H<n>

{0 =< n =< D(Hex)}

A

B

C

D

7

8

5

6

9

n (Hex)

0

3

4

1

2

U.S.A.

France

Germany

U.K.

Denmark I

Sweden

Italy

Spain I

Japan

Norway

Denmark II

Spain II

Latin America

Korea

Selects the necessary code table

Character Set

n = 0

Character Code Table (International Character Set)

— 27 —

ESC S n

[Function]

[Code]

[Range]

[Outline]

[Default]

Setting serial interface communication speed

<1B>H<53>H<n>

{0 =< n =< 6(Hex)}

{30 =< n =< 36(Hex)}

n (Hex)

0, 30

1, 31

2, 32

3, 33

4, 34

5, 35

6, 36

1200

2400

4800

9600

19200

57600

115200

Speed (bps)

Sets the communication speed for the serial interface.

The command is valid only when the printer is connected through a serial cable. It is not valid when using IrDA interface. The last setting is valid even after the printer is switched OFF.

The default value is 3 [9600 BPS]

ESC T

[Function]

[Code]

[Outline]

[See Also]

[Print Results]

Printing Diagnostic information

<1B>H<54>H

Prints current printer attributes and diagnostics.

ESC .

CITIZEN Mobile Printer

/////////////////////////////////////////////

Model CMP-10 Ver x.xxXX

Intensity:

Timeout:

100%

10 min

Temperature: 27°C

Battery:

Mode:

Speed:

Switches:

7.5V [**...]

RS232

9600 bps

0 0 0 0 0 0 0 0

— 28 —

ESC V n

[Function]

[Code]

[Range]

[Outline]

Specifying/Canceling 90°-right- turned Characters

<1B>H<56>H<n>

{0 =< n =< 1(Hex)}

Specifying/canceling characters 90°-right- turned character.

“n” means the followings.

n (Hex)

0

1

Condition

Canceling 90°-right- turned Characters

Specifying 90°-right- turned Characters

No underlines are attached to 90°-right- turned characters.

The initial value of n is “0”.

[Caution]

[Default]

[Sample Program]

PRINT #1, CHR$ (&H1B) + “V” + CHR$ (0);

PRINT #1, “AAAAA”;

PRINT #1, CHR$ (&H1B) + “V” + CHR$ (1);

PRINT #1, “AAAAA” + CHR$ (&HA);

[Print Results]

>

90° Rotation Canceled

>

A A A A A

>

>

90° Rotation Specified

— 29 —

ESC Y n

[Function]

[Code]

[Range]

Specifying print density

<1B>H<59>H<n>

{0 =< n =< 5(Hex)}

[Outline]

[Caution]

[Default]

[Sample Program]

Specifies the print density.

“n” means the followings.

n (Hex)

0

1

2

3

4

5

70 % density

80 % density

90 % density

100 % density

120 % density

150 % density

Condition

Higher density may lead to slower printing.

Increasing the density allows Low battery to be detected easily.

n = 3 (100%)

PRINT #1, CHR$ (&H1B) + “Y” + CHR$ (0);

PRINT #1, “AAAAA”;

PRINT #1, CHR$ (&H1B) + “Y” + CHR$ (5);

PRINT #1, “AAAAA” + CHR$ (&HA);

— 30 —

ESC Z

[Function]

[Code]

[Outline]

BIT7

Returning diagnostic information

<1B>H<5A>H

The printer will return 32 bytes of information with the following structure:

1-22: Printer name up to 22 charachters.

23-25: Firmware version

26-27: Language version, described by two characters.

28-32: When the corresponding bit is 1, the function is supported and when 0, the function is not supported.

BIT6

BYTE 28

BIT5 BIT4 BIT3 BIT2 BIT1 BIT0

Not in use

Reserved, always 1

Not in use

IrDA support

Mag stripe reader

Reserved

Katakana support (Characters after 80(Hex))

JIS and SHIFT-JIS Support

— 31 —

BYTE 29

BIT7

BIT6 BIT5 BIT4 BIT3

Not in use

Reserved, always 1

Not in use

Not in use

Not in use

BIT2 BIT1

Not in use

BIT0

Not in use

Update via firmware interface

BIT7

BIT6

BYTE 30

BIT5 BIT4 BIT3 BIT2 BIT1 BIT0

Not in use

Reserved, always 1

Not in use

Not in use

Not in use

Not in use

Not in use

Not in use

— 32 —

BIT7

BIT6

BYTE 31

BIT5 BIT4 BIT3 BIT2 BIT1 BIT0

Not in use

Reserved, always 1

Not in use

Not in use

Not in use

Not in use

Not in use

Not in use

BIT7

BIT6

BYTE 32

BIT5 BIT4 BIT3 BIT2 BIT1 BIT0

Not in use

Reserved, always 1

Not in use

Not in use

Not in use

Not in use

Not in use

Not in use

— 33 —

ESC \ n1 n2

[Function]

Specifying the relative positions

[Code]

[Range]

[Outline]

<1B>H<5C>H<n1><n2>

{0 =< n1 =< 255}

{0 =< n2 =< 255}

The printing start position is specified in the number of dots (1/203 inch unit) from the current position.

• Rightward direction is taken as plus and leftward direction as minus.

• To specify N dot in minus (left) direction, use a complement of N for assignment.

• N dots = 65536 – N

• The number of dots is divided by 256, whose quotient is taken as n2 and the residual as n1.

[Caution]

[See Also]

Specifying exceeding the top of line or the end of line is ignored.

ESC $

[Sample Program]

See Sample Program and Print Results for ESC $.

ESC _

[Function]

[Code]

[Outline]

[See Also]

Setting the printer in default state

<1B>H<5F>H

Sets the printer in default state. The default state is as follows:

• All printing attributes like underline, rotating etc. are cleared.

• Internal font A (12

× 24) is selected.

• Pitch between lines is 1/6 inch.

• Pitch between characters is 0.

• Barcode height is 162 dots, and barcode width is 3.

• All downloaded fonts and bit images are cleared.

• Print density is 100%.

• Communication speed is set to 9600 bps.

• Auto power-off time is set at 5 min.

• Memory switch is set to “all 0”.

ESC @

— 34 —

ESC `

[Function]

[Code]

[Outline]

Returning the battery voltage and Printer Head temperature

<1B>H<60>H

When this command is send to CMP-10, the printer will return the current value of battery voltage and the current temperature of the printer thermal head.

• Battery voltage is returned in the format: battery voltage

× 10 + 20H and head temperature is returned in the format: head temperature + 20H.

[Sample Program]

[Print Results]

PRINT #1, CHR$ (&H1B) + “ ` ”;

Suppose the battery voltage is 7.8 volts and head temperature is 40°C.

Then CMP-10 will return <6C>H, <48>H to the host.

This values are calculated as follows:

Volatge: 7.8

× 10 = 78 + 32 =110 which is 6CH.

Temperaure: 40 + 32 = 72 which is 48H.

32 is equal to 20H.

— 35 —

ESC a n

[Function]

[Code]

[Range]

[Outline]

[Caution]

Aligning the characters

<1B>H<61>H<n>

{0 =< n =< 2(Hex)}

All the printed data within one line are aligned in the specified position.

Depending on n value, positional alignment is carried out as in the table below:

Position n (Hex)

0

1

2

Left end alignment

Centering

Right end alignment

• This is valid only when n is inputted at the beginning of line.

• The initial value of n is “0”.

[Sample Program]

PRINT #1, CHR$ (&H1B) + “a” + CHR$ (0);

PRINT #1, “AAAAA” + CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “a” + CHR$ (1);

PRINT #1, “AAAAA” + CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “a” + CHR$ (2);

PRINT #1, “AAAAA” + CHR$ (&HA);

[Print Results]

A A A A A

A A A A A

Left-justified Centered

A A A A A

Righ-justified

Paper Feed

Direction

— 36 —

ESC c5 n

[Function]

[Code]

[Range]

[Outline]

[Caution]

Enabling/Disabling Panel Switches

<1B>H<63>H<35>H<n>

{0 =< n =< FF(Hex)}

Selecting the LF switch valid/invalid.

• “n” is valid only in the lowest bit (n0).

Condition n (Hex)

0

1

LFSW valid.

LFSW invalid.

• When the panel switch is disabled with this command, the LF switch is disabled.

Therefore, the paper cannot be fed by operating the LF switch.

• When LF switch is set to Invalid, it cannot be cleared by the Initialize command

(ESC @) but is cleared by turning power off.

[Default]

[Sample Program]

The initial value of n is “0”.

PRINT #1, CHR$ (&H1B) + “c5” + CHR$ (0); ……When enabling the LF switch

PRINT #1, CHR$ (&H1B) + “c5” + CHR$ (1); ……When disabling the LF switch

— 37 —

ESC d n

[Function]

[Code]

[Range]

[Outline]

Printing and Feeding the paper by n lines

<1B>H<64>H<n>

{0 =< n =< FF(Hex)}

Prints data inside the buffer and feeds paper by n lines.

Specified line does not remain.

The beginning of the line is to be considered as the next printing start position.

[Default]

[Sample Program]

The initial value is not defined.

PRINT #1, “AAAAA”

PRINT #1, CHR$ (&H1B) + “d” + CHR$ (2);

PRINT #1, “AAAAA” + CHR$ (&HA);

[Print Results]

A A A A A

A A A A A

2/6-inch line feed

— 38 —

ESC v

[Function]

Transmitting the printer status

[Code]

[Outline]

[Caution]

[Sample Program]

<1B>H<76>H

Current printer status is transmitted.

Status sent out consists of 1 byte whose content is as in the table below.

Value

Bit Function

0 1

0

1

2

Not defined

Not defined

Paper or paper cover With paper and cover closed

No paper or cover open

3

6

7

4

5

Not defined

Not used

Not defined

Not defined

Not defined

Fixed to 0 –

In paper end status, this command may be unreceptible state due to BUSY state.

OPEN “COM1:N81NN” AS #1 ;

PRINT #1, CHR$ (&H1B) ; “v” ;

A$ = INPUT$ (1, #1) ;

CLOSE #1

END

— 39 —

ESC x n

[Function]

[Code]

[Range]

Selecting the time interval for automatically switching Off the printer.

<1B>H<78>H<n>

{1 =< n =< 3C(Hex)}

[Outline]

[Default]

[Sample Program]

Sets the time interval after which the printer will be switched Off automatically if there is no incoming data through the Serial interface, there is no IrDA communication and LF button is not pressed. The maximum value for the interval is 60 minutes

<3C>H .

n = 05(Hex) 5 minutes

PRINT #1, CHR$ (&H1B) + “x” + CHR$ (H14);

After executing this command the printer will perform auto power off after 20 minutes, if there is no IrDA communication and LF button is not pressed.

— 40 —

ESC { n

[Function]

[Code]

[Range]

Specifying/Canceling the Inverted Characters

<1B>H<7B>H<n>

{0 =< n =< FF(Hex)}

[Outline]

[Caution]

[Default]

[Sample Program]

Specifying/canceling inverted characters.

• “n” is valid only for the lowest bit (n0).

n (Hex)

0

1

Condition

Canceling inverted characters.

Specifying inverted characters.

• Inverted-printing means printing the line at 180° turned.

• This is valid only when this is specified at the beginning of a line.

• The initial value of n is “0”.

PRINT #1, CHR$ (&H1B) + “{“ + CHR$ (0);

PRINT #1, “AAAAA” + CHR$ (&HA);

PRINT #1, “BBBBB” + CHR$ (&HA);

PRINT #1, CHR$ (&H1B) + “{“ + CHR$ (1);

PRINT #1, “AAAAA” + CHR$ (&HA);

PRINT #1, “BBBBB” + CHR$ (&HA);

[Print Results]

A A A A A

B B B B B

Inversion Canceled

B B B B B

Inversion Specified

A A A A A

Paper Feed

Direction

— 41 —

GS ) n m

[Function]

[Code]

[Range]

[Outline]

[Caution]

Setting of printer flags

<1D>H<29>H<n><m>

{0 =< n =< 8(Hex)}

{m = 0 or 1(Hex)}

This model has 8 memory switches and selecting, releasing, and changing a function is available with this command.

Memory switch setting is retained even after printer power off.

n specifies the number of memory switch to be operated.

m specifies a selection.

The contents of individual memory switches are as shown below.

Memory Switch

1

4

5

2

3

6

7

8

Slach 0

OFF (0)

CR is ignored

Default font A

Prints “Low Battery”.

ASB Invalid for default

Not in use

IrDA protocol enabled

Shift JIS for default

Normal 0

ON (1)

CR has the same action as LF

Default font B

Does not print “Low Battery”.

ASB Valid for default

IrDA protocol disabled

JIS for default

The setting of the changed memory switch is enabled by resetting the power switch.

No. 8 is only for Japanese model.

— 42 —

GS * n1 n2 [ d ] n1 n2 D1 ...... Dn

[Function]

Defining the Download Bit Image (LOGO)

[Code]

[Range]

[Outline]

[Caution]

<1D>H<2A>H<n1><n2> [ < d > ]

{1 =< n1 =< 7F} Defines horizontal size of downloaded image.

{1 =< n2 =< F8} Defines the vertical size of downloaded image.

Defines downloading bit images of the number of dots specified by n1 and n2.

The numbers of dots are n1

× 8 in horizontal direction and n2 × 8 in vertical direction.

The number of horizontal bytes can be up to 7F, but only the first 48 (30H) bytes will be printed. The rest will be rejected.

• d indicates bit image data.

• The downloaded bit image thus defined is valid till it is redefined or ESC _ is executed. After power off, the downloaded bit image is maintained even by the execution of Initialize command.

• This downloaded bit image is also printed at the self-test printing.

• The maximum size of the Bit image cannot exceed 16 KB.

• Relations between the bit image data and the dot defined are shown below.

1 2 3

31 32 33

61 62 63

When n1 = 30 (1E Hex)

30

× 8 dot = 240 dot

. . . . . . . .

. . . . . . . .

. . . . . . . .

28 29 30

58 59 60

88 89 90

. . . . . . . .

30*n2 n2

LSB 1 2 3 4 5 6 7 8 MSB

[See Also]

[Sample Program]

GS /

GOSUB IMG

PRINT #1, CHR$ (&H1D) + “/” + CHR$ (0);

PRINT #1, CHR$ (&H1D) + “/” + CHR$ (1);

PRINT #1, CHR$ (&H1D) + “/” + CHR$ (2);

PRINT #1, CHR$ (&H1D) + “/” + CHR$ (3);

END

IMG: n 1 = 10 : n 2= 50

PRINT #1, CHR$ (&H1D) + “*”;

PRINT #1, CHR$ (n1) + CHR$ (n2);

FOR I=1 TO n2

FOR J=1 TO n1

PRINT #1, CHR$ (J);

NEXT I

NEXT J

RETURN

— 43 —

[Print Results]

GS / m

[Function]

[Code]

[Range]

[Outline]

[Caution]

Printing the Download, Bit Image

<1D>H<2F>H<m>

{0 =< m =< 03(Hex)}

Prints download bit image in a mode specified by m.

• Modes can be selected by m are shown below.

m (Hex)

2

3

0

1

Name

Normal mode

Double wide mode

Double high mode

Double wide/ double high mode

Dot Density in

Vertical Direction

203 DPI

203 DPI

101 DPI

101 DPI

Dot Density in

Horizontal Direction

203 DPI

101 DPI

203 DPI

101 DPI

• When data exist inside the print buffer, this command is ignored.

• When a download bit image has not been defined, this command is ignored.

• A portion of a download bit image exceeding one line length is not printed.

[See Also]

GS *

[Sample Program]

Refer to the programming example and print result of GS *.

— 44 —

GS :

[Function]

[Code]

[Outline]

[Caution]

Starting/Ending Macro Definition

<1D>H<3A>H

Specifying starting/ending macro definition.

Means termination when received while defining a macro.

• Maximum content available for macro definition is 3328 bytes.

• A portion exceeding 3328 bytes is not defined.

• Even with ESC @ (initialization of the printer) having been executed, defined content is not cleared. Therefore, it is possible to include ESC @ into the content of macro definition.

• Normal printing operation is carried out even while in macro definition.

Initially, Macro is not specified.

GS ^

[Default]

[See Also]

[Sample Program]

PRINT #1, CHR$ (&H1D) + “: “ ;

PRINT #1, “+–––+” + CHR$ (&HA);

PRINT #1, “ | | “ + CHR$ (&HA);

PRINT #1, “+–––+” + CHR$ (&HA);

PRINT #1, CHR$ (&H1D) + “: “;

PRINT #1, CHR$ (&H1D) + “ ^ “;

PRINT #1, CHR$ (2) + CHR$ (10);

PRINT #1, CHR$ (0);

[Print Results]

Normal Printing during Macro Definition

Printing during Macro Execution

— 45 —

GS H n

[Function]

[Code]

[Range]

[Outline]

[Caution]

Selecting of Printing Position of HRI Code

<1D>H<48>H<n>

{0 =< n =< 3(Hex)}

Selecting printing position of HRI code in printing bar codes.

• “n” means the followings.

n (Hex)

2

3

0

1

No printing

Above the bar code

Printing Position

Below the bar code

Both above and below the bar code

The HRI code refers to the bar code-turned characters so that you can read them.

The HRI code is printed in the font selected with GS f. Specify before the GS k command.

[Default]

[See Also]

[Sample Program]

The initial value of n is “0”.

GS f

PRINT #1, CHR$ (&H1B) + “3” + CHR$ (5);

PRINT #1, CHR$ (&H1D) + “h” + CHR$ (50);

PRINT #1, CHR$ (&H1D) + “H” + CHR$ (0);

GOSUB BC

PRINT #1, CHR$ (&H1D) + “H” + CHR$ (1);

GOSUB BC

PRINT #1, CHR$ (&H1D) + “H” + CHR$ (2);

GOSUB BC

PRINT #1, CHR$ (&H1D) + “H” + CHR$ (3);

GOSUB BC

END

BC:

PRINT #1, CHR$ (&H1D) + “k”;

PRINT #1, CHR$ (4);

PRINT #1, “12” + CHR$ (0);

PRINT #1, CHR$ (&HA);

RETURN

[Print Results]

No Visible Code

Printed above

Printed below

Printed above and below

— 46 —

GS L nL nH

[Function]

Setting the left margin

[Code]

[Range]

[Outline]

[Caution]

[Default]

<1D>H<4C>H<nL><nH>

{0 =< nL =< FF(Hex)}

{0 =< nH =< FF(Hex)}

This command sets the left margin specified by nL and nH. The value of the left margin is [(nL + nH

× 256) × 1/203] inches.

• This command only works when it is entered at the beginning of a line.

• The maximum settable left margin is equal to the horizontal printable area. A setting greater than this maximum is trimmed to the maximum.

• When mapping character data, if the print area specified is not wide enough to accommodate one character of the current font, only the line for that character data is handled as follows:

(1) The print area is extended toward the right to be equivalent to one character of the current font, but not wider than the printable area.

(2) If an area for one character cannot be provided as a result of step (1), the print area is extended toward the left. (So, the left margin is decreased.)

• When mapping non-character data (Bit image, downloaded bit image, or bar code), if the print area specified is narrower than 9-bits, only the line for that data is handled as follows:

(1) The print area is extended toward the left (So, the left margin is decreased) until it is 9-dot wide, but not wider than the printable area.

nL = 0, nH = 0

— 47 —

GS W n

[Function]

[Code]

[Range]

[Outline]

[Caution]

Setting the print area width

<1D>H<57>H<nL><nH>

{0 =< nL =< FF(Hex)}

{0 =< nH =< FF(Hex)}

Sets the print area width specified by nL and nH.

• The print area width will be [(nL + nH

× 256) × 1/203] inches.

Printable Area

Left Margin Printable Area With

• This command only works when it is entered at the beginning of a line.

• If the value entered with this command exceeds the printable area for one line, the entire area except the left margin is set as the print area width.

• For calculation of print area width, the basic pitch 1/203 inch for horizontal direction is used.

(1) The print area is extended toward the right to accommodate the first character, but not wider than the printable area.

Printable Area

A

Extended toward the right

Left Margin

Printable Area Width

(2) When sufficient area cannot be secured even by executing the processing (1), the print area is extended to the left (decreasing left margin).

Printable Area

A

Left Margin

(2) xxxx

(1) Extended toward the right

Printable Area Width

— 48 —

[Default]

[See Also]

(3) When sufficient area cannot be secured even by executing the processing (2), the right space is decreased.

• When bit image (or downloaded bit image) is developed, if the print area width is less than the minimum lateral width of the bit image (2 dots for single density, 1 dot for double density), the following processing is carried out only in the same line.

(1) Extend the print area to the left (decreases left margin) till it reaches the width equivalent to the minimum lateral width of bit image within the range of printable area.

nL = 40 (Hex), nH = 2 (Hex)

GS L

— 49 —

GS ^ n1 n2 n3

[Function]

Executing the Macro

[Code]

[Range]

[Outline]

[Caution]

<1D>H<5E>H<n1><n2><n3>

{0 =< n1 =< FF(Hex)}

{0 =< n2 =< FF(Hex)}

{0 =< n3 =< 1(Hex)}

Executing contents defined in macro.

The following items are set for parameters n1 to n3.

n1: The number of times of macro execution n2: Waiting time on macro execution. Waiting time of n2

× 100 msec is given for every execution.

n3: Macro execution mode

n (Hex)

0

1

Continuous execution

Execution by LF switch

Mode

Continuous execution: The Macro is executed n1 times continuously at the time intervals specified by n2.

Execution by LF switch: After waiting for lapse of time specified by n2, the LF switch is waited to be pressed. When it is pressed, the macro is executed once.

This action is repeated n1 times.

• When this command is received while in macro definition, suspension of macro definition is indicated. At this time, the defined content is cleared.

• No execution takes place when macro is held undefined or n1=0.

• While in macro execution with n3=1, paper feed with the LF switch is not available.

• During execution of a macro, the power cannot be turned off.

[See Also]

GS :

[Sample Program]

See Sample Program and Print Results for GS :.

— 50 —

GS a n

[Function]

[Code]

[Range]

[Outline]

BIT7

BIT6

Enabling/Disabling ASB (Automatic Status Back)

<1D>H<61>H<n>

{0 =< n=< FF(Hex)}

This command selects the status item to be addressed by ASB (Automatic Status

Back.)

6

7

4

5

Bit

0

1

2

3

Not defined

Defining LF button function

Thermal head temperature status

Paper end sensor and paper cover open status

Not defined

Not defined

Not defined

Not defined

Status Item Addressed by ABS

When this command is executed, the printer will return 4 bytes with status information, with the follwoing meaning:

BYTE 1

BIT5 BIT4 BIT3 BIT2 BIT1 BIT0

Not in use (0)

Not in use (1)

Not in use (0)

The paper is fed manually by LF switch

Not in use (0)

Not in use (0)

Not in use (0)

Not in use (0)

— 51 —

BYTE 2

BIT7

BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0

Not in use (0)

Not in use (0)

Not in use (0)

Thermal head is overheated (1)

Not in use (0)

Not in use (0)

Not in use (0)

Not in use (1)

BYTE 3

BIT7

BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0

Not in use (0)

Not in use (0)

Not in use (0)

Not in use (0)

Not in use (0)

Not in use (1)

No paper or cover open (1)

No paper or cover open (1)

— 52 —

BYTE 4

BIT7

BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0

Not in use (0)

Not in use (1)

Not in use (0)

Not in use (0)

Not in use (0)

Not in use (0)

Not in use (0)

Not in use (0)

[Caution]

• If any status item is enabled, the status is sent to the host when this command is executed. After that time on, the status is sent each time an enabled status item changes. Because each status item represents the current condition, status items disabled for ASB may also have changed.

• The ASB function is disabled if all status items are disabled.

• The printer sends 4 bytes of status shown in the tables below, without checking whether the host is ready to receive or busy. The 4 bytes of status is a continuous string except for XOFF code.

• Because this command is executed when data is mapped in the receive buffer, there may be a delay between command receiving and status sending depending on the condition of the receive buffer.

• Even if the printer is excluded from the selection of peripheral equipment (ESC =), the 4 bytes of status is sent to the host whenever status changes.

— 53 —

GS f n

[Function]

[Code]

[Range]

[Outline]

Selecting the font of HRI characters

<1D>H<66>H<n>

{n = 0, 1(Hex)}

[Caution]

[Default]

[See Also]

[Sample Program]

Selecting the font of HRI characters in printing bar code.

The type of font can be selected with “n” as follows:

Font n (Hex)

0

1

Font A (12

Font B (9

× 24)

× 16)

The HRI characters refer to the bar code-turned characters so that you can read them.

The HRI characters are printed at the position specified with GS H.

n = 0

GS H

PRINT #1, CHR$(&H1D) + “h” + CHR$(50);

PRINT #1, CHR$(&H1D) + “H” + CHR$(2);

PRINT #1, CHR$(&H1D) + “f” + CHR$(0);

GOSUB BC

PRINT #1, CHR$(&H1D) + “f” + CHR$(1);

GOSUB BC

END

BC:

PRINT #1, CHR$(&H1D) + “k”;

PRINT #1, CHR$(4);

PRINT #1, “12” + CHR$(0);

PRINT #1, CHR$(&HA);

RETURN

[Print Results]

← Font A

← Font B

— 54 —

GS h n

[Function]

[Code]

[Range]

[Outline]

Selecting the height of the Bar Code

<1D>H<68>H<n>

{1 =< n =< FF(Hex)}

Selecting bar code height.

n denotes the number of dots in the vertical direction.

[Default]

n = A2(Hex) 162 dots

[Sample Program]

See Sample Program and Print Results for GS w .

— 55 —

GS k m [d1 ..... dk] NUL

GS k m n [d1 ...... dn]

[Function]

[Code]

[Range]

[Outline]

Printing the bar code

(1) <1D>H<6B>H<m> [d1.....dk] NUL

(2) <1D>H<6B>H<m><n> [d1....dn]

(1) 0 =< m =< 6 The definitions of “k” and “d” vary with the bar code system.

(2) 65 =< m =< 73 The definitions of “n” and “d” vary with the bar code system.

Selects a bar code system and prints the bar code.

For (1):

m

2

3

0

1

4

5

6

UPC-A

UPC-E

JAN13 (EAN)

JAN8 (EAN)

CODE39

ITF

Bar code system

CODABAR (NW-7)

Range of “k”

k=11 k=11 k=12 k=7

1 =< k

Range of “d”

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

1 =< k (Must be an 48 =< d =< 57

even number)

1 =< k 48 =< d =< 57,

65 =< d =< 68

36, 43, 45, 46, 47, 58

For (2):

m(2)

65

66

67

68

69

70

71

72

73

Bar code system

UPC-A

UPC-E

EAN13 (JAN)

EAN8 (JAN)

CODE39

ITF

CODABAR

CODE93

CODE128

Range of “n”

n=11 n=11 n=12 n=7

Range of “d”

48 =< d =< 57

48 =< d =< 57

48 =< d =< 57

48 =< d =< 57

1 =< n 48 =< d =< 57,

65 =< d =< 90

32, 36, 37, 43, 45,

46, 47

1 =< n (Must be an 48 =< d =< 57

even number)

1 =< n 48 =< d =< 57,

65 =< d =< 68

36, 43, 45, 46, 47,58

1 =< n 0 =< d =< 127

1 =< n 0 =< d =< 127

— 56 —

[Caution]

For (1):

• This command ends with a NUL code.

• For UPC-A or UPC-E, the bar code is printed when 12 bytes of bar code data have been entered, and the subsequent data is handled as normal data.

• For JAN13, the bar code is printed when 13 bytes of bar code data have been entered, and the subsequent data is handled as normal data.

• For JAN8, the bar code is printed when 8 bytes of bar code data have been entered, and the subsequent data is handled as normal data.

• The data of ITF bar code must have an even number of columns. Should the data have an odd number of columns, the last column is ignored.

For (2):

• Numeral “n” indicates the number of data items, and the subsequent “n” bytes of data are handled as bar code data.

• If “n” is out of the range, the processing of the command is aborted, and the subsequent data is handled as normal data.

For STANDARD MODE:

• If “d” is out of the range, only a paper feed is executed, and the subsequent data is handled as normal data.

• If the bar code is wider than the print area for one line, the bar code is not printed, but only a paper feed is executed.

• The amount of paper feed corresponds to the height of the bar code (Including the

HRI characters if HRI character printing is specified), irrespective of the line feed width set by a command such as ESC 2 or ESC 3.

• This command only works if no data exists in the print buffer. If any data exists in the print buffer, the data subsequent to “m” is handled as normal data.

• After the bar code is printed, the beginning of the line is taken as the start position for the next print.

• This command is not affected by any print modes (Emphasis, double strike, underline, and character size), except for the inverted character mode.

[Description of Bar Codes]

<For print examples, refer to page 56>

UPC-A

This bar code, consisting of numerals only, has a fixed length of 12 columns; a 11column number entered from the host or application software plus a check digit

(12th column) automatically calculated inside the printer. If the 12th-column numeral is sent from the host, the entire bar code will be printed as it is.

UPC-E

This bar code, consisting of numerals only, has a fixed length of 8 columns; the first number system character is “0” stationary. A 12-column numeral entered from the host or application software is compressed to 8 columns with a check digit attached and then is printed. The 12thcolumn check digit is automatically calculated inside the printer. If it is and sent from the host, the entire bar code will be printed, compressed to 8 columns.

JAN-13(EAN)

This bar code, consisting of numerals only, has a fixed length of 13 columns; a 12column number entered from the host or application software plus a check digit

(13th column) automatically calculated inside the printer. If the 13th-column numeral is sent from the host, the entire bar code will be printed as it is.

— 57 —

JAN-8(EAN)

CODE39

ITF

CODABAR (NW-7)

CODE93

CODE128

This bar code, consisting of numerals only, has a fixed length of 8 columns; a 7column number entered from the host or application software plus a check digit (8th column) automatically calculated inside the printer. If the 8th-column numeral is sent from the host, the entire bar code will be printed as it is.

This bar code, consisting of upper-case alphabetic characters and numerals, has a variable length of columns. The start/stop code “*” is automatically added by the printer. The available characters include space and “$ % + – • / 0 1 2 3 4 5 6 7 8 9” and upper-case alphabetic characters.

A check digit is added and printed automatically.

This bar code, consisting of only numerals, has a variable length of even-number columns. If a code of odd-number columns is sent, the bar code will not be printed.

This bar code, consisting of alphanumerics, has a variable length of columns.

Available characters include “0 1 2 3 4 5 6 7 8 9 A B C D $ + – ./ :”. A start/stop code is required; any one of A, B, C, and D is used.

This bar code, consisting of alphanumeric and control characters, has a variable length of columns. The HRI character string is preceded and followed by a “n” character.

HRI characters for control characters (00H - 1FH, and 7FH) are each printed as a combination of a “n” character and an alphabetic character.

This bar code consists of 103 bar code characters and three code sets, enabling 128

ASCII code characters to be printed. It has a variable length of columns.

• Code set A ASCII characters 00H - 5FH can be represented.

• Code set B ASCII characters 20H - 7FH can be represented.

• Code set C Two-digit numbers 00 - 99 can each be represented by one character.

In addition to the above characters, special characters are available:

• Shift character (SHIFT)

When used in code set A, one character next to a Shift character is treated as a character of code set B. When used in code set B, one character next to a Shift character is treated as a character of code set A. The Shift character cannot be used in code set C.

• Code set select characters (CODE A, CODE B, CODE C):

The code set following a code set select character is switched to code set A, B, or C.

• Function characters (FNC1, FNC2, FNC3, FNC4):

How the function characters are used depends on each application. In code set C, only FNC1 is available.

— 58 —

When sending print data, note these points:

(1) Each string of bar code data must begin with a code set select character (CODE A,

CODE B, or CODE C), which selects the first code set to use.

(2) Every special character is specified by a combination of two characters: a brace

“{“ followed by one character. A brace “{“ itself is sent twice consecutively.

SPECIAL CHARACTERS:

Hex.

7B53

7B41

7B42

7B43

7B31

7B32

7B33

7B34

7B7B

ASCII

{ S

{ A

{ B

{ C

{ 1

{ 2

{ 3

{ 4

{ {

Code set A

SHIFT

–N/A

CODE B

CODE C

FNC1

FNC2

FNC3

FNC4

“{”

Code set B

SHIFT

CODE A

–N/A

CODE C

FNC1

FNC2

FNC3

FNC4

“{”

Code set C

–N/A

CODE A

CODE B

–N/A

FNC1

–N/A

–N/A

–N/A

“{”

<Example>

To print “No.” in code set B, followed by “123456” in code set C, send the following data string:

GS k <73><10><7Bh 42h> “No.” <7Bh 43h><12><34><56>

• If the printer finds a string of bar code data that does not begin with a code set select character, it immediately aborts the command processing and handles the subsequent data as normal data.

• If the printer received a character that is not available in the currently selected code set, it immediately aborts the command processing and handles the subsequent data as normal data.

• An HRI character corresponding to either a Shift character or a code select character is not printed. An HRI character for either a function character or a control character is treated as a space character.

[Sample Program]

PRINT #1, CHR$(&H1D) + “H” + CHR$(2);

PRINT #1, CHR$(&H1D) + “k”;

PRINT #1, CHR$(4);

PRINT #1, “123” + CHR$(0);

END

[Print Results]

When the data “123” is printed with the code 39

— 59 —

[Descriptionof Bar Codes]

UPC-A, UPC-E, JAN-13 (EAN), JAN-8 (EAN), CODE39, ITF, CODABAR, CODE128

Type

UPC-A

Print Sample Outline of Symbol

12-column fixed-length bar code consisting of numerals only.

Max. Column

UPC-E | 8-column fixed-length bar code consisting of numerals only. Abbreviated version of UPC-A.

JAN-13 —

JAN-8

CODE39

ITF

13-column fixed-length bar code consisting of numerals only.

8-column fixed-length bar code consisting of numerals only.

Variable-length bar code consisting of alphabets and numerals. The start/stop code

“*” is automatically added.

Even-column variable-length bar code consisting of numerals only.

11

22

CODABAR

(NW-7)

CODE93

Variable-length bar code consisting of alpha numerals. Any one of A, B, C, and D is required as the start/stop code.

15

CODE128 Variable-length bar code consisting of all 128

ASCII code characters.

14

Printing is done depending on bar code specification type, number of print column, bar code height, width (Magnification), visible code presence, and bar code data specification.

— 60 —

GS w nL nH

[Function]

Selecting the horizontal size (Scale factor) of the Bar Code

[Code]

[Range]

[Outline]

<1D>H<77>H<n>

{2 =< n =< 4(Hex)}

Selecting bar code width.

n denotes the number of dots in fine element width.

[Default]

[Sample Program]

The initial value of this width is “3”.

PRINT #1, CHR$ (&H1D) + “h” + CHR$ (30);

PRINT #1, CHR$ (&H1D) + “w” + CHR$ (2);

GOSUB BC

PRINT #1, CHR$ (&H1D) + “h” + CHR$ (50);

PRINT #1, CHR$ (&H1D) + “w” + CHR$ (3);

GOSUB BC

PRINT #1, CHR$ (&H1D) + “h” + CHR$ (80);

PRINT #1, CHR$ (&H1D) + “w” + CHR$ (4);

GOSUB BC

END

BC:

PRINT #1, CHR$ (&H1D) + “k”;

PRINT #1, CHR$ (4);

PRINT #1, “12” + CHR$ (0);

RETURN

[Print Results]

← Height = 30, Magnification = 2

← Height = 50, Magnification = 3

← Height = 80, Magnification = 4

— 61 —

FF

[Function]

[Code]

[Outline]

[Caution]

[See also]

BLACK MARK FUNCTION

ESC l n

[Function]

[Code]

[Range]

[Outline]

[Caution]

[Default]

[See also]

Specify/canceling black mark function

<1B>H<6C>H<n> n = 0 or 1

Specifying / canceling the black mark function.

n (Hex)

0

1

Type

Canceling black mark function

Specifying black mark function

Black mark function uses PE sensor of CMP-10 for black mark sensor. Therefore, the condition of detecting paper end and detecting open cover is changed in this mode.

n = 0

FF Note on Next page

Printing and paper feeding to the black mark position

<0C>H

This command prints the data in the printer buffer and searches for black mark. It is ignored if black mark function is not specified.

This command is valid only when black mark function is specified.

ESC l n Note on next page

— 62 —

Note for Black Mark Function

1.

Error detection at black mark mode

Paper end is checked during printing but black mark is not checked.

After receiving FF command, printer checks black mark and paper end. Once black is detected and white is detected again within 6 mm paper feed, it is determined as black mark. If the white is not detected within 6 mm paper feed, it is determined as paper end.

After receiving FF command, if printer cannot detect back mark by feeding paper for 360 mm, printer recognizes it as black mark detecting error. And the result is same as detecting paper end.

To release the error, it is necessary to put correct paper and press LF switch long.

2.

LF switch operation in black mark mode

Press short: Feed one line

Press longer than 1 sec.: Feed paper to find next black mark. (Same as sending FF command)

3.

Switching Black mark mode

Black mark mode is set for disabled at factory.

Once black mark mode is enabled, it is effective till receiving disabling command or the battery connector is disconnected.

By sending command ESC > which saves setting condition to NV memory, black mark mode can be kept enabled even if battery connector is disconnected.

4.

Remarks for programming

As it is possible to print on black mark, if user does not want to print on the black mark, it have to be taken care by user side program

5.

Remarks on handling

If the paper cover is open in black mark mode, there is a possibility to recognize it as detecting black mark.

6.

Designing black mark paper

Black mark should be on recording side of the thermal paper.

Darkness of black mask should be 0.9 or more (PCS value).

The black mark size and position should be as follows.

A

B

C

A = 4 - 6 mm

B = 15 mm or more

C = 20 – 360 mm

The distance from PE sensor and print head is approx. 7.5 mm.

— 63 —

3. CHARACTER CODES TABLE

WPC1252

— 64 —

4. PROGRAMMING CONSIDERATIONS

4.1 Notes at Lowered Battery Voltage

When battery is low, highly loaded printing such as printing of graphics with much black area may cause power off during printing.

When executing high loaded printing, charging the battery before lowing of battery voltage is recommended while keeping checking the information on the battery by the use of relevant command.

4.2 Notes on Printing After Paper Cutting

When the paper is cut by manual cutter, paper is likely to be caught by the cutter.

Therefore, in printing the first line just after cutting, the printing may be compressed in vertical direction.

When starting printing, feed one line without printing to prevent compressed printing.

— 65 —

5. SERIAL INTERFACE

5.1 Specifications

(1) Data transfer system Asynchronous, half duplex

(2) Baud rates

1200, 2400, 4800, 9600, 19200, 57600, 115200 bps (Selectable by command)

(3) Serial data configuration

Start bit: 1 bit

Data bit: 8 bits Fixed

Parity bit: No parity

Stop bit: 1 bit

(4) Signal polarity

RS-232C

• Mark = logic “1” (–3V ~ –12V)

• Space = logic “0” (+3V ~ +12V)

(5) Receiving data (RD signal)

RS-232C

• Mark = logic “1” (–3V ~ –12V)

• Space = logic “0” (+3V ~ +12V)

(6) Transmission control (TD signal)

DC1 code (11H) X-ON: Data reception is available

DC3 code (13H) X-OFF: Data reception is not available

5.2. Connector Pin Configuration

Pin No.

3

6

7

11

14

15

Connector

Printer side:

PC side

Cable

Signal

TXD

+5V

RXD

RTS

GND

Direction Function

Output Transferred data

Input Received data

Input Auto Turn On

Communication mode setting

(InfraRed or Serial)

Connector used on StarTac (Motorola)

9 pin D-SUB

Pin No. of Cable

No. 2 pin of D-Sub 9 pins

No connection

No. 3 pin of D-Sub 9 pin

No. 7 pin of D-Sub 9 pin

No. 5 pin of D-Sub 9 pin

No. 5 pin of D-Sub 9 pin

— 66 —

5.3 Explanation of Input/Output Signals

(1) RXD

This is signal, receiving data from the host. On occurrence of framing error, overrun error, or parity error, the data is printed as “?”.

(2) TXD

This signal is for data flow control by X-ON/X-OFF. If data remains in the printer’s input buffer is 2048 bytes or less, the printer transfers a DC3 (13H: Data Receive Not Ready) signal to the host. If data in the input buffer exceeds 4096 bytes, the printer transfers a DC1 (11H: Data Receive Ready) signal to the host.

(3) Vcc

This is a power supply (+5 V). The signal is not use in the standard serial cable!

(4) GND

This is a GND on the circuit.

(5) Auto turn-on

The printer can be turned on by using RTS signal from the host

CAUTION: Ensure that the RTS signal is deactivated when your application software not using the printer as auto turn-off function is disabled when RTS is active

14, 15 pin (Communicate mode setting)

Using dedicated cable makes these pin short-circuited.

If these pins are short-circuited, printer sets the communicate mode to serial communication.

If these pins are not short-circuited, printer set the communication mode to infrared.

5.4 Error Detection

Framing and overrun are detected. On detection of any error, the data are stored in the buffer as “?”.

(1) Framing Error

With “space” state having been detected on detection of a stop bit, error takes place. The data are stored in the buffer as “?”.

(2) Overrun Error

On detection of an overrun error, the data are stored in the buffer as “?”.

5.5 Buffering

This printer incorporates 64K byte buffer. This allows most print jobs to by fully buffered so that the host can continue quickly.

— 67 —

5.6 Electrical Characteristics

RS-232C Circuit

Input (RXD)

<Printer side>

Output (TXD)

Equivalent MAX232

<Printer side>

Equivalent MAX232

<Host side>

<Host side>

— 68 —

6. INFRARED COMMUNICATION SPECIFICATIONS

6.1 Basic Specification

(1) Interface:

(2) Data transfer system

(3) Baud rate:

(4) Data configuration

(5) Logic level

(6) Transport wave:

(8) Distance

(9) Receiving angle

Infrared transceiver mode

Half duplex

Asynchronous

9600, 19200, 38400, 57600, 115200 bps

(Max baud rate can be set at 57600 bps by command.)

Data length 8 bit

Stop bit 1 bit

Parity None

Low Level = 0

High Level = 1

Wave length 850 - 900 nm

Less than 80 cm

Left 15º

Top 15º

Right 15º

Bottom 15º

6.2 Supported Protocol

(1) IrDA version

(2) Flow control

(3) Supported Protocol

1.0

IrDA standard

IrComm 3 wire raw

IrLPT

IrLMP

IrLAP

(4) Protocol Layer

(5) Applicable protocol

IrComm 3 Wire raw IrLPT

Ir Link Management - MUX - IrLMP

Ir Link Access Protocol - IrLAP

Async Serial-IR

9600-115.2 kb/s

Class: IrDA:IrCOMM or IrDA:IrLPT

Attribute: IrDA:IrLMP:LsapSel via IrLMP

— 69 —

7. MECHANICAL SPECIFICATION

7.1 Printer Mechanism

(1) Print method

(2) Number of dot

(3) Head density

(4) Print width

(5) Sensors

(6) Paper

(7) Paper feed force

(8) Paper keep force

(9) Reliability

Line thermal printing

384 dot/line

8 dot/mm

48 mm

Head temperature

Paper end

Head-up

Thermistor

Photo Interrupter

Mechanical switch

Paper width

Paper thickness

58 mm+0/–1

65

µm

Recommended paper TF50KS-E2D (Nippon Paper)

Outside diameter Max 40 mm or 50 mm (by model)

0.49N or more

0.78N or more

Head life

MCBF

6 million lines (Room temperature normal humidity)

100 million pulses

50 km

15 million lines (Duty 12.5%)

7.2 Card Reader

(1) Supported track

(2) Card thickness

(3) Specifications of each track

ISO (JIS) 1, 2, 3

0.76 mm +/–0.08 mm

Track

Record density

Record capacity

ISO-1

210 BPI

ISO-2

75 BPI

ISO-3

210 BPI

79 characters (7 bits) 40 characters (5 bits) 107 characters (5 bits)

7.3 Lifetime of Mechanical Parts

Power switch: 45,000 times (30 times/day

× 300 days × 5 years)

— 70 —

8. POWER RELATED SPECIFICATIONS

8.1 Battery

(1) Battery type

(2) Maximum capacity

(3) Number of sells

(4) Maximum output voltage

(5) Cut-off voltage

(6) Standard charge

(7) Initial capacity

(8) Initial impedance

(9) Cycle life capacity

(10) Discharge by temperature

(11) Storage

Lithium-ion battery pack

2000 mAh

2

4.2V/Cell

2.75V/Cell

1000 mA, 23ºC, 4.2V/Cell, 3 hours charge

1950 mAh or more

(After standard charge and discharge 400 mA till cut off at 23ºC, then measure the capacity)

100m ohm or less

1400 mAh or more

(Repeat the routine - Standard charge + discharge 2000 mA till cut-off –

299 times and leave one day, then measure in same condition as initial capacity)

–10ºC 50%

0ºC 80%

23ºC

45ºC

100%

100%

(After standard charge and discharge 1000 mA till cut-off)

1600 mAh or more

(After standard charge, keep it at 23ºC in 30 days then discharge

1000 mA at 23ºC till cut-off)

8.2 Power Management

(1) Printable lines 40,000 lines or more

(Room temperature, full charge, ASCII slide pattern printing)

(2) Auto power off time 5 minutes (can be changed between 1 and 60 minutes)

(3) Low battery detection voltage 6.7V

(4) Battery release voltage 5.5V

8.3 Power Consumption

Average

Peak

Stand-by

1.45A (ASCII slide pattern printing)

2A

80 mA

— 71 —

9. AC ADAPTOR

(1) Input voltage

(2) Input current

(3)

(4)

Rated output

Efficiency

100V ~ 240V AC (50/60 Hz)

250 mA

9V ±5%

65% or more (AC 100V/50 Hz full load)

70% or more (AC 240V/50 Hz full load)

Less than 150 mVp-p (9 VDC) (5) Ripple and noise voltage

(6) Insulation test

(7) Leakage current

(8) Temperature rise

More than 100M ohm

(DC 500V, 1 minute, between primary and secondary circuit and chassis)

0.25 mA or less (AC 240V/50 Hz)

45K or less on case surface (100 VAC/50 Hz full load @25°C)

(9) Over voltage protection 120% - 150%

(10) Overload protection current 1.8 - 3.5A (AC 100-240, 25°C)

(11) No load power consumption 3W or less (AC 240V, 25°C)

(12) Safety standard

(13) Size

(14) Case material

(15) Cable

(16) Plug

(17) Polarity

UL, C-UL, PSE (10AD-JU)

VDE, GS, CE (10AD-E)

10AD-JU - 75 mm (L)

× 50 mm (W) × 30 mm (H)

94V-1

1828.8 mm UL2468#22

× 2C

3.5

× 1.3 × 9.5S

Center ”+”

(18) Weight 104 g ±5g

10. EMI STANDARD

VCCI Class B

FCC Class B

EN55022

— 72 —

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