CBM-253 User’s Manual Declaration of Conformity Manufacturer’s Name : Japan CBM Corporation Manufacturer’s Address: CBM Bldg., 5-68-10, Nakano, Nakano-ku Tokyo, 164-0001, Japan Declare the Product Product Name: Model Number(s): Thermal Label Printer CBM-253 Series (CBM-253P, CBM-253R) (S.No.
CBM-253 User’s Manual IMPORTANT SAFETY INSTRUCTIONS • Read all of these instructions and save them for fu ture reference. • Follow all warnings and instructions marked on the product. • • Unplug this product from the wall outlet before cleaning. Do not use liquid or aerosol cleaners. Use a damp cloth for cleaning. Do not use this product near water. • Do not place this product on an unstable cart, stand or table. The product may fall, causing serious damage to the product.
CBM-253 User’s Manual IMPORTANT: This equipment generates, uses, and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual, may cause interference to radio communications. It has been tested and found to comply with the limits for a Class A computing device pursuant to Subpart J of Part 15 off FCC Rules, which are designed to provide reasonable protection against such interference when operated in a commercial environment.
CBM-253 User’s Manual 1. 2. 3. 4. 5. 6. 7. 8. 9. Before using the equipment, be sure to read this User's manual thoroughly . Portions of the contents of this User's manual may be changed without prior notice. The reproduction of part or all of the contents of this User's manual without permission is strictly forbidden. Absolutely do not carry out maintenance, disassembly, or repair of parts that are not specified in this User's manual.
CBM-253 User’s Manual CAUTIONS FOR SAFE USE (Be sure to follow these cautions) The cautions that must be followed in order to prevent injury to persons using this equipment or to other persons, and to protect against damage to property are displayed as shown below.
CBM-253 User’s Manual WARNING ! • Do not install this equipment in locations with poor ventilation, and do not use the equipment in such a way that the ventilation port is obstructed, since these actions may result in fire or electric shock. • Do not use this equipment in locations such as laboratories in which chemical reactions take place, or in locations in which the air includes salt or toxic gases, since these actions may result in fire or electric shock.
CBM-253 User’s Manual WARNING ! • Do not spill drinks such as tea, coffee or juice, or spray anti-mosquito preparations, etc. onto the equipment, since these actions will result in breakdowns, fire or electric shock. If water, etc. has been spilled into the equipment, switch off the power, remove the power plug from the mains outlet, and contact your sales shop. • Do not attempt to disassemble or modify this equipment, since these actions will cause fire or electric shock.
CBM-253 User’s Manual CAUTION • Do not touch the print head or motor immediately after printing, since these parts will be very hot and there will be a danger of burning your hand.
CBM-253 User’s Manual CAUTION • Do not place objects on top of this equipment. since there will be a danger of the objects falling off or falling over, resulting in injury. • Do not use or store this equipment in locations that have fire or moisture, in locations that are subject to direct sunlight, in locations that are abnormally hot such as close to heating equipment, or in locations that are very humid or dusty, since t his will be a cause of breakdowns.
CBM-253 User’s Manual CONTENTS 1. 2. OUTLINE...................................................................................................................................................1 1. 1 Features .............................................................................................................................................1 1. 2 Cautions for installation ....................................................................................................................1 1.
CBM-253 User’s Manual 5. INTERFACE SPECIFICATIONS .........................................................................................................26 5.1 Serial interface ................................................................................................................................26 5.2 Parallel interface .............................................................................................................................28 6. DRAWER KICK-OUT CONNECTOR................
CBM-253 User’s Manual 1. OUTLINE This printer is a thermal line printer that is capable of being widely used with various types of data communication terminals, POS terminals. or kitchen printers, etc. Because this printer uses a thermal line printings systems, high speed printing is possible Furthermore, this printer may be widely utilized for various applications due to the incorporation of ample functions. 1. 1 Features • Small size and light weight. • High speed printing.
CBM-253 User’s Manual 5. This equipment should not be installed in locations where the air contains salt or toxic gases. 6. Install the printer on a flat, stable table top in a location having good ventila-tion. (Ensure that the ventilation holes are not blocked.) 7. Items should not be placed on top of this equipment. 8. Note that the use of this equipment close to a radio or television receiver, or sharing the same power source outlet may cause reception problems in the radio or television. 9.
CBM-253 User’s Manual 8. Do not spill liquids or spray chemicals, etc. onto this equipment. 9. Do not subject this equipment to strong shock or vibration by standing on it. dropping it, hitting it, etc. 10. Carry out the operation of the operating panel unit with care, since disordered operation will become a cause of breakdowns and mistaken operation. Furthermore, absolutely do not operate the panel using sharp objects such as the tip of a pen etc. 11.
CBM-253 User’s Manual 2. BASIC SPECIFICATIONS 2.1 Model classifications CBM - 253 - ∗ ∗ ∗ ∗ D: Drawer kick connecter is equipped None: Not equipped Power source voltage 120: AC 120V, 230: AC 230V Character set F: International characters interface R: Serial, P: Parallel 2.
CBM-253 User’s Manual Printing speed 400 dot lines/second (Approximately 11 lines/second when the line feeding amount is l/6 inch.) However, depending on the combination of the communication time, data, and control codes, the printing speed may be slower. Paper feeding speed 50 mm/second (Approximately 11 lines/second when the line feeding amount is 1/6 inch.) Line feeding pitch l/6 inch (Default value) Possible to change the pitch using the control codes (Minimum width 1/203 inch) 2.
CBM-253 User’s Manual Number of columns Font 1 Font 2 Standard size Double height Double wide 37 35 49 47 37 35 49 47 18 17 24 23 Double wide and height 18 17 24 23 (Spaces between the characters are not included) The figures on the top line show the situation when thermal paper is selected, and the figures on the bottom line show the situation when thermal label paper is selected.
CBM-253 User’s Manual Available bar codes UPC-A, UPC-E, JAN- 13 (EAN), JAN-8 (EAN), CODE 39, ITF, CODABAR, CODE 128 Type Printing samples Features UPC-A This is a fixed-length bar code that is composed of 12 figures of numerals only. UPC-E This is a fixed-length bar code that is composed of 8 figures of numerals only. This bar code is a shortened version of UPC-A. JAN- 13 This is a fixed-length bar code that is composed of 13 figures of numerals only.
CBM-253 User’s Manual 2.4 Paper specifications Specified paper (Roll paper) Thermal paper Paper width : 60.0 mm± 01mm Paper thickness : 65±5µm Diameter of paper roll : φ83 mm maximum Recommended paper : TF50KS-EY Nihon Seishi Co., Ltd. : TF50KS-E2C Nihon Seishi Co., Ltd. Roll paper core : Internal diameter φ12.0 mm : External diameter φ18.0 mm * Absolutely do not stick the paper to the core. * The printing surface should be outside.
CBM-253 User’s Manual • In order to allow the detection of the paper label length and label top position, cut-out holes should be made between the paper labels according to the dimensions shown above. • Do not use label paper that has different dimensions from that shown above. Printing area Note: Do not mix labels having different widths and length in the same roll of label paper.
CBM-253 User’s Manual 2. 5 Interfaces Serial interface (RS-232C) Parallel interface 2. 6 Data buffer 4KB or 45B (Selectable by dip switch setting) 2. 7 Paper and sensor Detection of whether there is paper or not. (Mechanical u nit) Near-end detection (Paper holder unit) 2. 8 Auto-cutter Rotary system, full cut type (AC-7) Note: Auto-cutter operation will not be possible while the printer is printing. Note: After switching on the printer. carry out cutting one time in order to determine the position.
CBM-253 User’s Manual 2.11 External appearance specifications Weight Approximately 2.2kg External dimensions Refer to 'External dimensions' at the end of this manual. 2.12 Environmental specifications Temperature Humidity Operating temperature 5°C~40°C Storage temperature -10°C~50°C (Excluding the recording paper) Operating humidity 35~80% (Non-condensing) Storage humidity 30~90% (Non-condensing, excluding the recording paper) 2.
CBM-253 User’s Manual 3. EXTERNAL APPEARANCE AND NAMES OF EACH PART 3.
CBM-253 User’s Manual 3.2 Explanation of each part 1 Power plug This plug should be inserted into a power source outlet of the specified voltage. 2 Power switch By setting this switch to ON, the printer initializati on operation will begin. 3 Power lamp This lamp will be lit when the power switch is ON, and will be off when the power switch is OFF. 4 Alarm lamp This lamp will light in the printer error condition.
CBM-253 User’s Manual 5 LF switch Pressing this switch carries out line feeding of the paper. When the printer is waiting for macro execution, pressing this switch will carry out the execution. When the power switch is switched on while this switch is being pressed, selfprinting will be carried out. 6 Interface connector This interface allo ws connection with various types of personal computers using a cable.
CBM-253 User’s Manual 4. OPERATION 4.1 Opening the printer cover The printer cover may be opened by inserting your hand into the paper outlet of the printer and lifting up the cover in the direction shown by the arrow in the figure.
CBM-253 User’s Manual 4.2 Opening the auto-cutter To open the auto-cutter when the paper has become jammed in the printer or when the head is to be clean ed, life up the auto-cutter while lifting the cutter locking lever in the direction shown by the arrow. CAUTION • Do not touch the head or motor immediately after printing, since these parts will be very hot and there will be a danger of burning your hand.
CBM-253 User’s Manual 4.3 Setting the paper roll in the paper holder Open the paper holder in the direction shown by the arrow and set the roll paper.
CBM-253 User’s Manual 4.4 Loading the paper 1. Open the printer cover. 2. Cut the end of the roll of paper at right angles as shown in the figure. 3. Set the printing paper in the pape r holder as shown in the figure. * Make sure that the paper roll rotates smoothly. 4. Make sure the winding direction of the paper roll is correct, then insert the end of the printing paper into the paper inlet in the rear part of the printer. (Printing s urface should bc outside.) 5.
CBM-253 User’s Manual 4.5 Loading the paper when paper roll is small CAUTION • Do not touch the head or motor immediately after printing, since these parts will be very hot and there will be a danger of burning your hand. 1. Open the printer cover. 2. Cut the end of the roll of paper at rig ht angles as shown in the figure. 3. Set the printing paper in the paper holder as shown in the figure. * Confirm that the paper roll rotates smoothly.
CBM-253 User’s Manual 4. Lift up the auto-cutter lever to open the cutter. 5. Confirm the winding direction of the paper roll, then insert the end of the printing paper into the paper inlet in the rear of the printer. (Note that printing surface should be outside.) 6. Open the head-up lever (press it down forwards) to set the head -up condition. 7. Using the knob, feed the printing paper until the paper comes out of the printer mechanism.
CBM-253 User’s Manual 8. Pull the paper that has come out of the printer mechanism and pass it through the autocutter. 9. Close the auto-cutter while pulling the end of the paper that has passed through the auto -cutter. 10. Close the head-up lever. 11. Close the printer cover.
CBM-253 User’s Manual 4. 6 Setting the printer cover back Holding the printer cover in the approximately 90° open position, hook the right arm onto the right boss. Then while pulling open the left arm, hook it on to the left boss to complete the mounting of the printer cover.
CBM-253 User’s Manual 4. 7 Opening the print head CAUTION • Do not touch the head or motor immediately after printing, since these parts will be very hot and there will be a danger of burning your hand. 1. Switch OFF the power switch. and remove the power plug from the mains outlet. 2. As shown in the figure, open the printer cover and the auto-cutter and then press the head-up lever down forwards. 3.
CBM-253 User’s Manual 4. 8 Self-printing A self-printing function is built in to this printer in order that the printing functions may be checked by the printer itself. The following procedure should be used to operate this function: 1. Set the printing paper in the printer. 2. Switch off the power switch. 3. Close the printer cover and then switch the power switch to ON while pressing down the LF switch. Stop pressing the LF switch after confirming that the self -printing has started.
CBM-253 User’s Manual 4.10 Paper end detecting function This printer includes functions that automatically detect when the remaining printing paper is running low and stop the printing. The paper end detecting function detects when the paper has run out, and the paper near-end detecting function detects when the remaining printing paper is running low. The switching of the paper near-end detecting function between enabled and disabled is carried out using the command.
CBM-253 User’s Manual 5. INTERFACE SPECIFICATIONS 5.
CBM-253 User’s Manual (2) DTR When the DTR/DSR control has been selected, data or commands should be written when this signal is at ready. If writing is carried out while this signal is at BUSY, an overrun error will occur and the data will be ignored. Data can be written into the input buffer even when printing is being carried out.
CBM-253 User’s Manual 5.
CBM-253 User’s Manual Explanation of input and output signals (1) Input signals DATA 1~8 : 8-bit parallel signals (Positive logic) * STB : Strobe signal used when reading in 8-bit data (Negative logic) * RESET : Signal that reset the whole printer. (Negative logic) (2) Output signals * ACK : This is an 8-bit data requesting signal that is output as a BUSY FAULT PE pulse signal at the end of the BUSY signal. (Negative logic) BUSY : This signal indicates that the printer is in the BUSY condition.
CBM-253 User’s Manual 6. DRAWER KICK-OUT CONNECTOR (1) Drawer kick drive signal The specified pulse will be output according to the specified pulse generating command (ESC
). When using the parallel interface. it will be possible to determine the condition of the drawer opening and closing switch from pin 34 of the interface connector. When using the serial interface. the switch condition may be determined by utilizing the peripheral equipment status sending command (ESC ).
CBM-253 User’s Manual WARNING! • Do not attempt to attach anything other than a solenoid, or to attach a solenoid having a resistance value of less than 24Ω to the drawer drive terminal. The attachment of unspecified equipment may cause breakdown of the equipment or heat damage to the solenoid, resulting in the danger of fire or electric shock. (*1) Drawer opening and closing switch signal This signal is pulled-up inside the printer using a resistance of 47KΩ.
CBM-253 User’s Manual 7. DIP SWITCH SETTlNGS The dip switches can be found inside the printer unit by remo ving the lower cover on the base chassis part. If the screw of the lower cover is removed. it will be possible to change the dip switch settings. WARNING! • Do not carry out setting of dip switches while the power plug is still plugged in to the power outlet, since this action may cause breakdowns or the danger of electric shock.
CBM-253 User’s Manual 1 DSW1 (Used commonly by the serial and parallel interfaces) DSW1 1 2 3 4 5 6 7 (See note l) 8 ON OFF Printing density (Refer to the table below.) 45 byte buffer 4K byte buffer Thermal label paper Thermal paper Printing stopping position after near-end detection CR code valid CR code invalid Spare Note 1 : The DSW1-7 function is only used for parallel interfaces.
CBM-253 User’s Manual 2 DSW2 (Only mounted in serial interface printers) DSW1 1 2 3 4 5 6 7 8 ON Xon/Xoff control Parity enabled Even parity 7 bits OFF DTR/DSR control No parity Odd parity 8 bits Baud rate (Refer to the table below.) Data rejected during '?' character printed a receiving error during a receiving error Spare Baud rate DSW2-5 ON OFF ON OFF DSW2-6 ON ON OFF OFF Baud rate 1200 4800 9600 19200 Note 2 : The dip switch setting only become valid at the time when the power is switched on.
CBM-253 User’s Manual 8. FUNCTIONS 8.
CBM-253 User’s Manual Command Function ESC t ESC v ESC u ESC { ESC $ ESC ¥ GS FF GS k GS w GS h GS H GS f GS c GS C0 GS C1 Selection of the character code table Sending of the printer status Sending of the peripheral equipment status Specifying/releasing of inverted printing Specifying of absolute positions Specifying of relative positions Printing, and label ejection (including cutting) Bar code printing Selection of bar code horizontal size Selection of bar code height Selection of visual code printin
CBM-253 User’s Manual 8.2 Details of commands 8.2.1 How to read each section xxxx [Name] This is the command name [Code] In the line up of codes making up the command, < >H indicates hexadecimal notation, < >B indicates binary notation, and < > indicates decimal notation. [ ] k represents a repetition carried out k times. [Function] This section indicates the function of the command. [Item requiring caution] When necessary, items that require caution are written in this section.
CBM-253 User’s Manual 8.2.2 Detailed explanations HT [Name] Horizontal tab command [Code] <09>H [Function] Moves the printing position to the next horizontal tab posit ion. • This command will be disregarded if the next horizontal tab position has not been set. [Item requiring caution] • The horizontal tab positions should be set using ESC D. • In the initial settings. the horizontal tab positions will bc set every 8 characters in font 1. (At the 9th. 17th, and 25th columns.
CBM-253 User’s Manual LF [Name] Printing, and paper line feeding [Code] <0A>H [Function] Prints the data in the print buffer, and carries out line feeding based on the set line feeding amount. • The next printing start position will be at the head of the line.
CBM-253 User’s Manual • After the label paper has been deliberately moved by the user, it will not be possible to correctly move to the top of the label using this command. Accordingly, carry out the moving to the top of the label using the LF switch or by executing the command.
CBM-253 User’s Manual CR [Name] Printing command [Code] <0D>H [Function] 1 When DSW1-7 is OFF, this command will be disregarded. 2 When DSW1-7 is ON, the data in the print buffer will be printed, and line feeding will be carried out based on the set line feeding amount. • The next printing start position will be at the head of the line. [Items requiring caution] • This command will only be effective for parallel interface printers.
CBM-253 User’s Manual ESC SP n [Name] Setting of the amount of space to the right of the character [Code] <1B>H <20>H [Defined range] 0 ≤ n ≤ 32 [Function] Sets the amount of space to the right of the character in dot units (1/203 inch units). [Items requiring caution] In double wide mode, the amount of space to the right of the character will become two times the set amount.
CBM-253 User’s Manual ESC ! n [Name] Block setting of the printing mode [Code] <1B>H <21>H [Defined range] 0 ≤ n ≤ 255 [Function] Specifies the printing mode.
CBM-253 User’s Manual [Initial value] n=0 [Reference] ESC E, ESC – [Program example] LPRINT CHR$(&H1B) + "!"+ CHR$ (&H00) + "H " ; LPRINT CHR$ (&H1B) + "!" + CHR$(&H01) + "H " ; LPRINT CHR$(&H1B) + "!"+ CHR$ (&H08) + "H " ; LPRINT CHR$(&H1IB) + "! "+ CHR$(&H10) + "H " ; LPRINT CHR$(&H1B) + "!"+ CHR$ (&H20) + "H " ; LPRINT CHR$(&H1B) + "!"+ CHR$(&H80) + "H " ; LPRINT CHR$(&H1B) + "!"+ CHR$ (&HB9) + "H " ; LPRINT CHR$ (&HA) ; [Printing result] ESC % n [Name] Specifying/releasing of
CBM-253 User’s Manual [Function] Specifies or releases the downloading character set. • Only the lowest bit of n will be valid. When n = <*******1>B, the downloading character set is specified. When n = <*******0>B, the downloading character set is released. (Specifies the internal character set) [Items requiring caution] It will not be possible to define downloading characters and downloading bit images at the same time.
CBM-253 User’s Manual [Printing result] ESC & s n m [a [p] s x a] m - n + 1 [Name] Defining of downloading characters [Code] <1B>H <26>H [ .....] m-n+ 1 [Defined ranges] s=3 32 ≤ n ≤ m ≤ 126 0 ≤ a ≤ 12 (Font 1) 0≤a≤9 (Font 2) 0 ≤ p1 .... ps × a ≤ 255 [Function] Defines the alphanumeric and Kana character downloading character font. s indicates the number of bytes in the vertical direction.
CBM-253 User’s Manual [Items requiring caution] It will not be possible to define the downloading characters and the downloading bit images at the same time. When this command is executed. the defined downloading bit image contents will be cleared. [Initial value] The initial values will be the same as for the internal character set. [Reference] ESC % [Example] Each bit of the data is made up of ' 1 ' dots that will be printed and '0' dots that will not be printed.
CBM-253 User’s Manual ESC ∗ m n1 n2 [d] k [Name] Specifying of the bit image mode [Code] <1B>H <2A>H [] k [Defined ranges] m = 0, 1, 32, 33 0 ≤ n1 ≤ 255 0 ≤ n2 ≤ 3 0 ≤ d ≤ 255 k = n1 + 256 × n2 (m = 0, 1) k = (n1 + 256 × n2) x 3 (m = 32, 33) [Function] This command specifies the bit image of mode m with regard to the number of dots specified by n1 and n2.
CBM-253 User’s Manual [Items requiring caution] When the value of m is outside the conditions, data after n 1 will be processed as ordinary data. After completion of the bit image printing, the mode will return to normal data processing.
CBM-253 User’s Manual [Printing result] ESC - n [Name] Specifying/releasing of the underlining [Code] <1B>H <2D>H [Defined ranges] 0≤n≤2 [Function] Specifies and releases the underlining. n = 0 Releases the underlining n = 1 Specifies 1 dot width underlining n = 2 Specifies 2 dot width underlining [Items requiring caution] Although the underlining will be applied to the full width of the printing characters. underlining will not be applied to parts that have been skipped using the HT command.
CBM-253 User’s Manual ESC 2 [Name] Setting of the 1/6 inch line feeding amount [Code] <1B>H <32>H [Function] Sets the line feeding amount to l/6 inch for each 1 line.
CBM-253 User’s Manual ESC 3 n [Name] Setting of the line feeding amount in minimum paper feeding pitch units [Code] <1B>H <33>H [Defined range] 0 ≤ n ≤ 255 [Function] Sets the line feeding amount to n/203 inch for each 1 line. [Items requiring caution] When label printing has been specified. if line feeding is carried out by specifying a paper feeding amount in excess of the label length. the line feeding will be carried out up to the position at the top of the following label.
CBM-253 User’s Manual ESC = n [Name] Data input control [Code] <1B>H <3D>H [Defined range] 0 ≤ n ≤ 255 [Function] Selects the effective equipment for data input from the host unit. Each bit of n has the meaning shown in the table below. When the printer is in the deselected condition, the printer will reject reading any of the received data until the printer has been set to the selected condition using this command.
CBM-253 User’s Manual [Program example] [Printing result] LPRINT "AAAAA" ; LPRINT CHR$ (&HIB) + "=" + CHR$ (0) ; LPRINT "aaaaa" + CHR$ (&HA) ; LPRINT CHR$(&HIB) + "=" + CHR$(1) ; LPRINT "AAAAA" + CHR$ (&HA) ; Esc @ [Name] Printer initialization [Code] <1B>H <40>H [Function] Clears the data in the print buffer, and sets various settings to the initial conditions. (Default conditions) [Items requiring caution] The setting contents of the dip switches will not be read in again during this operation.
CBM-253 User’s Manual ESC D [n] k NUL [Name] Setting of the horizontal tab positions [Code] <1B>H <44>H [] k <00>H [Defined ranges] 1 ≤ n ≤ 255 0 ≤ k ≤ 32 [Function] Sets the horizontal tab positions. n indicates the number of columns from the head of the line to the position that the horizontal tab is to be set. Because 'n = setting columns position - 1 ' , for an example in which the horizontal tab is to be set at the 9th column, n should be set to 8.
CBM-253 User’s Manual [Items requiring caution] If the k data is the same value or is smaller than the immediately previous k - 1 data, the tab setting will be regarded as having been completed. In this situation, subsequent data will be processed as normal data. If the k data exceeds the printing range of one line, the data will be set as the 'Set figure position = Maximum printing figure +1'.
CBM-253 User’s Manual [Example] [Program example] [Printing result] LPRINT CHR$ (&H1B) + "E" + CHR$ (0) ; LPRINT "AAABBB" + CHR$ (&HA) ; LPRIT CHR$(&H1B) + "E" + CHR$(1) ; LPRlNT "AAABBB" + CHR$(&HA) ; ESC G n [Name] Specifying/releasing of the double printing [Code] <1B>H <47>H [Function] Specifies and releases the double printing. • When n = <*******0>B, the double printing will be released. • When n = <*******1>B, the double printing will be specified.
CBM-253 User’s Manual [Program example] [Printing result] LPRINT CHR$ (&H1B) + "G" + CHR$ (0) ; LPRINT "AAABBB" + CHR$ (&HA) ; LPRINT CHR$ (&H1B) + "G" + CHR$ (1) ; LPRINT "AAABBB" + CHR$(&HA) ; ESC J n [Name] Printing, and paper feeding in minimum pitch units [Code] <1B>H <4A>H [Defined range] 0 ≤ n ≤ 255 [Function] Prints the data in the printer buffer, and then carries out paper feeding of n/203 inch. The set paper feeding value will not remain after this function has been carried out.
CBM-253 User’s Manual ESC R n [Name] Selection of international characters [Code] <1B>H <52>H [Defined range] 0 ≤ n ≤ 10 [Function] Selects the character sets of the countries shown in the table below according to the n value. n 0 1 2 3 4 5 6 7 8 9 10 Character set U.S.A France Germany U.K.
CBM-253 User’s Manual [Program example] [Printing result] FOR I=0 TO 10 LPRINT CHR$ (&H1B) + "R" + CHR$ (1) ; LPRINT " #$@[¥]^"; LPRINT CHR$ (&H60) + " {¥} Ø " ; LPRINT "n =" + STR$ (1) ; LPRINT CFR$(&HA) ; NEXT I ESC V n [Name] Specifying or releasing of 90° right turned characters [Code] <1B>H <56>H [Defined range] 0≤n≤1 [Function] Specifies or releases the character 90° rightward rotation. n = 1 Specifies character 90° rightward rotation. n = 0 Releases character 90° rightward rotation.
CBM-253 User’s Manual [Program example] [Printing result] LPRINT CHR$ (&H1B) + "V" + CHR$ (0) ; LPRINT "AAAAA" ; LPRINT CHR$(&H1B) + "V" + CHR$(1) ; LPRINT "AAAAA" + CHR$(&HA) ; ESC a n [Name] Selection of printing position justification [Code] <1B>H <61>H [Defined ranges] 0≤n ≤2 [Function] Aligns all the printing data on one line to the specified position. The position aligning will be carried out according to the n value as shown in the table below.
CBM-253 User’s Manual [Program example] LPRINT CHR$(&H1B) + "a" + CHR$(0) ; LPRINT "AAAAA" + CHR$ (&HA) ; LPRINT CHR$(&H1B) + "a" + CHR$(1) ; LPRINT "AAAAA" + CHR$ (&HA) ; LPRINT CHR$(&H1B) + "a" + CHR$(2) ; LPRINT "AAAAA" + CHR$(&HA) ; [Printing result] ESC c 3 n [Name] Selection of the effective paper end detector for output of the paper end signal [Code] <1B>H <63>H <33>H [Defined range] 0 ≤ n ≤ 255 62 CITIZEN
CBM-253 User’s Manual [Function] Selects which of the paper end detector conditions will be used for the paper end signal output. Each bit of n will have the meanings shown in the table below. Bit 0 1 2 3 4 5 6 7 Value Function Journal near-end Not defined Not defined Not defined Not defined Not defined Not defined Not defined 0 Disabled 1 Enabled In this printer, only one type of paper near-end detector can be selected for the paper end detection, and only the lowest bit of n will be effective .
CBM-253 User’s Manual ESC c 4 n [Name] Selection of the effective paper end detector for stopping the printing [Code] <1B>H <63>H <34>H [Defined range] 0 ≤ n ≤ 255 [Function] Selects which of the paper end detector conditions will be used for the paper end signal output. Each bit of n will have the meanings shown in the table below.
CBM-253 User’s Manual [Program example] Situation in which the printing has been stopped by the paper end detector. LPRINT CHR$ (&H1B) + "c4" + CHR$ (0) ; LPRINT CHR$ (&H1B) + "c4" + CHR$ (1) ; Situation in which the printing has been stopped by the paper near-end detector. ESC c 5 n [Name] Enabling/disabling of the panel switch [Code] <1B>H <63>H <35>H [Defined range] 0 ≤ n ≤ 255 [Function] Changes the LF switch between enabled and disabled.
CBM-253 User’s Manual ESC d n [Name] Printing. and line feeding of n lines [Code] <1B>H <64>H [Defined range] 0 ≤ n ≤ 255 [Function] Prints the data in the print buffer, and carries out a n -line portion of line feeding. The next printing start position will be at the head of the line. The setting amount will not remain after this operation has been carried out.
CBM-253 User’s Manual ESC i [Name] Full cutting [Code] <1B>H <69>H [Function] When the thermal paper has been selected. this command executes a full cut of the printing paper. When label paper has been selected, line feeding of the label will be carried out up to the cutting position (between the labels), and then the label will be cut and ejected by the autocutter. After ejection of the label, paper feeding will be carried out in the reverse direction to move to the top of the next label.
CBM-253 User’s Manual ESC p m n1 n2 [Name] Specified pulse generation [Code] <1B>H <70>H [Defined ranges] m= 0, 1 0 ≤ n1 ≤ n2 ≤ 255 [Function] Outputs the signals specified by nl and n2 to the connector pin m. The types of m pins are according to the table below. m 0 1 Connector pin Drawer kick No. 2 pin (Drawer kick-out terminal 1) Drawer kick No. 5 pin (Drawer kick-out terminal 2) The ON time will be n 1 × 2ms, and the OFF time will be n2 × 2ms.
CBM-253 User’s Manual ESC t n [Name] Selection of the character code table [Code] <1B>H <74>H [Defined range] 0≤n≤1 [Function] Selects page n of the character code tables. The character code table will be selected according to the value of n. n 0 Character code page Page 0(IBM character #2) [Initial value] n=0 [Reference] See the character code tables.
CBM-253 User’s Manual ESC v [Name] Sending of the printer status (only Serial interface) [Code] <1B>H <76>H [Function] Sends the status of the printer at the current point of time. [Items requiring caution] The status that is sent will be 1 byte of data, and the contents will be as shown in the table below. When the control is set to DTR/DSR, 1 byte only should be sent after confirming that the host is in the receiving possible condition (the DSR signal is at 'space').
CBM-253 User’s Manual [Program example] OPEN "COM1 :N81NN" AS #1 PRINT #1,CHR$ (&H1B) + "v" ; A$ = INPUT$(1,#1) CLOSE #1 ESC u n [Name] Sending of the peripheral equipment status (Only serial interface) [Code] <1B>H <75>H [Defined range] n=0 [Function] Send the status of connector pin 3 at the current point of time. The types of n are according to the table below. n 0 Connector pin Drawer kick connector pin No. 3 (Drawer open/close detection terminal).
CBM-253 User’s Manual This command will only be effective in serial interface printers . [Initial value] Value Bit Function 0 1 2 3 4 5 6 7 Level of pin No.
CBM-253 User’s Manual [Items requiring caution] Inverted printing is the printing of the line rotated through 180 °. This command will only be effective when it is input at the head of the line.
CBM-253 User’s Manual The number of the dots can be specified is as follows. 447 dot (Thermal paper) 423 dot (Thermal label paper) [Items requiring caution] Specifications that exceed the end of the line will be disregarded. When underlining has been specified. the underlining will not be applied to the moved portion.
CBM-253 User’s Manual ESC ¥ n1 n2 [Name] Specifying of relative positions [Code] <1B>H <5C>H [Defined range] 0 ≤ n1 ≤ 255 0 ≤ n2 ≤ 255 [Function] Specifies the printing starting position as a number of dots (1/203 inch units) from the current position. The right direction should be plus and the left direction should be minus. When specifying N dots in the minus direction, the specifying should be carried out using the complement of N.
CBM-253 User’s Manual GS FF [Name] Printing, and label ejection [Code] <1D>H <0C>H [Function] Prints the data in the print buffer, and carries out the cutting and ejecting of the label. • Line feeding of the label will be carried out up to the cutting position (between the labels), then the label will be cut and ejected using the auto -cutter. • After ejection of the label, paper feeding will be carried out in the reverse direction to move to the top of the next label.
CBM-253 User’s Manual GS k n [d]k NUL [Name] Bar code printing [Code] <1D>H <6B>H [] k <00>H [Defined range] 0≤n≤7 [Function] Selects the bar code type, and carries out bar code printing. The next printing starting position will be taken as the head of the line. The bar code systems shown in the table below will be selected according to the n value. d indicates the characters for printing. and k shows the number of characters for printing.
CBM-253 User’s Manual When a bar code type has been selected in which the number of printing characters is fixed, the number of characters k must correspond to this fixed number of printing characters. When the horizontal direction exceeds a one line length. the part in excess will not be printed. [Initial values] Not defined [Explanation of each bar code] UPC-A This is a fixed-length bar code that is composed of 12 figures of numerals only.
CBM-253 User’s Manual JAN-8 (EAN) This is a fixed-length bar code that is composed of 8 figures of numerical values only. 7 of the figures of the number should be input using software by the host unit or application, and the 8th figure is a check digit that will be automatically calculated inside the printer. If the 8th figure of the number is also sent from the host unit, the complete bar code will be printed as it is.
CBM-253 User’s Manual • Code sub-set C is a bar code made up of special characters together with the 100 numbers between 00 and 99. • After inputting the number of figures, a check digit will be automatically calculated inside the printer and added to the figures, and then printing will be carried out. • Processing of special characters Characters having an ASCII code number of 96 or greater will be recognized as special characters.
CBM-253 User’s Manual [Program example] [Printing result] LPRINT CHR$(&H1D) + "H" + CHR$ (2) ; LPRINT CHR$ (&H1D) + "k" ; LPRINT CHR$(4) ; LPRINT "123" + CHR$ (0) ; 81 CITIZEN
CBM-253 User’s Manual GS w n [Name] Selection of bar code horizontal size (enlargement rate) [Code] <1D>H <77>H [Defined range] 2≤n≤4 [Function] Selects the bar code horizontal size. n indicates the number of dots of the fine element width.
CBM-253 User’s Manual GS h n [Name] Selection of bar code height [Code] <1D>H <68>H [Defined range] 1 ≤ n ≤ 255 [Function] Selects the bar code height. n indicates the number of dots in the vertical direction. [Initial value] n = 170 [Program example] Refer to the program example and the printing result for GS w on page 82.
CBM-253 User’s Manual [Items requiring caution] The visual code will be printed using the font selected using GS f.
CBM-253 User’s Manual [Function] Selects the font for the visual code when printing the bar c ode. The fonts that can be selected according to the n value are shown in the table below. n 0 1 Font Font 1 Font 2 The visual code is the showing of the bar code in characters so that the bar code can be read visually. [Items requiring caution] The visual code will be printed at the position specified using GS H.
CBM-253 User’s Manual GS c [Name] Printing of counter [Code] <1D>H <63>H [Function] Prints the consecutive number counter. • Sets the current numerical value of the counter in the print buffer as printing data (line of characters), and then counts up or counts down the counter depending on the counting mode that has been set. [Items requiring caution] • The format of the data when it is set in the print buffer will be according to the GS C 0 command.
CBM-253 User’s Manual [Program example] LPRINT CHR$ (&H1D) + "C0" ; CNT : LPRINT CHR$(0) + CHR$(0) ; FOR I=1 TO 5 GOSUB CNT LPRINT CHR$(&H1D) + "c" ; LPRINT CHR$ (&H1D) + "C0" ; NEXT I LPRINT CHR$ (1) + CHR$ (0) ; LPRINT CHR$ (&HA) ; GOSUB CNT RETURN LPRINT CHR$ (&H1D) + "C0" ; LPRINT CHR$ (3) + CHR$ (0) : GOSUB CNT LPRINT CHR$ (&H1D) + "C0" ; LPRINT CHR$(3) + CHR$(1) ; GOSUB CNT LPRINT CHR$(&H1D) + "C0" ; LPRINT CHR$(3) + CHR$(2) ; GOSUB CNT END [Printing result] GS C O m n [Name] Setting o
CBM-253 User’s Manual [Function] Sets the printing mode of the numbering (consecutive numbering counter). • m indicates the number of figures for printing. m=0 Only the actual number of figures are printed. In this case, n will have no meaning. m = 1~5 This is the maximum number of figures for printing. If the number of figures of the counter value is greater than number of figures specified by this command, the last m figures of the counter value will be printed.
CBM-253 User’s Manual GS C I n1 n2 n3 n4 n5 n6 [Name] Setting of the numbering counting mode (A) [Code] <1D>H <43>H <31>H [Defined ranges] 0 ≤ n1 ≤ 255 0 ≤ n2 ≤ 255 0 ≤ n3 ≤ 255 0 ≤ n4 ≤ 255 0 ≤ n5 ≤ 255 0 ≤ n6 ≤ 255 [Function] Sets the numbering mode (consecutive numbering counter).
CBM-253 User’s Manual [Items requiring caution] When this command has been executed. the counter that indicates the number of repetitions specified by n6 will be cleared. When counting up: • When the result of the counting up exceeds the maximum value, the counting up will start counting from the minimum value once again. When counting down: • When the result of the counting down becomes smaller than the minimum value, the counting down will start counting from the maximum value once again.
CBM-253 User’s Manual [Program example] LPRINT CHR$ (&H1D) + "C0" ; LPRINT CHR$(3) + CHR$(0) ; LPRINT CHR$ (&H1D) + "C1" ; LPRINT CHR$(50) + CHR$(0) ; LPRINT CHR$(0) + CHR$ (0) ; LPRINT CHR$(5) + CHR$(2) ; LPRINT CHR$(&H1D) + "C2" ; LPRINT CHR$ (50) + CHR$(0) ; GOSUB CNT LPRINT CHR$ (&H1D) + "C2" ; LPRINT CHR$ (5) + CHR$(0) ; GOSUB CNT END CNT : FOR I=1 TO 6 LPRINT CHR$(&H1D) + "c" ; NEXT I LPRINT CHR$ (&HA) ; RETURN [Printing result] 91 CITIZEN
CBM-253 User’s Manual GS C 2 n1 n2 [Name] Setting of the numbering counter [Code] <1D>H <43>H <32>H [Defined ranges] 0 ≤ n1 ≤ 255 0 ≤ n2 ≤ 255 [Function] Sets the numbering value (consecutive numbering counter). The value of the counter will be n1 + n2 × 256 [Items requiring caution] When this command has been executed, the internal counter that counts the number of repetitions while the counter value remains fixed will be cleared.
CBM-253 User’s Manual GS C ; N1 ; N2 ; N3 ; N4 ; N5 ; [Name] Setting of the numbering counting mode (B) [Code] <1D>H <43>H <3B>H <3B>H <3B>H <3B>H <3B>H <3B>H * ~ are received BY character code. [Defined ranges] 0 ≤ N1 ≤ 65535 0 ≤ N2 ≤ 65535 0 ≤ N3 ≤ 255 0 ≤ N4 ≤ 255 0 ≤ N5 ≤ 65535 [Function] Sets the numbering mode (consecutive numbering counter), and sets the counter value. When counting up: • When N1 < N2 and N3≠0 and N4≠0, counting up will be carried out.
CBM-253 User’s Manual [Items requiring caution] • When this command has been executed, the internal counter that counts the number of repetitions while the counter value remains fixed will be cleared. • It will be possible to omit any of the N1~N5 values. In this situation, the values of the omitted parameters will not be changed and will remain set at their previous values. • For each of the N1~N5 values it is forbidden to include characters that are not '0'~'9'.
CBM-253 User’s Manual [Program example] LPRINT CHR$ (&H1D) + "C0" ; LPRINT CHR$ (3) + CHR$ (0) ; LPRINT CHR$ (&H1D) + "C;" ; LPRINT "50;0;5:2;50;" ; GOSUB CNT LPRINT CHR$(&H1D) + "C;"; LPRINT "*50;0;5;2;5;" ; GOSUB CNT END CNT : FOR I=1 TO 6 LPRINT CHR$(&H1D) + "c" ; NEXT I LPRINT CHR$ (&HA) ; RETURN [Printing result] GS ∗ n1 n2 [d] n1 x n2 x 8 [Name] Definition of the downloading/bit image [Code] <1D>H <2A>H [] n1 × n2 x 8 [Defined ranges] 0 ≤ n1 ≤ 255 0 ≤ n2 ≤ 48 n1 × n2 ≤ 1311 95 C
CBM-253 User’s Manual [Function] Specifies the downloading/bit image using the number of dots specified by nl and n2. The number of dots in the horizontal direction will be nl × 8, and the number of dots in the vertical direction will be n2 × 8. d is the bit image data. After the downloading/bit image has been defined, the definition will be effective until redefinition, or until the ESC @ or ESC & commands are executed, or until the power is switched off .
CBM-253 User’s Manual [Program example] GOSUB IMG LPRINT CHR$ (&H1D) + "/" + CHR$ (0) ; LPRINT CHR$ (&H1D) + "/" + CHR$ (1) ; LPRINT CHR$ (&H1D) + "/" + CHR$ (2) ; LPRINT CHR$ (&H1D) + "/" + CHR$ (3) ; END IMG : n1=10:n2=5 LPRINT CHR$ (&H1D) + "*" ; LPRINT CHR$(n1) + CHR$(n2) ; FOR J=1 TO n1*8 FOR I=1 TO n2 LPRINT CHR$(J) ; NEXT I NEXT J RETURN [Printing result] 97 CITIZEN
CBM-253 User’s Manual GS / m [Name] Printing of the downloading/bit image [Code] <1D>H <2F>H [Defined range] 0≤m≤3 [Function] Prints the downloading/bit image using the mode specified by m. The modes specified by m are shown in the following table.
CBM-253 User’s Manual GS : [Name] Starting/fishing of the macro defining [Code] <1D>H <3A>H [Function] Specifies the starting or finishing of the macro defining. The receiving of this command while the macro defining is being carried out will have the meaning of finishing the macro defining, [Items requiring caution] Up to 2048 bytes of contents may be defined by the macro. Those parts of the macro in excess of 2048 bytes can not be defined.
CBM-253 User’s Manual [Printing result] GS ^ ^n1 n2 n3 [Name] Macro execution [Code] <1D>H <5E>H [Defined ranges] 0 ≤ n1 ≤ 255 0 ≤ n2 ≤ 255 0 ≤ n3 ≤ 1 [Function] Executes the contents defined by the macro. n1 indicates the number of times of the macro execution. n2 indicates the waiting time during the macro execution. Each one time the execution is carried out, there will be a waiting time of n2 × 100msecs. n3 indicates the macro execution mode.
CBM-253 User’s Manual When n3 = 1 , execution will be carried out each time the LF switch is pressed. After waiting for the time specified by n2, the alarm LED will flash and the printer will wait for the LF switch to be pressed. When the LF switch is pressed, the macro will be executed one time. This operation will be repeated for the number of times specified by n1.
CBM-253 User’s Manual [Items requiring caution] • This command will only be effective when label printing has been selected. • Because the moving to the top of the label passes over the first label in order to read in the label length and label interval, the printing position will be the top of the second label. • Since the maximum length of the label is assumed to be 100 mm, an error will occur if the label exceeds 100 mm in length.
CBM-253 User’s Manual top correction amount is specified that will exceed the top edge of the label, the position will be set as the top edge of the label. • It will not be possible to set the length that can be printed on one label to a value of less than 2/6 inch. In a situation where the setting is less than 2/6 inch, the setting will become 2/6 inch. • The initial value of the label top position will be approximately 1.5 mm from the label top edge position.
CBM-253 User’s Manual [Printing result] 104 CITIZEN
CBM-253 User’s Manual GS R n [Name] Specifying/releasing of the black/white inverted characters [Code] <1D>H <52>H [Function] Specifies or releases the black/white inverted characters. • When n = <*******0>B, the black/white inverted characters will be released. • When n = <*******1>B, the black/white inverted characters will be specified. This command will be effective for all character types.
CBM-253 User’s Manual 8.3 Character code tables 8.3.1 Page 0 (International character set: When U.S.
CBM-253 User’s Manual 8.3.2 Page 1 (International character set: When U.S.
CBM-253 User’s Manual 8.3.
CBM-253 User’s Manual 9.
Information Systems Division CBM Bldg.