Gebruiksaanwijzing /service van het product CT-S300 van de fabrikant Citizen
Ga naar pagina of 158
Command Reference LINE THERMAL PRINTER MODEL CT -S300 Rev . 0.01 Newly issued on July 17, 2003.
Rev . No. Date Comment Re v . 0.01 2003/07/17 Ne wly issued REVISION.
— i — T ABLE OF CONTENTS 1. OUTLINE .................................................................................................................... .......................... 1 1.1 Operation Mode ..............................................
— ii — 2.2.5 Bit Image Commands ...................................................................................................... ................. 45 ESC * m n1 n2 [ d ] k .....................................................................
— iii — GS (K pL pH fn m fn = 50 ..................................................................................................... ............. 111 GS (K pL pH fn m fn = 97 .....................................................................
— 1 — 1. OUTLINE 1.1 Operation Mode CT -S300 has ESC/POS TM as control commands. 1.2 Character Set All print data sent from the host computer to the printer are automatically converted to one-byte alphanumeric or katakana characters (ANK) or two-byte Kanji corresponding to the characters and symbols.
— 2 — 2. CONTROL COMMANDS 2.1 ESC/POS Command List Print Control Commands Control Function Mode GS P Command LF Printing and paper feed S.P . CR Back to printing S.
— 3 — Print Position Commands Commands Function Mode GS P HT Horizontal tab S.P . ESC $ Specifying the absolute positions S.P . O ESC D Setting horizontal tab position S.P . ESC T Selecting the character printing direction in P AGE MODE P ESC W Defining the print area in P AGE MODE P O ESC Specifying the relative position S.
— 4 — Panel Switch Commands Commands Function Mode GS P ESC c5 Enabling/disabling the panel switches S.P . Macro Commands Commands Function Mode GS P GS : Starting/ending macro definition S.P . GS ^ Executing the macro S.P . Cutter Commands Commands Function Mode GS P GS V Cutting the paper S.
— 5 — Printer Function Setting Commands Commands Function Mode GS P GS ( D Enabling or disabling real-time command S GS ( E Printer function setting command S GS ( M Customizing the printer S GS ( N Designating font attribute S Other Commands Commands Function Mode GS P DLE ENQ Real-time request to printer S.
— 6 — 2.1.1 Description of Items XXXX [Function] The name of a command. [Code] The string of codes comprising the command is represented by < >H for hexadecimal numbers, < >B for binary numbers, and < > for decimal numbers, [ ] k denotes the number of repetition of “ k ” times.
— 7 — 2.2 Command Details 2.2.1 Print Control Commands LF [Function] Printing and paper feed [Code] <0A>H [Outline] Prints data inside the print buffer and feeds paper based on the line feed amount having been set. [Caution] After this command is executed, the beginning of the line is taken as the start position for the next point.
— 8 — CR [Function] Back to printing [Code] <0D>H [Outline] (1) When memory switch 1-3 is OFF: This command is ignored. (2) When memory switch 1-3 is ON: The same operation as LF is executed.
— 9 — FF [Function] (1) Printing in P AGE MODE and returning to ST ANDARD MODE (at the selection of P AGE MODE) (2) Printing of Black mark and paper feeding to the top of the print position (with .
— 10 — ESC FF [Function] Printing data in P AGE MODE [Code] <1B>H<0C>H [Outline] Executes a batch printout of the data mapped in the entire print area in P AGE MODE. [Caution] • This command is only effective when P AGE MODE is selected.
— 11 — ESC d n [Function] Printing and feeding the paper by “ n ” lines [Code] <1B>H<64>H<n> [Range] 0 n 255 [Outline] Prints data in the print buffer and feeds paper by “ n ” lines.
— 12 — 2.2.2 Print Character Commands CAN [Function] Canceling print data in P AGE MODE [Code] <18>H [Outline] Erases all data contained in the currently effective print area in P AGE MODE. [Caution] • This command is only effective when P AGE MODE is selected.
— 13 — ESC SP n [Function] Setting the right spacing of the character [Code] <1B>H<20>H<n> [Range] 0 n 255 [Outline] Sets the right spacing of character to [n × basic calculation pitch] inches. [Caution] • If the horizontal magnification of character is 2 or more, the right spacing increases with the magnification.
— 14 — ESC ! n [Function] Collectively specifying the printing mode [Code] <1B>H<21>H<n> [Range] 0 n 255 [Outline] Printing mode is assigned. [Caution] • With double height and double width being specified simultaneously , quadruple characters are created.
— 15 — [Sample Program] LPRINT CHR$(&H1B);"!";CHR$(&H00);"H"; LPRINT CHR$(&H1B);"!";CHR$(&H01);"H"; LPRINT CHR$(&H1B);"!";CHR$.
— 16 — ESC % n [Function] Specifying/canceling download character set [Code] <1B>H<25>H<n> [Range] 0 n 255 [Outline] Specifying/canceling download characters.
— 17 — ESC & s n m [a [p] s × a] m–n+1 [Function] Defining the download characters [Code] <1B>H<26>H<s>H<n>H<m>H[<a>H<p1>H<p2> ·· <ps ×.
— 18 — ESC – n [Function] Specifying/canceling underline [Code] <1B>H<2D>H<n> [Range] 0 n 2 48 n 50 [Outline] Specifying/canceling an underline. Underline canceled Underline specified ←→ ←→ AAAAAAAAAA [Caution] • An underline is attached to the full character width.
— 19 — ESC ? n [Function] Deleting download characters [Code] <1B>H<3F>H<n> [Range] 32 n 126 [Outline] Deletes the downloaded characters of specified code. [Caution] • The character “ n ” indicates the character code used to delete the defined pattern.
— 20 — ESC E n [Function] Specifying/canceling emphasis printing [Code] <1B>H<45>H<n> [Range] 0 n 255 [Outline] Specifying/canceling the emphasized characters.
— 21 — ESC G n [Function] Specifying/canceling double strike printing [Code] <1B>H<47>H<n> [Range] 0 n 255 [Outline] Specifying/canceling the double strike printing.
— 22 — ESC M n [Function] Selection of character fonts [Code] <1B>H<4D>H<n> [Range] 0 n 2 48 n 50 [Outline] Selects character fonts. [Caution] • ESC ! can also select fonts, but the setting made by the command that has last been processed becomes valid.
— 23 — ESC V n [Function] Specifying/canceling 90 ° -right-turned characters [Code] <1B>H<56>H<n> [Range] 0 n 2 48 n 50 [Outline] Specifying/canceling 90 ° -right-turned characters. [Caution] • No underlines are attached to 90 ° -right-turned characters.
— 24 — ESC t n [Function] Selecting the character code table [Code] <1B>H<74>H<n> [Range] 0 n 9 16 n 19 n = 22, 255 [Outline] Selecting the character code table. The character code table is selected based on the value of “ n ” .
— 25 — ESC { n [Function] Specifying/canceling the inverted characters [Code] <1B>H<7B>H<n> [Range] 0 n 255 [Outline] Specifying/canceling inverted characters.
— 26 — ESC ~ J n (V alid in CBM1000II-Compatible Mode) [Function] Specifies/cancels printing in red (black-based paper) [Code] <1B>H<7E>H<4A>H<n> [Range] 0 n 255 [Outline] Specifies or cancels printing in red. • Red printing is valid on black-based thermal paper .
— 27 — DC3 n (V alid in CBM1000II-Compatible Mode) [Function] Specifies/cancels printing in red (black-based paper) [Code] <13>H<n> [Range] 0 n 255 [Outline] Specifies or cancels printing in red. • Red printing is valid on black-based thermal paper .
— 28 — Bit Function V alue Hex. Number Decimal Number 0 1 2 3 4 5 6 7 GS ! n [Function] Specifying the character size [Code] <1D>H<21>H<n> [Range] 0 n 255, where: 1 vertical magnification 8, 1 horizontal magnification 8 [Outline] Specifies the character size (V ertical and horizontal magnification).
— 29 — GS B n [Function] Specifying/canceling the black/white inverted printing [Code] <1D>H<42>H<n> [Range] 0 n 255 [Outline] This command specifies or cancels the black/white inverted printing. •“ n ” is valid only for the lowest bit (n0).
— 30 — GS b n [Function] Specifying/canceling the smoothing [Code] <1D>H<62>H<n> [Range] 0 n 255 [Outline] This command specifies or cancels the smoothing.
— 31 — 2.2.3 Print Position Commands HT [Function] Horizontal tab [Code] <09>H [Outline] Shifts the printing position to the next horizontal tab position. • Ignored when the next horizontal tab position has not been set. [Caution] The horizontal tab position is set by ESC D.
— 32 — ESC $ n1 n2 [Function] Specifying the absolute positions [Code] <1B>H<24>H<n1><n2> [Range] 0 n1 255 0 n2 255 [Outline] The printing start position is specified by the absolute position from the left margin with the number of dots divided by 256 and quatient specified as “n2” and remainder as “n1”.
— 33 — ESC D [ n ] k NULL [Function] Setting horizontal tab position [Code] <1B>H<44>H [<n>] k<00>H [Range] 1 n 255 0 k 32 [Outline] Specifying a horizontal tab position. •“ n ” indicates the number of columns from the beginning to the horizontal tab position.
— 34 — ESC T n [Function] Selecting the character printing direction in P AGE MODE [Code] <1B>H<54>H<n> [Range] 0 n 3 48 n 51 [Outline] Selects the direction and start point of character printing in P AGE MODE.
— 35 — ESC W xL xH yL yH dxL dxH dyL dyH [Function] Defining the print area in P AGE MODE [Code] <1B>H<57>H<xL><xH><yL><yH><dxL><dxH><dyL><.
— 36 — ESC nL nH [Function] Specifying the relative position [Code] <1B>H<5C>H<nL><nH> [Range] 0 nL 255 0 nH 255 [Outline] This command specifies the next print start position in a relative position with respect to the current position.
— 37 — ESC a n [Function] Aligning the characters [Code] <1B>H<61>H<n> [Range] 0 n 2 48 n 50 [Outline] All the printed data within one line are aligned in the specified position.
— 38 — GS $ nL nH [Function] Specifying the absolute position of character vertical direction in P AGE MODE [Code] <1D>H<24>H<nL><nH> [Range] 0 nL 255, 0 nH 255 [Outline] Specifies the vertical position of character at the start point of data development in P AGE MODE using absolute position based on the start position.
— 39 — GS L nL nH [Function] Setting the left margin [Code] <1D>H<4C>H<nL><nH> [Range] 0 nL 255 0 nH 255 [Outline] This command sets the left margin specified by nL and nH. The value of the left margin is [(nL + nH × 256) × basic calculation pitch] inches.
— 40 — A GS W nL nH [Function] Setting the print area width [Code] <1D>H<57>H<nL><nH> [Range] 0 nL 255 0 nH 255 [Outline] Sets the print area width specified by nL and nH. The print area width will be [(nL + nH × 256) × basic calculation pitch] inches.
— 41 — (2) If a sufficient area cannot be provided as a result of step (1), the print area is extended toward the left (so, the left margin is decreased). (3) If a sufficient area cannot be provided as a result of step (2), the right spacing is trimmed.
— 42 — GS nL nH [Function] Specifying the relative vertical position of a character in P AGE MODE [Code] <1D>H<5C>H<nL><nH> [Range] 0 nL 255 0 nH 255 [Outline] This comman.
— 43 — 2.2.4 Line Feed Span Commands ESC 2 [Function] Specifying 1/6-inch line feed rate [Code] <1B>H<32>H [Outline] The line feed rate per line is specified by 1/6 inch. [Caution] Line feed rate can be specified respectively for both ST ANDARD MODE and P AGE MODE.
— 44 — ESC 3 n [Function] Setting line feed rate of minimum pitch [Code] <1B>H<33>H<n> [Range] 0 n 255 [Outline] Sets the line feed width per line to [n × basic calculation pitch] inches. [Χαυτιον] • The line feed width can be set separately for the ST ANDARD and P AGE MODES.
— 45 — 2.2.5 Bit Image Commands ESC * m n1 n2 [ d ] k [Function] Specifying the bit image mode [Code] <1B>H<2A>H<m>H<n1><n2>[<d>]k [Range] m = 0, 1, 32, 33 0 n1.
— 46 — [Sample Program] LPRINT CHR$(&H1B);"*"; LPRINT CHR$(0);CHR$(20);CHR$(0); IMG1: GOSUB IMG1 LPRINT CHR$(&HFF); LPRINT CHR$(&HA); FOR I = 1 T O 18 LPRINT CHR$(&H1B);&.
— 47 — GS * n1 n2 [ d ] n1 × n2 × 8 [Function] Defining the download bit image [Code] <1D>H<2A>H<n1><n2> [< d >] n1 × n2 × 8 [Range] 1 n1 255 1 n2 48 n1 × n2 1536 [Outline] • Defines download bit images of the number of dots specified by “ n1 ” and “ n2 ” .
— 48 — [Sample Program] GOSUB IMG LPRINT CHR$(&H1D);"/";CHR$(0); LPRINT CHR$(&H1D);"/";CHR$(1); LPRINT CHR$(&H1D);"/";CHR$(2); LPRINT CHR$(&H1D);".
— 49 — GS / m [Function] Printing the downloaded bit image [Code] <1D>H<2F>H<m> [Range] 0 m 3 48 m 51 [Outline] Prints downloaded bit image in a mode specified by “ m ” . Modes that can be selected by “ m ” are shown below .
— 50 — GS v 0 m xL xH yL yH d1...dk [Function] Printing of raster bit image [Code] <1D>H<76>H<30>H<m><xL><xH><yL><yH> [<d>] k [Range] 0 m 3, 4.
— 51 — [Example] When xL + xH × 256 = 64 7 123 6 2 126 K-2 127 K-1 128 K 63 64 65 66 67 6 5 4 3 2 1 0 LSB MSB yL + yH × 256 dots (xL + xH × 256) × 8 dots = 512 dots.
— 52 — 2.2.6 Status Commands DLE EOT n [Function] Sending status in real-time [Code] <10>H<04>H<n> [Range] 1 n 4 [Outline] Sends in real-time the status specified by “ n ” . [Caution] • Each status represents the current status.
— 53 — (1) Printer status (When n = 1 is specified) (2) Status caused by an offline condition (When n = 2 is specified) Bit 5: Printing is stopped if the Paper -end detector detects a “ paper out ” state, or if the printer is out of paper when the Paper Near -end Sensor is enabled by ESC c 4.
— 54 — (3) Status caused by an error (when n = 3 is specified) Bit 3: If this error occurred because of a paper jam, for example, remove the cause of the error , and then DLE ENQ n (1 n 2) can be used to recover from the error . However , it is not possible to recover from any er ror due to a circuit problem (e.
— 55 — GS a n [Function] Enabling/disabling ASB (Automatic Status Back) [Code] <1D>H<61>H<n> [Range] 0 n 255 [Outline] This command selects the status item to be addressed by ASB (Automatic Status Back.) [Caution] • If any status item is enabled, the status is sent to the host when this command is executed.
— 56 — Bit Status Hex. Decimal 0 Unused 00 0 1 Unused 00 0 2 Status of pin 3 of drawer kick-out connector = “ L ” 00 0 Status of pin 3 of drawer kick-out connector = “ H ” 04 4 3 Online st.
— 57 — Bit Status Hex. Decimal 0 Undefined —— 1 Undefined —— 2 Undefined —— 3 Undefined —— 4 Unused 00 0 5 Undefined —— 6 Undefined —— 7 Unused 00 0 (4) 4th byte (Paper Sen.
— 58 — GS r n [Function] Sending status [Code] <1D>H<72>H<n> [Range] 1 n 2 49 n 50 [Outline] Sends the specified status to the host. [Caution] • When the serial interface is used: For DTR/DSR control: The printer sends the status after verifying that the host is ready to receive.
— 59 — Bit Status Hex. Decimal 0 Status of pin 3 of drawer kick connector = “ L ” 00 0 Status of pin 3 of drawer kick connector = “ H ” 01 1 1 Undefined —— 2 Undefined —— 3 Undefined —— 4 Unused 00 0 5 Undefined —— 6 Undefined —— 7 Unused 00 0 • Drawer kick-out connector status (n = 2, 50) [See Also] Appendix 4.
— 60 — 2.2.7 Paper Detecting Commands ESC c 3 n [Function] Selecting the Paper Sensor valid for a Paper -end signal output [Code] <1B>H<63>H<33>H<n> [Range] 0 n 255 [Outline] This command selects by which Paper Sensor a Paper -end signal should be output.
— 61 — Bit Position V alue 01 0 Paper Near -end Disabled Enabled 1 Paper Near -end Disabled Enabled 2 Undefined — — 3 Undefined — — 4 Undefined — — 5 Undefined — — 6 Undefined — .
— 62 — 2.2.8 Panel Switch Commands ESC c 5 n [Function] Enabling/disabling the panel switches [Code] <1B>H<63>H<35>H<n> [Range] 0 n 255 [Outline] Enabling/disabling the FEED switch. • “n” is valid only for the lowest bit (n0).
— 63 — 2.2.9 Macro Commands GS : [Function] Starting/ending macro definition [Code] <1D>H<3A>H [Outline] Specifying starting/ending macro definition. Reception of this command during macro definition signifies ending the macro definition.
— 64 — GS ^ n1 n2 n3 [Function] Executing the macro [Code] <1D>H<5E>H<n1><n2><n3> [Range] 0 n1 255 0 n2 255 0 n3 1 [Outline] Executing contents defined in macro. n1 : The number of times of macro execution n2 : W aiting time on macro execution: W aiting time of n2 × 100 msec is given for every execution.
— 65 — 2.2.10 Cutter Commands GS V m ......... (1) GS V m n ..... (2) [Function] Cutting the paper [Code] (1) <1D>H<56>H<m> (2) <1D>H<56>H<m><n> [Range] (1) m = 1, m = 49 (2) m = 66 [Outline] Performs the specified paper cutting.
— 66 — 2.2.11 Bar Code Commands GS H n [Function] Selecting of printing position of HRI characters [Code] <1D>H<48>H<n> [Range] 0 n 3 48 n 51 [Outline] Selecting printing position of HRI characters in printing bar codes. “n” means the followings.
— 67 — Printed above and below No HRI characters Printed above Printed below [Print Results].
— 68 — GS f n [Function] Selecting the font of HRI characters [Code] <1D>H<66>H<n> [Range] n = 0, 1 [Outline] Selecting the font of HRI characters in printing bar code. The type of font can be selected with “n” as follows: The HRI characters refer to the bar code-turned characters so that you can read them.
— 69 — GS h n [Function] Specifying the height of the bar code [Code] <1D>H<68>H<n> [Range] 1 n 255 [Outline] Selecting bar code height. “n” denotes the number of dots in the vertical direction. [Default] n = 162 [See Also] GS k, GS w [Sample Program] Refer to Sample Program and Print Results for GS w .
— 70 — GS k m [d1 ...... dk] NULL ......... (1) GS k m n [d1 ...... dn] ................ (2) [Function] Printing the bar code [Code] (1) <1D>H<6B>H<m> [d1.....dk] NULL (2) <1D>H<6B>H<m><n> [d1....dn] [Range] (1) 0 m 6 The definitions of “k” and “d” vary with the bar code system.
— 71 — [Caution] For (1): • This command ends with a NULL code. • For UPC-A or UPC-E, the bar code is printed when 12 bytes of bar code data have been entered, and the subsequent data is handled as normal data.
— 72 — [Description of Bar Codes] UPC-A This bar code, consisting of numerals only , has a fixed length of 12 columns; a 11- column number entered from the host or application software plus a check digit (12th column) automatically calculated inside the printer .
— 73 — Control Character Control Character ASCII Hex. ASCII Hex. NULL 00 ■ U DLE 10 ■ P SOH 01 ■ A DC1 11 ■ Q STX 02 ■ B DC2 12 ■ R ETX 03 ■ C DC3 13 ■ S EOT 04 ■ D DC4 14 ■ T .
— 74 — Hex. ASCII Code Set A Code Set B Code Set C 7B53 { S SHIFT SHIFT –N/A 7B41 { A –N/A CODE A CODE A 7B42 { B CODE B –N/A CODE B 7B43 { C CODE C CODE C –N/A 7B31 { 1 FNC1 FNC1 FNC1 7B3.
— 75 — T ype Print Sample Outline of Symbol UPC-A 12-column fixed-length bar code consisting of numerals only . UPC-E 8-column fixed-length bar code consisting of numerals only . Abbreviated version of UPC-A. JAN-13 13-column fixed-length bar code consisting of numerals only .
— 76 — GS w n [Function] Specifying the horizontal size (magnification) of bar code [Code] <1D>H<77>H<n> [Range] 2 n 6 [Outline] Selecting bar code width.
— 77 — 2.2.12 Commands for Non-volatile Memory F S p n m [Function] Printing the download NV bit images [Code] <1C>H<70>H<n><m> [Range] 1 n 255 0 m 3 48 m 51 [Outline] This command prints the download NV bit images (n) using a specified mode (m).
— 78 — F S q n [xL xH yL yH d1…dk] 1… [xL xH yL yH d1…dk] n [Function] Defining the download NV bit image [Code] <1C>H<71>H<n>[<xL><xH><yL><yH><d1...dk>]1 ...[<xL><xH><yL><yH><d1.
— 79 — • The maximum definition area of this printer is 2M bits (256K bytes). Multiple NV bit images can be defined, but bit images of which total size (Bit image data + Header) exceeds 2M bits (256K bytes) can not be defined. • The printer state will change to BUSY just before the writing operation into the non-volatile memory begins.
— 80 — 2.2.13 Black Mark Control Commands GS FF (V alid Only at B.M Paper Selection) [Function] Printing and ejecting Black mark paper [Code] <1DH><0C>H [Outline] This command prints the data in the printer buffer and ejects Black mark paper .
— 81 — GS A m n (V alid Only at B.M Paper Selection) [Function] Correcting the leader position of Black mark paper [Code] <1DH><41>H<m><n> [Range] 0 m 255 0 n 255 [Outline] This command sets the leader position of Black mark paper in terms of correction value set for the default position.
— 82 — GS C0 m n [Function] Setting the numbering print mode [Code] <1D>H<43>H<30>H<m><n> [Range] 0 m 5 0 n 2 [Outline] This command sets the numbering (serial number counter) print mode. “m” denotes the number of print columns.
— 83 — GS C1 n1 n2 n3 n4 n5 n6 [Function] Setting the numbering counter mode (A) [Code] <1D>H<43>H<31>H<n1><n2><n3><n4><n5><n6> [Range] 0 n1 , n2 , n3 , n4 , n5 , n6 255 [Outline] This command sets the numbering (serial number counter) mode.
— 84 — GS C2 n1 n2 [Function] Setting the numbering counter [Code] <1D>H<43>H<32>H<n1><n2> [Range] 0 n1 255 0 n2 255 [Outline] This command sets the numbering (serial number counter) value. n1 + n2 × 256 (n1 = remainder , n2 = quotient) becomes a counter value.
— 85 — GS C ; n1 ; n2 ; n3 ; n4 ; n5 ; [Function] Setting the numbering counter mode (B) [Code] <1D>H<43>H<3B>H<n1><3B>H<n2><3B>H<n3> <3B>H<n4><3B>H<n5><3B>H <n1>, <n2>, <n3>, <n4>, <n5> are character codes.
— 86 — GS c [Function] Print the counter [Code] <1D>H<63>H [Outline] This command prints the serial number counter data. After setting the current counter value in the print buffer as the print data (character string), it increments or decrements the counter according to the set count mode.
— 87 — GS I n1L n1H n2L n2H [Function] Setting the Black mark length [Code] <1D>H<6C>H<n1L><n1H><n2L><n2H> [Range] 0 n1L 255 (24 n1L + n1H × 256 360) 0 n1H 1 8 n2L 30 n2H = 0 [Outline] Define the specifications (length) of the Black mark used.
— 88 — 2.2.14 Printer Function Setting Commands GS (D pL pH m [a1 b1] ··· [ak bk] [Function] Enabling or disabling real-time command [Code] <1d>H<28>H<44>pL pH m [a1 b1] ··.
— 89 — GS (E pL pH fn [···] [Function] Printer function setting command [Outline] Printer function setting command is a command to change the function of the printer stored on the non-volatile memory and executes the function set by the value of “ fn ” .
— 90 — fn = 1: Function 1 T ransferring to Printer Function Setting Mode GS (E pL pH fn d1 d2 fn = 1 [Code] <1d>H<28>H<45>pL pH fn d1 d2 [Range] (pL + pH × 256) = 3 (pL = 3, pH = 0) fn = 1 d1 = 73 (“I”) d2 = 78 (“N”) [Outline] T ransfers to printer function setting mode and sends the report of mode transfer .
— 91 — fn = 2: Function 2 End of Printer Function Setting Mode GS (E pL pH fn d1 d2 d3 fn = 2 [Code] <1d>H<28>H<45>pL pH fn d1 d2 d3 [Range] (pL + pH × 256) = 4 (pL = 4, pH = 0) fn = 2 d1 = 79 (“O”) d2 = 85 (“U”) d3 = 84 (“T”) [Outline] • T erminates printer function setting mode and executes resetting.
— 92 — fn = 3: Function 3 Setting Memory Switch V alue GS (E pL pH fn [a1 b18 ··· b11] ··· [ak bk8 ··· bk1] fn = 3 [Code] <1d>H<28>H<45>pL pH fn[a1 b18···b11]···[a.
— 93 — • Setting memory switch 2 (a = 2) n b (Set V alue) Function 1 49 (Default) Reserved 2 48 Disables auto cutter . 49 (Default) Enables auto cutter . 3 48 (Default) Enables stored printing. 49 Disables stored printing. 4 48 Sets printing at full columns to be the same as CBM1000.
— 94 — • Setting memory switch 4 (a = 4) n b (Set V alue) Function 48 (Default) At the selection of Black mark paper , disables auto end- 1 measurement. 49 At the selection of Black mark paper , enables auto end- measurement. 48 (Default) At the selection of Black mark paper , sets sensor position to 2 be on the printing side.
— 95 — fn = 4: Function 4 Sending the Set Memory Switch V alue GS (E pL pH fn a fn = 4 [Code] <1d>H<28>H<45>pL pH fn a [Range] (pL + pH × 256) = 2 fn = 4 a = 1, 2, 3, 4 [Outline] • Sends the content of memory switch set in “a”.
— 96 — fn = 5: Function 5 Setting Customized V alue GS (E pL pH fn [a1 n1L n1H]...[ak nkL nkH] fn = 5 [Code] <1d>H<28>H<45>pL pH fn [a1 n1L n1H]...[ak nkL nkH] [Range] 4 (pL + pH × 256) 65535 fn = 5 1 a 3 a = 5, 6, 97, 116, 201, 202 1 (nL + nH × 256) 65535 [Default] Described in the processing table for “a”.
— 97 — (nL + nH × 256) Printing Speed 1 Printing speed level 1 (84%) 2 Printing speed level 2 (86%) 3 Printing speed level 3 (88%) 4 Printing speed level 4 (90%) 5 Printing speed level 5 (92%) 6 .
— 98 — fn = 6: Function 6 Sending the Set Customized V alue GS (E pL pH fn a fn = 6 [Code] <1d>H<28>H<45>pL pH fn a [Range] (pL + pH × 256) = 2 : (pL = 2, pH = 0) fn = 6 1 a 3, a = 5, 6, 97, 116, 201, 202 [Outline] • Sends the set value of customized value set by “a”.
— 99 — • a = 5: When print density is specified Setting Status Sending Data Stored Print 1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte V alue Density 65530 70% 54 ( “ 6 ” ) 53 ( “ 5 ” ) 5.
— 100 — • a = 116: When kind of paper is specified Setting Status Sending Data Stored Print 1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte V alue Control 1 Single-color 49 ( “ 1 ” ) ———.
— 101 — • a = 209: PNE sensor judgment time Setting Status Sending Data Stored Density 1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte V alue Multiplication 1 2 times 49( “ 1 ” ) ———— 2.
— 102 — fn = 7: Function 7 Copying User -defined Page GS (E pL pH fn a d1 d2 fn = 7 [Code] <1d>H<28>H<45>pL pH fn a d1 d2 [Range] (pL + pH × 256) = 4 : (pL = 4, pH = 0) fn = 7 a = 10, 12, 17 [Outline] • Copies the data of user -defined code page in the font specified by “a”.
— 103 — fn = 8: Function 8 Defining Data by the Column Format to Character Code Page of W ork Area GS (E pL pH fn y c1 c2[x d1...d(y × x)]k fn = 8 [Code] <1d>H<28>H<45>pL pH fn y c1 c2 [x d1.
— 104 — fn = 9: Function 9 Defining Data in the Raster Format to the Character Code Page of W ork Area GS (E pL pH fn x c1 c2[y d1...d(y × x)]k fn = 9 [Code] <1d>H<28>H<45>pL pH fn x c1 c2 [y d1.
— 105 — fn = 10: Function 10 Erasing Data of Character Code Page Data in W ork Area GS (E pL pH fn c1 c2 fn = 10 [Code] <1d>H<28>H<45>pL pH fn c1 c2 [Range] (pL + pH × 256) = 3 fn = 10 128 c1 c2 255 [Outline] Erases (set to space) data in units of character on the character code page in work area.
— 106 — fn = 11: Function 11 Setting Communication Conditions of Serial Interface GS (E pL pH fn a d1...cdk fn = 11 [Code] <1d>H<28>H<45>pL pH fn a d1.
— 107 — fn = 12: Function 12 Sending the Set Communication Conditions of Serial Interface GS (E pL pH fn a fn = 12 [Code] <1d>H<28>H<45>pL pH fn a [Range] (pL + pH × 256) = 2 (p.
— 108 — fn = 255: Function 255 Setting All Contents Set by Printer Function Setting Mode to the State at Shipment GS (E pL pH fn a fn = 255 [Code] <1d>H<28>H<45>pL pH fn a [Range.
— 109 — GS (K pL pH fn m [Function] Selecting print control method [Outline] Executes the setting related to the print control specified by the value of “ fn ” . Function Function No. (fn) 49 Sets printing density . 50 Sets printing speed. 97 Sets the number of divisions for head conducting.
— 110 — fn = 49: Function 49 Setting Printing Density GS (K pL pH fn m fn = 49 [Code] <1d>H<28>H<4B>pL pH fn m [Range] (pL + pH × 256) = 2 : (pL = 2, pH = 0) fn = 49 0 m 9, 250 m 255 [Default] m = 0 (Customized value setting value) [Outline] Sets printing density .
— 111 — fn = 50: Function 50 Setting Printing Speed GS (K pL pH fn m fn = 50 [Code] <1d>H<28>H<4B>pL pH fn m [Range] (pL + pH × 256) = 2 : (pL = 2, pH = 0) fn = 50 0 m 4, 48 m 52 [Default] m = 0 (Customized value setting) [Outline] Sets printing speed.
— 112 — fn = 97: Function 97 Setting Number of Divisions for Head Conducting GS (K pL pH fn m fn = 97 [Code] <1d>H<28>H<4B>pL pH fn m [Range] (pL + pH × 256) = 2 : (pL = 2, pH = 0) fn = 97 0 m 6, 48 m 52 [Default] m = 9 (Customize value setting) [Outline] Sets the number of divisions for head conducting.
— 113 — GS (M pL pH fn m [Function] Customizing the printer [Outline] Executes processing related to escape/recovery of the value set in the work area or the data defined by various kinds of command. • W ork area: Area where data is initialized by power OFF of resetting (initialize).
— 114 — fn = 1, 49: Function 1 GS (M pL pH fn m fn = 1, 49 [Code] <1d>H<28>H<4D>pL pH fn m [Range] (pL + pH × 256) = 2 : (pL = 2, pH = 0) fn = 1, 49 m = 1, 49 [Outline] Copies the set value stored in work area to the storage area.
— 115 — fn = 3, 51: Function 3 GS (M pL pH fn m fn = 3, 51 [Code] <1d>H<28>H<4D>pL pH fn m [Range] (pL + pH × 256) = 2 : (pL = 2, pH = 0) fn = 3, 51 m = 0, 1, 48, 49 [Outline] Determines the setting of storage area at initialization to the work area by the value of “m”.
— 116 — GS (N pL pH fn m [Function] Designating font attribute [Outline] Executes processing of font attribute by the specified fn value. fn = 48: Function 48 GS (N pL pH fn m fn = 48 [Code] <1.
— 117 — 2.2.15 Other Commands DLE ENQ n [Function] Real-time request to printer [Code] <10>H<05>H<n> [Range] 1 n 2 [Outline] The printer responds in real-time to the request that the host specifies with number “n”. [Caution] • (n = 1) or (n = 2) shall be used after removing the error .
— 118 — DLE DC4 fn m t (Specification of fn = 1) [Function] Outputting specified pulse in real-time [Code] <10>H<14>H<fn><m><t> [Range] fn = 1, 0 m 8, 1 t 8 [Outline] • A signal specified with “t” is output to the connector pin specified with “m”.
— 119 — DLE DC4 fn d1...d7 (Specification of fn = 8) [Function] Buffer clear [Code] <10>H<14>H<fn><d1> ...<d7> [Range] fn = 8, d1 = 1, d2 = 3, d3 = 20, d4 = 1, d5 = 6, d6 = 2, d7 = 8 [Outline] • Erases all data in receiving buffer or print buffer .
— 120 — ESC = n [Function] Data input control [Code] <1B>H<3D>H<n> [Range] 0 n 255 [Outline] • Selecting equipment for which data input from the host is valid.
— 121 — A A A ESC @ [Function] Initializing the printer [Code] <1B>H<40>H [Outline] Clears data stored in the print buffer and brings various settings to the initial state (Default state). [Caution] • The settings of DIP switches are not read again.
— 122 — ESC L [Function] Selecting P AGE MODE [Code] <1B>H<4C>H [Outline] Switches from ST ANDARD MODE to P AGE MODE. [Caution] • This command is only effective if it entered at the beginning of a line. • This command is not effective if it is entered when in P AGE MODE.
— 123 — ESC S [Function] Selecting ST ANDARD MODE [Code] <1B>H<53>H [Outline] Switches from P AGE MODE to ST ANDARD MODE. [Caution] • This command is only effective if it is entered when in P AGE MODE. • Any data mapped in P AGE MODE is erased.
— 124 — ESC p m n1 n2 [Function] Generating the specified pulses [Code] <1B>H<70>H<m><n1><n2> [Range] m = 0, 1, 48, 49 0 < n1 n2 255 [Outline] • The signals specified by “n1” and “n2” are output to the connector pin specified by “m”.
— 125 — GS ( A pL pH n m [Function] Execution of test printing [Code] <1D>H<28>H<41>H<pL><pH><n><m> [Range] (pL + (pH × 256)) = 2 (pL = 2, pH = 0) 0 n 2, 48 n 50 1 m 3, 49 m 51 [Outline] Specified test printing will be executed.
— 126 — GS I n [Function] Sending the printer ID [Code] <1D>H<49>H<n> [Range] 1 n 4, 49 n 52, 65 n 69, n=112, 250, 251 [Outline] Sends the specified printer ID.
— 127 — n = 4, 52 specified (only for B.M specs) The Black mark length and mark interval currently used are returned in 4-byte code. All fractional parts in millimeters are rounded off.
— 128 — GS P x y [Function] Specifying the basic calculation pitch [Code] <1D>H<50>H<x><y> [Range] 0 x 255 0 y 255 [Outline] • This command sets the horizontal basic calculation pitch to approx. 25.4/x mm (1/ x inches), and the vertical basic calculation pitch to approx.
— 129 — ESC RS [Function] Sound buzzer [Code] <1B>H<1E>H [Outline] Sound the buzzer for 200 ms. [Caution] This command is buffered before execution. [Sample Program] LPRINT CHR$(&H1B);CHR$(&H1E); [Execution Result] The buzzer sounds for approx.
— 130 — 3. CHARACTER CODE T ABLE 3.1 Code Page 3.1.1 Codepage 00H to 7FH & PC437 (USA, Europe Standard).
— 131 — 3.1.2 Codepage 00H to 7FH & Katakana.
— 132 — 3.1.3 Codepage 00H to 7FH & PC850 (Multilingual).
— 133 — 3.1.4 Codepage 00H to 7FH & PC860 (Portuguese).
— 134 — 3.1.5 Codepage 00H to 7FH & PC863 (Canadian-French).
— 135 — 3.1.6 Codepage 00H to 7FH & PC865 (Nordic).
— 136 — 3.1.7 Codepage 00H to 7FH & PC852 (Eastern Europe).
— 137 — 3.1.8 Codepage 00H to 7FH & PC857 (Russian).
— 138 — 3.1.9 Codepage 00H to 7FH & PC857 (T urkish).
— 139 — 3.1.10 Codepage 00H to 7FH & PC864 (Arabic).
— 140 — 3.1.11 Codepage 00H to 7FH & WPC1252.
— 141 — 3.2 International Character Code T able Country U.K. Denmark I Sweden Italy Spain I Japan Norway Denmark II Spain II Latin America Korea Germany France U.
— 142 — 4. APPENDIX 4.1 Explanation on P AGE MODE 4.1.1 Overview The printer has two print modes: ST ANDARD and P AGE. In ST ANDARD MODE, the printer prints or feeds paper each time it receives a print or paper feed command.
— 143 — 4.1.3 Mapping of Print Data in the Print Area Print data is mapped in the print area as follows: (1) The print area is set by ESC W . When the printer has finished all of the print and pap.
— 144 — 4.1.4 Example of Using P AGE MODE The following explains specific uses of P AGE MODE. When in P AGE MODE, the commands are typically sent from the host to the printer in the following sequence: (1) An ESC L puts the printer in P AGE MODE. (2) An ESC W specifies the print area.
— 145 — In Figure 4-3, a line feed occurs between “ lesson ” and “ T est 1 ” because the space “ “ next to “ lesson ” does not fit in the horizontal range of the 200 × 400-pitch print area. The line feed width conforms to the value specified by a command such as ESC 3.
— 146 — Before an FF is sent (170th line), the following program code can be added to remove part of the data. 180 PRINT #1, CHR$(&H1B);"W";CHR$(72);CHR$(0);CHR$(120);CHR$(0); 190 PR.
— 147 — 4.2 Bidirectional Parallel Interface Overview The interface of the printer is a Level-1 compatible device according to IEEE-P1284. It supports the communication modes described in 4.2.1 below . 4.2.1 Parallel Interface Communication Mode The parallel interface of the printer provides three communication modes as outlined below .
— 148 — 4.2.3 Negotiation Overview Usually , the printer is started in Compatibility mode, which corresponds to the Centronics interface phase. When the host intends to switch to the Nibble or Byte mode, it sends a request and negotiates with the printer .
— 149 — Precautions (1) The Negotiation phase is triggered when the IEEE 1284 Active signal sent by the host becomes High. (2) In Compatibility mode, the time when the negotiation process begins is, as a general rule, after the host sets nStrobe to High and then the printer outputs an nAck pulse.
— 150 — Data Communication from Printer to Host Nibble Mode In this mode, data is transferred between the printer and the host through the procedure described below . The steps beginning from (1) are applicable when the Negotiation phase has switched to the Host Busy Data A vailable phase.
— 151 — Byte Mode In this mode, data is transferred between the printer and the host through the procedure described below . The steps beginning from (1) are applicable when the Negotiation phase has switched to the Host Busy Data A vailable phase.
— 152 — Device ID The device ID is a character string that provides the ID, the type, and other information regarding the printer connected to the interface.
— 153 — (2) Immediate termination: 1) If the interface is deactivated (IEEE 1284 Active: Low) without Event 22 having taken place, the printer immediately performs T ermination. In this termination, the data is not guaranteed, and the printer switches the data bus from output to input within 1 µsec.
Een belangrijk punt na aankoop van elk apparaat Citizen CT-S300 (of zelfs voordat je het koopt) is om de handleiding te lezen. Dit moeten wij doen vanwege een paar simpele redenen:
Als u nog geen Citizen CT-S300 heb gekocht dan nu is een goed moment om kennis te maken met de basisgegevens van het product. Eerst kijk dan naar de eerste pagina\'s van de handleiding, die je hierboven vindt. Je moet daar de belangrijkste technische gegevens Citizen CT-S300 vinden. Op dit manier kan je controleren of het apparaat aan jouw behoeften voldoet. Op de volgende pagina's van de handleiding Citizen CT-S300 leer je over alle kenmerken van het product en krijg je informatie over de werking. De informatie die je over Citizen CT-S300 krijgt, zal je zeker helpen om een besluit over de aankoop te nemen.
In een situatie waarin je al een beziter van Citizen CT-S300 bent, maar toch heb je de instructies niet gelezen, moet je het doen voor de hierboven beschreven redenen. Je zult dan weten of je goed de alle beschikbare functies heb gebruikt, en of je fouten heb gemaakt die het leven van de Citizen CT-S300 kunnen verkorten.
Maar de belangrijkste taak van de handleiding is om de gebruiker bij het oplossen van problemen te helpen met Citizen CT-S300 . Bijna altijd, zal je daar het vinden Troubleshooting met de meest voorkomende storingen en defecten #MANUAl# samen met de instructies over hun opplosinge. Zelfs als je zelf niet kan om het probleem op te lossen, zal de instructie je de weg wijzen naar verdere andere procedure, bijv. door contact met de klantenservice of het dichtstbijzijnde servicecentrum.