Citizen CT-S300 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Citizen CT-S300, 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 CT-S300 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 CT-S300. 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 CT-S300 should contain:
- informations concerning technical data of Citizen CT-S300
- name of the manufacturer and a year of construction of the Citizen CT-S300 item
- rules of operation, control and maintenance of the Citizen CT-S300 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 CT-S300 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 CT-S300, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Citizen 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 CT-S300.

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 CT-S300 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

    Command Reference LINE THERMAL PRINTER MODEL CT -S300 Rev . 0.01 Newly issued on July 17, 2003[...]

  • Page 2

    Rev . No. Date Comment Re v . 0.01 2003/07/17 Ne wly issued REVISION[...]

  • Page 3

    — i — T ABLE OF CONTENTS 1. OUTLINE .................................................................................................................... .......................... 1 1.1 Operation Mode ............................................................................................................ ................................ 1 1[...]

  • Page 4

    — ii — 2.2.5 Bit Image Commands ...................................................................................................... ................. 45 ESC * m n1 n2 [ d ] k .................................................................................................... ................... 45 GS * n1 n2 [ d ] n1 × n2 × 8 .............[...]

  • Page 5

    — iii — GS (K pL pH fn m fn = 50 ..................................................................................................... ............. 111 GS (K pL pH fn m fn = 97 ..................................................................................................... ............. 112 GS (M pL pH fn m ...............................[...]

  • Page 6

    — 1 — 1. OUTLINE 1.1 Operation Mode CT -S300 has ESC/POS TM as control commands. 1.2 Character Set All print data sent from the host computer to the printer are automatically converted to one-byte alphanumeric or katakana characters (ANK) or two-byte Kanji corresponding to the characters and symbols. NOTE: For the contents of character set, ref[...]

  • Page 7

    — 2 — 2. CONTROL COMMANDS 2.1 ESC/POS Command List Print Control Commands Control Function Mode GS P Command LF Printing and paper feed S.P . CR Back to printing S.P . FF (1) Printing in P AGE MODE and returning to ST ANDARD MODE (at the selection of P AGE MODE) (2) Printing of Black mark and paper feeding to the top of the print position (with[...]

  • Page 8

    — 3 — Print Position Commands Commands Function Mode GS P HT Horizontal tab S.P . ESC $ Specifying the absolute positions S.P . O ESC D Setting horizontal tab position S.P . ESC T Selecting the character printing direction in P AGE MODE P ESC W Defining the print area in P AGE MODE P O ESC Specifying the relative position S.P . O ESC a Aligni[...]

  • Page 9

    — 4 — Panel Switch Commands Commands Function Mode GS P ESC c5 Enabling/disabling the panel switches S.P . Macro Commands Commands Function Mode GS P GS : Starting/ending macro definition S.P . GS ^ Executing the macro S.P . Cutter Commands Commands Function Mode GS P GS V Cutting the paper S.P . O Bar Code Commands Commands Function Mode GS P [...]

  • Page 10

    — 5 — Printer Function Setting Commands Commands Function Mode GS P GS ( D Enabling or disabling real-time command S GS ( E Printer function setting command S GS ( M Customizing the printer S GS ( N Designating font attribute S Other Commands Commands Function Mode GS P DLE ENQ Real-time request to printer S.P . DLE DC4 Outputting specified pul[...]

  • Page 11

    — 6 — 2.1.1 Description of Items 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 values (setting range) [...]

  • Page 12

    — 7 — 2.2 Command Details 2.2.1 Print Control Commands 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] After this command is executed, the beginning of the line is taken as the start position for the next point. [See A[...]

  • Page 13

    — 8 — CR [Function] Back to printing [Code] <0D>H [Outline] (1) When memory switch 1-3 is OFF: This command is ignored. (2) When memory switch 1-3 is ON: The same operation as LF is executed. [See Also] LF [Sample Program] LPRINT "AAA";CHR$(&HD); LPRINT "BBB";CHR$(&HD); LPRINT CHR$(&HD); LPRINT "CCC&qu[...]

  • Page 14

    — 9 — FF [Function] (1) Printing in P AGE MODE and returning to ST ANDARD MODE (at the selection of P AGE MODE) (2) Printing of Black mark and paper feeding to the top of the print position (with Black mark paper selected) [Code] <0C>H (1) At selection of P AGE MODE [Outline] Executes a batch printout of the data mapped in the entire prin[...]

  • Page 15

    — 10 — 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 16

    — 11 — 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. [Caution] • After this command is executed, the beginning of the line is taken as the start position for[...]

  • Page 17

    — 12 — 2.2.2 Print Character Commands 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 effectiv[...]

  • Page 18

    — 13 — 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. • Does[...]

  • Page 19

    — 14 — ESC ! n [Function] Collectively specifying the printing mode [Code] <1B>H<21>H<n> [Range] 0 n 255 [Outline] Printing mode is assigned. [Caution] • With double height and double width being specified simultaneously , quadruple characters are created. • An underline is attached to the full character width, which, howe[...]

  • Page 20

    — 15 — [Sample Program] LPRINT CHR$(&H1B);"!";CHR$(&H00);"H"; LPRINT CHR$(&H1B);"!";CHR$(&H01);"H"; LPRINT CHR$(&H1B);"!";CHR$(&H08);"H"; LPRINT CHR$(&H1B);"!";CHR$(&H10);"H"; LPRINT CHR$(&H1B);"!";CHR$(&H20);"H[...]

  • Page 21

    — 16 — ESC % n [Function] Specifying/canceling download character set [Code] <1B>H<25>H<n> [Range] 0 n 255 [Outline] Specifying/canceling download characters. •“ n ” is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: [Default] n = 0 [See Also] ESC & [Sample Program] GOSUB S[...]

  • Page 22

    — 17 — ESC & s n m [a [p] s × a] m–n+1 [Function] Defining the download characters [Code] <1B>H<26>H<s>H<n>H<m>H[<a>H<p1>H<p2> ·· <ps × a>]m – n + 1 [Range] s = 3 (Font A, B) s = 2 (Font C) 32 n m 126 0 a 12 (Font A) 0 a 9 (Font B) 0 a 8 (Font C) 0 p1 ⋅ ⋅ ps × a 255 [Outline[...]

  • Page 23

    — 18 — ESC – n [Function] Specifying/canceling underline [Code] <1B>H<2D>H<n> [Range] 0 n 2 48 n 50 [Outline] Specifying/canceling an underline. Underline canceled Underline specified ←→ ←→ AAAAAAAAAA [Caution] • An underline is attached to the full character width. It is, however , not atta[...]

  • Page 24

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

  • Page 25

    — 20 — 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: [Caution] • Emphasis printing can also be specified/cancel[...]

  • Page 26

    — 21 — 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 Speci[...]

  • Page 27

    — 22 — ESC M n [Function] Selection of character fonts [Code] <1B>H<4D>H<n> [Range] 0 n 2 48 n 50 [Outline] Selects character fonts. [Caution] • ESC ! can also select fonts, but the setting made by the command that has last been processed becomes valid. • In case font C selection ESC R is other than n = 8 (katakana), codep[...]

  • Page 28

    — 23 — ESC V n [Function] Specifying/canceling 90 ° -right-turned characters [Code] <1B>H<56>H<n> [Range] 0 n 2 48 n 50 [Outline] Specifying/canceling 90 ° -right-turned characters. [Caution] • No underlines are attached to 90 ° -right-turned characters. • This command does not affect P AGE MODE but setting is maintaine[...]

  • Page 29

    — 24 — ESC t n [Function] Selecting the character code table [Code] <1B>H<74>H<n> [Range] 0 n 9 16 n 19 n = 22, 255 [Outline] Selecting the character code table. The character code table is selected based on the value of “ n ” . [Default] This is a character code table specified with the value of “ n ” . [Sample Progra[...]

  • Page 30

    — 25 — 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: [Caution] • This command is valid only when it is specifie[...]

  • Page 31

    — 26 — ESC ~ J n (V alid in CBM1000II-Compatible Mode) [Function] Specifies/cancels printing in red (black-based paper) [Code] <1B>H<7E>H<4A>H<n> [Range] 0 n 255 [Outline] Specifies or cancels printing in red. • Red printing is valid on black-based thermal paper . Specifies or cancels printing in black on red-based the[...]

  • Page 32

    — 27 — DC3 n (V alid in CBM1000II-Compatible Mode) [Function] Specifies/cancels printing in red (black-based paper) [Code] <13>H<n> [Range] 0 n 255 [Outline] Specifies or cancels printing in red. • Red printing is valid on black-based thermal paper . Specifies or cancels printing in black on red-based thermal paper . •“ n ” [...]

  • Page 33

    — 28 — Bit Function V alue Hex. Number Decimal Number 0 1 2 3 4 5 6 7 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). T able 1 Horizontal Magnifi[...]

  • Page 34

    — 29 — 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/[...]

  • Page 35

    — 30 — GS b n [Function] Specifying/canceling the smoothing [Code] <1D>H<62>H<n> [Range] 0 n 255 [Outline] This command specifies or cancels the smoothing. •“ n ” is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: [Caution] • Smoothing is effective to printer ’ s internal c[...]

  • Page 36

    — 31 — 2.2.3 Print Position Commands 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. [Default] At the selection of font A, tabs are set every 8 cha[...]

  • Page 37

    — 32 — 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 by the absolute position from the left margin with the number of dots divided by 256 and quatient specified as “n2” and remainder as “n1”. Therefor[...]

  • Page 38

    — 33 — ESC D [ n ] k NULL [Function] Setting horizontal tab position [Code] <1B>H<44>H [<n>] k<00>H [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 ” . F[...]

  • Page 39

    — 34 — 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. [Caution] • When ST ANDARD MODE is selected, this command only executes the internal flagging of the printer withou[...]

  • Page 40

    — 35 — 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 41

    — 36 — 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 42

    — 37 — 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: [Caution] • This command is valid only when it [...]

  • Page 43

    — 38 — GS $ nL nH [Function] Specifying the absolute position of character vertical direction in P AGE MODE [Code] <1D>H<24>H<nL><nH> [Range] 0 nL 255, 0 nH 255 [Outline] Specifies the vertical position of character at the start point of data development in P AGE MODE using absolute position based on the start position. [...]

  • Page 44

    — 39 — 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. [Caution] • This command only works when it is entered at the[...]

  • Page 45

    — 40 — A 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 beg[...]

  • Page 46

    — 41 — (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 47

    — 42 — 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 48

    — 43 — 2.2.4 Line Feed Span Commands 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] LPRINT "AAAAA";CHR$(&HA); LPRINT CHR$[...]

  • Page 49

    — 44 — 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. [Χαυτιον] • The line feed width can be set separately for the ST ANDARD and P AGE MODES. • The basic calculation pitch is set by[...]

  • Page 50

    — 45 — 2.2.5 Bit Image Commands ESC * m n1 n2 [ d ] k [Function] Specifying the bit image mode [Code] <1B>H<2A>H<m>H<n1><n2>[<d>]k [Range] m = 0, 1, 32, 33 0 n1 255 0 n2 2 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 ?[...]

  • Page 51

    — 46 — [Sample Program] LPRINT CHR$(&H1B);"*"; LPRINT CHR$(0);CHR$(20);CHR$(0); IMG1: GOSUB IMG1 LPRINT CHR$(&HFF); LPRINT CHR$(&HA); FOR I = 1 T O 18 LPRINT CHR$(&H1B);"*"; LPRINT CHR$(&H85); LPRINT CHR$(1);CHR$(20);CHR$(0); NEXT I GOSUB IMG1 LPRINT CHR$(&HFF); LPRINT CHR$(&HA); RETURN LPRINT CHR[...]

  • Page 52

    — 47 — 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 [Outline] • Defines download bit images of the number of dots specified by “ n1 ” and “ n2 ” . • The numbers of dots are n1 × 8 in hori[...]

  • Page 53

    — 48 — [Sample Program] 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=5 LPRINT CHR$(&H1D);"*"; LPRINT CHR$(n1);CHR$(n2); FOR J=1 TO n1*8 FOR I=1 T O n2 LPRINT CHR$(J); NE[...]

  • Page 54

    — 49 — 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 . [Caution] • When a downloaded bit image has not been defined, this command is ignored. • Wh[...]

  • Page 55

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

  • Page 56

    — 51 — [Example] When xL + xH × 256 = 64 7 123 6 2 126 K-2 127 K-1 128 K 63 64 65 66 67 6 5 4 3 2 1 0 LSB MSB yL + yH × 256 dots (xL + xH × 256) × 8 dots = 512 dots[...]

  • Page 57

    — 52 — 2.2.6 Status Commands 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 t[...]

  • Page 58

    — 53 — (1) Printer status (When n = 1 is specified) (2) Status caused by an offline condition (When n = 2 is specified) Bit 5: Printing is stopped if the Paper -end detector detects a “ paper out ” state, or if the printer is out of paper when the Paper Near -end Sensor is enabled by ESC c 4. At this time, bit 5 = 1. Bit Status Hex. Decimal[...]

  • Page 59

    — 54 — (3) Status caused by an error (when n = 3 is specified) Bit 3: If this error occurred because of a paper jam, for example, remove the cause of the error , and then DLE ENQ n (1 n 2) can be used to recover from the error . However , it is not possible to recover from any er ror due to a circuit problem (e.g., broken wire). Bit 6: If a hea[...]

  • Page 60

    — 55 — 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.) [Caution] • If any status item is enabled, the status is sent to the host when this command is executed. After that time o[...]

  • Page 61

    — 56 — Bit Status Hex. Decimal 0 Unused 00 0 1 Unused 00 0 2 Status of pin 3 of drawer kick-out connector = “ L ” 00 0 Status of pin 3 of drawer kick-out connector = “ H ” 04 4 3 Online status 00 0 Offline status 08 8 4 Unused 01 16 5 Cover closed 00 0 Cover open 20 32 6 Not in paper feed state triggered by FEED switch 00 0 In paper fee[...]

  • Page 62

    — 57 — Bit Status Hex. Decimal 0 Undefined —— 1 Undefined —— 2 Undefined —— 3 Undefined —— 4 Unused 00 0 5 Undefined —— 6 Undefined —— 7 Unused 00 0 (4) 4th byte (Paper Sensor information) * In case of MSW3-7 ON (CBM1000 compatible mode) (4) 4th byte (Paper Sensor information) * In case of MSW3-7 OFF (CBM1000 non-compati[...]

  • Page 63

    — 58 — GS r n [Function] Sending status [Code] <1D>H<72>H<n> [Range] 1 n 2 49 n 50 [Outline] Sends the specified status to the host. [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 the host is not ready to receive, the prin[...]

  • Page 64

    — 59 — Bit Status Hex. Decimal 0 Status of pin 3 of drawer kick connector = “ L ” 00 0 Status of pin 3 of drawer kick connector = “ H ” 01 1 1 Undefined —— 2 Undefined —— 3 Undefined —— 4 Unused 00 0 5 Undefined —— 6 Undefined —— 7 Unused 00 0 • Drawer kick-out connector status (n = 2, 50) [See Also] Appendix 4.3 ?[...]

  • Page 65

    — 60 — 2.2.7 Paper Detecting Commands 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: [Caution] This com[...]

  • Page 66

    — 61 — Bit Position V alue 01 0 Paper Near -end Disabled Enabled 1 Paper Near -end Disabled Enabled 2 Undefined — — 3 Undefined — — 4 Undefined — — 5 Undefined — — 6 Undefined — — 7 Undefined — — ESC c 4 n [Function] Selecting the Paper Near -end Sensor valid for print stop [Code] <1B>H<63>H<34>H<n&g[...]

  • Page 67

    — 62 — 2.2.8 Panel Switch Commands 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 for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: [Caution] • When the FEED switc[...]

  • Page 68

    — 63 — 2.2.9 Macro Commands 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[...]

  • Page 69

    — 64 — 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 : W aiting time on macro execution: W aiting time of n2 × 100 msec is given for every execution. n3 : Macr[...]

  • Page 70

    — 65 — 2.2.10 Cutter Commands 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 = 1, m = 49 (2) m = 66 [Outline] Performs the specified paper cutting. [Caution] • In ST ANDARD MODE, this command only works when it is entere[...]

  • Page 71

    — 66 — 2.2.11 Bar Code Commands 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 th[...]

  • Page 72

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

  • Page 73

    — 68 — 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: The HRI characters refer to the bar code-turned characters so that you can read them. [Caution] The H[...]

  • Page 74

    — 69 — 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 [See Also] GS k, GS w [Sample Program] Refer to Sample Program and Print Results for GS w .[...]

  • Page 75

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

  • Page 76

    — 71 — [Caution] For (1): • This command ends with a NULL 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 norm[...]

  • Page 77

    — 72 — [Description of Bar Codes] 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 from the host, the entire bar code will be prin[...]

  • Page 78

    — 73 — Control Character Control Character ASCII Hex. ASCII Hex. NULL 00 ■ U DLE 10 ■ P SOH 01 ■ A DC1 11 ■ Q STX 02 ■ B DC2 12 ■ R ETX 03 ■ C DC3 13 ■ S EOT 04 ■ D DC4 14 ■ T ENQ 05 ■ E NAK 15 ■ U ACK 06 ■ F SYN 16 ■ V BEL 07 ■ G ETB 17 ■ W BS 08 ■ H CAN 18 ■ X HT 09 ■ IE M 1 9 ■ Y LF 0A ■ J SUB 1A ■[...]

  • Page 79

    — 74 — 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 { { ‘ { ‘ ‘ { ‘ ‘ { ‘ When sending print data, note these [...]

  • Page 80

    — 75 — T ype Print Sample Outline of Symbol UPC-A 12-column fixed-length bar code consisting of numerals only . UPC-E 8-column fixed-length bar code consisting of numerals only . Abbreviated version of UPC-A. JAN-13 13-column fixed-length bar code consisting of numerals only . JAN-8 8-column fixed-length bar code consisting of numerals only . C[...]

  • Page 81

    — 76 — 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. [Default] n = 3 [Sample Program] LPRINT CHR$(&H1D);"h";CHR$(30); LPRINT CHR$(&H1D);"w";CHR$(2); GOSUB BC LPRINT CHR$(&H1D);"h";CHR$[...]

  • Page 82

    — 77 — 2.2.12 Commands for Non-volatile Memory 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). • “n” denotes the number of the download bit image. • “m” denot[...]

  • Page 83

    — 78 — 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>[<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 y[...]

  • Page 84

    — 79 — • The maximum definition area of this printer is 2M bits (256K bytes). Multiple NV bit images can be defined, but bit images of which total size (Bit image data + Header) exceeds 2M bits (256K bytes) can not be defined. • The printer state will change to BUSY just before the writing operation into the non-volatile memory begins. Also[...]

  • Page 85

    — 80 — 2.2.13 Black Mark Control Commands GS FF (V alid Only at B.M Paper Selection) [Function] Printing and ejecting Black mark paper [Code] <1DH><0C>H [Outline] This command prints the data in the printer buffer and ejects Black mark paper . [Caution] V alid only if Black mark paper is selected. [See Also] FF , GS < GS < (V [...]

  • Page 86

    — 81 — GS A m n (V alid Only at B.M Paper Selection) [Function] Correcting the leader position of Black mark paper [Code] <1DH><41>H<m><n> [Range] 0 m 255 0 n 255 [Outline] This command sets the leader position of Black mark paper in terms of correction value set for the default position. “m” denotes the correcting d[...]

  • Page 87

    — 82 — GS C0 m n [Function] Setting the numbering print mode [Code] <1D>H<43>H<30>H<m><n> [Range] 0 m 5 0 n 2 [Outline] This command sets the numbering (serial number counter) print mode. “m” denotes the number of print columns. m = 0 Prints the columns indicated by numeral. In this case, “n” has no meaning[...]

  • Page 88

    — 83 — GS C1 n1 n2 n3 n4 n5 n6 [Function] Setting the numbering counter mode (A) [Code] <1D>H<43>H<31>H<n1><n2><n3><n4><n5><n6> [Range] 0 n1 , n2 , n3 , n4 , n5 , n6 255 [Outline] This command sets the numbering (serial number counter) mode. n1 + n2 × 256 (n1 = remainder , n2 = quotient): C[...]

  • Page 89

    — 84 — GS C2 n1 n2 [Function] Setting the numbering counter [Code] <1D>H<43>H<32>H<n1><n2> [Range] 0 n1 255 0 n2 255 [Outline] This command sets the numbering (serial number counter) value. n1 + n2 × 256 (n1 = remainder , n2 = quotient) becomes a counter value. [Caution] • If the counter is set with this command[...]

  • Page 90

    — 85 — GS C ; n1 ; n2 ; n3 ; n4 ; n5 ; [Function] Setting the numbering counter mode (B) [Code] <1D>H<43>H<3B>H<n1><3B>H<n2><3B>H<n3> <3B>H<n4><3B>H<n5><3B>H <n1>, <n2>, <n3>, <n4>, <n5> are character codes. [Range] 0 n1 , n2 , n5 65535 0[...]

  • Page 91

    — 86 — GS c [Function] Print the counter [Code] <1D>H<63>H [Outline] This command prints the serial number counter data. After setting the current counter value in the print buffer as the print data (character string), it increments or decrements the counter according to the set count mode. [Caution] • The format used in setting t[...]

  • Page 92

    — 87 — GS I n1L n1H n2L n2H [Function] Setting the Black mark length [Code] <1D>H<6C>H<n1L><n1H><n2L><n2H> [Range] 0 n1L 255 (24 n1L + n1H × 256 360) 0 n1H 1 8 n2L 30 n2H = 0 [Outline] Define the specifications (length) of the Black mark used. n1: Sets the Black mark length n2: Sets the Black mark gap length[...]

  • Page 93

    — 88 — 2.2.14 Printer Function Setting Commands GS (D pL pH m [a1 b1] ··· [ak bk] [Function] Enabling or disabling real-time command [Code] <1d>H<28>H<44>pL pH m [a1 b1] ··· [ak bk] [Range] 3 (pL + pH × 256) 65535 m = 20 a = 1 b = 0, 1, 48, 49 [Default] a Kind of Real-time Command Default 1 DLE DC4 fn m t(fn = 1): Real-[...]

  • Page 94

    — 89 — GS (E pL pH fn [···] [Function] Printer function setting command [Outline] Printer function setting command is a command to change the function of the printer stored on the non-volatile memory and executes the function set by the value of “ fn ” . Function Function No. (fn) 1 T ransfers to printer function setting mode. (Note) 2 T[...]

  • Page 95

    — 90 — fn = 1: Function 1 T ransferring to Printer Function Setting Mode GS (E pL pH fn d1 d2 fn = 1 [Code] <1d>H<28>H<45>pL pH fn d1 d2 [Range] (pL + pH × 256) = 3 (pL = 3, pH = 0) fn = 1 d1 = 73 (“I”) d2 = 78 (“N”) [Outline] T ransfers to printer function setting mode and sends the report of mode transfer . Hex. No.[...]

  • Page 96

    — 91 — fn = 2: Function 2 End of Printer Function Setting Mode GS (E pL pH fn d1 d2 d3 fn = 2 [Code] <1d>H<28>H<45>pL pH fn d1 d2 d3 [Range] (pL + pH × 256) = 4 (pL = 4, pH = 0) fn = 2 d1 = 79 (“O”) d2 = 85 (“U”) d3 = 84 (“T”) [Outline] • T erminates printer function setting mode and executes resetting. Clears i[...]

  • Page 97

    — 92 — fn = 3: Function 3 Setting Memory Switch V alue GS (E pL pH fn [a1 b18 ··· b11] ··· [ak bk8 ··· bk1] fn = 3 [Code] <1d>H<28>H<45>pL pH fn[a1 b18···b11]···[ak bk8···bk1] [Range] 10 (pL + pH × 256) 65535 fn = 3 a = 1, 2, 3, 4 b = 48, 49, 50 [Outline] • Changes the memory switch set in a to the value s[...]

  • Page 98

    — 93 — • Setting memory switch 2 (a = 2) n b (Set V alue) Function 1 49 (Default) Reserved 2 48 Disables auto cutter . 49 (Default) Enables auto cutter . 3 48 (Default) Enables stored printing. 49 Disables stored printing. 4 48 Sets printing at full columns to be the same as CBM1000. 49 (Default) Sets printing at full columns to be the same a[...]

  • Page 99

    — 94 — • Setting memory switch 4 (a = 4) n b (Set V alue) Function 48 (Default) At the selection of Black mark paper , disables auto end- 1 measurement. 49 At the selection of Black mark paper , enables auto end- measurement. 48 (Default) At the selection of Black mark paper , sets sensor position to 2 be on the printing side. 49 At the selec[...]

  • Page 100

    — 95 — fn = 4: Function 4 Sending the Set Memory Switch V alue GS (E pL pH fn a fn = 4 [Code] <1d>H<28>H<45>pL pH fn a [Range] (pL + pH × 256) = 2 fn = 4 a = 1, 2, 3, 4 [Outline] • Sends the content of memory switch set in “a”. • Sends the set value of data in 8-byte data raw in order of bits 8, 7, 6, .... OFF: 30H (?[...]

  • Page 101

    — 96 — fn = 5: Function 5 Setting Customized V alue GS (E pL pH fn [a1 n1L n1H]...[ak nkL nkH] fn = 5 [Code] <1d>H<28>H<45>pL pH fn [a1 n1L n1H]...[ak nkL nkH] [Range] 4 (pL + pH × 256) 65535 fn = 5 1 a 3 a = 5, 6, 97, 116, 201, 202 1 (nL + nH × 256) 65535 [Default] Described in the processing table for “a”. [Outline] ?[...]

  • Page 102

    — 97 — (nL + nH × 256) Printing Speed 1 Printing speed level 1 (84%) 2 Printing speed level 2 (86%) 3 Printing speed level 3 (88%) 4 Printing speed level 4 (90%) 5 Printing speed level 5 (92%) 6 Printing speed level 6 (94%) 7 Printing speed level 7 (96%) 8 Printing speed level 8 (98%) 9 (Default) Printing speed level 9 (100%) • a = 97: Sets [...]

  • Page 103

    — 98 — fn = 6: Function 6 Sending the Set Customized V alue GS (E pL pH fn a fn = 6 [Code] <1d>H<28>H<45>pL pH fn a [Range] (pL + pH × 256) = 2 : (pL = 2, pH = 0) fn = 6 1 a 3, a = 5, 6, 97, 116, 201, 202 [Outline] • Sends the set value of customized value set by “a”. Hex. No. of Data Header 37H 1 ID 27H 1 Customized va[...]

  • Page 104

    — 99 — • a = 5: When print density is specified Setting Status Sending Data Stored Print 1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte V alue Density 65530 70% 54 ( “ 6 ” ) 53 ( “ 5 ” ) 53 ( “ 5 ” ) 51 ( “ 3 ” ) 48 ( “ 0 ” ) 65531 75% 54 ( “ 6 ” ) 53 ( “ 5 ” ) 53 ( “ 5 ” ) 51 ( “ 3 ” ) 49 ( “ 1 ” ) 65532[...]

  • Page 105

    — 100 — • a = 116: When kind of paper is specified Setting Status Sending Data Stored Print 1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte V alue Control 1 Single-color 49 ( “ 1 ” ) ———— paper 2 2-color paper 50 ( “ 2 ” ) ———— • a = 201: When ACK output position is specified Setting Status Sending Data Stored ACK Outpu[...]

  • Page 106

    — 101 — • a = 209: PNE sensor judgment time Setting Status Sending Data Stored Density 1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte V alue Multiplication 1 2 times 49( “ 1 ” ) ———— 2 3 times 50 ( “ 2 ” ) ———— 3 4 times 51 ( “ 3 ” ) ———— 4 5 times 52 ( “ 4 ” ) ———— 5 6 times 53 ( “ 5 ” ) —?[...]

  • Page 107

    — 102 — fn = 7: Function 7 Copying User -defined Page GS (E pL pH fn a d1 d2 fn = 7 [Code] <1d>H<28>H<45>pL pH fn a d1 d2 [Range] (pL + pH × 256) = 4 : (pL = 4, pH = 0) fn = 7 a = 10, 12, 17 [Outline] • Copies the data of user -defined code page in the font specified by “a”. a Font T ype 10 Font A: 12 (horizontal) × 24[...]

  • Page 108

    — 103 — fn = 8: Function 8 Defining Data by the Column Format to Character Code Page of W ork Area GS (E pL pH fn y c1 c2[x d1...d(y × x)]k fn = 8 [Code] <1d>H<28>H<45>pL pH fn y c1 c2 [x d1..d(yXx)]k [Range] 5 (pL + pH × 256) 65535 fn = 8 y = 2 (At selection of font C) y = 3 (At selection of other than font C) 128 c1 c2 255[...]

  • Page 109

    — 104 — fn = 9: Function 9 Defining Data in the Raster Format to the Character Code Page of W ork Area GS (E pL pH fn x c1 c2[y d1...d(y × x)]k fn = 9 [Code] <1d>H<28>H<45>pL pH fn x c1 c2 [y d1...d(yXx)]k [Range] 5 (pL + pH × 256) 65535 fn = 9 y = 1 (At selection of font C) y = 2 (At selection of other than font C) 128 c1 c[...]

  • Page 110

    — 105 — fn = 10: Function 10 Erasing Data of Character Code Page Data in W ork Area GS (E pL pH fn c1 c2 fn = 10 [Code] <1d>H<28>H<45>pL pH fn c1 c2 [Range] (pL + pH × 256) = 3 fn = 10 128 c1 c2 255 [Outline] Erases (set to space) data in units of character on the character code page in work area. Operates only in printer fun[...]

  • Page 111

    — 106 — fn = 11: Function 11 Setting Communication Conditions of Serial Interface GS (E pL pH fn a d1...cdk fn = 11 [Code] <1d>H<28>H<45>pL pH fn a d1..dk [Range] 3 (pL + pH × 256) 65535 (0 pL 255, 0 pH 255) fn = 11 1 a 4 (Not changed in other than specified range) 48 d 57 (Not changed in other than specified range) 1 k 6 [Ou[...]

  • Page 112

    — 107 — fn = 12: Function 12 Sending the Set Communication Conditions of Serial Interface GS (E pL pH fn a fn = 12 [Code] <1d>H<28>H<45>pL pH fn a [Range] (pL + pH × 256) = 2 (pL = 2, pH = 0) fn = 12 1 a 4 (Does not send in other than specified range) [Outline] Sends communication conditions of serial interface specified by ?[...]

  • Page 113

    — 108 — fn = 255: Function 255 Setting All Contents Set by Printer Function Setting Mode to the State at Shipment GS (E pL pH fn a fn = 255 [Code] <1d>H<28>H<45>pL pH fn a [Range] (pL + pH × 256) = 2 fn = 255 a = 3, 5, 11, 255 [Outline] Restores various kinds of function set by printer function setting mode to the setting at [...]

  • Page 114

    — 109 — GS (K pL pH fn m [Function] Selecting print control method [Outline] Executes the setting related to the print control specified by the value of “ fn ” . Function Function No. (fn) 49 Sets printing density . 50 Sets printing speed. 97 Sets the number of divisions for head conducting. 200 Selects print paper . 201 Sets paper feed amo[...]

  • Page 115

    — 110 — fn = 49: Function 49 Setting Printing Density GS (K pL pH fn m fn = 49 [Code] <1d>H<28>H<4B>pL pH fn m [Range] (pL + pH × 256) = 2 : (pL = 2, pH = 0) fn = 49 0 m 9, 250 m 255 [Default] m = 0 (Customized value setting value) [Outline] Sets printing density . m Printing Density 250 Selects density level –6 (70%) 251 S[...]

  • Page 116

    — 111 — fn = 50: Function 50 Setting Printing Speed GS (K pL pH fn m fn = 50 [Code] <1d>H<28>H<4B>pL pH fn m [Range] (pL + pH × 256) = 2 : (pL = 2, pH = 0) fn = 50 0 m 4, 48 m 52 [Default] m = 0 (Customized value setting) [Outline] Sets printing speed. m Printing Speed 0, 48 Selects print control mode at power on. 1, 49 Selec[...]

  • Page 117

    — 112 — fn = 97: Function 97 Setting Number of Divisions for Head Conducting GS (K pL pH fn m fn = 97 [Code] <1d>H<28>H<4B>pL pH fn m [Range] (pL + pH × 256) = 2 : (pL = 2, pH = 0) fn = 97 0 m 6, 48 m 52 [Default] m = 9 (Customize value setting) [Outline] Sets the number of divisions for head conducting. m No. of Divisions fo[...]

  • Page 118

    — 113 — GS (M pL pH fn m [Function] Customizing the printer [Outline] Executes processing related to escape/recovery of the value set in the work area or the data defined by various kinds of command. • W ork area: Area where data is initialized by power OFF of resetting (initialize). Operation is made in accordance with the data set in this a[...]

  • Page 119

    — 114 — fn = 1, 49: Function 1 GS (M pL pH fn m fn = 1, 49 [Code] <1d>H<28>H<4D>pL pH fn m [Range] (pL + pH × 256) = 2 : (pL = 2, pH = 0) fn = 1, 49 m = 1, 49 [Outline] Copies the set value stored in work area to the storage area. [Caution] • This command allows writing to non-volatile memor y . Therefore, using this comman[...]

  • Page 120

    — 115 — fn = 3, 51: Function 3 GS (M pL pH fn m fn = 3, 51 [Code] <1d>H<28>H<4D>pL pH fn m [Range] (pL + pH × 256) = 2 : (pL = 2, pH = 0) fn = 3, 51 m = 0, 1, 48, 49 [Outline] Determines the setting of storage area at initialization to the work area by the value of “m”. m Function 0, 48 Does not copy data from storage are[...]

  • Page 121

    — 116 — GS (N pL pH fn m [Function] Designating font attribute [Outline] Executes processing of font attribute by the specified fn value. fn = 48: Function 48 GS (N pL pH fn m fn = 48 [Code] <1d>H<28>H<4E>pL pH fn m [Range] (pL + pH × 256) = 2 : (pL = 2, pH = 0) fn = 48 m = 49 (At single color paper setting) m = 49, 50 (At 2-[...]

  • Page 122

    — 117 — 2.2.15 Other Commands 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] • (n = 1) or (n = 2) shall be used after removing the error . • When receiving a code row coinc[...]

  • Page 123

    — 118 — DLE DC4 fn m t (Specification of fn = 1) [Function] Outputting specified pulse in real-time [Code] <10>H<14>H<fn><m><t> [Range] fn = 1, 0 m 8, 1 t 8 [Outline] • A signal specified with “t” is output to the connector pin specified with “m”. • Set the ON time/OFF time to t × 100 ms, respectively [...]

  • Page 124

    — 119 — DLE DC4 fn d1...d7 (Specification of fn = 8) [Function] Buffer clear [Code] <10>H<14>H<fn><d1> ...<d7> [Range] fn = 8, d1 = 1, d2 = 3, d3 = 20, d4 = 1, d5 = 6, d6 = 2, d7 = 8 [Outline] • Erases all data in receiving buffer or print buffer . • Sends the following 3-byte data group. Hex. Decimal No. of Da[...]

  • Page 125

    — 120 — 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. • When the printer has not been selected, this printer abandons all the received data until it is selected by this com[...]

  • Page 126

    — 121 — A A A 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 ar[...]

  • Page 127

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

  • Page 128

    — 123 — 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 pr[...]

  • Page 129

    — 124 — ESC p m n1 n2 [Function] Generating the specified pulses [Code] <1B>H<70>H<m><n1><n2> [Range] m = 0, 1, 48, 49 0 < n1 n2 255 [Outline] • The signals specified by “n1” and “n2” are output to the connector pin specified by “m”. • “m” has the followings. • The ON time is n1 × 2 ms, an[...]

  • Page 130

    — 125 — GS ( A pL pH n m [Function] Execution of test printing [Code] <1D>H<28>H<41>H<pL><pH><n><m> [Range] (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 ?[...]

  • Page 131

    — 126 — GS I n [Function] Sending the printer ID [Code] <1D>H<49>H<n> [Range] 1 n 4, 49 n 52, 65 n 69, n=112, 250, 251 [Outline] Sends the specified printer ID. n T ype of Printer ID Specification V alue (Hex.) 1,49 Model ID CT -S300 35 2,50 T ype ID Refer to table “T ype ID” below 3,51 ROM version ID 90h 4,52 Black mark L[...]

  • Page 132

    — 127 — n = 4, 52 specified (only for B.M specs) The Black mark length and mark interval currently used are returned in 4-byte code. All fractional parts in millimeters are rounded off. Byte 1 + Byte 2 × 256 = Black mark interval Byte 3 + Byte 4 × 256 = Black mark length [Caution] • Under DTR/DSR control, the printer sends the printer ID af[...]

  • Page 133

    — 128 — 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 horizo[...]

  • Page 134

    — 129 — ESC RS [Function] Sound buzzer [Code] <1B>H<1E>H [Outline] Sound the buzzer for 200 ms. [Caution] This command is buffered before execution. [Sample Program] LPRINT CHR$(&H1B);CHR$(&H1E); [Execution Result] The buzzer sounds for approx. 200 ms.[...]

  • Page 135

    — 130 — 3. CHARACTER CODE T ABLE 3.1 Code Page 3.1.1 Codepage 00H to 7FH & PC437 (USA, Europe Standard)[...]

  • Page 136

    — 131 — 3.1.2 Codepage 00H to 7FH & Katakana[...]

  • Page 137

    — 132 — 3.1.3 Codepage 00H to 7FH & PC850 (Multilingual)[...]

  • Page 138

    — 133 — 3.1.4 Codepage 00H to 7FH & PC860 (Portuguese)[...]

  • Page 139

    — 134 — 3.1.5 Codepage 00H to 7FH & PC863 (Canadian-French)[...]

  • Page 140

    — 135 — 3.1.6 Codepage 00H to 7FH & PC865 (Nordic)[...]

  • Page 141

    — 136 — 3.1.7 Codepage 00H to 7FH & PC852 (Eastern Europe)[...]

  • Page 142

    — 137 — 3.1.8 Codepage 00H to 7FH & PC857 (Russian)[...]

  • Page 143

    — 138 — 3.1.9 Codepage 00H to 7FH & PC857 (T urkish)[...]

  • Page 144

    — 139 — 3.1.10 Codepage 00H to 7FH & PC864 (Arabic)[...]

  • Page 145

    — 140 — 3.1.11 Codepage 00H to 7FH & WPC1252[...]

  • Page 146

    — 141 — 3.2 International Character Code T able Country U.K. Denmark I Sweden Italy Spain I Japan Norway Denmark II Spain II Latin America Korea Germany France U.S.A[...]

  • Page 147

    — 142 — 4. APPENDIX 4.1 Explanation on P AGE MODE 4.1.1 Overview The printer has two print modes: ST ANDARD and P AGE. In ST ANDARD MODE, the printer prints or feeds paper each time it receives a print or paper feed command. In P AGE MODE, when the printer receives print commands and/or form feed commands, it simply forwards them to the specifi[...]

  • Page 148

    — 143 — 4.1.3 Mapping of Print Data in the Print Area Print data is mapped in the print area as follows: (1) The print area is set by ESC W . When the printer has finished all of the print and paper feed actions specified before receiving an ESC W , the ESC W sets the right end (as viewed facing the printer) as the start point (x0, y0) of the p[...]

  • Page 149

    — 144 — 4.1.4 Example of Using P AGE MODE The following explains specific uses of P AGE MODE. When in P AGE MODE, the commands are typically sent from the host to the printer in the following sequence: (1) An ESC L puts the printer in P AGE MODE. (2) An ESC W specifies the print area. (3) An ESC T specifies the print direction. (4) Print data i[...]

  • Page 150

    — 145 — In Figure 4-3, a line feed occurs between “ lesson ” and “ T est 1 ” because the space “ “ next to “ lesson ” does not fit in the horizontal range of the 200 × 400-pitch print area. The line feed width conforms to the value specified by a command such as ESC 3. It is possible to set as many print areas as desired before[...]

  • Page 151

    — 146 — Before an FF is sent (170th line), the following program code can be added to remove part of the data. 180 PRINT #1, CHR$(&H1B);"W";CHR$(72);CHR$(0);CHR$(120);CHR$(0); 190 PRINT #1, CHR$(36);CHR$(0);CHR$(48)CHR$(0); 200 PRINT #1, CHR$(&H18); As a result of the additional program code, a print-out is executed as shown i[...]

  • Page 152

    — 147 — 4.2 Bidirectional Parallel Interface Overview The interface of the printer is a Level-1 compatible device according to IEEE-P1284. It supports the communication modes described in 4.2.1 below . 4.2.1 Parallel Interface Communication Mode The parallel interface of the printer provides three communication modes as outlined below . When th[...]

  • Page 153

    — 148 — 4.2.3 Negotiation Overview Usually , the printer is started in Compatibility mode, which corresponds to the Centronics interface phase. When the host intends to switch to the Nibble or Byte mode, it sends a request and negotiates with the printer . A general flow of negotiations is given below . (1) The host sets the IEEE 1284 Active si[...]

  • Page 154

    — 149 — Precautions (1) The Negotiation phase is triggered when the IEEE 1284 Active signal sent by the host becomes High. (2) In Compatibility mode, the time when the negotiation process begins is, as a general rule, after the host sets nStrobe to High and then the printer outputs an nAck pulse. Once the nStrobe signal is set to High, however [...]

  • Page 155

    — 150 — Data Communication from Printer to Host Nibble Mode In this mode, data is transferred between the printer and the host through the procedure described below . The steps beginning from (1) are applicable when the Negotiation phase has switched to the Host Busy Data A vailable phase. If the Negotiation phase has switched to the Host Busy [...]

  • Page 156

    — 151 — Byte Mode In this mode, data is transferred between the printer and the host through the procedure described below . The steps beginning from (1) are applicable when the Negotiation phase has switched to the Host Busy Data A vailable phase. If the Negotiation phase has switched to the Host Busy Data Not A vailable phase, the procedure s[...]

  • Page 157

    — 152 — Device ID The device ID is a character string that provides the ID, the type, and other information regarding the printer connected to the interface. When the printer receives a request for a device ID from the host, it replies with the following device ID: <00>H<2E>H MFG : CBM; CMD : ESC/POS; MDL : CT -S300; CLS : PRINTER; [...]

  • Page 158

    — 153 — (2) Immediate termination: 1) If the interface is deactivated (IEEE 1284 Active: Low) without Event 22 having taken place, the printer immediately performs T ermination. In this termination, the data is not guaranteed, and the printer switches the data bus from output to input within 1 µsec. In the Reverse Idle phase, the printer can n[...]