Command Reference LINE THERMAL PRINTER MODEL CT-S280 Rev. 0.02 Issued on 2006/8/4
- 8 - Panel Switch Commands Commands Function Mode GS P ESC c5 Enabling/disabling the panel switches S.P. Macro Commands Commands Function Mo
- 98 - • a = 116: When kind of paper is specified Setting Status Sending Data Stored Value Print Control 1st Byte 2nd Byte 3rd Byte 4th Byte 5th
- 99 - fn = 7: Function 7 Copying User-defined Page GS (E pL pH fn a d1 d2 fn = 7 [Code] <1d>H<28>H<45&g
- 100 - fn = 8: Function 8 Defining Data by the Column Format to Character Code Page of Work Area GS (E pL pH fn y c1 c2[x d1...d(y × x)]k fn = 8
- 101 - fn = 9: Function 9 Defining Data in the Raster Format to the Character Code Page of Work Area GS (E pL pH fn x c1 c2[y d1...d(y × x)]k fn
- 102 - fn = 10: Function 10 Erasing Data of Character Code Page Data in Work Area GS (E pL pH fn c1 c2 fn = 10 [Code] <1d>
- 103 - fn = 11: Function 11 Setting Communication Conditions of Serial Interface GS (E pL pH fn a d1...cdk fn = 11 [Code]
- 104 - fn = 12: Function 12 Sending the Set Communication Conditions of Serial Interface GS (E pL pH fn a fn = 12 [Code] <
- 105 - 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
- 106 - GS (K pL pH fn m [Function] Selecting print control method [Outline] Executes the setting related to the print con
- 107 - fn = 49: Function 49 Setting Printing Density GS (K pL pH fn m fn = 49 [Code] <1d>H<28>H<4B>H pL pH f
- 9 - Printer Function Setting Commands Commands Function Mode GS P GS ( E Printer function setting command S GS ( M Customizing the printe
- 108 - fn = 50: Function 50 Setting Printing Speed GS (K pL pH fn m fn = 50 [Code] <1d>H<28>H<4B>H pL pH fn
- 109 - GS (M pL pH fn m [Function] Customizing the printer [Outline] Executes processing related to escape/recovery of the va
- 110 - fn = 1, 49: Function 1 : Copies the set value stored in work area to the storage area GS (M pL pH fn m fn = 1, 49 [Code]
- 111 - fn = 3, 51: Function 3: Specifies the auto loading function of the set value at initialization to be valid or invalid. GS (M pL pH fn m fn
- 112 - GS (N pL pH fn m [Function] Designating font attribute [Outline] Executes processing of font attribute by the sp
- 113 - 2.2.14 Other Commands DLE ENQ n [Function] Real-time request to printer [Code] <10>H<05>H<n>
- 114 - DLE DC4 fn d1...d7 (Specification of fn = 8) [Function] Buffer clear [Code] <10>H<14>H<fn><d1> .
- 115 - ESC = n [Function] Data input control [Code] <1B>H<3D>H<n> [Range] 0≤n≤255 [Outline]
- 116 - ESC @ [Function] Initializing the printer [Code] <1B>H<40>H [Outline] Clears data stored i
- 117 - ESC L [Function] Selecting PAGE MODE [Code] <1B>H<4C>H [Outline] Switches from STANDARD MO
- 10 - 2.1.1 Description of Items XXXX [Function] The name of a command. [Code] The string of codes comprising the co
- 118 - ESC S [Function] Selecting STANDARD MODE [Code] <1B>H<53>H [Outline] Switches from PAGE MO
- 119 - GS ( A pL pH n m [Function] Execution of test printing [Code] <1D>H<28>H<41>H<pL><pH>
- 120 - GS I n [Function] Sending the printer ID [Code] <1D>H<49>H<n> [Range] 1≤n≤3, 49≤n≤51
- 121 - DSW If n = 112 is specified: 1st byt Bit Meaning Hex. Decimal DIP switch [DSW1] is OFF. 00 0 0 DIP switch [DSW1] is ON. 01 1 DIP switch
- 122 - GS P x y [Function] Specifying the basic calculation pitch [Code] <1D>H<50>H<x><y> [R
- 123 - 3. CHARACTER CODE TABLE 3.1 Code Page 3.1.1 Codepage 00H to 7FH & PC437 (USA, Europe Standard)
- 124 - 3.1.2 Codepage 00H to 7FH & Katakana
- 125 - 3.1.3 Codepage 00H to 7FH & PC850 (Multilingual)
- 126 - 3.1.4 Codepage 00H to 7FH & PC860 (Portuguese)
- 127 - 3.1.5 Codepage 00H to 7FH & PC863 (Canadian-French)
- 11 - 2.2 Command Details 2.2.1 Print Control Commands LF [Function] Printing and paper feed [Code] <
- 128 - 3.1.6 Codepage 00H to 7FH & PC865 (Nordic)
- 129 - 3.1.7 Codepage 00H to 7FH & PC852 (Eastern Europe)
- 130 - 3.1.8 Codepage 00H to 7FH & PC866 (Russian)
- 131 - 3.1.9 Codepage 00H to 7FH & PC857 (Turkish)
- 132 - 3.1.10 Codepage 00H to 7FH & PC864 (Arabic)
- 133 - 3.1.11 Codepage 00H to 7FH & WPC1252
- 134 - 3.1.12 Codepage 00H to 7FH & Thai Code 18
- 135 - 3.2 International Character Code Table Country 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E0 U.S.A 1
- 136 - 4. APPENDIX 4.1 Explanation on PAGE MODE 4.1.1 Overview The printer has two print modes: STANDARD and PAGE. In STANDARD MODE, the p
- 137 - 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
- 12 - CR [Function] Back to printing [Code] <0D>H [Outline] (1) When memory switch 1-5 is OFF: This command
- 138 - 4.1.4 Example of Using PAGE MODE The following explains specific uses of PAGE MODE. When in PAGE MODE, the commands are typically sent from t
- 139 - In Figure 4-3, a line feed occurs between “lesson” and “Test 1” because the space “ “ next to “lesson” does not fit in the horizontal range o
- 140 - 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);"
- 141 - 4.2 Bidirectional Parallel Interface Overview The interface of the printer is a Level-1 compatible device according to IEEE-P1284
- 142 - 4.2.3 Negotiation Overview Usually, the printer is started in Compatibility mode, which corresponds to the Centronics interface phase. When t
- 143 - Precautions (1) The Negotiation phase is triggered when the IEEE 1284 Active signal sent by the host becomes High. (2) In Compatibility mod
- 144 - Data Communication from Printer to Host Nibble Mode In this mode, data is transferred between the printer and the host through the procedure
- 145 - Byte Mode In this mode, data is transferred between the printer and the host through the procedure described below. The steps beginning fr
- 146 - Device ID The device ID is a character string that provides the ID, the type, and other information regarding the printer connected to the i
- 147 - (2) Immediate termination: 1) If the interface is deactivated (IEEE 1284 Active: Low) without Event 22 having taken place, the printer immed
- 13 - FF [Function] Printing in PAGE MODE and returning to STANDARD MODE (at the selection of PAGE MODE) [Code] <0C>
- 148 - 4.4 Memory Switch Memory switch has a function to store various settings selected by the user alternatively
- 149 - 4.4.2 Details of Memory Switches Functions of memory switches, operations at ON (1) setting, and operation at OFF (0) setting are described
- 150 - •MSW 1-3: BUSY Condition [Function] Selects the condition for the printer to become BUSY state. Auto status sending function is also activate
- 151 - •MSW 1-5: CR Code Processing [Function] Selects whether the printer operates in the same manner as LF (<0A>H) when it receives the CR
- 152 - (2) MSW2 • MSW 2-1: Reserved (ON(1)Fixed) • MSW 2-2: Reserved (OFF(0)Fixed) • MSW 2-3: Valid/Invalid of buffered printing [Function] Selec
- 153 - • MSW 2-5: Processing after Cover Close and PE Clear [Function] Selects the processing to be carried out when resuming printing after the pri
- 154 - • MSW 3-3: Reset signal for parallel I/F 31 Pin [Function] Selects whether to reset the printer by the signal of parallel I/F 31 Pin. OFF (
- 14 - ESC FF [Function] Printing data in PAGE MODE [Code] <1B>H<0C>H [Outline] Executes a batch p
- 15 - ESC d n [Function] Printing and feeding the paper by “n” lines [Code] <1B>H<64>H<n> [Range]
- 16 - 2.2.2 Print Character Commands CAN [Function] Canceling print data in PAGE MODE [Code] <18>H [Outline]
- 17 - ESC SP n [Function] Setting the right spacing of the character [Code] <1B>H<20>H<n> [Range]
REVISION Rev No. Date Comment 0.00 2005/09/06 Newly issued 0.01 2005/11/24 It corrected wrong mention 0.02 2006/08/04 It corrected wrong mention
- 18 - ESC ! n [Function] Collectively specifying the printing mode [Code] <1B>H<21>H<n> [Range]
- 19 - [Sample Program] LPRINT CHR$(&H1B);"!"; CHR$(&H00);"H"; LPRINT CHR$(&H1B);"!"; CHR$(&H
- 20 - ESC % n [Function] Specifying/canceling download character set [Code] <1B>H<25>H<n> [Range]
- 21 - ESC & s n m [a Seite s x a] m–n+1 [Function] Defining the download characters [Code] <1B>H<26>H<s>H
- 22 - ESC – n [Function] edifying/canceling underline [Code] <1B>H<2D>H<n> [Range] 0≤n≤2
- 23 - ESC ? n [Function] Deleting download characters [Code] <1B>H<3F>H<n> [Range] 32≤n≤126
- 24 - ESC E n [Function] Specifying/canceling emphasis printing [Code] <1B>H<45>H<n> [Range]
- 25 - ESC G n [Function] Specifying/canceling double strike printing [Code] <1B>H<47>H<n> [Range]
- 26 - ESC M n [Function] Selection of character fonts [Code] <1B>H<4D>H<n> [Range] 0≤n≤2
- 27 - ESC V n [Function] Specifying/canceling 90°-right-turned characters [Code] <1B>H<56>H<n> [Ra
- 1 - TABLE OF CONTENTS 1. OUTLINE ...5 1.1 Operati
- 28 - ESC t n [Function] Selecting the character code table [Code] <1B>H<74>H<n> [Range] 0≤n
- 29 - ESC { n [Function] Specifying/canceling the inverted characters [Code] <1B>H<7B>H<n> [Range]
- 30 - ESC ~ J n (MSW3-7 CBM-270-compatible mode: When enabled) [Function] Specifies/cancels printing in red [Code] <1B>H<7E>
- 31 - DC3 n (MSW3-7 CBM-270-compatible mode: When enabled) [Function] Specifies/cancels printing in red (black-based paper) [Code] &l
- 32 - GS ! n [Function] Specifying the character size [Code] <1D>H<21>H<n> [Range] 0≤n≤255,
- 33 - GS B n [Function] Specifying/canceling the black/white inverted printing [Code] <1D>H<42>H<n>
- 34 - GS b n [Function] Specifying/canceling the smoothing [Code] <1D>H<62>H<n> [Range] 0≤n
- 35 - 2.2.3 Print Position Commands HT [Function] Horizontal tab [Code] <09>H [Outline] Shifts the pri
- 36 - ESC $ n1 n2 [Function] Specifying the absolute positions [Code] <1B>H<24>H<n1><n2> [Ra
- 37 - ESC D [ n ] k NULL [Function] Setting horizontal tab position [Code] <1B>H<44>H [<n>] k<00>
- 2 - 2.2.4 Line Feed Span Commands ...47 ESC 2 (Specifying 1/
- 38 - ESC T n [Function] Selecting the character printing direction in PAGE MODE [Code] <1B>H<54>H<n&g
- 39 - ESC W xL xH yL yH dxL dxH dyL dyH [Function] Defining the print area in PAGE MODE [Code] <1B>H<57>H<x
- 40 - ESC \ nL nH [Function] Specifying the relative position [Code] <1B>H<5C>H<nL><nH> [Range
- 41 - ESC a n [Function] Aligning the characters [Code] <1B>H<61>H<n> [Range] 0≤n≤2 48≤
- 42 - GS $ nL nH [Function] Specifying the absolute position of character vertical direction in PAGE MODE [Code] <1
- 43 - GS L nL nH [Function] Setting the left margin [Code] <1D>H<4C>H<nL><nH> [Range] 0
- 44 - A GS W nL nH [Function] Setting the print area width [Code] <1D>H<57>H<nL><nH> [Range]
- 45 - (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 decr
- 46 - GS \ nL nH [Function] Specifying the relative vertical position of a character in PAGE MODE [Code] <1D>H&l
- 47 - 2.2.4 Line Feed Span Commands ESC 2 [Function] Specifying 1/6-inch line feed rate [Code] <1B>H<32>
- 3 - 2.2.13 Printer Function Setting Commands...88 GS ( E pL pH fn [··· ] (Pr
- 48 - ESC 3 n [Function] Setting line feed rate of minimum pitch [Code] <1B>H<33>H<n> [Range]
- 49 - 2.2.5 Bit Image Commands ESC * m n1 n2 [ d ] k [Function] Specifying the bit image mode [Code] <1B>H<2A>
- 50 - [Sample Program] LPRINT CHR$(&H1B);"*"; LPRINT CHR$(0);CHR$(20);CHR$(0); IMG1: GOSUB IMG1 LPRINT CHR$(&a
- 51 - GS * n1 n2 [ d ] n1 x n2 x 8 [Function] Defining the download bit image [Code] <1D>H<2A>H<n1><n2&
- 52 - [Sample Program] GOSUB IMG LPRINT CHR$(&H1D);"/"; CHR$(0); LPRINT CHR$(&H1D);"/"; CHR$(1); LPR
- 53 - GS / m [Function] Printing the downloaded bit image [Code] <1D>H<2F>H<m> [Range] 0≤m≤
- 54 - GS v 0 m xL xH yL yH d1...dk [Function] Printing of raster bit image [Code] <1D>H<76>H<30>H<m>
- 55 - [Example] When xL + xH x 256 = 64 (xL + xH x 256) 8 dots = 512 dots yL + yH x 256 dots 7 6 5 4 3 2
- 56 - 2.2.6 Status Commands DLE EOT n [Function] Sending status in real-time [Code] <10>H<04>H<n> [
- 57 - (1) Printer status (When n = 1 is specified) Bit Status Hex. Decimal0 Fixed 00 0 1 Fixed 02 2 2 Fixed 04 4 Online status
- 4 - 4. APPENDIX...136 4.1 Explanation on PAGE MODE ...
- 58 - (3) Status caused by an error (when n = 3 is specified) Bit Status Hex. Decimal0 Fixed 00 0 1 Fixed 02 2 2 Fixed 00 0
- 59 - ESC v(MSW3-7 CBM-270-compatible mode: When enabled or at the selection of serial I/F) [Function] Transmission of printer status [Code]
- 60 - GS a n [Function] Enabling/disabling ASB (Automatic Status Back) [Code] <1D>H<61>H<n> [Rang
- 61 - (1) 1st byte (Printer information) Bit Status Hex. Decimal0 Unused 00 0 1 Unused 00 0 2 Unused 00 0 Online status 00 0 3
- 62 - (4) 4th byte (Paper Sensor information) Bit Status Hex. Decimal0 Undefined — — 1 Undefined — — 2 Undefined — — 3 Undefine
- 63 - GS r n [Function] Sending status [Code] <1D>H<72>H<n> [Range] n=1,49 [Outline]
- 64 - 2.2.7 Paper Detecting Commands ESC c 3 n [Function] Selecting the Paper Sensor valid for a Paper-end signal output [
- 65 - ESC c 4 n [Function] Selecting the Paper Near-end Sensor valid for print stop [Code] <1B>H<63>H<
- 66 - 2.2.8 Panel Switch Commands ESC c 5 n [Function] Enabling/disabling the panel switches [Code] <1B>H<6
- 67 - 2.2.9 Macro Commands GS : [Function] Starting/ending macro definition [Code] <1D>H<3A>H [Outline
- 5 - 1. OUTLINE 1.1 Operation Mode CT-S280 has ESC/POSTM as control commands. 1.2 Character Set All print
- 68 - GS ^ n1 n2 n3 [Function] Executing the macro [Code] <1D>H<5E>H<n1><n2><n3> [Range]
- 69 - 2.2.10 Bar Code Commands GS H n [Function] Selecting of printing position of HRI characters [Code] <1D>H
- 70 - [Print Results] No HRI characters Printed above Printed below Printed above and b
- 71 - GS f n [Function] Selecting the font of HRI characters [Code] <1D>H<66>H<n> [Range] 0
- 72 - GS h n [Function] Specifying the height of the bar code [Code] <1D>H<68>H<n> [Range]
- 73 - GS k m [d1 ... dk] NULL ... (1) GS k m n [d1 ... dn] ... (2) [Function] Printing the bar code
- 74 - [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 hav
- 75 - [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
- 76 - Control Character Control Character ASCII Hex. HRI Character ASCII Hex. HRI Character NULL 00 ■U DLE 10 ■P SOH 01 ■A DC1 11 ■Q STX 02 ■B DC
- 77 - When sending print data, note these points: (1) Each string of bar code data must begin with a code set select character (CODE A, CODE B, or C
- 6 - 2. CONTROL COMMANDS 2.1 ESC/POS Command List Print Control Commands Command Function Mode GS P LF Printing and pap
- 78 - [Bar Code Print Example] UPC-A, UPC-E, JAN-13 (EAN), JAN-8 (EAN), CODE39, ITF, CODABAR, CODE93, CODE128 Type Print Sample Outline of Sy
- 79 - GS w n [Function] Specifying the horizontal size (magnification) of bar code [Code] <1D>H<77>H<
- 80 - 2.2.11 Commands for Non-volatile Memory F S p n m [Function] Printing the download NV bit images [Code] <1C&
- 81 - 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
- 82 - • 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 si
- 83 - 2.2.12 Numbering Control Commands GS C 0 m n [Function] Setting the numbering print mode [Code] <1D>H<4
- 84 - GS C 1 n1 n2 n3 n4 n5 n6 [Function] Setting the numbering counter mode (A) [Code] <1D>H<43>H<31>H<
- 85 - GS C 2 n1 n2 [Function] Setting the numbering counter [Code] <1D>H<43>H<32>H<n1><n2>
- 86 - GS C ; n1 ; n2 ; n3 ; n4 ; n5 ; [Function] Setting the numbering counter mode (B) [Code] <1D>H<43&g
- 87 - GS c [Function] Print the counter [Code] <1D>H<63>H [Outline] This command prints the seri
- 7 - Print Position Commands Commands Function Mode GS P HT Horizontal tab S.P. ESC $ Specifying the absolute positions S.P. O ESC D
- 88 - 2.2.13 Printer Function Setting Commands GS ( E pL pH fn [··· ] [Function] Printer function setting command [Outline] P
- 89 - fn = 1: Function 1 Transferring to Printer Function Setting Mode GS ( E pL pH fn d1 d2 fn = 1 [Code] <1d>H<28>
- 90 - fn = 2: Function 2 End of Printer Function Setting Mode GS (E pL pH fn d1 d2 d3 fn = 2 [Code] <1d>H<28&
- 91 - fn = 3: Function 3 Setting Memory Switch Value GS (E pL pH fn [a1 b18 ··· b11] ··· [ak bk8 ··· bk1] fn = 3 [Code] <1d>H<28
- 92 - • Setting memory switch 2 (a = 2) n b (Set Value) Function 1 49 (Default) Reserved 2 48 (Default) Reserved 48 (Default) Disables stored p
- 93 - fn = 4: Function 4 Sending the Set Memory Switch Value GS (E pL pH fn a fn = 4 [Code] <1d>H<28>H<45>H
- 94 - fn = 5: Function 5 Setting Customized Value GS (E pL pH fn [a1 n1L n1H]...[ak nkL nkH] fn = 5 [Code] <1d>H<28>H<45
- 95 - • a = 6: Sets printing speed to the value specified by (nL + nH x256). (nL + nH x256) Printing Speed 1 Printing speed level 1 (84%) 2 Printin
- 96 - fn = 6: Function 6 Sending the Set Customized Value GS (E pL pH fn a fn = 6 [Code] <1d>H<28>H<45>H pL
- 97 - • a = 2: NV When memory capacity of graphics is specified Setting Status Sending Data Stored Value Memory capacity1st Byte 2nd Byte 3rd B
Kommentare zu diesen Handbüchern