Citizen Systems PPU-231II manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Citizen Systems PPU-231II, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Citizen Systems PPU-231II one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of Citizen Systems PPU-231II. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of Citizen Systems PPU-231II should contain:
- informations concerning technical data of Citizen Systems PPU-231II
- name of the manufacturer and a year of construction of the Citizen Systems PPU-231II item
- rules of operation, control and maintenance of the Citizen Systems PPU-231II item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Citizen Systems PPU-231II alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Citizen Systems PPU-231II, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Citizen Systems service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Citizen Systems PPU-231II.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Citizen Systems PPU-231II item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    LINE THERMAL PRINTER MODEL PPU-231 II Rev . 1.01 Newly issued on December 19, 2002 Command Reference[...]

  • Page 2

    Rev .No. Date Comment Rev . 1.00 Jun. 10, 2002 Newly issued Rev . 1.01 Dec. 19, 2002 Revised P . 12, P . 78, P . 79, P . 90 REVISION[...]

  • Page 3

    — 1 — 1 HT Horizontal tab S.P . <09>H 5 2 LF Printing and paper feed S.P . <0A>H 6 3 CR Back to printing S.P . <0D>H 7 4F F Printing in P AGE MODE and returning to P <0C>H 8 ST ANDARD MODE Printing and paper feeding to the top of the Black mark position S 5 CAN Canceling print data in P AGE MODE P <18>H 9 6 DLE EOT[...]

  • Page 4

    — 2 — In the Mode column: S = ST ANDARD MODE, P = P AGE MODE * shows the command affected by GS P . 31 ESC V Specifying/Canceling 90°-right-turned S <1B>H<56>H<n> 41 characters <1B>H<57>H<xL><xH> 32 ESC W Defining the print area in P AGE MODE P * <yL><yH><dxL><dxH> 42 <dyL>[...]

  • Page 5

    — 3 — 58 GS W Setting the print area width S.P .* <1D>H<57>H<nL> <nH> 73 59 GS Specifying the relative vertical position S.P .* <1D>H<5C>H<nL> 75 of a character in P AGE MODE <nH> 60 GS ^ Executing the macro S.P . <1D>H<5E>H<n1> 76 <n2><n3> 61 GS a Enabling/Disablin[...]

  • Page 6

    — 4 — 1.2 Command Details 1.2.1 Descriptions of Each Item XXXX [Function] The name of a command. [Code] The string of codes comprising the command is represented by < >H for hexadecimal numbers, < >B for binary numbers, and < > for decimal numbers, [ ] k denotes the number of repetition of “k” times. [Range] Indicates the [...]

  • Page 7

    — 5 — 1.2.2 Command Details HT [Function] Horizontal tab [Code] <09>H [Outline] Shifts the printing position to the next horizontal tab position. • Ignored when the next horizontal tab position has not been set. [Caution] • The horizontal tab position is set by ESC D. • The initial setting of horizontal tab positions is at intervals[...]

  • Page 8

    — 6 — LF [Function] Printing and paper feed [Code] <0A>H [Outline] Prints data inside the print buffer and feeds paper based on the line feed amount having been set. [Caution] The head of the line becomes the next print starting position. [See Also] ESC 2, ESC 3 [Sample Program] [Print Results] AAA ← Print and line feed BBB ←[...]

  • Page 9

    — 7 — CR [Function] Back to printing [Code] <0D>H [Outline] 1) When DSW1-5 is OFF: This command is ignored. 2) When DSW1-5 is ON: With data held inside the internal print buffer , printing and line feed are performed. Without data inside the internal print buffer , however , only line feed is performed. [See Also] LF [Sample Program] [Pri[...]

  • Page 10

    — 8 — FF (Page Mode) [Function] Printing in P AGE MODE and returning to ST ANDARD MODE [Code] <0C>H [Outline] Executes a batch printout of the data mapped in the entire print area, and then returns to ST ANDARD MODE. [Caution] • All mapped data is erased after printout. • The print area set up by ESC W is initialized. • This command[...]

  • Page 11

    — 9 — CAN [Function] Canceling print data in P AGE MODE [Code] <18>H [Outline] Erases all data contained in the currently effective print area in P AGE MODE. [Caution] • This command is only effective when P AGE MODE is selected. • If the previously established print area overlaps the currently effective print area, the overlapped dat[...]

  • Page 12

    — 10 — DLE EOT n [Function] Sending status in real-time [Code] <10>H<04>H<n> [Range] 1 n 4 [Outline] Sends in real-time the status specified by “n”. [Caution] • Each status represents the current status. It is 1 byte data. • The status is transferred without checking whether the host is ready to receive or busy . • T[...]

  • Page 13

    — 11 — (1) Printer status (When n = 1 is specified) Bit Status Hex. Decimal 0 Unused 00 0 1 Unused 02 2 2 Undefined — — 3 Online status 00 0 Offline status 08 8 4 Unused 10 16 5 Undefined — — 6 Undefined — — 7 Unused 00 0 (2) Status caused by an offline condition (When n = 2 is specified) Bit Status Hex. Decimal 0 Unused 00 0 1 Unus[...]

  • Page 14

    — 12 — (3) Status caused by an error (when n = 3 is specified) Bit Status Hex. Decimal 0 Unused 00 0 1 Unused 02 2 2 No Black mark detection error occurred (only when “Black mark” is selected). 00 0 A Black mark detection error occurred (only when “Black mark” is selected). 04 4 3 Auto cutter error not occurred 00 0 Auto cutter error oc[...]

  • Page 15

    — 13 — DLE ENQ n [Function] Real-time request to printer [Code] <10>H<05>H<n> [Range] 1 n 2 [Outline] The printer responds in real-time to the request that the host specifies with number “n”. [Caution] • This command is only effective if an auto cutter error has occurred. • This command is dealt with when it is receive[...]

  • Page 16

    — 14 — ESC FF [Function] Printing data in P AGE MODE [Code] <1B>H<0C>H [Outline] Executes a batch printout of the data mapped in the entire print area in P AGE MODE. [Caution] • This command is only effective when P AGE MODE is selected. • Mapped data, as well as the ESC T and ESC W settings, and the character mapping position a[...]

  • Page 17

    — 15 — ESC SP n [Function] Setting the right spacing of the character [Code] <1B>H<20>H<n> [Range] 0 n 255 [Outline] Sets the right spacing of character to [n × basic calculation pitch] inches. [Caution] • If the horizontal magnification of character is 2 or more, the right spacing increases with the magnification. • The [...]

  • Page 18

    — 16 — [Sample Program] [Print Results] AAAAA ← 0-dot space AAAAA ← 1-dot space AAAAA ← 12-dots space LPRINT CHR$(&H1B) + “ ” + CHR$(0) ; LPRINT “AAAAA” + CHR$(&HA) ; LPRINT CHR$(&H1B) + “ ” + CHR$(1) ; LPRINT “AAAAA” + CHR$(&HA) ; LPRINT CHR$(&H1B) + “ ” + CHR$(12) ; LPRINT “AAA[...]

  • Page 19

    — 17 — ESC ! n [Function] Collectively specifying the printing mode [Code] <1B>H<21>H<n> [Range] 0 n 255 [Outline] Printing mode is assigned. Bit Function V alue 01 0 Character Font Font A Font B 1 Undefined 2 Undefined 3 Emphasis Canceled Specified 4 Double height Canceled Specified 5 Double width Canceled Specified 6 Undefin[...]

  • Page 20

    — 18 — [Sample Program] [Print Results] Font A Font B Font A + Emphasis Font B + Emphasis + Quadruple + Underline Font A + Underline Font A + Double Width Font A + Double Height ∨∨ ∨ LPRINT CHR$(&H1B) + “!” + CHR$(&H00) + “H” ; LPRINT CHR$(&H1B) + “!” + CHR$(&H01) + “H” ; LPRINT CHR$(&H1B) + “!” + C[...]

  • Page 21

    — 19 — ESC $ n1 n2 [Function] Specifying the absolute positions [Code] <1B>H<24>H<n1><n2> [Range] 0 n1 255 0 n2 255 [Outline] The printing start position is specified with the number of dots (1/203 inch unit) from the beginning of a line. • The number of dots is divided by 256, whose quotient is taken as “n2” and t[...]

  • Page 22

    — 20 — [Sample Program] [Print Results] Relative Position Specified Absolute Position Specified AB C BA 0 50 100 256 –62 LPRINT CHR$(&H1B) + “$” ; LPRINT CHR$(0) + CHR$(0) + “A” ; LPRINT CHR$(&H1B) + “$” ; LPRINT CHR$(50) + CHR$(0) + “B” ; LPRINT CHR$(&H1B) + “$” ; LPRINT CHR$(0) + CHR$(1) + “C” ; LPRINT CH[...]

  • Page 23

    — 21 — ESC % n [Function] Specifying/Canceling download character set [Code] <1B>H<25>H<n> [Range] 0 n 255 [Outline] Specifying/canceling download characters. • Only the lowest bit (n0) is valid for n. n0 Function 0 Canceling download character set 1 Specifying download character set [Caution] Download characters and downloa[...]

  • Page 24

    — 22 — ESC & s n m [a [p] s × a] m–n+1 [Function] Defining the download characters [Code] <1B>H<26>H<s>H<n><m>[<a><p1><p2> ⋅ ⋅ <ps × a>]m-n+1 [Range] s = 3 32 n m 126 0 a 12 (Font A) 0 a 9 (Font B) 0 p1 ⋅ ⋅ ps × a 255 [Outline] Defines the font of download characters of alph[...]

  • Page 25

    — 23 — [Example] Create each data bit by setting “1” for a printed dot and “0” for an unprinted dot. [Sample Program] Refer to Sample Program and Print Results for ESC % on page 23. Font A Font B 12dot 24dot p1 p4 p5 p6 p34 p35 MSB LSB p36 p2 p3 9dot 24dot p1 p4 p5 p6 p25 p26 MSB LSB p27 p2 p3[...]

  • Page 26

    — 24 — ESC * m n1 n2 [ d ] k [Function] Specifying the bit image mode [Code] <1B>H<2A>H<m><n1><n2> [<d>] k [Range] m= 0, 1, 32, 33 0 n1 255 0 n2 3 0 d 255 k = n1 + 256 × n2 (m = 0, 1) k = (n1+ 256 × n2) × 3 (m = 32, 33) [Outline] According to the number of dots specified in “n1”, “n2”, specify the [...]

  • Page 27

    — 25 — [Sample Program] [Print Results] ← 8-dots single density ← 8-dots double density ← 24-dots single density ← 24-dots double density LPRINT CHR$(&H1B) + “ * ” ; LPRINT CHR$(0) + CHR$(20) + CHR$(0); GOSUB IMG1 LPRINT CHR$(&HA); LPRINT CHR$(&H1B + “ * ” ; LPRINT CHR$(1) + CHR$(20) + CHR$(0)[...]

  • Page 28

    — 26 — ESC – n [Function] Specifying/Canceling underline [Code] <1B>H<2D>H<n> [Range] 0 n 2 48 n 50 [Outline] Specifying/canceling an underline. [Caution] • 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 [...]

  • Page 29

    — 27 — < < < < < < < < < < < ESC 2 [Function] Specifying 1/6-inch line feed rate [Code] <1B>H<32>H [Outline] The line feed rate per line is specified by 1/6 inch. [Caution] Line feed rate can be specified respectively for both ST ANDARD MODE and P AGE MODE. [Sample Program] [Print Results] 1/6-inch l[...]

  • Page 30

    — 28 — ESC 3 n [Function] Setting line feed rate of minimum pitch [Code] <1B>H<33>H<n> [Range] 0 n 255 [Outline] Sets the line feed width per line to [n × basic calculation pitch] inches. [Caution] The line feed width can be set separately for the ST ANDARD and P AGE MODES. The basic calculation pitch is set by GS P . Once de[...]

  • Page 31

    — 29 — ESC = n [Function] Data input control [Code] <1B>H<3D>H<n> [Range] 0 n 255 [Outline] Selecting equipment for which data input from the host is valid. • Each bit of “n” indicates as follows: Bit Equipment V alue 01 0 Printer Invalid V alid 1 Not defined 2 Not defined 3 Not defined 4 Not defined 5 Not defined 6 Not [...]

  • Page 32

    — 30 — ESC ? n [Function] Deleting download characters [Code] <1B>H<3F>H<n> [Range] 32 n 126 [Outline] Deletes the downloaded characters of specified code. [Caution] • The character “n” indicates the character code used to delete the defined pattern. After the deletion, characters are printed in the same pattern as the i[...]

  • Page 33

    — 31 — ESC @ [Function] Initializing the printer [Code] <1B>H<40>H [Outline] Clears data stored in the print buffer and brings various settings to the initial state (Default state). [Caution] • The settings of DIP switches are not read again. • Data inside the internal input buffer is not cleared. • Macro definitions are not c[...]

  • Page 34

    — 32 — ESC D [ n ] k NUL [Function] Setting horizontal tab position [Code] <1B>H<44>H [<n>] k<00> [Range] 1 n 255 0 k 32 [Outline] Specifying a horizontal tab position. • “n” indicates the number of columns from the beginning to the horizontal tab position. Note, however , that “n= set position – 1”. For exam[...]

  • Page 35

    — 33 — ESC E n [Function] Specifying/Canceling Emphasis Printing [Code] <1B>H<45>H<n> [Range] 0 n 255 [Outline] Specifying/canceling the emphasized characters. • “n” is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: n0 Function 0 Canceling emphasis printing 1 Specifying emphas[...]

  • Page 36

    — 34 — ESC G n [Function] Specifying/Canceling Double strike printing [Code] <1B>H<47>H<n> [Range] 0 n 255 [Outline] Specifying/canceling the double strike printing. • “n” is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows. n0 Function 0 Canceling double strike printing 1 Specif[...]

  • Page 37

    — 35 — ESC J n [Function] Printing and feeding paper in minimum pitch [Code] <1B>H<4A>H<n> [Range] 0 n 255 [Outline] Prints the data held in the print buffer and feeds paper by [n × basic calculation pitch] inches. The beginning of the line is taken as the next print start position. [Caution] The line feed width can be set se[...]

  • Page 38

    — 36 — ESC L [Function] Selecting P AGE MODE [Code] <1B>H<4C>H [Outline] Switches from ST ANDARD MODE to P AGE MODE. [Caution] • This command is only effective if it entered at the beginning of a line. • This command is not effective if it is entered when in P AGE MODE. • ST ANDARD MODE is restored when printing specified by F[...]

  • Page 39

    — 37 — ESC M n [Function] Selection of character fonts [Code] <1B>H<4D>H<n> [Definition value] n=0, 1, 48, 49 [Outline] Selects character fonts. n Function 0, 48 Selection of font A (12 × 24) 1, 49 Selection of font B (9 × 24) [Details] ESC ! can also select fonts, but the setting made by the command that has last been proce[...]

  • Page 40

    — 38 — ESC R n [Function] Selecting the international character set [Code] <1B>H<52>H<n> [Range] 0 n 10 [Outline] Depending on the value of “n”, one of the following character sets is specified; n Character Set 0 U.S.A. 1 France 2 Germany 3 U.K. 4 Denmark I 5 Sweden 6 Italy 7 Spain I 8 Japan 9 Norway 10 Denmark II 11 Spain[...]

  • Page 41

    — 39 — ESC S [Function] Selecting ST ANDARD MODE [Code] <1B>H<53>H [Outline] Switches from P AGE MODE to ST ANDARD MODE. [Caution] • This command is only effective if it is entered when in P AGE MODE. • Any data mapped in P AGE MODE is erased. • After this command is executed, the beginning of the line is taken as the next pri[...]

  • Page 42

    — 40 — ESC T n [Function] Selecting the character printing direction in P AGE MODE [Code] <1B>H<54>H<n> [Range] 0 n 3 48 n 51 [Outline] Selects the direction and start point of character printing in P AGE MODE. n Printing direction Start point 0, 48 Left to right T op left (“A” in the figure) 1, 49 Bottom to top Bottom lef[...]

  • Page 43

    — 41 — ESC V n [Function] Specifying/Canceling 90°-right-turned characters [Code] <1B>H<56>H<n> [Range] n = 0, 1, 48, 49 [Outline] Specifying/canceling 90°-right- turned characters. n Function 0, 48 Canceling 90°-right- turned Characters 1, 49 Specifying 90°-right- turned Characters [Caution] No underlines are attached to [...]

  • Page 44

    — 42 — ESC W xL xH yL yH dxL dxH dyL dyH [Function] Defining the print area in P AGE MODE [Code] <1B>H<57>H<xL><xH><yL><yH><dxL><dxH><dyL><dyH> [Range] 0 xL, xH, yL, yH, dxL, dxH, dyL, dyH 255, except for dxL = dxH = 0 or dyL = dyH = 0 [Outline] Defines the location and size of the pri[...]

  • Page 45

    — 43 — • The figure below illustrates the print area, where X = horizontal start point, Y=vertical start point, Dx=horizontal length, and Dy=vertical length. The printable area for this printer is approximately 72.070 mm (576/203 inches) horizontally and 117 mm (1662/360 inches) vertically . [Default] xL=xH=yL=yH=0 dxL=64, dxH=2, dyL=126, dyH[...]

  • Page 46

    — 44 — ESC nL nH [Function] Specifying the relative position [Code] <1B>H<5C>H<nL><nH> [Range] 0 nL 255 0 nH 255 [Outline] This command specifies the next print start position in a relative position with respect to the current position. The next print start position will be at a point of [(nL + nH × 256) × basic calc[...]

  • Page 47

    — 45 — ESC a n [Function] Aligning the characters [Code] <1B>H<61>H<n> [Range] 0 n 2 48 n 50 [Outline] All the printed data within one line are aligned in the specified position. • Depending on the value “n”, positional alignment is carried out as shown in the table below: n Position 0,48 Left end alignment 1,49 Centerin[...]

  • Page 48

    — 46 — ESC c 3 n [Function] Selecting the Paper Sensor valid for a paper end signal output [Code] <1B>H<63>H<33>H<n> [Range] 0 n 255 [Outline] This command selects by which Paper Sensor a paper end signal should be output. Each bit for “n” has the following meaning: Bit Position V alue 01 0 Paper Near -end Disabled E[...]

  • Page 49

    — 47 — ESC c 4 n [Function] Selecting the Paper Near -end Sensor valid for print stop [Code] <1B>H<63>H<34>H<n> [Range] 0 n 255 [Outline] This command selects the Paper Near -end Sensor which helps to stop printing when the paper supply almost runs out. Each bit for “n” has the following meaning: Bit Position V alue [...]

  • Page 50

    — 48 — ESC c 5 n [Function] Enabling/Disabling the panel switches [Code] <1B>H<63>H<35>H<n> [Range] 0 n 255 [Outline] Enabling/disabling the FEED switch. • “n” is valid only in the lowest bit. n0 Condition 0 FEED switch valid 1 FEED switch invalid [Caution] When the panel switch is disabled with this command, the F[...]

  • Page 51

    — 49 — ESC d n [Function] Printing and feeding the paper by “n” lines [Code] <1B>H<64>H<n> [Range] 0 n 255 [Outline] Prints data in the print buffer and feeds paper by “n” lines. • Specified lines do not remain. • The beginning of the line is specified as the next print start position. [Caution] If [n × line feed [...]

  • Page 52

    — 50 — ESC n n [Function] Setting a remaining amount of printout [Code] <1B>H<6E>H<n> [Range] 0 n 255 (“n” in the 2nd byte denotes this command.) [Outline] This command sets the remaining amount of printing after detecting paper near end 1. n is set in cm. [Caution] • If the paper near end (PNE) sensor is disabled, this [...]

  • Page 53

    — 51 — ESC t n [Function] Selecting the character code table [Code] <1B>H<74>H<n> [Range] 0 n 9, n = 255 [Outline] Selecting the character code table: The character code table is selected based on the value of “n”. n Character Code T able 0 Codepage PC437 (USA, European Standard) 1 Codepage Katakana (Japanese) 2 Codepage P[...]

  • Page 54

    — 52 — ESC { n [Function] Specifying/Canceling the inverted characters [Code] <1B>H<7B>H<n> [Range] 0 n 255 [Outline] Specifying/canceling inverted characters. • “n” is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: n0 Condition 0 Canceling inverted characters. 1 Specifying in[...]

  • Page 55

    — 53 — GS ! n [Function] Specifying the character size [Code] <1D>H<21>H<n> [Range] 0 n 255, where: 1 vertical magnification 8, 1 horizontal magnification 8 [Outline] Specifies the character size (V ertical and horizontal magnification). Bit Function V alue Hex. Number Decimal Number 0 1 V ertical magnification Refer to T able[...]

  • Page 56

    — 54 — • If characters of different vertical magnification are contained in a line, the baseline of each character is lined up. • Horizontal and vertical magnification can also be specified/ canceled by ESC !. The ESC ! or GS ! command, whichever is handled last, becomes effective. [Default] n = 0 [See Also] ESC ![...]

  • Page 57

    — 55 — GS $ nL nH [Function] Specifying the absolute vertical position of characters in P AGE MODE [Code] <1D>H<24>H<nL><nH> [Range] 0 nL 255 0 nH 255 [Outline] This command is used in P AGE MODE to specify the vertical position of characters at the data mapping start position as an absolute value measured from the start[...]

  • Page 58

    — 56 — GS * n1 n2 [ d ] n1 × n2 × 8 [Function] Defining the download bit image [Code] <1D>H<2A>H<n1><n2> [< d >] n1 × n2 × 8 [Range] 1 n1 255 1 n2 48 n1 × n2 1536 0 d 255 [Outline] Defines download bit images of the number of dots specified by n1 and n2. • The numbers of dots are n1 × 8 in horizontal direct[...]

  • Page 59

    — 57 — [Sample Program] [Print Results] ← QUADRUPLE MODE ← NORMAL MODE ← DOUBLE WIDTH MODE ← DOUBLE HEIGHT MODE GOSUB IMG LPRINT CHR$(&H1D) + “/” + CHR$(0); LPRINT CHR$(&H1D) + “/” + CHR$(1); LPRINT CHR$(&H1D) + “/” + CHR$(2); LPRINT CHR$(&H1D) + “/” + CHR$(3); END IMG: n1=10 : n2=[...]

  • Page 60

    — 58 — GS ( A pL pH n m [Function] Execution of test printing [Code] <1D>H<28>H<41>H<pL><pH><n><m> [Definition] (pL+(pH × 256))=2 (pL=2, pH=0) 0 n 2, 48 n 50 1 m 3, 49 m 51 [Outline] Specified test printing will be executed. • pL, pH will specify the number of subsequent parameters by (pL+(pH × 256)[...]

  • Page 61

    — 59 — GS / m [Function] Printing the downloaded bit image [Code] <1D>H<2F>H<m> [Range] 0 m 3 48 m 51 [Outline] Prints downloaded bit image in a mode specified by “m”. Modes that can be selected by “m” are shown below . m Mode Name Dot Density in Dot Density in V ertical Direction Horizontal Direction 0,48 NORMAL MODE [...]

  • Page 62

    — 60 — GS : [Function] Starting/Ending macro definition [Code] <1D>H<3A>H [Outline] Specifying starting/ending macro definition. Reception of this command during macro definition signifies ending the macro definition. [Caution] Maximum content available for macro definition is 2048 bytes. A portion exceeding 2048 bytes is not define[...]

  • Page 63

    — 61 — GS A m n [Function] Correcting the position of black mark top position [Code] <1D>H<41>H<m> <n> [Range] m=0, 0 n 255 [Outline] This command sets the top position of the black mark with the amount of correction set for the default position. m0 Direction 0 Corrects in the forward direction. [Caution] • This comman[...]

  • Page 64

    — 62 — GS B n [Function] Specifying/Canceling the black/white inverted printing [Code] <1D>H<42>H<n> [Range] 0 n 255 [Outline] This command specifies or cancels the black/white inverted printing. • “n” is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: n0 Function 0 The black/w[...]

  • Page 65

    — 63 — GS H n [Function] Selecting of printing position of HRI characters [Code] <1D>H<48>H<n> [Range] 0 n 3 48 n 51 [Outline] Selecting printing position of HRI characters in printing bar codes. • “n” means the followings. n Printing Position 0,48 No printing 1,49 Above the bar code 2,50 Below the bar code 3,51 Both abo[...]

  • Page 66

    — 64 — Printed above and below [Print Results] No HRI characters Printed above Printed below[...]

  • Page 67

    — 65 — GS I n [Function] Sending the printer ID [Code] <1D>H<49>H<n> [Range] 1 n 3 49 n 51 [Outline] Sends the specified printer ID. n T ype of printer ID Specification V alue (Hex.) 1,49 Model ID CBM1000 30 2,50 T ype ID Refer to table “T ype ID” below 3,51 ROM version ID As per ROM version T ype ID If n=2, 50 is specifie[...]

  • Page 68

    — 66 — GS L nL nH [Function] Setting the left margin [Code] <1D>H<4C>H<nL><nH> [Range] 0 nL 255 0 nH 255 [Outline] This command sets the left margin specified by nL and nH. The value of the left margin is [(nL + nH × 256) × basic calculation pitch] inches. Print Area Width [Caution] • This command only works when it [...]

  • Page 69

    — 67 — • 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. [Defau[...]

  • Page 70

    — 68 — GS P x y [Function] Specifying the basic calculation pitch [Code] <1D>H<50>H<x><y> [Range] 0 x 255 0 y 255 [Outline] This command sets the horizontal basic calculation pitch to approx. 25.4/x mm (1/x inches), and the vertical basic calculation pitch to approx. 25.4/y mm (1/y inches). • If x = 0, the horizontal b[...]

  • Page 71

    — 69 — GS R 0 n [Function] Collecting receipts [Code] <1D>H<53>H<30>H<n>H [Range] n=0 [Outline] • This command is valid only when the collection function of the DIP switch is enabled. • This command is ignored in any of the following cases. (1) There is no paper in the presenter . The state where no eject command is [...]

  • Page 72

    — 70 — GS R 1 n [Function] Setting receipt collection timer [Code] <1D>H<53>H<31>H<n> [Range] 0 n 9 [Outline] • This command is valid only when the collection function of the DIP switch is enabled. • This command sets the wait time till the receipts are collected automatically . • If n=1 to 9, n × 2.5 sec is set. [...]

  • Page 73

    — 71 — GS S [Function] Detecting a black mark [Code] <1D>H<53>H [Outline] • This command is valid only when a black mark is set in the paper selection with DIP switch. • Entering this command allows detection of a black mark. • When a black mark is detected, the print paper is cut and ejected. • Also at the time of printer p[...]

  • Page 74

    — 72 — GS V m ......... (1) GS V m n ..... (2) [Function] Cutting the paper [Code] (1) <1D>H<56>H<m> (2) <1D>H<56>H<m><n> [Range] (1) m = 0, 1, 48, 49 (2) m = 65, 66 0 n 255 [Outline] Performs the specified paper cutting. m Function 0,1,48,49 Paper cut (full cut) (Leaving a bridge area uncut) 65,66 Pape[...]

  • Page 75

    — 73 — GS W nL nH [Function] Setting the print area width [Code] <1D>H<57>H<nL><nH> [Range] 0 nL 255 0 nH 255 [Outline] Sets the print area width specified by nL and nH. • The print area width will be [(nL + nH × 256) × basic calculation pitch] inches. [Caution] • This command only works when it is entered at the b[...]

  • Page 76

    — 74 — (2) If a sufficient area cannot be provided as a result of step (1), the print area is extended toward the left (So, the left margin is decreased). (3) If a sufficient area cannot be provided as a result of step (2), the right spacing is trimmed. • When mapping a bit image (Or downloaded bit image), if the print area is narrower than t[...]

  • Page 77

    — 75 — GS nL nH [Function] Specifying the relative vertical position of a character in P AGE MODE [Code] <1D>H<5C>H<nL><nH> [Range] 0 nL 255 0 nH 255 [Outline] This command is used in P AGE MODE to specify the vertical position of a character in the data mapping start position, in a relative position with respect to th[...]

  • Page 78

    — 76 — GS ^ n1 n2 n3 [Function] Executing the macro [Code] <1D>H<5E>H<n1><n2><n3> [Range] 0 n1 255 0 n2 255 0 n3 1 [Outline] Executing contents defined in macro. n1 : The number of times of macro execution n2 : Waiting time on macro execution W aiting time of n2 × 100 msec is given for every execution. n3 : Macro [...]

  • Page 79

    — 77 — GS a n [Function] Enabling/Disabling ASB (Automatic Status Back) [Code] <1D>H<61>H<n> [Range] 0 n 255 [Outline] This command selects the status item to be addressed by ASB (Automatic Status Back.) Bit Status item addressed by ASB Hex. Decimal 0 Undefined —— 1 Online/offline status = disabled 00 0 Online/offline stat[...]

  • Page 80

    — 78 — (1) 1st byte (Printer information) Bit Status Hex. Decimal 0 Unused 00 0 1 Unused 00 0 2 Unused 00 0 3 Online status 00 0 Offline status 08 8 4 Unused 10 16 5 Unused 00 0 6 Not in paper feed state triggered by FEED switch 00 0 In paper feed state triggered by FEED switch 40 64 7 Unused 00 0 (2) 2nd byte (Error occurrence information) Bit[...]

  • Page 81

    — 79 — (3) 3rd byte (Paper Sensor information) Bit Status Hex. Decimal 0 Paper found by Paper Near -end Sensor 1 00 0 Paper not found by Paper Near-end Sensor 1 01 1 1 Paper found by Paper Near -end Sensor 2 00 0 Paper not found by Paper Near-end Sensor 2 02 2 2 Paper found by Paper-end Sensor 00 0 Paper not found by Paper-end Sensor 04 4 3 Pap[...]

  • Page 82

    — 80 — GS f n [Function] Selecting the font of HRI characters [Code] <1D>H<66>H<n> [Range] n = 0, 1 [Outline] Selecting the font of HRI characters in printing bar code. The type of font can be selected with “ n ” as follows: n Font 0, 48 Font A (12 × 24) 1, 49 Font B (9 × 24) The HRI characters refer to the bar code-turn[...]

  • Page 83

    — 81 — GS h n [Function] Specifying the height of the bar code [Code] <1D>H<68>H<n> [Range] 1 n 255 [Outline] Selecting bar code height. “ n ” denotes the number of dots in the vertical direction. [Default] n = 162 [Sample Program] Refer to Sample Program and Print Results for GS w on page 93.[...]

  • Page 84

    — 82 — GS k m [d1 ..... dk] NUL GS k m n [d1 ...... dn] [Function] Printing the bar code [Code] (1) <1D>H<6B>H<m> [d1.....dk] NUL (2) <1D>H<6B>H<m><n> [d1....dn] [Range] (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” var[...]

  • Page 85

    — 83 — [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 norma[...]

  • Page 86

    — 84 — For P AGE MODE: • This command only maps the bar code, without performing a printout. After the bar code is mapped, the dot next to the last data item of the bar code is taken as the start position for the next data mapping. • If “d” is out of the range, the processing of the command is aborted, and the subsequent data is handled[...]

  • Page 87

    — 85 — [Description of Bar Codes] <For print examples, refer to page 88.> UPC-A This bar code, consisting of numerals only , has a fixed length of 12 columns; a 11-column 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 fr[...]

  • Page 88

    — 86 — CODABAR (NW -7) This bar code, consisting of alphanumerics, has a variable length of columns. A vailable 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. CODE93 This bar code, consisting of alphanumeric and control characters, has a variable length of c[...]

  • Page 89

    — 87 — CODE128 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 T wo-digit numbers 00 - 99 can eac[...]

  • Page 90

    — 88 — Special characters Hex. ASCII Code set A Code set B Code set C 7B53 { S SHIFT SHIFT –N/A 7B41 { A –N/A CODE A CODE A 7B42 { B CODE B –N/A CODE B 7B43 { C CODE C CODE C –N/A 7B31 { 1 FNC1 FNC1 FNC1 7B32 { 2 FNC2 FNC2 –N/A 7B33 { 3 FNC3 FNC3 –N/A 7B34 { 4 FNC4 FNC4 –N/A 7B7B { { ‘ { ‘ ‘ { ‘ ‘ { ‘ <Example> T[...]

  • Page 91

    — 89 — [Description of Bar Codes] UPC-A, UPC-E, JAN-13 (EAN), JAN-8 (EAN), CODE39, ITF , CODABAR, CODE93, CODE128 T ype Print Sample Outline of Symbol Printing is done according to bar code type, number of print columns, bar code height, width (Magnification), availability of HRI character , and bar code data. UPC-A UPC-E JAN-13 JAN-8 CODE39 IT[...]

  • Page 92

    — 90 — GS r n [Function] Sending status [Code] <1D>H<72>H<n> [Range] n=1, 49 [Outline] Sends the specified status to the host. n Function 1,49 Sends the paper Sensor status. [Caution] • When the serial interface is used: For DTR/DSR control: The printer sends the status after verifying that the host is ready to receive. If t[...]

  • Page 93

    — 91 — GS v 0 m xL xH yL yH d1...dk [Function] Printing of raster bit image [Code] <1D>H<76>H<30>H<m><xL><xH><yL><yH> [<d>] k [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 × 256) × (yL+yH × 256), however , k ≠ 0 [Outline] Prints raster bit images in mod[...]

  • Page 94

    — 92 — • If this command is executed during macro definition, the macro definition is suspended, and the processing of the command starts. The macro is left undefined. • “d” denotes defined data. Dots to be printed are specified as “1”, and those not to be printed as “0”. [Example] When xL+xH × 256= 64 yL+yH × 256 dot (xL+xH ?[...]

  • Page 95

    — 93 — GS w n [Function] Specifying the horizontal size (Magnification) of bar code [Code] <1D>H<77>H<n> [Range] 2 n 6 [Outline] Selecting bar code width. “ n ” denotes the number of dots in fine element width. [Default] n = 3 [Sample Program] [Print Results] ← Height = 30, Magnification = 2 ← Height = 50, [...]

  • Page 96

    — 94 — FS g3 m a1 a2 a3 a4 nL nH d1…dk [Function] Writing data into the download user NV memory [Code] <1C>H<67>H<33>H<m>H<a1>H<a2>H<a3>H<a4>H <nL>H<nH>H[<d>]nL+(nH × 256) [Range] m=0 6000H (a1+(a2 × 256)+(a3 × 65536)+(a4 × 16777216)) 7FFFH Sto rage start address (nL+(nH ×[...]

  • Page 97

    — 95 — [Caution] • Because frequent writing in the non-volatile memory can destroy the memory , the writing command (FS g3) should be used less than 10 times a day . • It may happen that the printer becomes BUSY during the process of writing data into the non-volatile memory while this command is executed. When the printer becomes BUSY , it[...]

  • Page 98

    — 96 — FS g4 m a1 a2 a3 a4 nL nH [Function] Reading data from the download user NV memory [Code] <1C>H<67>H<34>H<m>H<a1>H<a2>H<a3>H<a4>H <nL>H<nH>H [Range] m=0 6000H (a1+(a2 × 256)+(a3 × 65536)+(a4 × 16777216)) 7FFFH Write start address +n1+nH × 256 8000H K=(nL+(nH × 256)) [Outlin[...]

  • Page 99

    — 97 — • When the XON/XOFF control is selected, all the codes are sent continuously without verifying that the host can receive the data. Data that has been sent is always continuous except for the XOFF code. • When parallel interface is used, the size of the buffer for sending data (The buffer that stores all data to be sent except for ASB[...]

  • Page 100

    — 98 — F S p n m [Function] Printing the download NV bit images [Code] <1C>H<70>H<n><m> [Range] 1 n 255 0 m 3 48 m 51 [Outline] This command prints the download NV bit images (n) using a specified mode (m). m Mode Name Dot Density in Dot Density in V ertical Direction Horizontal Direction 0,48 NORMAL MODE 203 DPI 203 DPI[...]

  • Page 101

    — 99 — • When the size of a bit image exceeds the limits of the printing area, the data within the limits of the printing area will be printed but the parts exceeding the limit will not be printed. • Regardless of the amount of line feed set with ESC 2 and ESC 3, NORMAL MODE and DOUBLE WIDTH MODE execute a paper feed of (Height n of NV bit [...]

  • Page 102

    — 100 — F S q n [xL xH yL yH d1…dk] 1… [xL xH yL yH d1…dk] n [Function] Defining the download NV bit image [Code] <1C>H<71>H<n>H{<xL><xH><yL><yH><d1...dk>}1... {<xL><xH><yL><yH><d1...dk>}n [Range] 1 n 255, 0 xL 255, 0 xH 3 but, 1 (xL + xH × 256) 1023 0 yL 255 0[...]

  • Page 103

    — 101 — • If outside-defined-area arguments are processed for the second or subsequent NV bit image data groups, the processing of this command is suspended, and a writing process into the non-volatile memory starts. At this time, the NV bit image being defined becomes invalid (Undefined), but the preceding NV bit images are valid. •“ d ?[...]

  • Page 104

    — 102 — [Caution] • Because frequent writing in the non-volatile memory can destroy the memory , the writing command should be used less than 10 times a day . • Just after the completion of the writing operation into the non- volatile memory , the printer hardware will be reset. Therefore, download characters, download bit images, and macro[...]