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...
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:...
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.
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...
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...
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...
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...
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...
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...
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...
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.
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...
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] •...
• 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...
• 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...
• 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...
• 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...
[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.
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...
• 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 -...
• 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...
• 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]...
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)
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;...
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...
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...
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...
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...
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.
• 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...
• 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 !
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...
• 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.
• 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.
(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...
• 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...
• 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.
• 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...
(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...
[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.
(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.
• 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...
[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 •...
• 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...
• “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.
[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.
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)
• 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...
• 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”...
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...
• 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.
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...
• 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...
• 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...
[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...
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.
[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...
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.
• 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.
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:...
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...
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] •...
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...
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.
• 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.
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...
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...
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. •...
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.
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...
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.
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...
• 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.
• 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.
[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...
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 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...
• 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]...
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...
(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...
[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...
(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.
• 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...
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.
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...
[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...
• 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.
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...
• 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...
• 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...
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.
(“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>...
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 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)
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] •...
• 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 •...
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”) •...
• 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]...
[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 ○...
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.
[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 -...
• 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.
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...
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...
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%)
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...
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...
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...
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”.
(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...
… 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.
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. •...
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:...
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 •...
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:...
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] •...
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.
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]...
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] •...
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.
[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.
[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.
[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.
• 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.
• 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...
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...
• 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...
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.
• 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.
• 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...
3. CHARACTER CODE TABLE 3.1 Code Page 3.1.1 Codepage 00H to 7FH & PC437(USA、Europe Standard) " XOFF & < > Ç ü é â ä à å ç ê ë è ï î ì Ä € Å - 237 - É...
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 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...
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.
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 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 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...
●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:...
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)
<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).
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.
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...
●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.
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 -...
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 -...
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,...
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...
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 -...
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.
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.
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.
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)
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.
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.
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.