CITIZEN User's Manual CBM-202PC-04 Thermal Printer Mechanical Control LSI Rev 1.00 Newly Issued on 13.July.1998 Japan CBM Corporation Information Systems Div.
CBM-202PC-04 User’s Manual 1. Prior to using the printer, read this manual thoroughly for correct operation. After reading the manual, keep it carefully at hand for your future reference. 2. The information herein is subject to change without prior notice due to technical improvements. Upon actual use of the printer, inquire for the up-to-date specifications. 3. It is strictly prohibited to copy part or all of the information contained in this manual without our prior permission. 4.
CBM-202PC-04 User’s Manual CONTENTS 1. OUTLINE ..............................................................................................................................................5 1.1 Applicable Printer ...............................................................................................................................5 2. MAINTENANCE AND SERVICE........................................................................................................6 3. BASIC SPECIFICATIONS .......
CBM-202PC-04 User’s Manual 5. PRINTER MECHANISM CONTROL SYSTEM...............................................................................33 5.1 Head Drive..........................................................................................................................................33 5.1.1 Head Dividing Method ...........................................................................................................33 5.1.2 Thermal Head Application Energy..................................
CBM-202PC-04 User’s Manual 1. OUTLINE This LSI is designed to control the line thermal printer LT-286 by using our Gate Array. It has the following features. (1) Capable of providing high-quality printing by detecting a temperature and automatically correcting printing density. (2) Capable of providing high-quality printing by detecting a voltage and automatically correcting printing density. (3) Capable of selecting the parallel or serial interface.
CBM-202PC-04 User’s Manual 2. MAINTENANCE AND SERVICE For the information on maintenance and service, please contact our dealer or at the following address. Northern America Other Areas CBM America Corporation Japan CBM Corporation Service Center Information Systems Division 365 Van Ness Way 1-1-7 Okubo Shinjuku-ku, Suit 510 Tokyo 169-8553 Japan Torrance, CA 90501, U.S.
CBM-202PC-04 User’s Manual 3. BASIC SPECIFICATIONS 3.1 Shape and Dimensions(Refer to the “8. SPECIFICATIONS OF PACKAGE”.) 100-pin flat package 3.2 Structure C-MOS LSI 3.3 Data Transfer Method Parallel transfer or serial transfer (Selectable) (1) 8-bit parallel transfer (CENTRONICS based) (2) Asynchronous serial transfer (Selectable) 1,200, 2,400, 4,800, 9,600, or 19,200 bps Parity: Odd, Even, or None parity; 8 bits 3.
CBM-202PC-04 User’s Manual 4. HARDWARE SPECIFICATIONS 4.1 4.2 Absolute Maximum Ratings Item Symbol Rating Supply voltage Vcc -0.3 ~ +7.0V Input voltage Vi -0.3 ~ Vcc+0.3V Reference supply voltage VREF -0.3 ~ AVcc+0.3V Analog supply voltage AVcc -0.3 ~ +7V Analog input voltage VAN -0.3 ~ AVcc+0.3V Operating temperature Topr -20 ~ +75ºC Storage temperature Tstg -55 ~ +125ºC Electrical Characteristics Item Input "HIGH" Level MIN MAX Unit Vcc-0.7 Vcc+0.3 V Vcc X0.7 Vcc+0.
CBM-202PC-04 User’s Manual 4.3 Terminal Layout and Functions Pin No.
CBM-202PC-04 User’s Manual Pin No.
CBM-202PC-04 User’s Manual Pin No.
CBM-202PC-04 User’s Manual Pin No.
CBM-202PC-04 User’s Manual 4.4 Gate Array (CBM202LA) Terminal Layout and Functions Pin No.
CBM-202PC-04 User’s Manual 4.5 Reset Circuit The reset state is effectuated by setting the RES terminal to "Low." To surely reset, it is necessary to set it to "Low" at least for 20ms at power-on and for 625ns while operating. If an external reset is not used, the parts enclosed by dotted lines are not required.
CBM-202PC-04 User’s Manual 4.6 Oscillation Circuit The oscillation circuit incorporates a clock oscillator which generates a system clock and an internal clock. There are two methods to supply a clock; one is to connect a ceramic oscillator, and the other is to input an external clock. When using the ceramic oscillator, we recommend the CSTCS16.00MXOC3 (With capacitor) made by MURATA.
CBM-202PC-04 User’s Manual 4.7 Head-up Detection Circuit Print head up/down is detected by a head-up sensor built in the printer so that the printer will not be energized on with the head up. The circuit is "opened" when the print head is up, and "closed" when down. When the print head is up, HEADUP (Pin 88) of the CPU is turned to "High," and if the printer is printing, it will immediately stop printing and output an error. It resumes printing when the print head is down.
CBM-202PC-04 User’s Manual 4.8 Head Control Circuit VP is controlled in order to prevent electrolytic corrosion of the printing head. HVC(Pin-4) of the Gate Array is turned to "HIGH" when turning on VP, and turned to "LOW" when turning it off. A temperature detection circuit is provided in order to prevent deterioration of the printing quality or breakage of the printing head due to a temperature.
CBM-202PC-04 User’s Manual 4.9 Paper End Detection Circuit A paper sensor built in the printer detects whether there is the printing paper, so that the printer will not be turned on when it has no paper. When the printer has no paper, PAPER (Pin 7) of the CPU is turned to "HIGH." If printing is under way, it will stop after printing that line, and output an error. When the paper is set, printing is automatically resumed.
CBM-202PC-04 User’s Manual 4.10 Motor Control Circuit Avoid running the motor continuously for 15 minutes or more.
CBM-202PC-04 User’s Manual 4.11 Auto Cutter Control Circuit This CPU has a function to control the auto cutter, using the Pin 33 of the Gate Array. When the auto cutter is not used, set the Pin 33 of the Gate Array to "HIGH." If set to "LOW," the printer will not function properly, resulting in an alarm.
CBM-202PC-04 User’s Manual 4.12 Parallel Interface Circuit The Gate Array ports are mainly used to provide an 8-bit parallel interface. When the parallel interface is not used, pull up STB(Pin 52) of the Gate Array with a 10k resistor. STB(Pin 87) of the CPU should be connected to INTR(Pin 56) of the Gate Array or pulled up with a 10k resistor.
CBM-202PC-04 User’s Manual 2) Gate Array Signals and Their Functions Signal Pin No. I/O Function STROBE 52 Input A signal to read in the data.(Negative logic) D0 51 D1 50 D2 49 D3 48 D4 47 Input Input data (Positive logic) D5 46 D6 45 D7 44 ACK 59 Output BUSY 55 Output PE 61 Output FAULT 62 Output A signal to indicate that the data has been read. (Negative logic) A signal to indicate that the data cannot be received. (Positive logic) Send the data when at "LOW.
CBM-202PC-04 User’s Manual 4.13 Serial Interface Circuit A serial interface is an asynchronous serial system. When the serial interface is not used, pull up RXD (Pin 15) and DSR (Pin 100) of the CPU with a 47k resistor. 1) Circuit 2) Signal names and their functions Signal Name Pin No. Input/Output TXD 13 Output RXD 15 Input DSR 100 Input DTR 12 Output 23 Function Transmits the status.
CBM-202PC-04 User’s Manual 4.14 Switch Circuit The printer has a switch input function for paper feed. Also provided is a function to perform self-printing, using this switch. (Turn on the power while holding down this switch, or apply a reset with this switch held down when the power has been already turned on. The printer automatically starts self-printing and returns to the normal waiting state after printing is completed.
CBM-202PC-04 User’s Manual 4.15 Error Output Circuit The printer has two kinds of error outputs. (Up to a current of 10mA is available in order to mainly indicate with the LEDs. If this limit is exceeded, the CPU may be destroyed. Select the current control resistors, LEDs, etc. carefully.) LEDPE(Pin 4) of the CPU is a paper error exclusive output. "LOW" is output when the printing paper runs out, and "HIGH" is output when new printing paper is set.
CBM-202PC-04 User’s Manual 3) Resetting methods Error Resetting Method No-paper Set the paper. See Note 1. Head-up Shift down the head-up lever. VH voltage error Head temperature error Cutter lock(ACS-220-5v) Set the VH voltage to within the allowable range(4.2~8.5 V) and turn on the power again, or set the LFSW(Pin-2) of the CPU to Active. See Note 2. At the lower limit(Less than 0ºC), printing is enabled at 0ºC or more. At the upper limit(65ºC or more), printing is enabled at 60 C or less.
CBM-202PC-04 User’s Manual 4.16 Function Selection Circuit The input port of the Gate Array has function selecting terminals. switch, and so on, connect them as they are. When connecting the DIP When fixing with a Jumper, and so on, only the terminals you want to set to "LOW" should be connected to GND.
CBM-202PC-04 User’s Manual (1) Interface Input System Parity Baud Rate PAI7 PAI6 PAI5 PAI4 Parallel - - HIGH HIGH HIGH HIGH 1200 HIGH HIGH HIGH LOW 2400 HIGH HIGH LOW HIGH 4800 HIGH HIGH LOW LOW 9600 HIGH LOW HIGH HIGH 19200 HIGH LOW HIGH LOW 1200 HIGH LOW LOW HIGH 2400 HIGH LOW LOW LOW 4800 LOW HIGH HIGH HIGH 9600 LOW HIGH HIGH LOW 19200 LOW HIGH LOW HIGH 1200 LOW HIGH LOW LOW 2400 LOW LOW HIGH HIGH 4800 LOW LOW HIGH LOW 9600
CBM-202PC-04 User’s Manual (2) International characters International Characters PBI2 PBI1 PBI0 Japan (JIS) HIGH HIGH HIGH Japan (Shift JIS) HIGH HIGH LOW Sweden HIGH LOW HIGH Denmark I HIGH LOW LOW U.K. LOW HIGH HIGH Germany LOW HIGH LOW France LOW LOW HIGH U.S.A.
CBM-202PC-04 User’s Manual 4.17 External RAM Interface A 32 KB external SRAM is always required for printing. The printer does not function properly unless the external RAM is connected.
CBM-202PC-04 User’s Manual 2) Bus Timing VCC=5.0V±10%, AVCC=5.0V±10%, VREF=4.5V~AVCC, VSS=AVSS=0V, Ø=2~16MHz, TA=-20~+75ºC Item Symbol MIN MAX Clock cycle time t cyc 62.
CBM-202PC-04 User’s Manual 32 CITIZEN
CBM-202PC-04 User’s Manual 5. PRINTER MECHANISM CONTROL SYSTEM 5.1 Head Drive 5.1.1 Thermal Head Control System The LT-286 is driven by this LSI has a 1-line printing head divided into 6 blocks of 64 dots each. With this LSI, you can choose either a Fixed Division Number System which drives the printing head by always dividing it into 6 blocks of 64 dots each or a Variable Division Number System which simultaneously drives it by consolidating several blocks according to the number of activate head dots.
CBM-202PC-04 User’s Manual 5.1.2 Thermal Head Application Energy This LSI automatically controls the energy applied to the thermal head according to a temperature and Vp voltage. With the function selection terminal, print density can be set to the following 4 kinds of ranks listed in Fig. 5.3. Fig. 5.3 5.
CBM-202PC-04 User’s Manual 5.3 Auto Loading Auto loading is a function to facilitate replacement of the printing paper. It is enabled by setting the function selection terminal(Gate Array Pin 38) to "LOW." Functioning: 1) Make the PE sensor detect PE once. 2) Insert the printing paper into the printing paper insertion slot until the PE sensor detects the paper again. When this is done, the paper should be inserted at a right angle to the insertion slot; insert it until it comes to the end.
CBM-202PC-04 User’s Manual 6. SELF-PRINTING This LSI displays the setting of the function selection terminal and has a test print function to print Kanji when printing the half-size characters or using the specified Kanji ROM(CBM202KG-01). The procedure is as follows: 1) Turn on the power, setting LFSW(Pin 2) of the CPU to "LOW." Turn on both Vcc and VH almost simultaneously, or turn on Vcc, followed by VH(Within 500ms after Vcc). Fig. 6.1 shows a print sample(A print differs from actual dimensions).
CBM-202PC-04 User’s Manual 7. OPERATION TIMINGS The following shows operation timings after resetting this CPU.
CBM-202PC-04 User’s Manual 8.
CBM-202PC-04 User’s Manual 9. PRECAUTIONS FOR MOUNTING 9.1 Precautions If a relative humidity drops, the LSI will be electrified with static electricity more easily. The surface mounting package must be stored in a dry atmosphere to prevent humidity absorption, but while it is being stored, it will not be electrified because it will not have friction, etc.
CBM-202PC-04 User’s Manual 1) Temperature gradient 1 If a temperature rises abruptly, each joint of the surface mounting device to the package will have different temperature. As a result, the package may warp due to a difference in the thermal expansion factor of the material, thus damaging the chip. Therefore, it is necessary to heed the upper limit of an ascending rate. The lower limit depends on the activity rate of the reflow unit.
CBM-202PC-04 User’s Manual Fig. 9.3 Vapor Phase Reflow Recommended Conditions 6.4 Cleaning Method After soldering, eliminate/clean remaining flux off the PCB because it affects reliability of the parts and PCB wiring, as a rule. As an example, ultrasonic cleaning is employed under the following conditions. In order to prevent destruction of the device, pay attention to an applied frequency, electric power(particularly peak power), time and resonance of the device.
CBM-202PC-04 User’s Manual 10. PRINT CONTROL FUNCTIONS 10.
CBM-202PC-04 User’s Manual 43 DC2 A Selecting the Print drive system 12H 41H n 85 Notes: 1. In the table n, n1, n2, n3, m, a, s, p, and d denote the parameters for each command. 2. In the table, [ ]k denotes a repeat count of k-times. 3. In the table, ’ ’ denotes an ASCII character.
CBM-202PC-04 User’s Manual 10.2 Command Details 10.2.1 Description of Items XXXX ALL [Function] Command Function [Code] A sequence of code constituting a command is represented in hexadecimal number for < >H, binary number for < >B, and decimal number for < >, respectively; [ ]k represents a repeat count of k-times. [Range] Describes an argument value(Setting range) for the command. [Outline] Describes a command outline. [Caution] Describes a caution as required.
CBM-202PC-04 User’s Manual 10.2.2 Details HT [Function] Horizontal Tab Command [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. • Initial setting of the horizontal tab position is each 8 characters in 9th, 17th, 25th, columns.
CBM-202PC-04 User’s Manual CR [Function] Print Command [Code] <0D>H [Outline] 1) When the function selecting terminal(Gate Array Pin 32) is HIGH. This command is ignored. 2) When the function selecting terminal(Gate Array Pin 32) is LOW. With data held inside the internal print buffer, printing and line feed are performed. Without data inside the internal print buffer, however, no printing is performed.
CBM-202PC-04 User’s Manual ESC ! n [Function] Collective Specifying Printing Mode [Code] <1B>H<21>H [Range] {0 [Outline] Printing mode is assigned. Each n bit indicates the following: n FF} Data is described in Hex code.
CBM-202PC-04 User’s Manual [Sample Program] LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H00) + "H" ; LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H01) + "H"; LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H08) + "H"; LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H10) + "H"; LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H20) + "H"; LPRINT CHR$ (&H1B) + " ! " + CHR$ (&H80) + "H"; LPRINT CHR$ (&H1B) + " ! " + CHR$ (&HB9) + "H"; LPRINT CHR$ (&HA) ; [Print Results] 48 CITIZEN
CBM-202PC-04 User’s Manual ESC % n [Function] Specifying/Canceling Download Character Set [Code] <1B>H<25>H [Range] {0 [Outline] Specifying/canceling download characters. n FF} data is described in Hex code. Further, only the lowest bit (n0) is valid for n. The lowest bit (n0) indicates the following. n0 0 1 [Caution] Function Canceling download character set Specifying download character set Download characters and download bit images can not be defined simultaneously.
CBM-202PC-04 User’s Manual ESC & s n m [ a [ p ] s X a] m – n +1 [Function] Defining Download Character [Code] <1B>H<26>H [• •]m-n+1 [Range] {s = 03} {20 (Hex) [Outline] n m 7E (Hex)} {0 a 0C(Hex)} (Font A) {0 a 0A(Hex)} (Font B) Defines the font of download characters of alphanumeric characters. • "s" indicates the number of bytes in vertical direction. • "n" indicates the start character code and m the end character code.
CBM-202PC-04 User’s Manual [Example] Create each data bit by setting "1" for a printed dot and "0" for an unprinted dot. [Sample Program] [Print Results] See Sample Program and Print Results for ESC % on Page 49.
CBM-202PC-04 User’s Manual ESC * m n1 n2 [d] k [Function] Specifying the Bit Image Mode [Code] <1B>H<2A>H [ ] k [Range] {m= 0, 1, 32, 33 {0 n1 FF(Hex)} {0 n2 03(Hex)} {0 d bit image mode (See the table below.)} FF(Hex)} {k = n1 + FF(Hex) X n2 (m = 0, 1) {k = (n1+ FF(Hex) X n2) X 3} (m = 32, 33) [Outline] According to the number of dots specified in n1, n2, specify the bit image of mode n. • The No.
CBM-202PC-04 User’s Manual [Example] [Sample Program] LPRINT CHR$ (&H1B) + "*" ; LPRINT CHR$ (0) + CHR$ (20) + CHR$ (0) ; IMG1 : GOSUB IMG1 LPRINT CHR$ (&HFF) ; LPRINT CHR$ (&HA) ; FOR I=1 TO 18 LPRINT CHR$ (&H1B) + "*" ; LPRINT CHR$ (1) + CHR$ (20) + CHR$ (0) ; GOSUB IMG1 LPRINT CHR$ (&H85) ; NEXT I LPRINT CHR$ (&HFF) ; LPRINT CHR$ (&HA) ; RETURN LPRINT CHR$ (&H1B) + "*" ; IMG2 ; LPRINT CHR$ (32) + CHR$ (20) + CHR$ (0) ; LPRINT CHR$ (&HFF) ; GOSUB IMG2 LPRINT CHR$ (&HFF) ; LPRINT CHR$ (&H
CBM-202PC-04 User’s Manual ESC – n [Function] Specifying/ Canceling Underline [Code] <1B>H<2D>H [Range] {0 [Outline] Specifying/canceling an underline. n 02} data is described in Hex code. • Types of underlines by n value are shown below: n (Hex) 0 1 2 [Caution] Type Canceling an underline. Specifying an underline for 1-dot width. Specifying an underline for 2-dots width. • An underline is attached to the full character width.
CBM-202PC-04 User’s Manual [Function] Setting line feed rate of minimum pitch [Code] <1B>H<33>H [Range] {0 [Outline] The line feed rate per line is specified by n/360 inch. n FF} Data is described in Hex code. Since an actual mechanical pitch is 1/203 inch, it is internally converted approximate to the value specified with this command. [Default] • The initial value is n = 60 (1/6 inch) (18H), being 4.23 mm line feed rate.
CBM-202PC-04 User’s Manual ESC = n [Function] Data Input Control [Code] <1B>H<3D>H [Range] {0 [Outline] Selecting equipment in which data input from the host is effective. n FF} Data is described in Hex code.
CBM-202PC-04 User’s Manual ESC @ [Function] Initializing the Printer [Code] <1B>H<40>H [Range] Clears data stored in the print buffer and brings various settings to the initial state (Default state). [Caution] • Data inside the internal input buffer are not cleared. • Dip switches setting are red once again.
CBM-202PC-04 User’s Manual ESC D [n] k NUL [Function] Setting Horizontal Tab Position [Code] <1B>H<44>H [ ] k<00>H [Range] {0 n FFH} Data is described in Hex code. {0 k 20H} Data is described in Hex code. [Outline] Specifying a horizontal tab position. • "n" indicates the no. of columns from the beginning to the horizontal tab position. At this time, n= set position– 1 is to be specified. For example, to set the position at 9th column, n=8 is to be specified.
CBM-202PC-04 User’s Manual ESC E n [Function] Specifying/canceling highlighting [Code] <1B>H<45>H [Range] {0 [Outline] Specifying/canceling the highlighting characters. n FF} Data is described in Hex code. • "n" is valid only for the lowest bit (n0). • Control by the lowest bit (n0) is shown as follows: n0 0 1 Type Canceling highlighting. Specifying highlighting. • This is effective to all characters. • Dot configuration of a highlighted character includes one extra dot added at its side.
CBM-202PC-04 User’s Manual ESC G n [Function] Specifying/canceling Double Printing [Code] <1B>H<47>H [Range] {0 [Outline] Specifying/canceling the double printing. n FF} Data is described in Hex code. • "n" is valid only for the lowest bit (n0). • Control by n is shown as follows. n0 0 1 Type Canceling double printing. Specifying double printing. This is effective to all characters. [Caution] • The print result of Double printing and highlight character printing is completely same.
CBM-202PC-04 User’s Manual ESC R n [Function] Selecting the International Character Set [Code] <1B>H<52>H [Range] {0 [Outline] Depending on the value of n, following character sets are specified. n 0A) Data is described in Hex code. n(Hex) 0 1 2 3 4 5 6 7 8 9 A [Default] Character Set U.S.A. France Germany U.K. Denmark I Sweden Italy Spain Japan Norway Denmark II • The initial value of n indicates the character set specified by the function selecting terminal(Gate Array Pin 39,42,43).
CBM-202PC-04 User’s Manual ESC V n [Function] Specifying/Canceling 90º-right- turned Characters [Code] <1B>H<56>H [Range] {0 [Outline] Specifying/canceling characters 90º-right- turned character. n 1} Data is described in Hex code. • "n" means the followings. n (Hex) 0 1 Condition Canceling 90ºright- turned Characters Specifying 90º-right- turned Characters [Caution] • No underlines are attached to 90º-right- turned characters . [Default] • The initial value of n is "0".
CBM-202PC-04 User’s Manual ESC a n [Function] Aligning the characters [Code] <1B>H<61>H [Range] {0 [Outline] All the printed data within one line are aligned in the specified position. n 2} Data is described in Hex code. • Depending on n value, positional alignment is carried out as in the table below: n (Hex) 0 1 2 [Caution] Position Left end alignment Centering Right end alignment • This is valid only when n is inputted at the beginning of line. • The initial value of n is "0".
CBM-202PC-04 User’s Manual ESC c5 n [Function] Enabling/Disabling the Panel Switches [Code] <1B>H<63>H<35>H [Range] {0 [Outline] Selecting the LF switch valid/invalid by LFSW(Pin 2). n FF} Data is described in Hex code. • "n" is valid only in the lowest bit (n0). • "n" bit means the followings. n0 0 1 [Caution] Condition LF SW valid. LF SW invalid. When the panel switch is disabled with this command, the LF switch is disabled. Therefore, the paper cannot be fed by operating the LF switch.
CBM-202PC-04 User’s Manual ESC i (When Using Auto Paper Cutter) [Function] Full Cut [Code] <1B>H<69>H [Outline] Activating auto cutter unit (Full cut) [Caution] • This is valid only when n is inputted at the beginning of line. • Prior to cutting the paper, feed the paper from the printing position to beyond the paper cutting position of the cutter. Otherwise, the character just after print will remain on this side of the cutter.
CBM-202PC-04 User’s Manual ESC m (When Using Auto Paper Cutter) [Function] Partial Cut [Code] <1B>H<6D>H [Outline] Activating auto cutter unit (Partial cut) [Caution] • This is valid only when n is inputted at the beginning of line. • Prior to cutting the paper, feed the paper from the printing position to beyond the paper cutting position of the cutter. Otherwise, the character just after print will remain on this side of the cutter.
CBM-202PC-04 User’s Manual ESC t n [Function] Selecting the Character Code Table [Code] <1B>H<74>H [Range] {0 [Outline] Selecting Page n on the character code table: n 1} Data is described in Hex code. The character code table is selected depending on the value of n. "n" means the followings.
CBM-202PC-04 User’s Manual ESC v (Serial Interface Only) [Function] Transmitting the printer status(Serial type) [Code] <1B>H<76>H [Outline] Current printer status is transmitted.. [Caution] • Status sent out consists of 1 byte whose content is as in the table below. • In DTR/DSR control, after receptible state of the host (DSR signal being in SPACE state) is confirmed, only 1 byte is transmitted. In XON/XOFF control, DSR signal state not being confirmed, only 1 byte is transmitted.
CBM-202PC-04 User’s Manual ESC { n [Function] Specifying/Canceling the Inverted Characters [Code] <1B>H<7B>H [Range] {0 [Outline] Specifying/canceling inverted characters. n FF} Data is described in Hex code. • "n" is valid only for the lowest bit (n0). • Bit n (n0) means the followings. n0 0 1 [Caution] Condition Canceling inverted characters. Specifying inverted characters. • Inverted printing means printing the line at 180ºturned.
CBM-202PC-04 User’s Manual ESC $ n1 n2 [Function] Specifying the Absolute Positions [Code] <1B>H<24>H [Range] {0 n1 FF} {0 n2 1} Data is described in Hex code. [Outline] The printing start position is specified in the number of dots (1/203 inch unit) from the beginning of line. • The number of dots is divided by 256, whose quotient is taken as n2 and the residual as n1. • Therefore, the printing start position is equal to n1 + n2 x 256 from the beginning of line..
CBM-202PC-04 User’s Manual ESC ¥ n1 n2 [Function] Specifying the Relative Positions [Code] <1B>H<5C>H< n2> [Range] {0 n1 FF} {0 n2 FF} Data is described in Hex code. [Outline] The printing start position is specified in the number of dots(1/203 inch unit) from the current position. • Rightward direction is taken as plus and leftward direction as minus. • To specify N dot in minus (left) direction, use a complement of N for assignment.
CBM-202PC-04 User’s Manual GS k n [d] k NUL [Function] Printing the Bar Code [Code] <1D>H<6B>H [ < d> ] k <00>H [Range] {0 [Outline] Specifying a type of bar code and printing bar codes. n 7} Data are described in Hex code. • The beginning of line is considered as the next printing start position. • Depending on the value of n, the following bar code can be selected. d indicates a character code to be printed and k indicates the number of character to be printed.
CBM-202PC-04 User’s Manual UPC-E This bar code, consisting of numerals only, has a fixed length of 8 columns; the first number system character is "0" stationary. A 12 columns numeral entered from the host or application software is compressed to 8 columns with a check column and printed. The 12th-column check column is automatically calculated inside the printer and sent from the host, the entire bar code will be printed, compressed to 8 columns.
CBM-202PC-04 User’s Manual • The check column automatically calculated inside the printer is added to the end of the entered digits to be printed. • Processing of the special characters The characters above the ASCII code number 96 are considered special characters. The following lists the converted characters for entering these characters.
CBM-202PC-04 User’s Manual [Description of Bar Codes] UPC-A, UPC-E, JAN-13 (EAN), JAN-8 (EAN), CODE39, ITF, CODABAR, CODE128 Type UPC-A Print Sample Outline of Symbol 12-columns fixed-length bar consisting of numerals only Max. Columns code JAN-13 8-columns fixed-length bar code consisting of numerals only.
CBM-202PC-04 User’s Manual GS w n [Function] Selecting the width of the Bar Code [Code] <1D>H <77>H [Range] {2 [Outline] Selecting bar code width. n 4} Data is described in Hex code. n denotes the number of dots in fine element width. [Default] • The initial value of this width is "3".
CBM-202PC-04 User’s Manual GS h n [Function] Selecting the Height of the Bar Code [Code] <1D>H<68>H [Range] {1 [Outline] Selecting bar code height. n FF} Data is described in Hex code. n denotes the number of dots in the vertical direction. [Default] • The initial value of n is "162". [Sample Program] [Print Results] See Sample Program and Print Results for GS w on page 76.
CBM-202PC-04 User’s Manual GS H n [Function] Selecting the Printing Position of HRI Code [Code] <1D>H<48>H [Range] {0 [Outline] Selecting printing position of HRI codes in printing bar codes. n 3} Data is described in Hex code. • "n" means the followings. n (Hex) 0 1 2 3 Printing Position No printing Above the bar code Below the bar code Both above and below the bar code The HRI code refers to the bar code-turned characters so that you can read them.
CBM-202PC-04 User’s Manual GS f n [Function] Selecting the font of HRI code [Code] <1D>H<66>H [Range] n = 0, 1 [Outline] Selecting the font of HRI code in printing bar code. The type of font can be printed by selecting n is as follows. n 0 1 Font Font A Font B The HRI code refers to the bar code-turned characters so that you can read them. [Caution] The HRI code is printed at the position specified with GS h. [Default] The initial value of n is “0”.
CBM-202PC-04 User’s Manual GS * n1 n2 [d] n1 X n2 X 8 [Function] Defining the Download Bit Image [Code] <1D>H<2A>H [ < d > ] n1 X n2 X 8 [Range] {1 n1 FF} {1 n2 30} {n1 X n2 [Outline] 51F} Data is described in Hex code. Defines downloading bit images of the number of dots specified by n1/n2. • The numbers of dots are n1 x 8 in horizontal direction and n2 x 8 in vertical direction. • d indicates bit image data.
CBM-202PC-04 User’s Manual GOSUB IMG LPRINT CHR$ (&H1D) + "/" + CHR$ (0) ; LPRINT CHR$ (&H1D) + "/" + CHR$ (1) ; LPRINT CHR$ (&H1D) + "/" + CHR$ (2) ; LPRINT CHR$ (&H1D) + "/" + CHR$ (3) ; END IMG : n 1 = 10 : n 2= 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 GS / m 81 CITIZEN
CBM-202PC-04 User’s Manual [Function] Printing the Download, Bit Image [Code] <1D>H<2F>H [Range] {0 [Outline] Prints download bit image in a mode specified by m. m 03} Data is described in Hex code. • Modes can be selected by m are shown below.
CBM-202PC-04 User’s Manual GS : [Function] Starting / Ending Macro Definition [Code] <1D>H<3A>H [Outline] Specifying starting / ending macro definition. Means termination when received while defining a macro. [Caution] Maximum content available for macro definition is 2048 bytes. A portion exceeding 2048 bytes is not defined. • Even with ESC @ (Initialization of the printer) having been executed, defined content is not cleared.
CBM-202PC-04 User’s Manual GS ^ n1 n2 n3 [Function] Executing the Macro [Code] <1D>H<5E>H [Range] {0 n1 FF} {0 n2 FF} {0 3 [Outline] 1} Data is described in Hex code. Executing contents defined in macro. • "n1~n3" indicate as follows: n1 : The number of times of macro execution n2 : Waiting time on macro execution Waiting time of n2 x 100ms is given for every execution.
CBM-202PC-04 User’s Manual DC2 A n [Function] Selecting the Print drive system [Code] <12>H<41>H [Range] {0 [Outline] Selecting the Fixed division system or the Variable division system. n FF} • "n" is valid only for the lowest bit (n0). n0 0 1 [Default] Print Drive System Fixed Division Number System Variable Division Number System The initial value of n is specified by the function selecting terminal (Gate Array Pin37).
CBM-202PC-04 User’s Manual 11. CHARACTER CODE TABLE 11.
CBM-202PC-04 User’s Manual 11.
CBM-202PC-04 User’s Manual 11.