Citizen BD2-2220 Command Reference Manual

Citizen printer command reference
Hide thumbs Also See for BD2-2220:
Table of Contents

Advertisement

Quick Links

Command Reference

MODEL :
CT-S280
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
PMU2XXX
Revision 0.04 2007/8/29

Advertisement

Table of Contents
loading

Summary of Contents for Citizen BD2-2220

  • Page 1: Command Reference

    Command Reference MODEL : CT-S280 CT-S300 CT-S2000 CT-S4000 BD2-2220 CT-S310 PMU2XXX Revision 0.04 2007/8/29...
  • Page 2 REVISON Rev No. Date 0.00 2006/9/26 0.01 2006/11/22 0.02 2007/2/26 0.03 2007/5/21 0.04 2007/8/29 CITIZEN is a registered trade mark of CITIZEN HOLDINGS CO., LTD., Japan. CITIZEN es una marca registrada de CITIZEN HOLDINGS CO., LTD., Japón. Comment Newly isuued Add program sample for FS p and FS q Revised page 153,155,159,169,205-207 Supported CT-S310...
  • Page 3: Table Of Contents

    2. CONTROL COMMANDS ... 10 2.1 ESC/POS C OMMAND 2.1.1 CT-S280... 10 2.1.2 CT-S300/CT-S310... 13 2.1.3 CT-S2000 ... 16 2.1.4 CT-S4000 ... 20 2.1.5 BD2-2220... 24 2.1.6 PMU2XXX... 27 2.2 C ... 30 OMMAND ETAILS 2.2.1 Description of Items ... 30 2.2.2 Print Control Commands ...
  • Page 4 ESC t n...51 ESC { n ...52 ESC ~ J n (Valid in CBM-270-Compatible Mode)...53 ESC ~ J n (Valid in CBM1000-Compatible Mode) ...54 DC3 n (Valid in CBM-270-Compatible Mode)...55 DC3 n (Valid in CBM1000-Compatible Mode)...56 GS ! n ...57 GS B n...59 GS b n...60 2.2.4 Print Position Commands...
  • Page 5 2.2.11 Cutter Commands... 100 ESC i ...100 ESC m ...101 GS V m ・・・ (1) ...102 GS V m n ・・・ (2)...102 2.2.12 Bar Code Commands ... 103 GS H n...103 GS f n...104 GS h n...105 (1)GS k m [d1...dk] NUL ...106 (2)GS k m n [d1...dn] ...106 GS w n ...111 2.2.13 Commands for Non-volatile Memory ...
  • Page 6 Function 11 Setting Communication Conditions ...197 fn=12: Function 12 Sending the Set Communication Conditions...198 fn=255: Function 255 Setting All Contents Set by Printer Function Setting Mode to the State at Shipment..199 GS ( K pL pH fn m ...200 fn=49:...
  • Page 7 fn=82: Function 82 Sending the size of 2-dimensional code data in 2-dimensional code data storage area...214 fn=65: Function 165 Specifying QRCode model ...215 fn=67: Function 167 Sets the module width of QRCode ...215 fn=69: Function 169 Setting QRCode error correction level ...216 fn=80:...
  • Page 8 4.1 M ... 265 EMORY WITCHES 4.1.1 CT-S280... 265 4.1.2 CT-S300... 266 4.1.3 CT-S2000 ... 267 4.1.4 CT-S4000 ... 269 4.1.5 BD2-2220... 271 4.1.6 CT-S310... 272 4.2 D ETAILS OF EMORY WITCHES 4.2.1 MSW1... 276 4.2.2 MSW2... 279 4.2.3 MSW3... 282 4.2.4 MSW4...
  • Page 9: Outline

    Our printer has ESC/POSTM 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.
  • Page 10: Control Commands

    2. CONTROL COMMANDS 2.1 ESC/POS Command List 2.1.1 CT-S280 Print Control Commands Commands Printing and paper feed Back to printing Printing in PAGE MODE and returning to STANDARD MODE (at the selection of PAGE MODE) ESC FF Printing data in PAGE MODE ESC J Printing and feeding paper in minimum pitch ESC d...
  • Page 11 GS v 0 Printing of raster bit image Status Commands Command DLE EOT Sending status in real-time ESC v Sending Printer status GS a Enabling/disabling ASB (Automatic Status Back) GS r Sending status Paper Detecting Commands Command Selecting the Paper Sensor valid for Paper-end signal...
  • Page 12 FS S Setting Kanji space amount FS W Setting/Canceling four times enlargement of Kanji FS ( A Setting font attribute of Kanji Printer Function Setting Commands Command GS ( E Printer function setting command GS ( K Selecting print control method...
  • Page 13: Ct-S300/Ct-S310

    2.1.2 CT-S300/CT-S310 Print Contorl Commands Command Printing and paper feed Back to printing (1)Printing in PAGE MODE and returning to STANDARD MODE (at the selection of PAGE MODE) (2)Printing of Black mark and paper feeding to the top of the print position (with Black mark paper selected) ESC FF Printing data in PAGE MODE ESC J...
  • Page 14 Line Feed Span Commands Command ESC 2 Specifying initial line feed rate ESC 3 Setting line feed rate of minimum pitch Bit Image Commands Command ESC * Specifying the bit image mode GS * Defining the download bit image GS / Printing the downloaded bit image GS v 0 Printing of raster bit image...
  • Page 15: Printer Function Setting Commands

    Black Mark Control Commands Command GS FF Printing and ejecting Black mark paper GS < Initializing the printer mechanism GS A Correcting the leader position of Black mark paper GS C 0 Setting the numbering print mode GS C 1...
  • Page 16: Ct-S2000

    2.1.3 CT-S2000 Print Contorl Commands Command Printing and paper feed Back to printing (1)Printing in PAGE MODE and returning to STANDARD MODE (at the selection of PAGE MODE) (2)Printing of Black mark and paper feeding to the top of the print position (with Black mark paper selected) ESC FF Printing data in PAGE MODE ESC J...
  • Page 17 Command DLE EOT Sending status in real-time Transmitting the status of peripheral equipment ESC u (Serial Mode Only) ESC v Sending Printer status GS a Enabling/disabling ASB (Automatic Status Back) GS r Sending status Paper Detecting Commands Command Selecting the Paper Sensor valid for Paper-end signal...
  • Page 18 Setting font attribute of Kanji Black Mark Control Commands Command Printing and ejecting Black mark paper GS FF Initializing the printer mechanism GS < GS A Correcting the leader position of Black mark paper Setting the numbering print mode GS C 0...
  • Page 19 Other Commands Command DLE ENQ Real-time request to printer DLE DC4 Outputting specified pulse in real-time/Buffer clear ESC = Data input control ESC @ Initializing the printer ESC L Selecting PAGE MODE ESC S Selecting STANDARD MODE ESC p Generating the specified pulses...
  • Page 20: Ct-S4000

    2.1.4 CT-S4000 Print Contorl Commands Command Printing and paper feed Back to printing (1)Printing in PAGE MODE and returning to STANDARD MODE (at the selection of PAGE MODE) (2)Printing of Black mark and paper feeding to the top of the print position (with Black mark paper selected) ESC FF Printing data in PAGE MODE ESC J...
  • Page 21 Command DLE EOT Sending status in real-time Transmitting the status of peripheral equipment ESC u (Serial Mode Only) ESC v Sending Printer status GS a Enabling/disabling ASB (Automatic Status Back) GS r Sending status Paper Detecting Commands Command Selecting the Paper Sensor valid for Paper-end signal...
  • Page 22 Black Mark Control Commands Command GS FF Printing and ejecting Black mark paper GS < Initializing the printer mechanism GS A Correcting the leader position of Black mark paper GS C 0 Setting the numbering print mode GS C 1...
  • Page 23 Other Commands Command DLE ENQ Real-time request to printer DLE DC4 Outputting specified pulse in real-time/Buffer clear ESC = Data input control ESC @ Initializing the printer ESC L Selecting PAGE MODE ESC S Selecting STANDARD MODE ESC p Generating the specified pulses...
  • Page 24: Bd2-2220

    2.1.5 BD2-2220 Print Contorl Commands Command Printing and paper feed Back to printing Printing in PAGE MODE and returning to STANDARD MODE (at the selection of PAGE MODE) ESC FF Printing data in PAGE MODE ESC J Printing and feeding paper in minimum pitch ESC d Printing and feeding the paper by “n”...
  • Page 25 Bit Image Commands Command ESC * Specifying the bit image mode GS * Defining the download bit image GS / Printing the downloaded bit image GS v 0 Printing of raster bit image Status Commands Command DLE EOT Sending status in real-time GS a Enabling/disabling ASB (Automatic Status Back) GS r...
  • Page 26 FS S Setting Kanji space amount FS W Setting/Canceling four times enlargement of Kanji FS ( A Setting font attribute of Kanji Printer Function Setting Commands Command GS ( E Printer function setting command GS ( K Selecting print control method...
  • Page 27: Pmu2Xxx

    2.1.6 PMU2XXX Print Contorl Commands Command Printing and paper feed Back to printing (1)Printing in PAGE MODE and returning to STANDARD MODE (at the selection of PAGE MODE) (2)Printing of Black mark and paper feeding to the top of the print position (with Black mark paper selected) ESC FF Printing data in PAGE MODE ESC J...
  • Page 28 Bit Image Commands Command ESC * Specifying the bit image mode GS * Defining the download bit image GS / Printing the downloaded bit image GS v 0 Printing of raster bit image Status Commands Command DLE EOT Sending status in real-time GS a Enabling/disabling ASB (Automatic Status Back) GS r...
  • Page 29 FS ( A Setting font attribute of Kanji Black Mark Control Commands Command GS FF Printing and ejecting Black mark paper Printer Function Setting Commands Command GS ( E Printer function setting command GS ( K Selecting print control method...
  • Page 30: Command Details

    Note: If values outside the defined domain specified with control codes are used, malfunctions could possibly occur, so be sure to use the values within the defined domain. *The defined domain may differ depending on the model or printer setting. [Outline] [The specification which is common to the model] Indicates command functions common to relevant models.
  • Page 31: Print Control Commands

    ESC 2、ESC 3 [Sample Program] LPRINT "AAA"; CHR$(&HA); LPRINT "BBB"; CHR$(&HA); CHR$(&HA); LPRINT "CCC"; CHR$(&HA); CT-S300 CT-S2000 CT-S4000 [Print Results] - 31 - BD2-2220 CT-S310 Print and line feed Print and line feed Line feed only Print and line feed...
  • Page 32 LPRINT "AAA"; CHR$(&HD); LPRINT "BBB"; CHR$(&HD); LPRINT CHR$(&HD); LPRINT "CCC"; CHR$(&HD); CT-S300 CT-S2000 CT-S4000 [Print Results] In case of (2) Print and line feed Print and line feed Line feed only Print and line feed - 32 - BD2-2220 CT-S310...
  • Page 33: Ff (At Selection Of Page Mode

    At selection of Black mark paper (valid only for Black mark specification) [Outline] [The specification which is common to the model] This command prints the data in the printer buffer and searches for the head of the next Black mark (Black mark position) [Caution] •...
  • Page 34: Esc Ff

    • Mapped data, as well as the ESC T and ESC W settings, and the character mapping position are held even after printing. [See Also] Appendix 5.1 “Explanation on PAGE MODE” FF、ESC L、ESC S CT-S300 CT-S2000 CT-S4000 - 34 - BD2-2220 CT-S310...
  • Page 35: Esc J N

    • The maximum settable line feed width is 1016 mm (40 inches). A setting greater than this maximum is trimmed to the maximum. [Default] The initial value is not defined. [Sample Program] Refer to Sample Program and Print Results for ESC 2. CT-S300 CT-S2000 CT-S4000 - 35 - BD2-2220 CT-S310...
  • Page 36: Esc D N

    • If [n×line feed width] exceeds approximately 1016 mm, this command feeds paper by approximately 1016 mm (40 inches). [Default] The initial value is not defined. [Sample Program] LPRINT "AAAAA"; LPRINT CHR$(&H1B);"d";CHR$(2); LPRINT "AAAAA";CHR$(&HA); CT-S300 CT-S2000 CT-S4000 [Print Results] AAAAA 2/6-inch line feed AAAAA - 36 - BD2-2220 CT-S310...
  • Page 37: Print Character Commands

    • If the previously established print area overlaps the currently effective print area, the overlapped data in the previously established area will be erased. [See Also] Appendix 5.1 “Explanation on PAGE MODE” ESC L、ESC W CT-S300 CT-S2000 CT-S4000 - 37 - BD2-2220 CT-S310...
  • Page 38: Esc Sp N

    LPRINT CHR$(&H1B);" "; CHR$(1); LPRINT "AAAAA"; CHR$(&HA); LPRINT CHR$(&H1B);" "; CHR$(12); LPRINT "AAAAA"; CHR$(&HA); CT-S300 CT-S2000 CT-S4000 [Print Results] AAAAA A A A A A A A A A A - 38 - BD2-2220 CT-S310 0-dot space 1-dot space 12-dots space...
  • Page 39: Esc ! N

    [The specification which is common to the model] Printing mode is assigned. [The specification which depend on the model] CT-S300/CT-S310 Character Font Undefined Undefined Emphasis Double height Double width Undefined Underline CT-S280/CT-S2000/CT-S4000/BD2-2220/PMU2XXX Character Font Undefined Undefined Emphasis Double height Double width Undefined Underline CT-S300 CT-S2000 Function Font A (12 x 24) —...
  • Page 40 [Caution] • With double height and double width being specified simultaneously, quadruple characters are created. • An underline is attached to the full character width, which, however, is not attached to the part having been skipped by the horizontal tab (HT). Neither is it attached to 90°-right-turned characters.
  • Page 41: Esc % N

    DATA &H80,&H80,&H00 DATA &H80,&H80,&H00 DATA &H80,&H80,&H00 DATA &HFF,&HFF,&HFF DATA &HFF,&HFF,&HFF DACT-S2000 DATA &HFF,&HFF,&HFF DATA &H80,&H07,&HF9 DATA &H80,&HFF,&HF9 DATA &H87,&HFE,&H01 DATA &H9F,&H06,&H01 DATA &HF8,&H06,&H01 DATA &HF8,&H06,&H01 DATA &H9F,&H06,&H01 DATA &H87,&HFE,&H01 DATA &H80,&HFF,&HF9 DATA &H80,&H07,&HF9 DATA &HFF,&HFF,&HFF - 41 - BD2-2220 CT-S310...
  • Page 42: Esc & S N M [ A [P] S X A ] M-N+1

    • Download characters thus defined remain valid until redefinition, execution of ESC @, GS *, FS q, GS (A, deletion by ESC ?, or power OFF is performed. CT-S280/CT-S300/BD2-2220/CT-S310/PMU2XXX [Caution] • Running this command clears the definition of the download bit image.
  • Page 43 [Example] 12dot 24dot Font A 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 %. - 43 -...
  • Page 44: Esc - N

    • Underline width is constant in the specified thickness regardless of the character size. [Default] [See Also] ESC !、FS - [Sample Program] LPRINT CHR$(&H1B);"-"; CHR$(0); LPRINT "AAAAA"; LPRINT CHR$(&H1B);"-"; CHR$(1); LPRINT "AAAAA"; CHR$(&HA); CT-S300 CT-S2000 CT-S4000 Function [Print Results] Underline canceled AAAAAAAAAA - 44 - BD2-2220 CT-S310 Underline specified...
  • Page 45: Esc ? N

    • This command deletes the code-defined pattern of the character font selected by ESC !. • This command is ignored if the specified character code is undefined. [See Also] ESC &、ESC % CT-S300 CT-S2000 CT-S4000 - 45 - BD2-2220 CT-S310...
  • Page 46: Esc E N

    • Valid for all character types except HRI characters. [Default] [See Also] ESC ! [Sample Program] LPRINT CHR$(&H1B);"E"; CHR$(0); LPRINT "AAABBB"; CHR$(&HA); LPRINT CHR$(&H1B);"E"; CHR$(1); LPRINT "AAABBB"; CHR$(&HA); CT-S300 CT-S2000 CT-S4000 Function [Print Results] AAABBB AAABBB - 46 - BD2-2220 CT-S310 Emphasis canceled Emphasis specified...
  • Page 47: Esc G N

    • Control by the lowest bit (n0) is shown as follows: Canceling double strike printing Specifying double strike printing [Caution] • With this printer, double-strike printing and emphasis printing provide completely the same results. • Valid for all character types except HRI characters. [Default]...
  • Page 48: Esc M N

    Selection of font A (12 x 24) 1,49 Selection of font B (9 x 17) 2,50 Selection of font C (8 x 16) CT-S280/CT-S2000/CT-S4000/BD2-2220/PMU2XXX 0,48 Selection of font A (12 x 24) 1,49 Selection of font B (9 x 24)
  • Page 49: Esc R N

    CT-S280 support model PMU2XXX [Function] Selecting the international character set [Code] <1B >H<52>H<n> CT-S280/CT-S300/BD2-2220/PMU2XXX [Range] 0≦n≦13 CT-S2000/CT-S4000/CT-S310 0≦n≦15 [Outline] [The specification which is common to the model] Depending on the value of “n”, one of the following character sets is specified;...
  • Page 50: Esc V N

    • This command does not affect PAGE MODE but setting is maintained. [Default] [Sample Program] LPRINT CHR$(&H1B);"V"; CHR$(0); LPRINT "AAAAA"; LPRINT CHR$(&H1B);"V"; CHR$(1); LPRINT "AAAAA"; CHR$(&HA); [Print Results] 90° rotation canceled 90° rotation specified CT-S300 CT-S2000 CT-S4000 Function - 50 - BD2-2220 CT-S310...
  • Page 51: Esc T N

    Codepage PC850 9,16 Codepage PC860 Codepage PC863 Codepage PC865 Codepage PC852 [Print Results] アイウエオ - 51 - BD2-2220 CT-S310 Character Code Table Codepage PC866 Codepage PC857 Windows code Codepage PC858 Thai code 18 Codepage PC864 Space page (For user setting)
  • Page 52: Esc { N

    [Sample Program] LPRINT CHR$(&H1B) ;"{"; CHR$(0); LPRINT "TEN"; CHR$(&HA); LPRINT "ELEVEN"; CHR$(&HA); LPRINT CHR$(&H1B) ;"{"; CHR$(1); LPRINT "TEN"; CHR$(&HA); LPRINT "ELEVEN"; CHR$(&HA); [Print Results] Inversion canceled Inversion specified CT-S300 CT-S2000 CT-S4000 Function Paper feed direction - 52 - BD2-2220 CT-S310...
  • Page 53: Esc ~ J N (Valid In Cbm-270-Compatible Mode

    LPRINT CHR$(&H1B);"~";"J"; CHR$(0); LPRINT "AAAAA"; CHR$(&HA); [Print Results] AAAAA AAAAA * When dedicated thermal paper (black-based paper) is used. CT-S300 CT-S2000 CT-S4000 Function red-based paper Canceling black printing. Specifying black printing. Red printing Black printing - 53 - BD2-2220 CT-S310...
  • Page 54: Esc ~ J N (Valid In Cbm1000-Compatible Mode

    LPRINT CHR$(&H1B);"~";"J"; CHR$(0); LPRINT "AAAAA"; CHR$(&HA); [Print Results] AAAAA AAAAA * When dedicated thermal paper (black-based paper) is used. CT-S300 CT-S2000 CT-S4000 Function red-based paper Specifying black printing. Canceling black printing. Black printing Red printing - 54 - BD2-2220 CT-S310...
  • Page 55: Dc3 N (Valid In Cbm-270-Compatible Mode

    LPRINT CHR$(&H13); CHR$(0); LPRINT "AAAAA"; CHR$(&HA); [Print Results] AAAAA AAAAA * When dedicated thermal paper (Black-based paper) is used. CT-S300 CT-S2000 CT-S4000 Function red-based paper Canceling black printing. Specifying black printing. Red printing Black printing - 55 - BD2-2220 CT-S310...
  • Page 56: Dc3 N (Valid In Cbm1000-Compatible Mode

    LPRINT CHR$(&H13); CHR$(0); LPRINT "AAAAA"; CHR$(&HA); [Print Results] AAAAA AAAAA * When dedicated thermal paper (Black-based paper) is used. CT-S300 CT-S2000 CT-S4000 Function red-based paper Specifying black printing. Canceling black printing. Black printing Red printing - 56 - BD2-2220 CT-S310...
  • Page 57: Gs ! N

    Horizontal magnification Refer to Table 1, “Horizontal Magnification”. specification Table 2 Vertical Magnification Magnification Hex. 1 x (Standard) 2 x (Double width) - 57 - BD2-2220 CT-S310 Value Decimal Number Decimal Magnification 1 x (Standard) 2 x (Double )
  • Page 58 [Caution] [The specification which is common to the model] • This command is valid for all characters (alphanumeric, kana, and kanji) except for HRI characters. • This command is ignored if either the vertical magnification or horizontal magnification is out of the defined range.
  • Page 59: Gs B N

    • This command does not affect the space between lines. • Black/white inversion specification takes precedence over underline specification. Underline printing specified is, therefore, nullified if black/white inversion is specified; the underline setting, however, remains unchanged. [Default] CT-S300 CT-S2000 CT-S4000 Function - 59 - BD2-2220 CT-S310...
  • Page 60: Gs B N

    • Control by the lowest bit (n0) is shown as follows: The smoothing is canceled. The smoothing is specified. [Caution] • Smoothing is effective to printer’s internal characters, download characters, and non-standard characters. • Smoothing is not effective to characters with either of their vertical or horizontal magnification is [Default] [See Also] ESC! 、GS !
  • Page 61: Print Position Commands

    LPRINT CHR$(&H1B);"D"; LPRINT CHR$(3); CHR$(7); CHR$(14); CHR$(0); LPRINT CHR$(&H9);"AAA"; LPRINT CHR$(&H9);"BBB"; LPRINT CHR$(&H9);"CCC"; CHR$(&HA); [Printing Result] 012345678901234567890 AAA BBB CT-S300 CT-S2000 Initially set horizontal tab When set to the 4th, 8th, and 15th columns - 61 - CT-S4000 BD2-2220 CT-S310...
  • Page 62: Esc $ N1 N2

    LPRINT CHR$(0); CHR$(0);"A"; LPRINT CHR$(&H1B);"$"; LPRINT CHR$(50); CHR$(0);"B"; LPRINT CHR$(&H1B);"$"; LPRINT CHR$(0); CHR$(1);"C"; CHR$(&HA); LPRINT CHR$(&H1B);"$"; LPRINT CHR$(100); CHR$(0);"A"; LPRINT CHR$(&H1B);" \"; LPRINT CHR$(&HC2); CHR$(&HFF);"B"; CHR$(&HA); CT-S300 CT-S2000 CT-S4000 [Print Results] Absolute position specified Relative position specified - 62 - BD2-2220 CT-S310...
  • Page 63: Esc D [N]K Null

    At the selection of font A, tabs are set every 8 characters (at 9th, 17th, 25th, ...) with right space amount of a character set at 0 and horizontal enlargement rate of a character set at 1. [See Also] [Sample Program] Refer to Sample Program and Print Results for HT. CT-S300 CT-S2000 CT-S4000 - 63 - BD2-2220 CT-S310...
  • Page 64: Esc T N

    • When STANDARD MODE is selected, this command only executes the internal flagging of the printer without affecting the printing in STANDARD MODE. • The character mapping position will be the start point of the print area specified by ESC W.
  • Page 65: Esc W Xl Xh Yl Yh Dxl Dxh Dyl Dyh

    • When STANDARD MODE is selected, this command only executes the internal flagging of the printer without affecting the printing in STANDARD MODE. • If the horizontal start point or vertical start point is out of the printable area, this command is canceled and the next data is handled as normal data.
  • Page 66 58mm [See Also] Appendix 5.1 “Explanation on PAGE MODE” CAN、ESC L、ESC T、GS P 104mm/(832) CT-S4000 90mm/(720) CT-S4000 82.5mm/(660) CT-S4000 80mm/(640) CT-S4000/CT-S2000 CT-S4000/CT-S2000/CT-S300/ 72mm/(576) BD2-2220/CT-S310/PMU2XXX 64mm/(512) CT-S4000/CT-S2000/CT-S300/CT-S310 54.5mm/(436) CT-S2000 54mm/(432) CT-S2000/BD2-2220/PMU2XXX 52.5mm/(420) CT-S2000 48mm/(384) CT-S2000/CT-S300/CT-S280/CT-S310 45mm/(360) CT-S2000/CT-S300/CT-S310 - 66 - support model...
  • Page 67: Esc \ Nl Nh

    (2) If the start point is top right or bottom left, the command specifies the relative position in the paper feed direction (The character’s side-to-side direction), using the vertical basic calculation pitch (y). [See Also] ESC $、GS P [Sample Program] Refer to Sample Program and Print Results for ESC $. CT-S300 CT-S2000 CT-S4000 - 67 - BD2-2220 CT-S310...
  • Page 68: Esc A N

    [Sample Program] LPRINT CHR$(&H1B);"a"; CHR$(0); LPRINT "AAAAA"; CHR$(&HA); LPRINT CHR$(&H1B);"a"; CHR$(1); LPRINT "AAAAA"; CHR$(&HA); LPRINT CHR$(&H1B);"a"; CHR$(2); LPRINT "AAAAA"; CHR$(&HA); [Print Results] AAAAA Left-justified CT-S300 CT-S2000 CT-S4000 Position AAAAA AAAAA Centered Right-justified - 68 - BD2-2220 CT-S310 Paper feed direction...
  • Page 69: Gs $ Nl Nh

    • Basic calculation pitch is set by GS P. • When fractional number is caused by the calculation, it is corrected by the minimum pitch of mechanism and the rest is discarded. [See Also] CT-S300 CT-S2000 CT-S4000 GS \ \, - 69 - BD2-2220 CT-S310...
  • Page 70: Gs L Nl Nh

    • This command only works when it is entered at the beginning of a line. • When PAGE MODE is selected, this command only executes the internal flagging of the printer. • The setting of this command does not affect PAGE MODE.
  • Page 71: Gs W Nl Nh

    • This command only works when it is entered at the beginning of a line. • When PAGE MODE is selected, this command only executes the internal flagging of the printer. • The setting of this command does not affect PAGE MODE.
  • Page 72 GS L、GS P Printable area Left margin (2) The left margin is trimmed Print area width CT-S4000 CT-S4000 82.5/(660) CT-S4000 CT-S4000/CT-S2000/CT-S300/CT-S310 CT-S4000/CT-S2000/CT-S300/ BD2-2220/CT-S310/PMU2XXX CT-S4000/CT-S2000/CT-S300/CT-S310 CT-S2000 CT-S2000/BD2-2220/PMU2XXX CT-S2000 CT-S2000/CT-S300/CT-S280/CT-S310 CT-S2000/CT-S300/CT-S310 - 72 - A (1) Extended toward the right support model...
  • Page 73: Gs \ Nl Nh

    (x). • The basic calculation pitch is set by GS P. • Fractions resulting from calculations are corrected with the minimum pitch of the mechanism, and the remainder is omitted. CT-S300 CT-S2000 CT-S4000 - 73 - BD2-2220 CT-S310...
  • Page 74: Line Feed Span Commands

    [Outline] [The specification which is common to the model] [The specification which depend on the model] CT-S280/CT-S300/BD2-2220/CT-S310/PMU2XXX The line feed rate per line is specified by 1/6 inch. CT-S2000/CT-S4000 The line feed rate per line is specified by MSW5-2 setting.
  • Page 75: Esc 3 N

    (2) If the start point specified by ESC T is top right or bottom left, the command uses the horizontal (perpendicular to the paper feed direction) basic calculation pitch (x). • The maximum settable line feed width is 1016 mm (40 inches). A setting greater than this maximum is trimmed to the maximum. CT-S300/CT-S280/BD2-2220/CT-S310/PMU2XXX [Default] Approx. 4.23mm CT-S2000/CT-S4000 (1) When memory switch 5-2 is OFF: Approx.
  • Page 76: Bit Image Commands

    • When the value of “m” is out of the above range, the data following after “n1” is processed as normal printing data. • After completion of bit image printing, the printer returns to normal data processing mode. CT-S300 CT-S2000...
  • Page 77: Gs * N1 N2 [D] N1Xn2X8

    [The specification which is common to the model] • Relations between the bit image data and the dots defined are shown below. [The specification which depend on the model] CT-S280/CT-S300/BD2-2220/CT-S310/PMU2XXX • With this command executed, the defined content of a downloaded character is cleared. CT-S2000/CT-S4000 •...
  • Page 78: Gs / M

    • A portion of a downloaded bit image exceeding one line length is not printed. [See Also] ESC &、GS * CT-S300 CT-S2000 CT-S4000 Dot Density in Vertical Direction 203DPI 203DPI 101DPI 101DPI - 78 - BD2-2220 CT-S310 Dot Density in Horizontal Direction 203DPI 101DPI 203DPI 101DPI...
  • Page 79: Gs V 0 M Xl Xh Yl Yh D1

    • “d” denotes defined data. Dots to be printed are specified as “1”, and those not to be printed as “0”. [The specification which depend on the model] CT-S280/CT-S300/BD2-2220/CT-S310/PMU2XXX • Valid only when no print data is present in the print buffer at the selection of STANDARD MODE.
  • Page 80 [Example] When xL + xH x 256 = 64 ( xL+xH×256 )×8 dots = 512 dots ド ト ド ト - 80 - yL+yH×256 dots...
  • Page 81: Status Commands

    [Example 2] If the printer sends DLE EOT 3 after the host has sent up to ESC 3 in its attempt to send ESC 3 n, the printer handles the ESC 3 as ESC 3 <10>H. Thus, the user should be cautious.
  • Page 82 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.
  • Page 83 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.
  • Page 84 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.
  • Page 85 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.
  • Page 86 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.
  • Page 87 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.
  • Page 88: Esc U N

    Pin #3 level ‘L’ Undefined ―― Undefined ―― Undefined ―― Unused 0: Fixed Undefined ―― Undefined ―― Undefined ―― → OPEN statement depends on types of BASIC. - 88 - BD2-2220 CT-S310 Value ‘H’ ―― ―― ―― ―― ―― ―― ――...
  • Page 89: Esc V

    Undefined Unused Undefined Undefined Undefined Bit 2: In case of Paper End, as this printer goes offline, this command is not executed. Therefore, status "No Paper (04H)" is never transmitted. [Sample Program] OPEN "COM1:N81NN" AS #1 PRINT #1, CHR$(&H1B);"v"; A$ = INPUT$(1, #1)
  • Page 90: Gs A N

    • The ASB function is disabled if all status items are disabled. • If the ASB function is enabled by default, the host receives the status the first time the printer gets ready for communication after it is turned on.
  • Page 91 Auto recovery error occurred Unused *Bit 2: It usually occurs by a cover open error (when printer is printing). In the case of a model for BM/ label, it occurs at the time of a BM/ label detection error. (3) 3rd byte (Paper Sensor information)
  • Page 92 (4) 4th byte (Paper Sensor information) In case of MSW3-7 ON Undefined Undefined Undefined Undefined Unused Undefined Undefined Unused In case of MSW3-7 OFF (CBM1000 non-compatible mode) Reserved Reserved Reserved Reserved Fixed Reserved Reserved Fixed [Default] When MSW 1-3 OFF: n = 0 When MSW 1-3 ON: n = 2 [See Also] DLE EOT、GS r...
  • Page 93: Gs R N

    • 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 printer waits for the host to become ready to receive.
  • Page 94 • Paper Sensor status (n = 1, 49) Paper found by Paper Near-end Sensor Paper not found by Paper Near-end Sensor Paper found by Paper-end Sensor Paper not found by Paper-end Sensor Unused Undefined Undefined Unused • Drawer kick-out connector status (n = 2, 50) Status of pin 3 of drawer kick connector = “L”...
  • Page 95: Paper Detecting Commands

    Undefined Undefined [Caution] This command is valid only for the parallel interface. [Default] n=15 CT-S300 CT-S2000 CT-S4000 Value Position Disabled Disabled Disabled Disabled — — — — - 95 - BD2-2220 CT-S310 Enabled Enabled Enabled Enabled — — — —...
  • Page 96: Esc C 4 N

    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: [Caution] This printer can only select one kind of Paper Sensor, a Paper Near-end Sensor. [Default] CT-S300 CT-S2000...
  • Page 97: Panel Switch Commands

    [Default] [Sample Program] LPRINT CHR$(&H1B);"c5";CHR$(0); ・・・・・ When enabling the FEED switch LPRINT CHR$(&H1B);"c5";CHR$(1); ・・・・・ When disabling the FEED switch CT-S300 CT-S2000 CT-S4000 Condition - 97 - BD2-2220 CT-S310...
  • Page 98: Macro Commands

    • When GS ^ is processed in macro definition, the macro definition is stopped and the content of definition is cleared. • Even with ESC @ (Initialization of the printer) having been executed, defined content is not cleared. Therefore, it is possible to include ESC @ into the content of macro definition.
  • Page 99: Gs ^ N1 N2 N3

    Refer to Sample Program and Print Results for GS:. CT-S300 CT-S2000 CT-S4000 interval specified by “n2”. flickers and the FEED switch is waiting to be pressed. When it is pressed, the macro is executed once. This action is repeated “n1” times. - 99 - BD2-2220 CT-S310...
  • Page 100: Cutter Commands

    • With label- or BM-supported model, this command does not function at the setting of BM paper/label paper setting. [Sample Program] LPRINT “AAAAA”; LPRINT CHR$(&H1B);"J"; LPRINT CHR$(150); LPRINT CHR$(&H1B);"i"; CT-S300 CT-S2000 CT-S4000 [Print Results] AAAAA Cut position AAAAA Paper feed direction - 100 - BD2-2220 CT-S310 Cut state...
  • Page 101: Esc M

    • With label- or BM-supported model, this command does not function at the setting of BM paper/label paper setting. [Sample Program] LPRINT “AAAAA”; LPRINT CHR$(&H1B);"J"; LPRINT CHR$(150); LPRINT CHR$(&H1B);"m"; CT-S300 CT-S2000 CT-S4000 [Print Results] AAAAA Cut position AAAAA Paper feed direction - 101 - BD2-2220 CT-S310 Cut state...
  • Page 102: Gs V M ・・・ (1)

    [The specification which depend on the model] CT-S300/CT-S2000/CT-S4000/CT-S310/PMU2XXX • With label- or BM-supported model, this command does not function at the setting of BM paper/label paper setting. CT-S300 CT-S2000 CT-S4000 Function - 102 - BD2-2220 CT-S310...
  • Page 103: Bar Code Commands

    RETURN CT-S300 CT-S2000 CT-S4000 Printing Position [Print Results] * 1 2 * * 1 2 * * 1 2 * * 1 2 * - 103 - BD2-2220 CT-S310 No HRI characters Printed above Printed below Printed above and below...
  • Page 104: Gs F N

    The type of font can be selected with “n” as follows: ・ [The specification which depend on the model] CT-S300/CT-S310 0,48 1,49 2,50 CT-S280/CT-S2000/CT-S4000/BD2-2220/PMU2XXX 0,48 1,49 2,50 [Caution] The HRI characters are printed at the position specified with GS H.
  • Page 105: Gs H N

    [The specification which is common to the model] Selecting bar code height. “n” denotes the number of dots in the vertical direction. [Sample Program] Refer to Sample Program and Print Results for GS w. CT-S300 CT-S2000 CT-S4000 - 105 - BD2-2220 CT-S310...
  • Page 106: Gs K M [D1

    1≦k (An even number) 1≦k Range of “n” 11≦n≦12 11≦n≦12 12≦n≦13 7≦n≦8 1≦n≦255 1≦n≦255 (An even number) 1≦n≦255 1≦n≦255 2≦n≦255 - 106 - BD2-2220 CT-S310 Range of “d” 48≦d≦57 48≦d≦57 48≦d≦57 48≦d≦57 48≦d≦57、65≦d≦90 32、36、37、43、45、46、47 48≦d≦57 48≦d≦57、65≦d≦68 36、43、45、46、47、58 Range of “d” 48≦d≦57 48≦d≦57...
  • Page 107 [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. •...
  • Page 108 This bar code, consisting of numerals only, has a fixed length of 8 columns; a 7- column number entered from the host or application software plus a check digit (8 calculated inside the printer. If the 8th-column numeral is sent from the host, the entire bar code will be printed as it is.
  • Page 109 CODE93 This bar code, consisting of alphanumeric and control characters, has a variable length of columns. The HRI character string is preceded and followed by a “■” character. HRI characters for control characters (00H - 1FH, and 7FH) are each printed as a combination of a “■” character and an alphabetic character.
  • Page 110 GS k <73><10><7Bh 42h> “No.” <7Bh 43h><12><34><56> • If the printer finds a string of bar code data that does not begin with a code set select character, it immediately aborts the command processing and handles the subsequent data as normal data.
  • Page 111: Gs W N

    LPRINT CHR$(&H1D);"w"; CHR$(4); GOSUB BC LPRINT CHR$(&H1D);"k"; LPRINT CHR$(4); LPRINT "12"; CHR$(0); RETURN [Print Results] CT-S300 CT-S2000 CT-S4000 Height = 30, Magnification = 2 Height = 50, Magnification = 3 Height = 80, Magnification = 4 - 111 - BD2-2220 CT-S310...
  • Page 112: Commands For Non-Volatile Memory

    • Frequent use of this command may result in damage of NV memory. Use the Write command to NV memory in consideration of [10 times max./day]. • Following the processing of this command, printer Busy may occur during writing data in NV memory. While the printer is Busy, it stops receiving process. Therefore, data transmission (including real-time command) from host is prohibited.
  • Page 113: Fn=0、48: Function 0 Erasing Specified Record

    fn=0、48: Function 0 Erasing Specified Record GS ( C pL pH m fn b kc1 kc2 [Code] <1D>H<28>H<43>H<pL><pH><m><fn><b>[c1 c2] [Range] (pL+pH×256)=5(pL=5、pH=0) fn=0、48 32≦c1≦126 32≦c2≦126 [Outline] [The specification which is common to the model] Erases the record specified by c1, c2 stored in user NV memory. fn=1、49:...
  • Page 114: Fn=2、50: Function 2 Sending Data Stored In Specified Record

    fn=2、50: Function 2 Sending Data Stored in Specified Record GS ( C pL pH m fn b c1 c2 [Code] <1D>H<28>H<43>H<pL><pH><m><fn><b> [c1 c2] [Range] (pL+pH×256)=5(pL=5、pH=0) fn=2、50 32≦c1≦126、32≦c2≦126 [Outline] [The specification which is common to the model] Sends data stored in the record specified by c1, c2 in user NV memory. Header Identifier Status...
  • Page 115: Fn=3、51: Function 3 Sending Use Amount

    fn=3、51: Function 3 Sending Use Amount GS ( C pL pH m fn b [Code] <1D>H<28>H<43>H<pL><pH><m><fn><b> [Range] (pL+pH×256)=3(pL=3、pH=0) fn=3、51 [Outline] [The specification which is common to the model] Sends the use amount of user NV memory (number of bytes of used area). [Caution] •...
  • Page 116: Fn=5、53: Function 5 Sending Key Code List Of Stored Record

    fn=5、53: Function 5 Sending Key Code List of Stored Record GS ( C pL pH m fn b [Code] <1D>H<28>H<43>H<pL><pH><m><fn><b> [Range] (pL+pH×256)=3(pL=3、pH=0) fn=5、53 [Outline] [The specification which is common to the model] Sends key code list of record existing in user NV memory. Header Identifier Status...
  • Page 117: Fn=6、54: Function 6 Erasing All User Nv Memory Area In A Lump

    fn=6、54: Function 6 Erasing All User NV Memory Area in a Lump GS ( C pL pH m fn b [d1 d2 d3] [Code] <1D>H<28>H<43>H<pL><pH><m><fn><b>[d1 d2 d3] [Range] (pL+pH×256)=6(pL=6、pH=0) fn=6、54 d1=67(“C”) d2=76(“L”) d3=82(“R”) [Outline] [The specification which is common to the model] Erases all areas of user NV memory in a lump.
  • Page 118: Gs 8 L P1 P2 P3 P4 M Fn [Parameter]

    • Frequent use of this command may result in damage of NV memory. Use the Write command to NV memory in consideration of [10 times max./day]. • Following the processing of this command, printer Busy may occur during writing data in NV memory. While the printer is Busy, it stops receiving process. Therefore, data transmission (including real-time command) from host is prohibited.
  • Page 119: Fn=0、48: Function 48 Sending Nv Graphics Memory Capacity

    fn=0、48: Function 48 Sending NV Graphics Memory Capacity GS ( L pL pH m fn [Code] <1D>H<28>H<4C>H<pL><pH><m><fn> [Range] (pL+pH×256)=2(pL=2、pH=0) m=48 fn=0、48 [Outline] [The specification which is common to the model] Sends all capacity of NV graphics area in the number of bytes. Header Identifier Data...
  • Page 120: Fn=3、51: Function 51 Sending The Remaining Amount Of Nv Graphics Memory

    fn=3、51: Function 51 Sending the Remaining Amount of NV Graphics Memory GS ( L pL pH m fn [Code] <1D>H<28>H<4C>H<pL><pH><m><fn> [Range] (pL+pH×256)=2(pL=2、pH=0) m=48 fn=3、51 [Outline] [The specification which is common to the model] Sends the remaining amount of NV graphics area (number of bytes of unused area). Header Identifier Data...
  • Page 121: Fn=64: Function 64 Sending Key Code List Of Defined Nv Graphics

    fn=64: Function 64 Sending Key Code List of Defined NV Graphics GS ( L pL pH m fn d1 d2 [Code] <1D>H<28>H<4C>H<pL><pH><m><fn><d1><d2> [Range] (pL+pH×256)=4(pL=4、pH=0) m=48 fn=64 d1=75(“K”) d2=67(“C”) [Outline] [The specification which is common to the model] Sends the key code list of defined NV graphics. •...
  • Page 122: Fn=65: Function 65 Erasing All Data Of Nv Graphics In A Lump

    fn=65: Function 65 Erasing All Data of NV Graphics in a Lump GS ( L pL pH m fn d1 d2 d3 [Code] <1D>H<28>H<4C>H<pL><pH><m><fn><d1><d2><d3> [Range] (pL+pH×256)=5(pL=5、pH=0) m=48 fn=65 d1=67(“C”) d2=76(“L”) d3=82(“R”) [Outline] [The specification which is common to the model] Erases all defined data of NV graphics in a lump.
  • Page 123: Fn=67: Function 67 Defining Raster Type Graphics Data To Nv Memory

    fn=67: Function 67 Defining Raster Type Graphics Data to NV Memory GS ( L pL pH m fn a kc1 kc2 b xL xH yL yH [Code] <1D>H<28>H<4C>H<pL><pH><m><fn><a><kc1><kc2><b><xL><xH><yL><yH> [Range] Parameter of GS ( L 12≦(pL+pH×256)≦65535(0≦pL≦255、0≦pH≦255) Parameter of GS 8 L 12≦(p1+p2×256+p3×65536+p4×16777216)≦4294967295 (0≦p1≦255、0≦p2≦255、0≦p3≦255、0≦p4≦255) Common parameter of GS ( L, GS 8 L...
  • Page 124: Fn=69: Function 69 Printing Specified Graphics

    fn=69: Function 69 Printing Specified Graphics GS ( L pL pH m fn kc1 kc2 x y [Code] <1D>H<28>H<4C>H<pL><pH><m><fn><kc1><kc2><x><y> [Range] (pL+pH×256)=6(pL=6、pH=0) m=48 fn=69 32≦kc1≦126 32≦kc2≦126 x=1、2 y=1、2 [Outline] [The specification which is common to the model] Prints the NV graphics data defined by key code (kc1, kc2) as large as x times horizontally/y times vertically.
  • Page 125: Fn=112: Function 112 Storing Raster Type Graphics Data To Print Buffer

    fn=112: Function 112 Storing Raster Type Graphics Data to Print Buffer GS ( L pL pH m fn a bx by c xL xH yL yH d1...dk [Code] <1D>H<28>H<4C>H<pL><pH><m><fn><a><bx><by><c><xL><xH><yL><yH>[d1…dk] [Range] Parameter of GS ( L 11≦(pL+pH×256)≦65536(0≦pL≦255、0≦pH≦255) Parameter of GS 8 L 11≦(p1+p2×256)+p3×65536+p4×16777216≦4294967295 (0≦p1≦255、0≦p2≦255、0≦p3≦255、0≦p4≦255) Common parameter of GS ( L, GS 8 L...
  • Page 126: Gs G 0 M Nl Nh

    • This command, if used frequently, may destroy NV memory, thus write command to NV memory shall be used less than [10 times/day] as a guideline. • Along with processing this command, during data-writing to NV memory, printer BUSY may occur. During the printer BUSY, to stop receive processing, this printer prohibits the data sending (including real-time command) from host.
  • Page 127: Gs G 2 M Nl Nh

    • During sending block data (maintenance counter value), real-time status and ASB status shall not be sent. Thus, during sending the data, printer status can not be notified. • Counter value sent by this command is only a guideline value. Due to an error occurrence and power off timing, figure data may have an error.
  • Page 128: Fs P N M

    [See Also] ESC *、FS q、GS /、GS v 0 CT-S300 CT-S2000 Dot Density in Mode Name Vertical Direction 203dpi 203dpi 101dpi 101dpi - 128 - CT-S4000 BD2-2220 CT-S310 Dot Density in Horizontal Direction 203dpi 101dpi 203dpi 101dpi...
  • Page 129 [Sample Program] GOSUB SETNV LPRINT CHR$(&H1C); “p”; CHR$(1); CHR$(0); LPRINT CHR$(&HA); LPRINT CHR$(&H1C); “p”; CHR$(1); CHR$(3); LPRINT CHR$(&HA); SETNV: LPRINT CHR$(&H1C);"q"; CHR$(1); LPRINT CHR$(8); CHR$(0); CHR$(2); CHR$(0); FOR I=1 TO 128 READ D LPRINT CHR$(D); NEXT I RETURN [Print Results] CITIZEN CITIZEN DATA &H00, &H00, &H00, &H00, &H07, &HF0...
  • Page 130: Fs Q N [Xl Xh Yl Yh D1

    All the data must be resent. • Any mechanical operation such as opening the cover, initializing the printer head position, or using the paper-feed switch etc can’t execute from the execution of this command until the completion of the hardware reset, •...
  • Page 131 1-3[Busy condition] • While this command is being executed, it is not possible to send ASB status or to detect the printer status even when the ASB function is selected.
  • Page 132: Kanji Control Commands

    FS -、FS W、GS ! CT-S300 CT-S2000 Function Undefined Undefined Double-width enlargement Canceled Double-height enlargement Canceled Undefined Undefined Undefined Underline Canceled - 132 - CT-S4000 BD2-2220 CT-S310 Value ― ― ― ― Specified Specified ― ― ― ― ― ― Specified...
  • Page 133 [Sample Program] LPRINT CHR$(&H1C);"&"; LPRINT CHR$(&H34); CHR$(&H41); LPRINT CHR$(&H3B); CHR$(&H7A); LPRINT CHR$(&HA); LPRINT CHR$(&H1C);"."; LPRINT CHR$(&H34); CHR$(&H41); LPRINT CHR$(&H3B); CHR$(&H7A); LPRINT CHR$(&HA); CT-S300 CT-S2000 CT-S4000 [Print Results] 漢字 4A;z - 133 - BD2-2220 CT-S310 When setting Kanjimode When canceling Kanji mode...
  • Page 134: Fs - N

    LPRINT CHR$(&H1C);"-"; CHR$(0); LPRINT CHR$(&H34); CHR$(&H41); LPRINT CHR$(&H3B); CHR$(&H7A); LPRINT CHR$(&H1C);"-"; CHR$(1); LPRINT CHR$(&H34); CHR$(&H41); LPRINT CHR$(&H3B); CHR$(&H7A); LPRINT CHR$(&HA); LPRINT CHR$(&H1C);"."; CT-S300 CT-S2000 CT-S4000 Function [Print Results] Canceling Kanji underline 漢字漢字 Setting Kanji underline - 134 - BD2-2220 CT-S310...
  • Page 135 Kanji codes are processed in the order of the first byte and second byte. This code is defaulted to the state of setting Kanji mode. [See Also] FS &、FS C [Sample Program] Refer to the Sample Program and Printing Results for FS &. CT-S300 CT-S2000 CT-S4000 - 135 - BD2-2220 CT-S310...
  • Page 136: Fs 2 A1 A2 [D]K

    • Each data is created by “1” for printed dot and “0” for unprinted dot. [The specification which depend on the model] CT-S280/CT-S300/CT-S2000/CT-S4000/CT-S310 • In multilingual specifications, font B, font C cannot define. [Default] All are space. CT-S300 CT-S2000 CT-S4000 - 136 - BD2-2220 CT-S310...
  • Page 137 [Sample Program] LPRINT CHR$(&H1C);"&"; GOSUB SETCHR LPRINT CHR$(&H77); CHR$(&H21); DATA &H00, &H01, &HF8, &H00, &H03, &HFC LPRINT CHR$(&HA); LPRINT CHR$(&H1C);"."; SETCHR: LPRINT CHR$(&H1C);"2"; LPRINT CHR$(&H77); CHR$(&H21); DATA &H1F, &HFF, &HF0, &H1F, &HFF, &HE0 FOR I=1 TO 72 READ D LPRINT CHR$(D); NEXT I RETURN [Print Results]...
  • Page 138: Fs C N

    Hangeul: 3021h to 487Eh Area other than the above is SPACE. • With Extend KS code Special symbol: A1A1h to ACF1h Hangeul: B0A1h to C8FEh Area other than the above is SPACE. [Default] CT-S300 CT-S2000 CT-S4000 Function Function - 138 - BD2-2220 CT-S310...
  • Page 139 [Sample Program] LPRINT CHR$(&H1C);"&"; LPRINT CHR$(&H1C);"C"; CHR$(0); LPRINT CHR$(&H34); CHR$(&H41); LPRINT CHR$(&H3B); CHR$(&H7A); LPRINT CHR$(&HA); LPRINT CHR$(&H1C);"C"; CHR$(1); LPRINT CHR$(&H8A); CHR$(&HBF); LPRINT CHR$(&H8E); CHR$(&H9A); LPRINT CHR$(&HA); LPRINT CHR$(&H1C);"."; [Print Results] 漢字 ← JIS code system printing 漢字 ← Shift JIS code system printing - 139 -...
  • Page 140: Fs S N1 N2

    (at right angle to paper feed direction)is used. • The maximum right spacing is capable of approximately 31.906 mm (255/203 inches). A setting greater than this maximum is trimmed to the maximum. [Default] n1=0、n2=0 CT-S300 CT-S2000 CT-S4000 - 140 - BD2-2220 CT-S310...
  • Page 141: Fs W N

    LPRINT CHR$(&H34); CHR$(&H41); LPRINT CHR$(&H3B); CHR$(&H7A); LPRINT CHR$(&H1C);"W"; CHR$(1); LPRINT CHR$(&H34); CHR$(&H41); LPRINT CHR$(&H3B); CHR$(&H7A); LPRINT CHR$(&HA); LPRINT CHR$(&H1C);"."; CT-S300 CT-S2000 CT-S4000 Function [Print Results] Canceling 4 times enlargement 漢字 Setting 4 times enlargement - 141 - BD2-2220 CT-S310 漢字...
  • Page 142: Fn=48: Function 48 Set Kanji Fonts

    [The specification which is common to the model] Prints the succeeding characters with energy set for “m”. This command is effective only for the Japanese Japanese Kanji specifications. [The specification which depend on the model] CT-S280/CT-S300/BD2-2220/CT-S310/PMU2XXX 0、48 1、49 2、50 CT-S2000/CT-S4000 0、48...
  • Page 143: Black Mark Control Commands

    (3)If FEED SW is pressed, setting the first position of BM paper/label paper is carried out. • The printer is in the BUSY state till the processing of (3) is executed. If, however, FEED SW is not pressed in 3 seconds, the same operation as that with FEED SW is executed.
  • Page 144: Gs A M N

    • In calculating a correction span, use the basic calculation pitch (y) for the vertical direction. The fractional part contained in the calculation result should be corrected in units of the mechanism’s minimum pitch, with the remaining fractional part truncated. CT-S300 CT-S2000 CT-S4000 Correcting Direction - 144 - BD2-2220 CT-S310...
  • Page 145: Gs C 0 M N

    016017018019020 21 22 23 24 25 - 145 - CT-S4000 BD2-2220 CT-S310 Counts from 1 to 5 at m = 0 and n = 0. Counts from 6 to 10 at m = 1 and n = 0. Counts from11 to 15 at m = 3 and n = 0.
  • Page 146: Gs C 1 N1 N2 N3 N4 N5 N6

    50, step value = 5, repeat count = 2, and starting value = 50. When printing the counter value by setting a count-down range to 0 to 50, step value = 5, repeat count = 1, and starting value = 5, step cleared. - 146 - BD2-2220 CT-S310...
  • Page 147: Gs C 2 N1 N2

    [Default] Not defined. [See Also] GS C 0、GS C 1、GS C ;、GS c [Sample Program] [Print Results] See the Sample Program and Print Results for the GS C1 command. CT-S300 CT-S2000 CT-S4000 - 147 - BD2-2220 CT-S310...
  • Page 148: Gs C ; N1 ; N2 ; N3 ; N4 ; N5

    • If the n5 counter start value is beyond the counter range specified with n1 and n2, it is assumed to be n1 = n5. • If each value of n1 through n5 contains the character code other than “0” through “9”, the printer will invalidate the data up to that parameter and handle the subsequent data as normal data.
  • Page 149: Gs C

    GS C 0、GS C 1、GS C 2、GS C ; [Sample Program] [Print Results] See the Sample Program and Print Results for the GS C0 command. See the Sample Program and Print Results for the GS C1 command. CT-S300 CT-S2000 CT-S4000 - 149 - BD2-2220 CT-S310...
  • Page 150: Gs L N1L N1H N2L N2H

    • 30 mm is the maximum allowable Black mark length/ label gap length to define and 8 mm is the minimum. [Default] The following default values are set when memory switch SW4-1 is set to ON. n1L=25 n1H=0 n2L=8 n2H=0 Black mark paper n1L+n1Hx256 n2L+n2Hx256 CT-S300 CT-S2000 (24≦n1L+n1H×256≦360) Label paper - 150 - CT-S4000 BD2-2220 CT-S310 n1L+n1Hx256 n2L+n2Hx256...
  • Page 151: Gs P N

    • When receipt mode is changed to label mode Send this command (n=1) after changing the paper from receipt paper to label paper. If this command is sent beforehand, label detection error is caused. CT-S300 CT-S2000 CT-S4000 - 151 - BD2-2220 CT-S310...
  • Page 152: Printer Function Setting Commands

    DLE DC4 fn m t (fn=1): Real-time output of pulse specified CT-S300 CT-S2000 Function Does not process DLE DC4 fn m t (fn = 1). (Invalid) Processes DLE DC4 fn m t (fn = 1). (Valid) Type of Real-time Command - 152 - CT-S4000 BD2-2220 CT-S310 Initial Value Valid...
  • Page 153 [Outline] [The specification which is common to the model] 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 No.
  • Page 154: Fn=1: Function 1 Transferring To Printer Function Setting Mode

    (“I”) d2=78 (“N”) [Outline] [The specification which is common to the model] Transfers to printer function setting mode and sends the report of mode transfer. Header NULL fn=2: Function 2 End of Printer Function Setting Mode GS ( E pL pH fn d1 d2 d3 [Code] <1D>H<28>H<45>H <pL><pH><fn><d1><d2><d3>...
  • Page 155: Fn=3: Function 3 Setting Memory Switch Value

    Function 3 Setting Memory Switch Value GS ( E pL pH fn [a1 b18...b11]...[ak bk8...bk1] [Code] <1D>H<28>H<45>H<pL><pH><fn>[<a1><b18>…<b11>]…[<ak><bk8>…<bk1>] [Range] 10≦(pL+pH×256)≦65535 fn=3 b=48、49、50 CT-S280/BD2-2220 a=1、2、3 CT-S300 a=1、2、3、4 CT-S2000/CT-S4000/CT-S310/PMU2XXX a = 1、2、3、4、5 [Outline] [The specification which is common to the model] • Changes the memory switch set in a to the value set in “b”.
  • Page 156 CT-S280 • Setting memory with 1 (a = 1) b (Set Value) Function 48 (Default) Reports the power on. Does not report power on. 48 (Default) Sets input buffer capacity to 4K bytes. Sets input buffer capacity to 45 bytes. 48 (Default) Sets input buffer full and offline to be Busy.
  • Page 157 CT-S300 • Setting memory with 1 (a = 1) b (Set Value) Function 48 (Default) Reports the power on. Does not report power on. 48 (Default) Sets input buffer capacity to 4K bytes. Sets input buffer capacity to 45 bytes. 48 (Default) Sets input buffer full and offline to be Busy.
  • Page 158 CT-S300 • Setting memory switch 4 (a = 4) b (Set Value) Function At the selection of Black mark paper, disables auto 48 (Default) end-measurement. At the selection of Black mark paper, enables auto end-measurement. At the selection of Black mark paper, sets sensor position 48(Default) to be on the printing side At the selection of Black mark paper, sets sensor position...
  • Page 159 CT-S2000 • Setting memory with 1 (a = 1) b (Set Value) Function 48 (Default) Reports the power on. Does not report power on. 48 (Default) Sets input buffer capacity to 4K bytes. Sets input buffer capacity to 45 bytes. 48 (Default) Sets input buffer full and offline to be Busy.
  • Page 160 Buzzer sound disabled 48 (Default) Basic calculation pitch (180 dpi / 360 dpi) Basic calculation pitch (203 dpi / 406 dpi) USB mode virtual serial 49 (Default) USB mode printer class 48 (Default) Reserve 48 (Default) Undefined 48 (Default) Undefined...
  • Page 161 CT-S4000 • Setting memory with 1 (a = 1) b (Set Value) Function 48 (Default) Reports the power on. Does not report power on. 48 (Default) Sets input buffer capacity to 4K bytes. Sets input buffer capacity to 45 bytes. (Note) 48 (Default) Sets input buffer full and offline to be Busy.
  • Page 162 48 (Default) Basic calculation pitch (180 dpi / 360 dpi) Basic calculation pitch (203 dpi / 406 dpi) USB mode virtual serial 49 (Default) USB mode printer class 48 (Default) Reserve 48 (Default) Reports the power off. Does not report power off.
  • Page 163 BD2-2220 • Setting memory with 1 (a = 1) b (Set Value) Function 48 (Default) Reports the power on. Does not report power on. 48 (Default) Sets input buffer capacity to 4K bytes. Sets input buffer capacity to 45 bytes. (Note) 48 (Default) Sets input buffer full and offline to be Busy.
  • Page 164 CT-S310 • Setting memory with 1 (a = 1) b (Set Value) Function 48 (Default) Reports the power on. Does not report power on. 48 (Default) Sets input buffer capacity to 4K bytes. Sets input buffer capacity to 45 bytes. 48 (Default) Sets input buffer full and offline to be Busy.
  • Page 165 Function 48 (Default) Buzzer sound enabled Buzzer sound disabled 48 (Default) Reserved USB mode virtual serial 49 (Default) USB mode printer class 48 (Default) Reserve 48 (Default) Reports the power off. Does not report power off. 48 (Default) Undefined 48 (Default) After PNE recovery, Error LED is turned off automatically.
  • Page 166 PMU2XXX • Setting memory with 1 (a = 1) b (Set Value) Function 48 (Default) Reports the power on. Does not report power on. 48 (Default) Sets input buffer capacity to 4K bytes. Sets input buffer capacity to 45 bytes. (Note) 48 (Default) Sets input buffer full and offline to be Busy.
  • Page 167 Setting memory switch 5 (a = 5) b (Set Value) Function 48 (Default) Reserved 48 (Default) Reserved 48 (Default) Reserved 48 (Default) Reserved 48 (Default) Reserved It is priority of the print quqlity 49 (Default) Priority of the print speed 48 (Default) Reserved 48 (Default)
  • Page 168: Fn=4: Function 4 Sending The Set Memory Switch Value

    Function 4 Sending the Set Memory Switch Value GS ( E pL pH fn a [Code] <1D>H<28>H<45>H <pL><pH><fn><a> [Range] (pL+pH×256)=2 fn=4 CT-S280/BD2-2220 a = 1,2,3 CT-S300/PMU2XXX a = 1,2,3,4 CT-S2000/CT-S4000/CT-S310 a = 1,2,3,4,5 [Outline] [The specification which is common to the model] •...
  • Page 169: Fn=5: Function 5 Setting Customized Value

    • Sets the customized value set in “a” to (nL+nH×256). [Caution] • This function operates only in printer function setting mode. • The value changed by this command is enabled by execution of function 2 (fn = 2: End of printer function setting mode) (Recommended) Function Specifies user NV memory capacity.
  • Page 170 CT-S280 • a = 5: Sets printing density to the level specified by (nL+nHx256). (nL+nHx256) Printing Density 65530 65531 65532 65533 65534 65535 0(Default) 100% 105% 110% 115% 120% 125% 130% 135% 140% • a = 6: Sets printing speed to the value specified by (nL+nHx256). (nL+nHx256) Printing Speed Printing speed level 1 (84%)
  • Page 171 CT-S300/CT-S310 • a = 3: Sets paper width to the size specified by (nL+nHx256). (nL+nHx256) Paper Width 58mm 6 (Default) 80mm • a = 5: Sets printing density to the level specified by (nL+nHx256). (nL+nHx256) Printing Density 65530 65531 65532 65533 65534 65535...
  • Page 172 CT-S300/CT-S310 • a = 202: Controls input buffer full Busy with the value selected by (nL+nHx256) and controls Busy with output/cancel timing (remaining capacity). When Input Buffer Capacity “Small” is Set (nL+nHx256) Output Cancel • XON/XOFF is also output by the establishment of conditions. •...
  • Page 173 CT-S2000 • a = 1: Sets the user NV memory capacity to the size specified by (nL+nH×256). (nL+nHx256) Memory Capacity 1K bytes 64K bytes 128K bytes 4(Default) 192K bytes • a = 2: Sets NV graphic memory capacity to the size specified by (nL+nHx256).
  • Page 174 CT-S2000 • a = 116: Sets the paper specified by (nL+nHx256). (nL + nH x256) Paper 1 (Default) Specified single color paper. Recommended 2-color paper5 • a = 201: Outputs ACK to the position specified by (nL+nHx256). (nL+nHx256) ACK Output Position 1 (Default) ACK-in-Busy ACK-while-Busy...
  • Page 175 CT-S2000 • a=221: Sets the maximum length of black mark page with the value selected by (nL+nHx256). 1≦(nL+nH×256)≦32767 Unit: 1 dot Initial value: 2360 dots • a=222: Head margin set by the value selected by (nL+nHx256). 1≦(nL+nH×256)≦32767 Unit: 168dot Initial value: 0dot •...
  • Page 176 CT-S4000 • a = 1: Sets the user NV memory capacity to the size specified by (nL+nH×256). (nL+nHx256) Memory Capacity 1K bytes 64K bytes 128K bytes 192K bytes • a = 2: Sets NV graphic memory capacity to the size specified by (nL+nHx256).
  • Page 177 CT-S4000 • a = 116: Sets the paper specified by (nL+nHx256). (nL+nHx256) Paper 1 (Default) Specified single color paper. Recommended 2-color paper5 • a = 201: Outputs ACK to the position specified by (nL+nHx256). (nL+nHx256) ACK Output Position 1 (Default) ACK-in-Busy ACK-while-Busy ACK-after-Busy...
  • Page 178 BD2-2220 • a = 5: Sets printing density to the level specified by (nL+nHx256). (nL+nHx256) Printing Density 65530 65531 65532 65533 65534 65535 0 (Default) 100% 105% 110% 115% 120% 125% 130% 135% 140% • a = 6: Sets printing speed to the value specified by (nL+nHx256).
  • Page 179 PMU2XXX • a = 5: Sets printing density to the level specified by (nL+nHx256). (nL+nHx256) Printing Density 65530 65531 65532 65533 65534 65535 0 (Default) 100% 105% 110% 115% 120% 125% 130% 135% 140% • a = 6: Sets printing speed to the value specified by (nL+nHx256). (nL+nHx256) Printing Speed Printing speed level 1 (84%)
  • Page 180 PMU2XXX • a=221: Sets the maximum length of black mark page with the value selected by (nL+nHx256). 1≦(nL+nH×256)≦32767 Unit: 1 dot Initial value: 2360 dots • a=222: Head margin set by the value selected by (nL+nHx256). 1≦(nL+nH×256)≦32767 Unit: 168dot Initial value: 0dot •...
  • Page 181: Fn=6: Function 6 Sending The Set Customized Value

    CT-S280 a=5、6、116、201、202 CT-S300/CT-S310 a=3、5、6、97、116、201、202、220、221、222、223、224、225 CT-S2000 a=1、2、3、5、6、116、201、202、212、213、214、220、221、222、223、224、225 CT-S4000 a=1、2、3、5、6、116、201、202、212、213、214 BD2-2220 a=5、6、201、202 PMU2XXX a=5、6、201、202、220、221、222、223、224、225 [Outline] [The specification which is common to the model] • Sends the set value of customized value set by “a”. Customized value No. Separation number Customized value •...
  • Page 182 CT-S280 • a = 5: When print density is specified Setting Status Sending Data Stored Print Density 1st Byte 2nd Byte Value 65530 54(“6”) 53(“5”) 65531 54(“6”) 53(“5”) 65532 54(“6”) 53(“5”) 65533 54(“6”) 53(“5”) 65534 54(“6”) 53(“5”) 65535 54(“6”) 53(“5”) Basic density 48(“0”) ―...
  • Page 183 CT-S300/CT-S310 • a = 3: When paper width is specified Setting Status Sending Data Stored Paper Width 1st Byte 2nd Byte Value 58mm 49(“1”) ― 80mm 51(“3”) ― • a = 5: When print density is specified Setting Status Sending Data Stored Print Density 1st Byte...
  • Page 184 CT-S300/CT-S310 • a = 201: When ACK output position is specified Setting Status Sending Data Stored ACK Output 1st Byte 2nd Byte Value Position ACK-in-Busy 49(“1”) ― ACK-while-Busy 50(“2”) ― ACK-after-Busy 51(“3”) ― • a = 202: Input buffer full Busy output/cancel timing Setting Status Sending Data Stored...
  • Page 185 CT-S2000 • a = 1: When user NV memory capacity is specified Setting Status Sending Data Stored Memory 1st Byte 2nd Byte Value Capacity 1K bytes 49(“1”) ― 64K bytes 50(“2”) ― 128K bytes 51(“3”) ― 192K bytes 52(“4”) ― •...
  • Page 186 CT-S2000 • a = 116: When kind of paper is specified Setting Status Sending Data Stored Print Control 1st Byte 2nd Byte Value Single-color 49(“1”) ― paper 2-color paper 50(“2”) ― • a = 201: When ACK output position is specified Setting Status Sending Data Stored...
  • Page 187 CT-S2000 • a=222: When head margin is specified Setting Status Sending Data Stored Head Margin 1st Byte 2nd Byte Value 0dot 49(“1”) 48(“0”) ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ 32767 32767dot 51(“3”) 50(“2”) • a=223: When bottom margin is specified Setting Status Sending Data Bottom...
  • Page 188 CT-S4000 • a = 1: When user NV memory capacity is specified Setting Status Sending Data Stored Memory 1st Byte 2nd Byte Value Capacity 1K bytes 49(“1”) ― 64K bytes 50(“2”) ― 128K bytes 51(“3”) ― 192K bytes 52(“4”) ― •...
  • Page 189 CT-S4000 • a = 116: When kind of paper is specified Setting Status Sending Data Stored Print Control 1st Byte 2nd Byte Value Single-color 49(“1”) ― paper 2-color paper 50(“2”) ― • a = 201: When ACK output position is specified Setting Status Sending Data Stored...
  • Page 190 BD2-2220 • a = 5: When print density is specified Setting Status Sending Data Stored Print Density 1st Byte 2nd Byte Value 65530 54(“6”) 53(“5”) 65531 54(“6”) 53(“5”) 65532 54(“6”) 53(“5”) 65533 54(“6”) 53(“5”) 65534 54(“6”) 53(“5”) 65535 54(“6”) 53(“5”) Basic density 48(“0”)
  • Page 191 PMU2XXX • a = 5: When print density is specified Setting Status Sending Data Stored Print Density 1st Byte 2nd Byte Value 65530 54(“6”) 53(“5”) 65531 54(“6”) 53(“5”) 65532 54(“6”) 53(“5”) 65533 54(“6”) 53(“5”) 65534 54(“6”) 53(“5”) 65535 54(“6”) 53(“5”) Basic density 48(“0”) ―...
  • Page 192 PMU2XXX • a=220: When maximum black mark width is specified Setting Status Sending Data Stored Maximum B.M 1st Byte 2nd Byte Value Width 0dot 49(“1”) 48(“0”) ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ 32767 32767dot 51(“3”) 50(“2”) •...
  • Page 193: Fn=7: Function 7 Copying User-Defined Page

    • Storage area: Area where data is not initialized by power OFF or resetting (initialize). • User-defined code page: Page 255 (ESC t 255) • This function operates only in printer function setting mode. [The specification which depend on the model]...
  • Page 194: Fn=8: Function 8 Defining Data By The Column Format To Character Code Page Of Work Area

    [Outline] [The specification which is common to the model] Defines the data in column format in units of character on the code page in RAM. Operates only in printer function setting mode. Data structure(9×17) d1 d4 ……………………d25 d3 d6 ……………………d27 bit 7 ○...
  • Page 195: Fn=9: Function 9 Defining Data In The Raster Format To The Character Code Page Of Work Area

    0≦x≦16 (At selection of font C)、0≦d≦255 k=c2-c1+1 CT-S300/CT-S310 0≦x≦17 (At selection of font B) CT-S280/CT-S2000/CT-S4000/BD2-2220/PMU2XXX 0≦x≦24 (At selection of font B) [Outline] [The specification which is common to the model] Defines the data in raster format in units of character on the character code page in work area.
  • Page 196: Fn=10: Function 10 Erasing Data Of Character Code Page Data In Work Area

    [Range] (pL+pH×256)=3 fn=10 128≦c1≦c2≦255 [Outline] [The specification which is common to the model] Erases (set to space) data in units of character on the character code page in work area. Operates only in printer function setting mode. - 196 -...
  • Page 197: Fn=11: Function 11 Setting Communication Conditions

    • a = 4: Setting to specified data length d1 56 (Default) • Operates only in printer function setting mode. • Which of dip SW or memory SW is used at initialization depends on “Selecting communication condition setting” of dip SW1-1.
  • Page 198: Fn=12: Function 12 Sending The Set Communication Conditions

    fn=12: Function 12 Sending the Set Communication Conditions GS ( E pL pH fn a [Code] <1D>H<28>H<45>H<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] [The specification which is common to the model] Sends communication conditions of serial interface specified by “a”. Header Kind of communication conditions (a) Separation number...
  • Page 199: Fn=255: Function 255 Setting All Contents Set By Printer Function Setting Mode To The State At Shipment

    5, 7, 11, 255 [Outline] [The specification which is common to the model] Restores various kinds of function set by printer function setting mode to the setting at the time of shipment (initial value described in User’s Manual). Memory switch...
  • Page 200 Executes the setting related to the print control specified by the value of “fn”. Function No. (fn) Function 49 Function 50 Function 97 *fn=97 is supported by only CT-S300, CT-S310 CT-S300 CT-S2000 CT-S4000 Function Sets printing density. Sets printing speed. Sets the number of divisions for head conducting.* - 200 - BD2-2220 CT-S310...
  • Page 201: Fn=49: Function 49 Setting Printing Density

    fn=49: Function 49 Setting Printing Density GS ( K pL pH fn m [Code] <1D>H<28>H<4B>H<pL><pH><fn><m> [Range] (pL+pH×256)=2:(pL=2、pH=0) fn=49 0≦m≦8、250≦m≦255 [Default] m = 0 (Customized value setting value) [Outline] [The specification which is common to the model] Sets printing density. Printing Density Selects density level –6 (70%) Selects density level –5 (75%) Selects density level –4 (80%)
  • Page 202: Fn=50: Function 50 Setting Printing Speed

    fn=50: Function 50 Setting Printing Speed GS ( K pL pH fn m [Code] <1D>H<28>H<4B>H<pL><pH><fn><m> [Range] (pL+pH×256)=2(pL=2、pH=0) fn=50 0≦m≦9、48≦m≦57 [Default] m = 0 (Customized value setting) [Outline] [The specification which is common to the model] Sets printing speed. 0,48 1,49 2,50 3,51 4,52...
  • Page 203: Fn=97: Function 97 Setting Number Of Divisions For Head Conducting

    fn=97: Function 97 Setting Number of Divisions for Head Conducting GS ( K pL pH fn m [Code] <1D>H<28>H<4B>H<pL><pH><fn><m> [Range] (pL+pH×256)=2(pL=2、pH=0) fn=97 m=0、2、4、48、50、52 [Default] m=0 m = 0 (Customized value setting) [Outline] [The specification which depend on the model] CT-S300/CT-S310 Sets the number of divisions for head conducting.
  • Page 204 Line feed amount, character space Barcode 2-dimensional code(★) Print position Kanji control relations Other ★ … Supported with CT-S2000 and CT-S4000 label models. * … Not supported with BD2-2220. CT-S300 CT-S2000 CT-S4000 Function Command ESC c3、GS a GS : ESC M、ESC R、ESC t ESC !、ESC –、ESC E、ESC G、ESC V、ESC {、GS !、GS B...
  • Page 205: Fn=1、49: Function 1 Copies The Set Value Stored In Work Area To The Storage Area

    Use this command appropriately [10 times max./day]. • During execution of this command, the printer is in Busy state and stops receiving operation. Therefore, data transmission from the host is prohibited. fn=2、50: Function 2 Copies the set value stored in storage area to the work area...
  • Page 206: Fn=3、51: Function 3 Specifies The Auto Loading Function Of The Set Value At Initialization To Be Valid Or Invalid

    fn=3、51: Function 3 Specifies the auto loading function of the set value at initialization to be valid o r invalid GS ( M pL pH fn m [Code] <1D>H<28>H<4D>H<pL><pH><fn><m> [Range] (pL+pH×256)=2:(pL=2、pH=0) fn=3、51 m=0、1、48、49 [Outline] [The specification which depend on the model] Determines the setting of storage area at initialization to the work area by the value of “m”.
  • Page 207: Fn=48: Function 48 Selects Character Color

    (At single color paper setting) m=49、50 (At 2-color paper setting) [Default] m=49 [Outline] [The specification which depend on the model] Prints the succeeding characters with the energy set in m. CT-S300 CT-S2000 CT-S4000 Function Function High energy Low energy - 207 - BD2-2220 CT-S310...
  • Page 208: 2-Dimensional Code Commands

    … dk Function181 Function182 [cn=49: Function 180]. - 208 - CT-S4000 BD2-2220 CT-S310 Function Sets the number of digits of PDF417. Sets the number of steps of PDF417. Sets the module width of PDF417. Sets the height of the step of PDF417.
  • Page 209: Fn=65: Function 65 Setting The Number Of Digits Of Pdf417

    fn=65: Function 65 Setting the number of digits of PDF417 GS ( k pL pH cn fn n [Code] <1D>H<28>H<6B>H<pL><pH><cn><fn><n> [Range] (pL+pH×256)=3(pL=3、pH=0) cn=48 fn=65 0≦n≦30 [Outline] [The specification which depend on the model] Sets the number of digits of PDF417. •...
  • Page 210: Fn=67: Function 67 Setting Module Width Of Pdf417

    fn=67: Function 67 Setting module width of PDF417 GS ( k pL pH cn fn n [Code] <1D>H<28>H<6B>H<pL><pH><cn><fn><n> [Range] (pL+pH×256)=3(pL=3、pH=0) cn=48 fn=67 2≦n≦8 [Outline] [The specification which depend on the model] Sets the width of one module of PDF417 to n dots. [Default] fn=68:...
  • Page 211: Fn=69: Function 69 Setting Error Correction Level Of Pdf417

    fn=69: Function 69 Setting error correction level of PDF417 GS ( k pL pH cn fn m n [Code] <1D>H<28>H<6B>H<pL><pH><cn><fn><m><n> [Range] (pL+pH×256)=4(pL=4、pH=0) cn=48 fn=69 m=48、49 48≦n≦56 (when m = 48 is specified) 1≦n≦40 (when m = 49 is specified) [Outline] [The specification which depend on the model] Sets error correction level of PDF417 •...
  • Page 212: Fn=70: Function 70 Setting Options For Pdf417

    fn=70: Function 70 Setting Options for PDF417 GS ( k pL pH cn fn m [Code] <1D>H<28>H<6B>H<pL><pH><cn><fn><m> [Range] (pL+pH×256)=3(pL=3、pH=0) cn=48 fn=70 m=0、1 [Outline] [The specification which depend on the model] Specifies or clears the PDF417 option. [Caution] • When cleared with m=0, standard processing for PDF417 is conducted thereafter. [Default] fn=80:...
  • Page 213: Fn=81: Function 81 Printing 2-Dimensional Code Data In 2-Dimensional Code Data Storage Area

    fn=81: Function 81 Printing 2-dimensional code data in 2-dimensional code data storage area GS ( k pL pH cn fn m [Code] <1D>H<28>H<6B>H<pL><pH><cn><fn><m> [Range] (pL+pH×256)=3(pL=3、pH=0) cn=48 fn=81 m=48 [Outline] [The specification which depend on the model] Prints PDF417 stored in 2-dimensional code data storage area. [Caution] •...
  • Page 214: Fn=82: Function 82 Sending The Size Of 2-Dimensional Code Data In 2-Dimensional Code Data Storage Area

    fn=82 : Function 82 Sending the size of 2-dimensional code data in 2-dimensional code data storage area GS ( k pL pH cn fn m [Code] <1D>H<28>H<6B>H<pL><pH><cn><fn><m> [Range] (pL+pH×256)=3(pL=3、pH=0) cn=48 fn=82 m=48 [Outline] [The specification which depend on the model] Sends the size information when printing 2-dimensional data stored in the 2-dimensional code data storage area.
  • Page 215: Fn=65: Function 165 Specifying Qrcode Model

    fn=65: Function 165 Specifying QRCode model GS ( k pL pH cn fn n1 n2 [Code] <1D>H<28>H<6B>H<pL><pH><cn><fn><n1><n2> [Range] (pL+pH×256)=4(pL=4、pH=0) cn=49 fn=65 n1=49、50 n2=0 [Outline] [The specification which depend on the model] Specifies QRCode model. Sets model 1. Sets model 2. [Default] n1=50 n2=0...
  • Page 216: Fn=69: Function 169 Setting Qrcode Error Correction Level

    fn=69: Function 169 Setting QRCode error correction level GS ( k pL pH cn fn n [Code] <1D>H<28>H<6B>H<pL><pH><cn><fn><n> [Range] (pL+pH×256)=3(pL=3、pH=0) cn=49 fn=69 48≦n≦51 [Outline] [The specification which depend on the model] Sets QRCode error correction level. fn=80: Function 180 Storing received data to 2-dimensional code data storage area GS ( k pL pH cn fn m d1...dk [Code]...
  • Page 217: Fn=81: Function 181 Printing 2-Dimensional Code Data In 2-Dimensional Code Data Storage Area

    fn=81: Function 181 Printing 2-dimensional code data in 2-dimensional code data storage area GS ( k pL pH cn fn m [Code] <1D>H<28>H<6B>H<pL><pH><cn><fn><m> [Range] (pL+pH×256)=3(pL=3、pH=0) cn=49 fn=81 m=48 [Outline] [The specification which depend on the model] Prints QRCode data stored in 2-dimensional code data storage area. [Caution] •...
  • Page 218: Fn=82: Function 182 Sending The Size Of 2-Dimensional Code Data In 2-Dimensional Code Data Storage Area

    fn=82: Function 182 Sending the size of 2-dimensional code data in 2-dimensional code da ta storage area GS ( k pL pH cn fn m [Code] <1D>H<28>H<6B>H<pL><pH><cn><fn><m> [Range] (pL+pH×256)=3(pL=3、pH=0) cn=49 fn=82 m=48 [Outline] [The specification which depend on the model] Sends the size information when printing 2-dimensional data stored in the 2-dimensional code data storage area.
  • Page 219: Other Commands

    [Example 2] If the printer sends DLE EOT 3 after the host has sent up to ESC 3 in its attempt to send ESC 3 n, the printer handles the ESC 3 as ESC 3 <10>H. Thus, the user should be cautious.
  • Page 220: Dle Dc4 Fn M T (Specification Of Fn = 1

    [Example 2] If the printer sends DLE EOT 3 after the host has sent up to ESC 3 in its attempt to send ESC 3 n, the printer handles the ESC 3 as ESC 3 <10>H. Thus, the user should be cautious.
  • Page 221: Dle Dc4 Fn D1

    [Example 2] If the printer sends DLE EOT 3 after the host has sent up to ESC 3 in its attempt to send ESC 3 n, the printer handles the ESC 3 as ESC 3 <10>H. Thus, the user should be cautious.
  • Page 222: Esc = N

    • 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 command.
  • Page 223: Esc

    • Data in the user NV memory is not cleared. [Sample Program] LPRINT CHR$(&H1B);"!"; CHR$(&H30); LPRINT CHR$(&H1B);"V"; CHR$(1); LPRINT "AAA"; CHR$(&HA); LPRINT CHR$(&H1B);"@"; LPRINT "AAA"; CHR$(&HA); [Print Results] Each setting has been initialized by this command. CT-S300 CT-S2000 CT-S4000 - 223 - BD2-2220 CT-S310...
  • Page 224: Esc L

    Specifying/canceling 90°-right-turned characters. Aligning the characters. Specifying/canceling the inverted characters. Setting the left margin. Setting the print area width. Executes test printing. Prints NV memory bit image. Defines NV memory bit image. Prints raster bit image. - 224 - CT-S4000 BD2-2220 CT-S310...
  • Page 225: Esc S

    • The following commands are valid only in setting in STANDARD MODE. (1) ESC W (2) ESC T (3) GS $ • STANDARD MODE is selected when the printer is turned on or reset, or when ESC @ is executed. [See Also] FF、ESC FF、ESC L CT-S300...
  • Page 226: Esc P M N1 N2

    Drawer kick-out pin No. 2 Drawer kick-out pin No. 5 ON time ≦ 0.2 ON time+OFF time ・・・・・ Selects pin No. 2. ・・・・・ Sets ON time to 10 ms ・・・・・ Sets OFF time to 100 ms - 226 - CT-S4000 BD2-2220 CT-S310...
  • Page 227 • During macro definition, if this command is processed, the macro definition is suspended, and the command starts being processed. • Printer will reset its hard disk after finishing test printing. Therefore, the printer makes download characters, bit map images and macros undefined, clears the reception buffer/print buffer, and returns the various settings to defaults.
  • Page 228: Gs I N

    • Under DTR/DSR control, the printer sends the printer ID after verifying that the host is ready to receive. • If the host is not ready to receive, the printer waits for the host to become ready to receive. • Under XON/XOFF control, the printer sends the printer ID without checking whether or not the host is ready to receive.
  • Page 229 Equipped for 2 byte code support Fixed Reserved Reserved Fixed Reserved Reserved Fixed • Printer information configuration on and after transmitted n=65 is shown below. Kind of Printer Information Firmware version Differs by firmware version. Manufacturer name CITIZEN Model name...
  • Page 230 4-byte code.All fractional parts in millimeters are rounded off. Byte 1 + Byte 2 x256 = Black mark interval Byte 3 + Byte 4 x256 = Black mark length mm • Printer information configuration on and after transmitted n=65 is shown below. Value (Hex.)
  • Page 231 Byte 1 + Byte 2 x256 = Black mark interval Byte 3 + Byte 4 x256 = Black mark length mm Black mark paper/Label paper • Printer information configuration on and after transmitted n=65 is shown Value (Hex.) below. Hex.
  • Page 232 Byte 1 + Byte 2 x256 = Black mark interval Byte 3 + Byte 4 x256 = Black mark length mm BM paper Label paper • Printer information configuration on and after transmitted n=65 is shown Value (Hex.) below. Kind of Printer...
  • Page 233 Kinds of multi-language Japanese Kanji specifications: KANJI fonts Refer to table “DSW” below State of DSW (only serial model) • Sends printer information specified by n=65 or more. Hex. Number of Data Header 20H~7FH Data Subject to item to be responded...
  • Page 234 Byte 1 + Byte 2 x256 = Black mark interval Byte 3 + Byte 4 x256 = Black mark length mm • Printer information configuration on and after transmitted n=65 is shown below. Value (Hex.) Hex.
  • Page 235: Gs P X Y

    [Default] x=203、y=360 [See Also] Appendix 5.1 “Explanation on PAGE MODE” ESC SP、ESC $、ESC 3、ESC J、ESC W、ESC \、GS $、GS L、GS W CT-S300 CT-S2000 CT-S4000 - 235 - BD2-2220 CT-S310...
  • Page 236: Esc Rs

    • Sounds the buzzer when this command is entered even if buzzer is set to disabled with MSW5-1 OFF. [Sample Program] LPRINT CHR$(&H1B); CHR$(&H1E); [Execution Result] The buzzer sounds for approx. 200 ms. CT-S300 CT-S2000 CT-S4000 - 236 - BD2-2220 CT-S310...
  • Page 237: Character Code Table

    3. CHARACTER CODE TABLE 3.1 Code Page 3.1.1 Codepage 00H to 7FH & PC437(USA、Europe Standard) " XOFF & < > Ç ü é â ä à å ç ê ë è ï î ì Ä € Å - 237 - É...
  • Page 238: Codepage 00H To 7Fh & Katakana

    3.1.2 Codepage 00H to 7FH & Katakana " XOFF & < > ▁ ▂ ▃ ▅ ▆ ▇ █ ▉ ▏ ▎ ▍ ▌ ▋ ▋ ▊ € + - 238 - ┴ SP - タ ミ ┬ º ア チ ム ┤...
  • Page 239: Codepage 00H To 7Fh & Pc850(Multilingual)

    3.1.3 Codepage 00H to 7FH & PC850(Multilingual) " XOFF & < > Ç ü é â ä à å ç ê ë è ï î ì Ä € Å - 239 - É á ░ └ ð æ í ▒ ┴...
  • Page 240: Codepage 00H To 7Fh & Pc860(Portuguese)

    3.1.4 Codepage 00H to 7FH & PC860(Portuguese) " XOFF & < > Ç ü é â ã à Á ç ê Ê è Í Ô ì Ã € Â - 240 - É á ░ └ ╨ À í ▒ ┴...
  • Page 241: Codepage 00H To 7Fh & Pc863(Canadian-French)

    3.1.5 Codepage 00H to 7FH & PC863(Canadian-French) " XOFF & < > Ç ü é â Â à ¶ ç ê ë è Ï Î À € § - 241 - É ¦ ░ └ ╨ È ´ ▒ ┴ ╤...
  • Page 242: Codepage 00H To 7Fh & Pc865(Nordic)

    3.1.6 Codepage 00H to 7FH & PC865(Nordic) " XOFF & < > Ç ü é â ä à å ç ê ë è Ï Î Ì Ä € Å - 242 - É á ░ └ ╨ æ í ▒ ┴...
  • Page 243: Codepage 00H To 7Fh & Pc852(Easern Europe)

    3.1.7 Codepage 00H to 7FH & PC852(Easern Europe) " XOFF & < > Ç ü é â ä ů ć ç ł ë Ő ő î Ź Ä € Ć - 243 - É á ░ └ đ Ĺ í ▒...
  • Page 244: Codepage 00H To 7Fh & Pc857(Russian)

    3.1.8 Codepage 00H to 7FH & PC857(Russian) " XOFF & < > Α Р а Б С б В Т в Г У г │ ├ Д Ф д ┤ ─ Е Х е Ж Ц ж З Ч з И...
  • Page 245: Codepage 00H To 7Fh & Pc857(Turkish)

    3.1.9 Codepage 00H to 7FH & PC857(Turkish) " XOFF & < > Ç ü é â à ä å ç ê ë è ï î Ä € Å - 245 - É á ░ └ æ í ▒ ┴ Æ ó...
  • Page 246: Codepage 00H To 7Fh & Pc864(Arabic)

    3.1.10 Codepage 00H to 7FH & PC864(ArabiC) - 246 -...
  • Page 247: Codepage 00H To 7Fh & Windows Codepage

    3.1.11 Codepage 00H to 7FH & Windows Codepage " XOFF & < > ¸ ƒ ,, ” ‰ Š ‹ Œ € - 247 - ° À Ð ‘ ¡ ± Á Ñ ’ ¢ ² Â Ò “ £ ³...
  • Page 248: Codepage 00H To 7Fh & Thai Code 18

    3.1.12 Codepage 00H to 7FH & Thai code 18 - 248 -...
  • Page 249: Internatinal Character Code Table

    3.2 Internatinal Character Code Table Country U.S.A France Germany U.K. Denmark I Sweden Italy Spain I Japan Norway Denmark II Spain II Latin America Korea Croatia China # $ @ ╲ # $ à ° ç # $ § Ä Ö...
  • Page 250: Kanji Code Table

    3.3 Kanji Code Table 3.3.1 JIS non-Kanji S-JIS 813F 2120 814F 2130 ^  ̄ 815F 2140 \ ~ 816F 2150 { } 8180 2160 ÷ = 8190 2170 $ ¢ 819E 2220 ◆ 81AE 2230 81BE 2240 ∪ ∩ 81CE 2250 ∃...
  • Page 251 S-JIS 843F 2720 А Б 844F 2730 О П Р 845F 2740 Ю Я 846F 2750 а б 8480 2760 о п р 8490 2770 ю я 849E 2820 ─ │ 84AE 2830 ┛ ┗ ┣ 84BE 2840 ╂ 84CE 2850 84DE 2860...
  • Page 252: Jis Kanji Level 1

    3.3.2 JIS Kanji Level 1 S-JIS 889E 3020 亜 88AE 3030 旭 葦 88BE 3040 粟 袷 88CE 3050 夷 委 88DE 3060 萎 衣 88EE 3070 稲 茨 893F 3120 院 894F 3130 碓 臼 895F 3140 雲 荏 896F 3150 頴...
  • Page 253 S-JIS 8B9E 3620 供 侠 8BAE 3630 彊 怯 恐 8BBE 3640 鏡 響 饗 8BCE 3650 勤 均 巾 8BDE 3660 謹 近 金 8BEE 3670 駒 具 愚 8C3F 3720 掘 窟 8C4F 3730 薫 訓 群 8C5F 3740 契...
  • Page 254 S-JIS 8E9E 3C20 次 滋 8EAE 3C30 式 識 鴫 8EBE 3C40 疾 質 実 8ECE 3C50 斜 煮 社 8EDE 3C60 酌 釈 錫 8EEE 3C70 腫 趣 酒 8F3F 3D20 宗 就 8F4F 3D30 衆 襲 讐 8F5F 3D40 柔...
  • Page 255 S-JIS 919E 4220 臓 蔵 91AE 4230 属 賊 族 91BE 4240 太 汰 詑 91CE 4250 対 耐 岱 91DE 4260 退 逮 隊 91EE 4270 宅 托 択 923F 4320 叩 但 924F 4330 丹 単 嘆 925F 4340 胆...
  • Page 256 S-JIS 949E 4820 函 箱 94AE 4830 醗 髪 伐 94BE 4840 叛 帆 搬 94CE 4850 釆 煩 頒 94DE 4860 彼 悲 扉 94EE 4870 誹 費 避 953F 4920 鼻 柊 954F 4930 桧 姫 媛 955F 4940 廟...
  • Page 257 S-JIS 979E 4E20 痢 裏 97AE 4E30 琉 留 硫 97BE 4E40 寮 料 梁 97CE 4E50 緑 倫 厘 97DE 4E60 類 令 伶 97EE 4E70 齢 暦 歴 983F 4F20 蓮 連 984F 4F30 楼 榔 浪 985F 4F40 論...
  • Page 258: Jis Kanji Level 2

    3.3.3 JIS Kanji Level 2 S-JIS 989E 5020 弌 98AE 5030 舒 弍 98BE 5040 仞 仭 98CE 5050 佩 佰 98DE 5060 俥 倚 98EE 5070 偃 假 993F 5120 僉 994F 5130 儖 儕 995F 5140 兩 兪 996F 5150 冩...
  • Page 259 S-JIS 9B9E 5620 屐 屏 9BAE 5630 岼 岷 峅 9BBE 5640 崟 崛 崑 9BCE 5650 嶄 嶂 嶢 9BDE 5660 巫 已 巵 9BEE 5670 幟 幢 幤 9C3F 5720 廖 廣 9C4F 5730 廾 弃 弉 9C5F 5740 彑...
  • Page 260 S-JIS 9E9E 5C20 棔 棧 9EAE 5C30 椣 椡 棆 9EBE 5C40 楡 楞 楝 9ECE 5C50 榻 槃 榧 9EDE 5C60 槲 槧 樅 9EEE 5C70 樶 橸 橇 9F3F 5D20 檗 蘗 9F4F 5D30 欅 蘖 櫺 9F5F 5D40 歙...
  • Page 261 S-JIS E19E 6220 癲 癶 E1AE 6230 皸 皹 皺 E1BE 6240 眄 眩 眤 E1CE 6250 睾 睹 瞎 E1DE 6260 矗 矚 矜 E1EE 6270 碚 碌 碣 E23F 6320 磧 磚 E24F 6330 祕 祓 祺 E25F 6340 秬...
  • Page 262 S-JIS E49E 6820 茵 茴 E4AE 6830 莪 莟 莢 E4BE 6840 萓 菫 菎 E4CE 6850 萸 蔆 菻 E4DE 6860 葯 葹 萵 E4EE 6870 蒡 蔡 蓿 E53F 6920 蕁 蘂 E54F 6930 薜 蕷 蕾 E55F 6940 蘋...
  • Page 263 S-JIS E79E 6E20 遏 遐 E7AE 6E30 邂 遽 邁 E7BE 6E40 鄒 鄙 鄲 E7CE 6E50 醫 醯 醪 E7DE 6E60 釵 釶 鈞 E7EE 6E70 鉋 鉐 銜 E83F 6F20 錙 錢 E84F 6F30 鎔 鎹 鏖 E85F 6F40 鐇...
  • Page 264 S-JIS EA9E 7420 堯 槇 EAAE 7430 EABE 7440 EACE 7450 EADE 7460 EAEE 7470 遙 瑤 - 264 -...
  • Page 265: Memory Switch

    4. Memory Switch Memory switch is a function to save the user selected settings into NV memory, where memory switch setting will be held unless memory switch is changed. Memory switch is changed by manual setting or by command in the memory switch change mode. * Hereafter, memory switch is referred to as MSW.
  • Page 266: Ct-S300

    4.1.2 CT-S300 MSW1-1 Power ON Info MSW1-2 Buffer Size MSW1-3 Busy Condition MSW1-4 Receive Error MSW1-5 CR mode MSW1-6 Reserved MSW1-7 DSR Signal MSW1-8 Init Signal MSW2-1 Reserved MSW2-2 Auto Cutter MSW2-3 Spool Print MSW2-4 Full Col Print MSW2-5 Resume aft PE MSW2-6 Paper width MSW2-7...
  • Page 267: Ct-S2000

    ― Valid Valid ● Fixed ● Valid Valid WaitData ― ― Invalid Invalid ― Invalid ― ― ― ● Valid Command Valid ― ● Valid ― ― ― ― ● Valid Invalid ● Printer Class ― ― ― ― ―...
  • Page 268 Setting MSW7-1 Baud Rate MSW7-2 Data Length MSW7-3 Stop Bit MSW7-4 Parity MSW7-5 Flow Control MSW7-6 DMA control MSW7-7 VCom Protocol MSW8-1 Print Width MSW8-2 Paper Type MSW9-1 Code Page MSW9-2 Int’Char Set MSW9-3 Kanji MSW9-4 JIS/Shift JIS MSW10-1 Print Density MSW10-2 Print Speed MSW10-3...
  • Page 269: Ct-S4000

    Valid Valid ● Fixed ● Valid Valid WaitData ― ― Invalid Invalid ― Invalid ― ― ― Valid Command Command Valid ● Valid BM.P/Lbl.P Label ― ― ● Valid ● Invalid 1/406 ● Printer Class ― Valid ― ― ―...
  • Page 270 Setting MSW7-1 Baud Rate MSW7-2 Data Length MSW7-3 Stop Bit MSW7-4 Parity MSW7-5 Flow Control MSW7-6 DMA control MSW7-7 VCom Protocol MSW8-1 Print Width MSW8-2 Paper Type MSW9-1 Code Page MSW9-2 Int’Char Set MSW9-3 Kanji MSW9-4 JIS/Shift JIS MSW10-1 Print Density MSW10-2 Print Speed MSW10-3...
  • Page 271: Bd2-2220

    4.1.5 BD2-2220 MSW1-1 Power ON Info MSW1-2 Buffer Size MSW1-3 Busy Condition MSW1-4 Receive Error MSW1-5 CR mode MSW1-6 Reserved MSW1-7 DSR Signal MSW1-8 Reserved MSW2-1 Reserved MSW2-2 Reserved MSW2-3 Spool Print MSW2-4 Full Col Print MSW2-5 Resume aft H.D(*)
  • Page 272: Ct-S310

    ● Fixed ● Valid Valid ● WaitData 58mm ― Invalid Invalid ― Invalid Black MK 42/30Col ― Valid Command Auto Back ● Valid ― ― ― ― ● Valid Invalid ― ● Printer Class ― Invalid ― Paper set ―...
  • Page 273 Setting MSW7-1 Baud Rate MSW7-2 Data Length MSW7-3 Stop Bit MSW7-4 Parity MSW7-5 Flow Control MSW7-6 Reserved MSW7-7 VCom Protocol MSW8-1 Reserved MSW8-2 Paper Type MSW9-1 Code Page MSW9-2 Int’Char Set MSW9-3 Kanji MSW9-4 JIS/Shift JIS MSW10-1 Print Density MSW10-2 Print Speed MSW10-3 ACK Timing...
  • Page 274 4.1.7 PMU2XXX MSW1-1 Power ON Info MSW1-2 Buffer Size MSW1-3 Busy Condition MSW1-4 Receive Error MSW1-5 CR mode MSW1-6 Reserved MSW1-7 DSR Signal MSW1-8 Reserved MSW2-1 Reserved MSW2-2 Auto Cutter MSW2-3 Spool Print MSW2-4 Full Col Print MSW2-5 Resume aft PE MSW2-6 Paper Width MSW2-7...
  • Page 275 Setting MSW7-1 Baud Rate MSW7-2 Data Length MSW7-3 Stop Bit MSW7-4 Parity MSW7-5 Flow Control MSW7-6 Reserved MSW7-7 Reserved MSW9-1 Code Page MSW9-2 Int’Char Set MSW9-3 Kanji MSW9-4 JIS/Shift JIS MSW10-1 Print Density MSW10-2 Print Speed MSW10-3 ACK Timing Default Set Values 1200bps,2400bps,4800bps,9600bps,19200bps, 9600bps...
  • Page 276: Details Of Memory Switches

    ●MSW1-1: Setting the power ON notify [Outline] At power ON, to notify the host of the printer power ON, printer can send to host 3 byte power ON notify’s status data (<3B>H <31>H <00>H). Set to enable/disable for sending the power ON notify’s status data.
  • Page 277 OFF (0) OPERATION: If receive buffer is full or off-line, printer is BUSY. Automatic status send (ASB) function is disabled. [Additional Description] Even if ON is selected, printer enters BUSY status when power is turned on or reset by I/F or at self test print Off-line Buffer full ●MSW1-4:...
  • Page 278 CR code may be ignored with no actions if receiving CR code. ●MSW1-6: Reserved [Fixed to OFF (0)] ●MSW1-7: DSR signal [Outline] Printer can be reset with DSR (serial I/F-6pin) signal. Select enable/disable of reset function with this signal. DSR Signal ON (1) OPERATION: Used as reset signal OFF (0) OPERATION: Not used as reset signal ●MSW1-8:...
  • Page 279: Msw2

    4.2.2 MSW2 ●MSW2-1: Reserved [Fixed to ON(1)] ●MSW2-2: Auto-cutter operation [Outline] Select auto-cutter enable/disable. Auto Cutter ON (1) OPERATION: Auto-cutter enabled OFF (0) OPERATION: Auto-cutter disabled ●MSW2-3: Buffering [Outline] Select buffering print enable/disable. Spool Print ON (1) OPERATION: Buffering print is enabled. Buffering print means that save a certain amount of OFF (0) OPERATION: Buffering print is disabled.
  • Page 280 Print data continued from the previous printing. During printing, if cover open or PE is detected, then after return, restart printing data immediately after an error data. *With BD2-2220, Cover Close corresponds to Head Down (Platen Close) and Cover Open to Head Up (Platen Open).
  • Page 281 ●MSW2-6: Paper width [Outline] Select paper width. Paper width ON (1) OPERATION: Paper width is set 80mm OFF (0) OPERATION: Paper width is set 58mm ●MSW2-7: Reserved [Fixed to OFF (0)] ●MSW2-8: PNE sensor [Outline] Select paper near-end enable/disable. PNE Sensor ON (1) OPERATION: Disable paper near-end OFF (0) OPERATION: Enable paper near-end OFF(0)
  • Page 282: Msw3

    <DLE+ENQ+n>, the error is cleared. Operation at OFF (0): When the printer detects that the cover is closed, it automatically clears the error. *With BD2-2220, Cover Open corresponds to Head Up (Platen Open). ●MSW3-3: Parallel 31 pin [Outline] Printer can be reset by parallel I/F –31 Pin signal. Select the handling of this signal.
  • Page 283 ●MSW3-4: Selecting paper [Outline] Selects either thermal paper or black mark paper. Paper Select Operation at ON (1): Sets black mark paper. Operation at OFF (0): Sets thermal paper. ●MSW3-5: Column Number [Outline] Selects column number. Column Number Operation at ON (1): Column number is set 42/30 columns Operation at OFF (0): Column number is set 48/32 columns ●MSW3-6:...
  • Page 284 OFF (0) OPERATION: Cover open error during printing becomes an automatic return error. Automatically returned from cover open error by closing the cover. *With BD2-2220, Cover Close corresponds to Head Down (Platen Close) and Cover Open to Head Up (Platen Open).
  • Page 285: Msw4

    4.2.4 MSW4 ●MSW4-1: Automatic length measurement [Outline] In selecting black mark paper, set the enable/disable of automatic length measurement. (Black mark/label support model only) BM Measure ON (1) OPERATION: Automatic length measurement is enabled. At power-up, measurement operation is taken. OFF (0) OPERATION: Automatic length measurement is disabled.
  • Page 286 ●MSW4-4: Paper [Outline] Selects the type of paper used. Paper ON (1) OPERATION: Paper used is limited to black mark paper or label paper. OFF (0) OPERATION: Paper used is limited to thermal roll paper. ●MSW4-5: Position detect [Outline] Selects the method of detecting paper position. Position detect ON (1) OPERATION: Detects paper position by detecting the inter-label distance.
  • Page 287: Msw5

    OFF (0) OPERATION: Basic vertical calculation pitch is set to 1/360 inch. Line-feed length is 4.23mm by default. ●MSW5-3: USB mode [Outline] Select USB mode. USB Mode ON (1) OPERATION: Operated as Printer class OFF (0) OPERATION: Operated as virtual COM class ●MSW5-4: Reserved [Fixed to OFF (0)] OFF(0) ON(1) Valid...
  • Page 288: Msw6

    ●MSW5-5: Setting the power OFF notify [Outline] At power OFF, to notify the host of the printer power OFF, printer can send to host 3 byte power OFF notify’s status data (<3B>H <31>H <00>H). Set to enable/disable for sending the power OFF notify’s status data.
  • Page 289: Msw7

    4.2.7 MSW7 ●MSW7-1: Baud rate [Outline] Select baud rate which is serial interface communication condition. Enabled if DSW1-1 OFF is set [following memory switch setting]. Baud Rate ●MSW7-2: Data length [Outline] Select the data length, which is a serial interface communication condition. Enabled if DSW1-1 OFF is set [following memory switch setting].
  • Page 290 ●MSW7-6: DMA control [Outline] Select the enable/disable of DMA (Direct Memory Access) control. DMA control ●MSW7-7: VCom flow control [Outline] In MSW5-3, select the flow control when virtual COM is set. VCom Protocal Setting Value Valid, Invalid Setting Value PC setting, DTR/DSR, XON/XOFF - 290 -...
  • Page 291: Msw8

    4.2.8 MSW8 ●MSW8-1: Print width [Outline] Select the print width in dots. Print Width ●MSW8-2: Paper type [Outline] Select the paper type used. Paper Type Setting Value 832dots,720dots,660dots,640dots,576dots,512dots, 436dots,432dots,420dots,384dots,360dots Setting Value 1 Color Normal, 1 Color BM, 1 Color Label, 2 color Normal, 2 Color BM - 291 -...
  • Page 292: Msw9

    4.2.9 MSW9 ●MSW9-1: Code page [Outline] Select the code page. Code Page ●MSW9-2: International character [Outline] Select the international character. Int’Char Set ●MSW9-3: Kanji [Outline] Select the enable/disable of Kanji. Kanji ●MSW9-4: JIS [Outline] Select the kanji code system. JIS/Shift JIS Setting Value PC437,Katakana,PC850,PC858,PC860,PC863, PC865,PC852,PC866,PC857,WindowsCode,...
  • Page 293: Msw10

    4.2.10 MSW10 ●MSW10-1: Print density [Outline] Select the print density. Print Density ●MSW10-2: Print speed [Outline] Select the print speed. Print Speed ●MSW10-3: ACK output timing [Outline] Select the ACK signal output timing in parallel interface. ●MSW10-4: user NV memory capacity Specify user NV memory capacity.
  • Page 294: Appendix

    The printer enters PAGE MODE with an ESC L, so that all commands received after that point are handled in PAGE MODE.
  • Page 295: 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 print area.
  • Page 296 x0, y0 2 4-3 Point A Figure 5-1 Mapping Position for Character Data = 24-3 Point B Point B Figure 5-2 Mapping Positions for Print Data Mapping direction Baseline Print area nH*256+n Bit image GS * x y ESC * m nL nH Point B - 296 - dx, dy...
  • Page 297: Example Of Using

    5.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 the host to the printer in the following sequence: (1) An ESC L puts the printer in PAGE MODE.
  • Page 298 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 of the 200  4 00 -pitch print area. The line feed width conforms to the value specified by ...
  • Page 299 (0,0) Page mode lesson 2CAN command ABCDEFGHIJKLMNOP QRST1234567890 Print Direction Figure 5-4 Example 2: Result of Print Before an FF is sent (170th line), the following program code can be added to remove part of the data. < Example 2 > 180 PRINT♯1,CHR$(&H1B);"W";CHR$(72);CHR$(0);CHR$(120);CHR$(0);...
  • Page 300 (0,0) Page mode lesson Paper 2CAN command ABCDEF JKLMNOP QRST1234567890 Print area Print Direction Figure 5-5 Print Result of Adding a Program of Example 3 to Example 2 - 300 -...
  • Page 301: Bidirectional Parallel Interface

    Compatibility mode. • Compatibility Mode Data is transmitted from the host to the printer in units of one byte. Usually, this mode is used for data transmission. You may switch to the other modes from Compatibility mode.
  • Page 302: Interfacing Phases

    5.2.2 Interfacing Phases Interfacing in each communication mode is divided into several phases. In addition, there is a phase for mode initialization, as well as a phase for mode switching. Interface signals may differ in name and function for different modes and different phases.
  • Page 303: Negotiation

    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.
  • Page 304 (3) Negotiations can be entered from the Busy or Error state of the Compatibility mode. In this case, the printer will not return to the Busy or Error state before the negotiations, but still remains in the printer state just after Termination.
  • Page 305: Data Communication From Printer To Host

    2. And whether data can be transferred from the host to the printer. (9) If there is no more data to be sent from the printer after the transfer of one byte (two nibbles), the host chooses one of three status selections: 1.
  • Page 306 (14) Upon receiving a request for interrupt from the printer, the host responds by setting HostBusy (nAutoFd) to High. (Event 20) (15) Finally, the printer responds to the host by setting AckDataReq (PError) to Low, and then the host moves to the Host Busy Data Available phase. (Event 21)
  • Page 307: Byte Mode

    HostBusy and HostClk are used together.) (9) After transferring one byte of data, the printer signals to the host whether it has more data to transfer. When there is no more data to be received by the host from the printer, the host chooses one of three status selections: 1.
  • Page 308 ID beginning from the first character of the ID. After receiving the ID of the length indicated by the first two bytes, the host must carry out the termination even if the printer has data to send (Data Available). If the host does not carry out Termination and tries to receive data, the printer sends the printer status.
  • Page 309 Compatibility mode. If the printer has data to send, it initiates the Interrupt phase indicated by Events 8 and 9. In this case, if 1284 - Active (nSelectIn) was set to Low before HostBusy (nAutoFd) changed from High to Low, the printer interprets that the host has switched to the Termination phase, and then completes the normal termination through handshaking.
  • Page 310: Identification Of Send Status

    5.3 Identification of Send Status Because the status sent from the printer has certain fixed bits, it is possible to identify to which command the status belongs. When using ASB (Automatic Status Back), however, the first byte of ASB should be checked, and then the three consecutive bytes except for XOFF should be treated as ASB data.
  • Page 311: Cautions On Black Mark/Label Paper

    5.4 Cautions on Black Mark/Label Paper Cautions on LF (CR), ESC J, ESC d, Page mode, Image, and barcode printing. Printing of image greater than vertical print area of BM paper/label paper used is prohibited as a rule. The user must use label while taking label size into account at all times and terminate printing of a sheet of label with FF, ESC FF or GS FF.
  • Page 312 If printing of image greater than inter-BM distance/label paper length (vertical print area width) is attempted, image is printed in two separated images as shown below. Barcode, downloaded image, NV image, page mode Barcode, download, NV image, Page mode Image greater than vertical print area of label paper used is printed over the label.

This manual is also suitable for:

Ct-s310Pmu2xxxCt-s280Ct-s300Ct-s2000Ct-s4000

Table of Contents