CITIZEN User's Manual Model : iDP-3221 Line Thermal Printer Rev 1.00 Newly issued on 04. Mar.1999 Jap Japan CBM Corporation Information Systems Div.
Declaration of Conformity Manufacturer’s Name : Manufacturer’s Address Declare the Product Product Name Model Number(s) : Japan CBM Corporation : CBM Bldg., 5-68-10, Nakano, Nakano-ku Tokyo, 164-0001, Japan Line Thermal Printer iDP-3221 Series (iDP-3221RF, iDP-3221PF) (S.No.
IMPORTANT SAFETY INSTRUCTIONS •Read all of these instructions and save them for future 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.
WICHTIGE SICHERHEITSANWEISUNG UNGEN •Lesen Sie die nachfolgenden Anweisungen sorgfältig durch und bewahren Sie sie auf. •Befolgen Sie alle auf dem Drucker vermerkten Hinweise und Anweisungen. Vor dem Reinigen grundsätzlich Stecker aus der Steckdose ziehen. Keine Flüssigkeiten oder Aerosolreiniger benutzen. Nut mit einem feuchten Tuch abwischen. •Der Drucker darf nicht in der Nähe von Wasser aufgestellt werden. •Drucker nicht auf einem unstabilen Wagen, Stand oder Tisch aufstellen.
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.
1. Prior to using the equipment, be sure to read this User's Manual thoroughly. Please keep it handy for reference whenever it may be needed. 2. The information contained herein may be changed without prior notice. 3. Reproduction of part or all of this User's Manual without permission is strictly prohibited. 4. Never service, disassemble, or repair parts that are not mentioned in this User's Manual. 5.
SAFETY PRECAU CAUTIONS ----- BE SURE TO OB OBSERVE In order to prevent hazards to an operator or other persons and damage to property, be sure to observe the following precautions. · The following describes the degrees of hazard and damages that can occur if the given instructions are neglected or the equipment is incorrectly operated. WARNING Negligence of this precaution may result in death or serious injury. CAUTION Negligence of this precaution may result in injury or damage to property.
WARNING · Never handle the equipment in the following manners, as it may break, become out of order, or overheat causing smoke and resulting in fire or electric shock. If the equipment is used in an abnormal condition, such as when broken, then problems, smoke emission, abnormal odor/noise, and fire can result. If an abnormal condition exists, be sure to disconnect the power plug from a plug socket, and contact our dealer. Never repair the equipment on your own - it is very dangerous.
PRECAUTIONS FOR INSTALLA LLATION • Do not use or store the equipment in a place exposed to fire, moisture, or direct sunshine, or in a place near a heater or thermal device where the prescribed operating temperature and humidity are not met, or in a place exposed to much oil, iron powder, or dust. The equipment may become out of order, emit smoke, or catch fire.
PREC RECAUTIONS FOR HANDLING Do not handle the equipment in the following manners, because problems may result. • Do not use any other power source besides the accessory AC adapter. Also, do not use the AC adapter for other purposes. • Do not print without paper. • Do not drop or put any foreign object, such as a clip, pin, or the like, inside the printer. • Do not spill any liquid or spray any chemical-containing liquid over the equipment.
DAILY MAINTENANCE • At the time of maintenance, be sure to turn off the power switch of the printer and unplug it from the socket. • When cleaning the platen, wipe off dust or dirt from the platen with a cotton swab dipped in ethyl alcohol. • Use a dry soft cloth to wipe off stains and dust from the surfaces of the main body case. For severe soiling, dip the cloth in water and wring it, for wiping off the soil.
A caution label is stuck onto the following place. Carefully read the cautions on operation to correctly use the printer. This label warns that the head becomes hot in operation, and touching it may result in burns.
CONTENTS 1. OUTLINE ................................................................................................................................................ 1 1.1 Features ..................................................................................................................................................... 1 1.2 Unpacking.................................................................................................................................................. 1 2.
6.1.3 Connector Pin Assignment ............................................................................................................. 24 6.2 Parallel Interface (CENTRONICS) ........................................................................................................ 25 6.2.1 Specifications................................................................................................................................... 25 6.2.2 Connector's Pin Configuration .................................
11.3 Page 2 ......................................................................................................................................................114 11.4 Page 3 ......................................................................................................................................................115 11.5 Page 4 ......................................................................................................................................................116 11.6 Page 5 ..
4.5 Herausnehmen der Restpapierrolle ..................................................................................................... 153 4.6 Beseitigen von Papierstau .................................................................................................................... 154 4.7 Initialisierung des Schneidemechanismus .......................................................................................... 156 4.8 Kopf reinigen .............................................................
1. OUTLI TLINE This is a small line thermal printer developed to be used for various data communication terminals, POS terminals, kitchen printer, and so on. widely used for various types of applications. With its abundant features, it can be Prior to using the printer, read this manual thoroughly to understand its contents.. 1 .1 Features 1. Small, lightweight, with a small footprint. 2. Designed with a reduced number of components to ensure low cost. 3.
(2) Before using the printer, remove the protective paper for the head as shown below: 1. Open the printer cover. 2. Pull the platen levers at both sides of the platen roller unit in the direction of the arrows. 3. Pull the protective paper in the direction of the arrow. 4. Insert a sheet of printer paper between the platen roller and the head when the printer is to remain unused for a long period of time. Platen Lever Printer Cover CAUTION : • Install the printer on a flat and stable desk.
2. 2 .
2.2 Basic Specifications Model Item Printing system Printing width Dot density Printing speed Printing columns Printing size Line pitch Character types Bar code type Paper Interface Input buffer Supply DC voltage Power consumption AC adapter Weight Type iDP-3221–RF120 iDP-3221–PF120 iDP-3221–RF230 iDP-3221–PF230 Line thermal dot printing 72.192 mm/512 dots Width: 0.141 mm, Length: 180 DPI (0.141 mm) 63.45 mm/sec. (At maximum speed, print density level 2), (450-dot line/sec.
2.3 Paper Specifications 2.3.1 Recomme mmended Paper •Type : Thermal paper •Paper width : 80 + 0/- 1 mm •Paper thickness : 60~75mm •Roll diameter : f83 mm or less •Printing surface : Outside of the roll (Surface) •Recommended paper : TF50KS-E2C (Monochrome) made by NIPPON SEISHI or its equivalent •Core : f12 mm (Inner diameter),f18 mm (Outer diameter) CAUTION: • Use of non-specified paper may cause irregularity of print density. If this is the case, use the DIP switch to select print density.
2.3.3 Head and Paper Cutte tter Layout Head Printing Position Paper Feed Direction About 42 mm Auto Cutter Position About 15.
3.
4. OPERA ERATION 4 .1 Conne nnecting AC Adapter 1. Turn off the power. 2. With the flat surface on the AC adapter cable connector facing downwards, plug it into the power connector at the rear of the printer. 3. Connect the AC power cord to the AC adapter, and plug it into an AC outlet. CAUTION: • Use only the specified AC adapter. • When disconnecting/reconnecting the cable connector of the AC adapter, be sure to hold the connector. • Separate the AC adapter from other noise-generating devices.
4 .2 Conne nnecting Interface Cabl able 1. Turn off the power. (Mating side included) 2. Check the top and bottom of cable terminals, and connect to the interface connector. 3. Fix the cable terminals. Serial interface : Tighten screws, to fix it. Parallel interface : Turn clamps, to fix it. 4. Connect the cable to the host computer. Serial Interface Cable Serial Interface Connector Parallel Interface Connector Clamp Parallel Interface Cable 4 .
4.4 4.4.1 Inserting the Paper Inserting the Paper 1. Turn on the power. 2. Put your hands in the concave parts on both sides of the printer cover, and open it until it comes to a stop. 3. Cut the end of the paper roll at close to a right angle. 4. Ensure that the paper roll is placed correct side up in the roller part in the upper cover. 5. Check that the paper roll is between the platen levers, pull the end of the paper out to the edge of the upper cover, and close the printer cover.
CAUTION: • Be sure to use the specified paper roll. • Use of non-specified paper may not guarantee the print quality, printing head life, and so on. • The printer cover is not detachable. Do not apply an excessive force beyond its stopping position. • Do not insert a ragged or dog-eared end of the paper roll, because it could result in a paper jam or insertion error. • Always pull the end of the paper roll out to the edge of the upper cover.
4.4.2 Manua nually lly Inserting the Paper The manual insertion is effective when DIP switch DS1-2 is set to ON to disable the cover open detection. 1. Turn on the power. 2. Put your hands in the concave parts on both sides of the printer cover, and open it until it comes to a stop. 3. Cut the end of the paper roll at close to a right angle. 4. Ensure that the paper roll is placed correct side up in the roller part in the upper cover. 5.
CAUTION: • Be sure to use the specified paper roll. • Use of non-specified paper may not guarantee the print quality, printing head life, and so on. • The printer cover is not detachable. Do not apply an excessive force beyond its stopping position. • Do not insert a ragged or dog-eared end of the paper roll, because it could result in a paper jam or insertion error. • Rewind the paper roll if the paper is slack.
4 .6 Elim liminating the Paper Jam Jam 1. Turn off the power. 2. Open the printer cover. 3. Cut the paper roll near the paper insertion slot. 4. Move the head springs on either side in the directions of the arrows to unhook them from the hook part of the chassis, and lift them. (See the figure on the next page.) 5. Remove the platen roller unit by lifting both platen levers. 6. Remove the remaining paper roll completely from the paper passage. 7.
Hook of the Chassis Platen Roller Unit Head Springs sGuide Bush Guide Bush
4 .7 Unlocking the Cutter 1. Remove the paper from the paper passage as described in 4.6 "Eliminating the Paper Jam." 2. Turn on the power. The auto cutter initialization begins and the cutter returns to its home position. Then, the alarm is cleared. 3. If the cutter does not return to its home position after the power has been turned on, do the following.
4 .8 Cleaning the Head 1. Remove the platen roller unit referring to 4.6 "Eliminating the Paper Jam." 2. Clean the heating surface of the head by wiping it with a cotton swab dampened with a small amount of ethyl alcohol. 3. Attach the platen roller unit. CAUTION: • Do not touch the heating surface of the head with a bare hand or metal. • Do not carry out this work just after printing because the printing head is very hot. • Always turn off the power before removing the platen roller unit.
4 .9 Operation Panel and Display of Error 1. POWER lamp (Green) Illuminated if the power is turned on. Also, flashes to indicate a memory error. 2. ERROR lamp (Red) Indicates an error by illuminating or blinking the lamps. Error POWER Lamp Memory check error Cover open Quick blinking ON ERROR Lamp Reset ON Cannot be reset ON Close the cover. Automatically reset by a temperature drop Set a new paper roll after a print stop. Set a new paper roll.
Cutter motor lock ----- If the cutter position sensor in the cutter unit is left turned on or off for approx. 1 second while the cutter motor is running, cutter operation and printing will be suspended, determining it to be motor lock. See 4.7 "Unlocking the Cutter." 3. FEED switch Press and release this switch immediately to feed paper by one line. Press it continuously to feed paper continuously. Press this switch to execute macro when the system is awaiting macro-execution. 4.
4.10 Hexadecimal Dumps 1. The Hexadecimal Dump Function This function allows data sent from the host to be printed in hexadecimal notation, together with a corresponding character printout. 2. Starting the Hexadecimal Dump Press the POWER switch and FEED switch simultaneously with the cover opened. When the cover is closed, "Hexadecimal Dump" is printed on the paper and the received data is then printed in hexadecimal format with the corresponding character printout. Notes: • • ".
5. 5 .1 DIP SWITCH SETTING Location of DIP Switch 1. Turn off the power. 2. Remove the bottom cover by removing the two screws and turning it over in the direction shown by the arrow to remove it.
5 .2 DIP Switch Function DS1 No. 1 2 3 4 5 6 Function Cutter Cover open CR switching Kanji code selection Input buffer International character “ 7 8 9 10 ON Enabled Disabled LF operation S-JIS 72 bytes OFF Disabled Enabled Ignored JIS 4 K bytes Upon Shipment ON OFF OFF OFF ON OFF See Table 1. OFF OFF ON OFF “ Print density “ See Table 2. W When DS1-2 "Cover open" is disabled, paper feed is possible with the cover open and paper insertion method will be changed from auto to manual insertion.
6. 6 .1 6.1.1 PARALLE LLEL INTERFACE Bi-directional Paralle llel Interface (IEEE 1284 1284) 84) Compatibility Mode (Host ® Printer Communi unication Using the Centronics Interface) (1) Outline The familiar Centronics interface is used in the Compatibility mode. (2) Specifications Data transfer : 8-bit parallel Synchronization : External nStrobe signal 6.1.
6.1.3 Connector Pin Assignment Pin No.
6 .2 6.2.1 Paralle llel Interface (CENTRONICS) Specifications •Data input system : 8-bit parallel (DATA1 to DATA8) •Control signals : ACK, BUSY, STB, FAULT, PE, RESET, SELECT, AUTO FEED, SELECT IN •Applicable connectors : Printer side : 57LE-40360 (Anphenol) or its equivalent Cable side 6.2.2 : 57-30360 (Anphenol) or its equivalent Connector's Pin Configuration No.
6 .3 6.3.1 Input and Output Signals Input and Output Signals (1) Input signals to the printer •DATA : 8-bit parallel signal (Active High) •STROBE : Strobe signal to read the 8-bit data (Active Low) •RESET : Signal to reset the entire printer (Active Low); 1 ms or more (2) Output signals from the printer •ACK : 8-bit data request signal. A pulse signal to be output at the end of the BUSY signal (Active Low) •BUSY : Signal to indicate that the printer is busy. Input new data when it is "Low.
6.3.2 Electrical Characteristics (1) Input signal level The STB and DATA1-8 input signals are at the C-MOS level. Other input signals are at the TTL level. C-MOS Level: High level --- 4.0 V at minimum Low level ---- 1.0 V at maximum TTL Level: High level --- 2.0 V at minimum Low level ---- 0.8 V at maximum (2) Output signal level All the output signals are at the C-MOS level. High level --- 2.4 V at minimum Low level ---- 0.
6.3.3 Timing Chart (Compatibility Mode) Data Input and Print Timings 6.3.4 T1, T2, T3 0.5 ms MIN T4 270 ns MAX T5 2.3 ms TYP T6 500 ms MIN (At power-on) Data Receiving Control The data can be received from the host when the BUSY signal is at "Low," but cannot be received when it is "High." 6.3.5 Buffe ffering The host side is immediately freed, because 4 KB data can be buffered.
7. 7 .
7 .3 7.3.1 Input and Output Signals Input and Output Signals (1) RD Serial received data signal. If a framing error, overrun error, or parity error takes place, the relevant data will be printed as "?". (2) DTR Write the data or a command when this signal is Ready. If you write at Busy, the previous data will be ignored, resulting in an overrun error. buffer even during printing. The data can be written in the input Busy is also issued at power-on, during test printing, at on- line, or at reset.
7.3.2 Data Configuration t Mark b0, b1, b2, • • • • Space (1) (2) (3) (1) Start Bit (2) Data Bit (+ Parity Bit) (3) Stop Bit (1 or More) (1) Start bit The system reads the status again after a lapse of 1/2 bit from a fall edge from the mark to space, and if it is a space, this bit will be recognized as the start bit. If it is a mark, the system will not recognize the bit as the start bit and try to detect the start bit again without judging it as an error.
7.3.4 Data Receiving Control If DTR/DSR control has been selected, the data from the host side will be received when the BUSY signal is at "Low," but not received when at "High." If DTR/DSR has not been selected, the data from the host side will be received after sending XON, but not after sending XOFF. 7.3.5 Buffe ffering To transfer the data to the input buffer, there are two control signals available: DTR signal and TD signal.
8. DRAWER KICK-OUT CONNE NNECTOR, POWER CO CONNECTOR 8 .1 8.1.1 Drawer Kick-Out Connector Specifications of Drawer Kick-Out Connector (1) Drawer kick-out drive signal Outputs a pulse specified with ESC p. The status of SW (+) can be checked with pin 34 on the parallel interface connector, or with the DLE EOT, GS a, and GS r commands through the serial/parallel interface. (2) Electrical characteristics 1) Drive voltage: 24 V DC 2) Drive current: 0.
8.2 Power Conne nnector This connector is to supply the power from the special AC adapter. Connector's Pin Configurations No. Function 1 2 3 SHELL +24V GND N.C FG Connector used : TCS7960-53-2010 (Made by HOSHIDEN) or its equivalent Applicable connector : TCP8927-63-1100 (Made by HOSHIDEN) or its equivalent TCP8927-53-1100 (Made by HOSHIDEN) or its equivalent CAUTION: • Be sure to use the specified AC adapter. Use of any other power source could cause trouble to or break the printer.
9. MAINTENANCE AN 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 CBM Bldg., 5-68-10, Nakano Suit 510 Nakano-ku, Tokyo 164-0001 Torrance, CA 90501, U.S.
10. 10. PRINT CONTROL FUNC UNCTIONS 10. 10.1 Comma mmand List No.
No.
No. Command Function Mode Code Page 57 GS f Selecting the font of HRI charactetrs S,P 1DH 66H n 101 58 GS h Specifying the height of the bar code S,P 102 59 GS k Printing the bar code S,P 103 60 GS r Sending status Specifying the horizontal size (magnification) of bar code S,P 1DH 68H n 1DH 6BH m n [d1 .... dn] 1DH 72H n S,P 1DH 77H n 111 61 GS w In the Mode column: S = Standard Mode, P = Page Mode * shows the command affected by GS P.
10. 10.2 Comma mmand Details ils 10. 10.2.1 Descri criptions of Each Item XXXXX [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.
10. 10.2.2 Comma mmand Details ils 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. •Initial setting of the horizontal tab position is each 8 characters in 9th, 17th, 25th, 33rd, and 41st columns.
LF Function] Printing and paper feed [Code] <0A>H [Outline] Prints data inside the input buffer and feeds lines based on the line feed amount having been set. •The head of the line becomes the next print starting position. [See Also] ESC 2, ESC 3 [Sample Program] [Print Results] LPRINT "AAA" ; CHR$ (&HA) ; LPRINT "BBB" ; CHR$ (&HA) ; LPRINT CHR$ (&HA) ; LPRINT "CCC" ; CHR$ (&HA) ; END CR [Function] Printing [Code] <0D>H [Outline] 1) When DSW1-3 is OFF: This command is ignored.
FF [Function] Printing in Page mode and returning to Standard mode [Code] <0C>H [Outline] Executes a batch printout of the data mapped in the print area, and then returns to Standard mode. [Caution] •All mapped data is erased after printout. • The print area set up by ESC W is initialized. • This command does not execute a paper cut. • After this command is executed, the beginning of the line is taken as the start position for the next print.
DEL EOT n [Function] Sending status in real time [Code] <16>H<04>H [Range] 1£n£4 [Outline] Sends in real time the status specified by "n." n = 1: Printer status n = 2: Status caused by an offline condition n = 3: Status caused by an error n = 4: Paper detector status [Caution] •Each status represents the current status. It is 1-byte data. •The status is transferred without checking whether the host is ready to receive or busy.
(1) Printer status (when n = 1 is specified) Bit 0 1 2 3 4 5 6 7 Status Unused Unused Status of pin 3 of drawer kick connector = L Status of pin 3 of drawer kick connector = H Online status Offline status Unused Undefined Undefined Unused Hex.
Bit 3: If this error occurred because of a paper jam, for example, remove the cause of the error, and then DEL ENQ n (1 £ n £ 2) can be used to recover from the error. However, it is not possible to recover from any error due to a circuit problem (e.g., broken wire). Bit 6: If a head overheat error is detected and the printing is stopped until the head temperature falls. At this time, bit 6 = "1.
DLE ENQ n [Function] Real-time request to printer [Code] <10>H<05>H [Range] 1 ££ n £ 2 [Outline] The printer responds in real time to the request that the host specified with number "n." n = 1: After recovering from an error, the printer resumes printing from the beginning of the line where the error occurred. n = 2: The printer clears the receive buffer and the print buffer, and then recovers from the error. [Caution] •This command is only effective if an auto cutter error has occurred.
ESC FF [Function] Printing data in Page mode [Code] <1B>H<0C>H [Outline] Executes a batch printout of the data mapped in every print area in Page mode. [Caution] •This command is only effective when Page mode is selected. • Mapped data, as well as the ESC T and ESC W settings, and the character mapping position are held even after printing.
[Sample Program] LPRINT CHR$ (&H1B) ; " " ; CHR$ (0) ; LPRINT "AAAAA" ; CHR$ (&HA) ; LPRINT CHR$ (&H1B) ; " " ; CHR$ (1) ; LPRINT "AAAAA" ; CHR$ (&HA) ; LPRINT CHR$ (&H1B) ; " " ; CHR$ (12) ; LPRINT "AAAAA" ; CHR$ (&HA) END [Print Results]
ESC ! n [Function] Collective specifying the printing mode [Code] <1B> H <21> H [Range] 0 £ n £ 255 [Outline] Printing mode is assigned.
[Print Results]
ESC $ n1 n2 [Function] Specifying the absolute positions [Code] <1B> H <24> H < n1> [Range] 0 £ n1 £ 255 0 £ n2 £ 1 [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 ´ 256 from the beginning of line. [Caution] The basic calculation pitch is set by GS P.
ESC % n [Function] Specifying/Canceling download character set [Code] <1B> H <25> H [Range] 0 £ n £ 255 [Outline] Specifying/canceling download characters. Further, only the lowest bit (n0) is valid for n. The lowest bit (n0) indicates the following. n0 0 1 Function Canceling download character set Specifying download character set [Caution] Download characters and download bit images cannot be defined simultaneously.
ESC & s n m [a [p] s´a] m-n+1 [Function] Defining the download characters [Code] <1B> H <26> H [ ¼ ] m-n+1 [Range] s=3 32 £ n £ m £ 126 0 £ a £ 12 (Font A) 0 £ a £ 9 (Font B) [Outline] 0 £ p1 •• ps´a £ 255 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. To define only one character, set n=m.
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 £ 255 0 £ n2 £ 3 0 £ d £ 255 k = n1 + 256 ´ n2 (m = 0, 1) k = (n1+ 256 ´ n2) ´ 3 (m = 32, 33) [Outline] According to the number of dots specified in "n1," "n2," specify the bit image of mode "m." •The number of dots printed is divided by 256, whose quotient is taken as n2 and residual as "n1." •The total number.
[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$ (&H85) ; LPRINT CHR$ (1) ; CHR$ (20) ; CHR$ (0) ; NEXT I GOSUB *IMG1 LPRINT CHR$ (&HFF) ; LPRINT CHR$ (&HA) ; RETURN LPRINT CHR$ (&H1B) ; "*" ; LPRINT CHR$ (32) ; CHR$ (20) ; CHR$ (0) ; GOSUB *IMG2 *IMG2 : FOR I=1 TO 3 LPRINT CHR$ (&HFF) ; LPRINT CHR$ (&HA) ; NEXT I LPRINT CHR$ (&H1B) ; "*" ; F
ESC - n [Function] Specifying/Canceling underline [Code] <1B> H <2D> H [Range] 0£n£2 [Outline] Specifying/canceling an underline. • Types of underlines by "n" value are shown below: n 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. It is, however, not attached to the part having been skipped by horizontal tab command.
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.
ESC 3 n [Function] Setting line feed rate of minimum pitch [Code] <1B> H <33> H [Range] 0 £ n £ 255 [Outline] Sets the line feed width per line to [n ´ basic calculation pitch] inches. [Caution] The line feed width can be set separately for the Standard and Page modes. The basic calculation pitch is set by GS P. Once defined, the line feed width is not changed if the basic calculation pitch is changed by GS P.
ESC = n [Function] Data input control [Code] <1B> H <3D> H [Range] 0 £ n £ 255 [Outline] Selecting equipment in which data input from the host is effective. •Each bit of "n" indicates as follows: Bit Equipment 0 1 2 3 4 5 6 7 Printer Not defined Not defined Not defined Not defined Not defined Not defined Not defined 0 Invalid Value 1 Valid •When the printer has not been selected, this printer abandons all the received data until it is selected by this command.
ESC ? n [Function] Deleting downloaded characters [Code] <1B>H<3F>H [Outline] Deletes the downloaded characters of specified code. [Caution] •The character "n" indicates the character code used to delete the defined pattern. After the deletion, characters are printed in the same pattern as the internal characters. •This command deletes the code-defined pattern of the character font selected by ESC !. •This command is ignored if the specified character code is undefined.
ESC D [Function] [Code] [Range] [Outline] [n] k NUL Setting horizontal tab position <1B> H <44> H [] k <00> H 1 £ n £ 255 0 £ k £ 32 Specifying a horizontal tab position. •"n" indicates the number 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. •"k" denotes the number of horizontal tab positions you want to set.
ESC E n [Function] Specifying/Canceling highlighting [Code] [Range] <1B> H <45> H 0 £ n £ 255 [Outline] Specifying/canceling the highlighting characters. •"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. [See Also] [Example] •Dot configuration of a highlighted character includes one extra dot added at its side.
ESC G [Function] [Code] [Range] [Outline] n Specifying/Canceling double printing <1B> H <47> H 0 £ n £ 255 Specifying/canceling the double printing. •"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.
ESC J n [Function] Printing and feeding paper in minimum pitch [Code] <1B> H <4A> H [Range] 0 £ n £ 255 [Outline] Prints the data held in the print buffer and feeds paper by n/360 inches. beginning of the line is taken as the start position for the next print. [Caution] The line feed width can be set separately for the Standard and Page modes. The This command does not affect the line feed width defined by ESC 2 or ESC 3. The basic calculation pitch is set by GS P.
ESC L [Function] Selecting Page mode [Code] <1B>H<4C>H [Outline] Switches from Standard mode to Page 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 Page mode. •Standard mode is restored when printing specified by FF is finished or when ESC S is issued. •The character mapping start position will be the point specified by ESC T in the print area specified by ESC W.
ESC R n [Function] Selecting the international character set [Code] <1B> H <52> H [Range] 0 £ n £ 10 [Outline] Depending on the value of "n," following character sets are specified. n 0 1 2 3 4 5 6 7 8 9 10 Character Set U.S.A. France Germany U.K. Denmark I Sweden Italy Spain Japan Norway Denmark II [Caution] Spain, Norway, and Denmark II can only be set with this command. [Default] The default of "n" is the character set for the country specified by the DIP switch.
ESC S [Function] Selecting Standard mode [Code] <1B>H<53>H [Outline] Switches from Page mode to Standard mode. [Caution] •This command is only effective if it is entered when in Page mode. •Any data mapped in Page mode is erased. •After this command is executed, the beginning of the line is taken as the start position for the next print command. •The print area defined by ESC W is initialized.
ESC T n [Function] Selecting the character printing direction in Page mode [Code] <1B>H<54>H [Range] 0 £ n £ 3, 48 £ n £ 51 [Outline] Selects the direction and start position of character printing in Page mode.
ESC V n [Function] Specifying/Canceling 90°-right-turned characters [Code] <1B> H <56> H [Range] 0£n£1 [Outline] Specifying/canceling characters 90°-right- turned character. •"n" means the followings. n 0 1 Condition Canceling 90°-right- turned Characters Specifying 90°-right- turned Characters [Caution] No underlines are attached to 90°-right- turned characters .
ESC W xL xH yL yH dxL dxH dyL dyH [Function] Defining the print area in Page mode [Code] <1B>H<57>H [Range] 0 £ xL, xH, yL, yH, dxL, dxH, dyL, dyH £ 255, except for dxL = dxH = 0 or dyL = dyH = 0 [Outline] Defines the location and size of the print area.
•The figure below illustrates the print area, where X = horizontal start point, Y = vertical start point, Dx = horizontal length, and Dy = vertical length. Paper Print Area Paper Feed Direction The printable area for this printer is approximately 72.249 mm (512/180 inches) horizontally and 117.263 mm (1662/360 inches) vertically.
ESC ¥ nL nH [Function] Specifying the relative position [Code] <1B> H <5C> H [Range] 0 £ nL £ 255 0 £ nH £ 255 [Outline] This command specifies the start position for the next print in terms of a relative position with respect to the current position. The start position for the next print will be at a distance of [(nL + nH ´ 256) ´ basic calculation pitch] inches away the current position. [Caution] •Specification of a position outside the print area is ignored.
ESC a n [Function] Aligning the characters [Code] <1B> H <61> H [Range] 0 £ n £ 2, 48 £ n £ 50 [Outline] All the printed data within one line are aligned in the specified position. •Depending on "n" value, positional alignment is carried out as in the table below: n 0,48 1,49 2,50 [Caution] Position Left end alignment Centering Right end alignment •This is valid only when "n" is inputted at the beginning of line. •This command does not affect the Page mode.
ESC c 3 n [Function] Selecting the paper near end sensor valid for a paper end signal output [Code] <1B>H<63>H<33>H [Range] 0 £ n £255 [Outline] This command selects at which paper near end sensor a paper end signal should be output. Each bit for "n" has the following meaning: Bit Position 0 1~7 Paper near end Undefined 0 Disabled Value 1 Enabled This printer can only select one kind of paper end detection, a paper-near-end sensor. "n" is valid for the least significant bit (n0).
ESC c 5 n [Function] Enabling/Disabling the panel switches [Code] <1B> H <63> H <35> H [Range] 0 £ n £ 255 [Outline] Selecting the FEED switch valid/invalid. •"n" is valid only in the lowest bit (n0). •"n" bit means the followings. n0 0 1 Condition FEED switch valid. FEED switch invalid. [Caution] When the panel switch is disabled with this command, the FEED switch is disabled. Therefore, the paper cannot be fed by operating the FEED switch.
ESC i [Function] Full cut [Code] <1B>H<69>H [Outline] Activating auto cutter unit (Full cut) [Caution] •This command is valid only when it 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.
ESC m [Function] Partial cut [Code] <1B>H<6D>H [Outline] Activating auto cutter unit (Partial cut) [Caution] •This command is valid only when it 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.
ESC p m n1 n2 [Function] Generating the specified pulses [Code] <1B>H<70>H [Range] m = 0, 1 0 < n1 £ n2 £ 255 [Outline] The signals specified by "n1" and "n2" are output to the connector pin specified by "m". •"m" has the followings. m 0 1 Connector Pin Drawer kick pin No.2 Drawer kick pin No.5 •The ON time is n1´2 ms, and OFF time n2´2 ms. [Caution] •When "m" is beyond a definition range, no signal is output, discarding "n1" and "n2." •A drawer drive duty is as follows.
ESC t n [Function] Selecting the character code table [Code] <1B>H<74>H [Range] 0 £ n £ 5, n = 255 [Outline] Selecting page "n" on the character code table: The character code table is selected depending on the value of "n." "n" means the followings.
ESC { n [Function] Specifying/Canceling the inverted characters [Code] <1B>H<7B>H [Range] 0 £ n £ 255 [Outline] Specifying/canceling inverted characters. •"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. •This command is valid only when it is specified at the beginning of a line.
GS ! n [Function] Specifying the character size [Code] <1D>H<21>H [Range] 0 £ n £ 255, where: 1 £ vertical magnification £ 8, and 1 £ horizontal magnification £ 8 [Outline] Specifies the character size (vertical and horizontal magnification). Bit Meaning 0 1 2 3 4 5 6 7 Hex.
•If characters of different vertical magnification are contained in a line, the baseline of each character is lined up. •Horizontal and vertical magnification can also be specified/canceled by ESC !. The ESC ! or GS ! command, whichever is handled last, becomes effective.
GS $ nL nH [Function] Specifying the absolute vertical position of characters in Page mode [Code] <1D>H<24>H [Range] 0 £ nL £ 255 0 £ nH £ 255 [Outline] [Caution] This command is used in Page mode to specify the vertical position of characters at the data mapping start position as an absolute value measured from the start point.
GS * n1 n2 [ d ] n1 ´ n2 ´ 8 [Function] Defining the download bit image [Code] <1D>H<2A>H [ < 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/n2. • The numbers of dots are n1´8 in horizontal direction and n2´8 in vertical direction. •"d" indicates bit image data. • The download bit image thus defined remains effective until redefinition, ESC @ execution, ESC &, or power OFF takes place.
[Sample Program] [Print Results] 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 [Function] Printing the downloaded bit image [Code] <1D>H<2F>H [Range] 0£m£3 48 £ m £ 51 [Outline] Prints downloaded bit image in a mode specified by "m." Modes can be selected by "m" are shown below.
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. exceeding 2048 bytes is not defined. A portion •Even with ESC @ (initialization of the printer) having been executed, defined content is not cleared. Therefore, it is possible to include ESC @ into the content of macro definition.
GS B n [Function] Specifying/Canceling the black/white inverted printing [Code] <1D>H<42>H [Range] 0 £ n £ 255 [Outline] This command specifies or cancels the black/white inverted printing. •If n = <*******0>B, the black/white inverted printing is canceled. •If n = <*******1>B, the black/white inverted printing is specified. [Caution] •Number "n" is only valid in the lowest bit. •The black/white inversion works on internal and downloaded characters.
GS H n [Function] Selecting of printing position of HRI characters [Code] <1D>H<48>H [Range] 0£n£3 48 £ n £ 51 [Outline] Selecting printing position of HRI characters in printing bar codes. •"n" means the followings. n 0,48 1,49 2,50 3,51 [Caution] Printing Position No printing Above the bar code Below the bar code Both above and below the bar code • The HRI characters refer to the bar code-turned characters so that you can read them.
GS I n [Function] Sending the printer ID [Code] <1D>H<49>H [Range] 0£n£3 49 £ n £ 51 [Outline] Sends the specified printer ID. "n" means the following. n 1,49 2,50 3,51 Type of printer ID Model ID Type ID ROM version ID Specification Value (hex) iDP3221 20 See table below "Type ID" As per ROM version Type ID Bit 0 1 2 3 4 5 6 7 [Caution] Meaning Equipped for 2-byte code support Equipped with autocutter Undefined Undefined Unused Undefined Undefined Unused Hex.
GS L nL nH [Function] Setting the left margin [Code] <1D>H<4C>H [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. Printable Area Left Margin [Caution] Print Area Width •This command only works when it is entered at the beginning of a line. •When Page mode is selected, this command only executes the internal flagging of the printer.
GS P x y [Function] Specifying the basic calculation pitch [Code] <1D>H<50>H [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. 25.4/y mm (1/y inches). •If x = 0, the horizontal basic calculation pitch is reverted to the default value. •If y = 0, the vertical basic calculation pitch is reverted to the default value.
GS V m ......... (1) GS V m n ... (2) [Function] Cutting the paper [Code] (1) <1D>H<56>H (2) <1D>H<56>H (1) 0 £ m £ 1, 48 £ m £ 49 (2) 65 £ m £ 66, 0 £ n £ 255 [Range] [Outline] Cuts the specified paper. "m" means the following.
GS W nL nH [Function] Setting the print area width [Code] <1D>H<57>H [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. Printable Area Left Margin [Caution] Print Area Width •This command only works when it is entered at the beginning of a line. •When Page mode is selected, this command only executes the internal flagging of the printer.
(2) If a sufficient area cannot be provided as a result of step (1), the print area is extended toward the left (so that the left margin is decreased). Printable Area Left Margin The left margin is trimmed. Extended toward the right Print Area Width (3) If a sufficient area cannot be provided as a result of step (2), the right spacing is trimmed.
GS ¥ nL nH [Function] Specifying the relative vertical position of a character in Page mode [Code] <1D>H<5C>H [Range] 0 £ nL £ 255 0 £ nH £ 255 [Outline] This command is used in Page mode to specify the vertical position of a character at the data mapping start position, in terms of a relative position with respect to the current position. The next data mapping start position will be at a distance of [(nL + nH ´ 256)´basic calculation pitch] inches away from the current position.
GS ^ n1 n2 n3 [Function] Executing the macro [Code] <1D> H <5E> H [Range] 0 £ n1 £ 255 0 £ n2 £ 255 0 £ n3 £ 1 [Outline] 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´100 msec is given for every execution.
GS a n [Function] Enabling/Disabling ASB (Automatic Status Back) [Code] <1D>H<61>H [Range] 0 £ n £ 255 [Outline] This command selects the status item to be addressed by ASB (automatic status back).
(1) 1st byte (printer information) Bit 0 1 2 3 4 5 6 7 Status Unused Unused Status of pin 3 of drawer kick connector = "L" Status of pin 3 of drawer kick connector = "H" Online status Offline status Unused Cover closed Cover open Not in paper feed state triggered by FEED switch In paper feed state triggered by FEED switch Unused Hex. 00 00 00 04 00 08 01 00 20 00 40 00 Decimal 0 0 0 4 0 8 6 0 32 0 64 0 Hex. — — — 00 08 00 00 20 00 40 00 Decimal — — — 0 8 0 0 32 0 64 0 Hex.
(4) 4th byte (paper detector information) Bit 0 1 2 3 4 5 6 7 [See Also] Status Undefined Undefined Undefined Undefined Unused Undefined Undefined Unused Hex.
GS f n [Function] Selecting the font of HRI charactetrs [Code] <1D> H <66> H [Range] n = 0, 1 n = 48, 49 [Outline] Selecting the font of HRI characters in printing bar code. The type of font can be printed by selecting "n" is as follows. n 0, 48 1, 49 Font Font A (12´24) Font B (9´24) The HRI characters refer to the bar code-turned characters so that you can read them. [Caution] The HRI characters are printed at the position specified with GS h.
GS h n [Function] Specifying the height of the bar code [Code] <1D> H <68> H [Range] 1 £ n £ 255 [Outline] Selecting bar code height. "n" denotes the number of dots in the vertical direction. [Default] n = 162 [Sample Program] [Print Results] See Sample Program and Print Results for GS w on page 111.
GS k m [d1 ..... dk] NUL GS k m n [d1 ...... dn] [Function] Printing the bar code [Code] (1) <1D> H <6B> H [d1.....dk] NUL (2) <1D> H <6B> H [d1....dn] [Range] [Outline] (1) 0 £ m £ 6 The definitions of "k" and "d" depend on the bar code system. (2) 65 £ m £ 73 The definitions of "n" and "d" depend on the bar code system. Selects a bar code system and prints the bar code.
•For JAN13, the bar code is printed when 13 bytes of bar code data has been entered, and the subsequent data is handled as normal data. •For JAN8, the bar code is printed when 8 bytes of bar code data has been entered, and the subsequent data is handled as normal data. •The data of ITF bar code must have an even number of columns. data have an odd number of columns, the last column is ignored.
[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 column(12th column) automatically calculated inside the printer. If the 12thcolumn numeral is sent from the host, the entire bar code will be printed as it is.
CODE93 This bar code, consisting of alphanumeric and control characters, has a variable length of columns. The HRI character string is preceded by a "c" character. HRI characters for control characters (00H - 1FH, and 7FH) are each printed as a combination of a "g" character and an alphabet. Control character ASCII Hex.
When sending print data, note these: (1) Each string of bar code data must begin with a codeset select character (CODE A, CODE B, or CODE C), which selects the first codeset to use. (2) Every special character is specified by a combination of two characters: a brace "{" followed by one character. A brace "{" itself is specified by two consecutive braces "{{." Special characters Hex.
[Description of Bar Codes] UPC-A, UPC-E, JAN-13 (EAN), JAN-8 (EAN), CODE39, ITF, CODABAR, CODE93, CODE128 Type Print Sample Bar Code 1 UPC-A Bar Code 2 UPC-E Bar Code 3 JAN-13 Bar Code 4 JAN-8 Bar Code 5 CODE39 Bar Code 6 ITF CODABAR (NW-7) Bar Code 7 Bar Code 8 CODE93 Bar Code 9 CODE128 Max. column Outline of Symbol 12-column fixed-length bar consisting of numerals only code 8-column fixed-length bar consisting of numerals Abbreviated version of UPC-A code only.
GS r n [Function] Sending status [Code] <1D>H<72>H [Range] 1£n£2 49 £ n £ 50 [Outline] Sends the specified status to the host. n = 1, 49: Sends the paper detector status. n = 2, 50: Sends the drawer kick connector status. [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. If the host is not ready to receive, the printer waits for the host to become ready to receive.
• Drawer kick connector status (n = 2, 50) Bit 0 1 2 3 4 5 6 7 [See Also] Status Status of pin 3 of drawer kick connector = "L" Status of pin 3 of drawer kick connector = "H" Undefined Undefined Undefined Unused Undefined Undefined Unused DLE EOT, GS a, "Identification of Send Status" in Appendix 3 Hex.
GS w n [Function] Specifying the horizontal size (magnification) of bar code [Code] <1D> H <77> H [Range] 2£n£6 [Outline] Selecting bar code width. "n" denotes the number of dots in fine element width.
11. CHARACTER CO CODES TABL ABLE 11. 11.
11.
11.
11.
11.
11.
11.
11.
APPE PPENDIX 1. PAGE MODE Overview The printer has two print modes: standard and page. In standard mode, the printer prints or feeds paper each time it receives a print or paper feed command. In page mode, when the printer receives print commands and/or form feed commands, it simply forwards them to the specified print area of memory. Only when an ESC FF or FF is executed, will all data mapped in the print area until then be printed in a batch.
(2) The maximum printable size of a bitmap image is 512 by 512 dots for standard mode. In page mode, the size can be extended up to 831 bits in the y direction (paper feed direction) if 831 bits are reserved for y of the print area and the value of print direction "n" specified by ESC T is 1 or 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.
[Vertically mapped dots (= 8´6) ¾ Line feed width for the starting point (= 21)]´(Vertical basic calculation pitch conversion ratio (= 360/180) = 54 54 pitches, or 27 dots, must, therefore, be added to the line feed width.
Mapping Direction Baseline Point A Print Area [Mapping Positions for Character Data] Downloaded Bit Image Vertically Doubled Character Bar Code Bit Image Baseline Point B Point B Point B Point B [Mapping Position for Print Data] (HRI Characters)
Mapping Direction Baseline Point A Downloaded Bit Image Baseline Point B Point B Print Area [Mapping Position for a Downloaded Bit Image]
Example of of the Use of of Page Mode The following explains specific uses of page mode. When in page mode, the commands are typically sent from the host to the printer in the following sequence: (1) An ESC L puts the printer in page mode. (2) An ESC W specifies the print area. (3) An ESC T specifies the print direction. (4) Print data is sent. (5) An FF instructs the printer to print the print data in a batch. After printing, the printer returns to standard mode.
In Figure 1-1, a line feed occurs between "lesson" and "Test 1" because "lesson" and the next space " " do 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. It is possible to set as many print areas as desired before executing FF. If print areas overlap each other, the print area setup data are ANDed with the previous data. If you want to erase a section of mapped data, use the CAN command.
Before an FF is sent, the following program code can be added to remove part of the data. 170 PRINT#1, chr$(&H1b); "W";chr$(72);chr$(0);chr$(120);chr$(0); 180 PRINT#1, chr$(36) ;chr$(0);chr$(48);chr$(0); 190 PRINT#1, chr$(&H18); 200 PRINT#1, chr$(&Hc); As a result of the additional program code, a print-out is executed as shown in Figure 1-3, where the string "GH1" is removed.
APPE PPENDIX 2. BI-DIRECT RECTIONAL PARALLE LLEL INTERF ERFACE 1. Overview The interface of the printer is a Level-1 compatible device according to IEEE-P1284. It supports the communication modes described in 1.1 below. 1 .1 . Paralle llel Interface Commun mmuni unication Modes The parallel interface of the printer provides three communication modes as outlined below. When the printer is turned on or reset, it defaults to Compatibility mode.
1 .2 Interfacing Phases Interfacing in each communication mode is divided into several phases. In addition, there is a phase for mode initialization, as well as a phase for mode switching. Interface signals may differ in name and function for different modes and different phases.
2. 2 .1 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. A general flow of negotiations is given below. 1) The host sets the IEEE 1284 Active signal to High. In response, the printer moves into the Negotiation phase. 2) The printer replies whether it can execute the mode requested by the host.
2 .3 Precautions 1) The Negotiation phase is triggered with the rising edge of the IEEE 1284 Active signal sent by the host. 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.
2 .4 Data Communi unication from Printer to Host 2.4.1 Nibb Nibbl bble 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 Available phase. If the Negotiation phase has switched to the Host Busy Data Not Available phase, the procedure starts at step 9).
11) If the host selected the Host Busy Data Available phase and set HostBusy (nAutoFd) to Low, the printer repeats the steps from 2) onwards. 12) If the host selected the Reverse Idle phase and new data becomes available to be sent from the printer, the printer sets PtrClk to Low to request the host for an interrupt. (Event 18) 13) The printer sets PtrClk back to High. (Event 19) 14) Upon receiving a request for interrupt from the printer, the host responds by setting HostBusy (nAutoFd) to High.
9) After transferring one byte of data, the printer signals to the host whether it has more data to transfer. When there is no more data to be received by the host from the printer, the host chooses one of three status selections: 1. Performing Termination and returning to the Compatibility mode. 2. Remaining in the Host Busy Data Not Available phase. 3. Setting HostBusy (nAutoFd) to Low and moving to the Reverse Idle phase (Event 7).
2 .6 Termination Termination is the process of returning to Compatibility mode from the Nibble or Byte modes. When performing Termination, the host sets the signals as follows: •IEEE 1284 Active (nSelectln): Low •HostBusy (nAutoFd): High (Event 22) There are two methods of Termination: (1) Termination through a handshake between the host and the printer. (2) Immediate termination.
APPE PPENDIX 3. IDENTIFICATION OF SEND STATUS Because the status sent from the printer has certain fixed bits, it is possible to identify to which command the status belongs. When using ASB (Automatic Status Back), however, the first byte of ASB should be checked, and then the three consecutive bytes except for XOFF should be treated as ASB data.
APPE PPENDIX 4.
APPE PPENDIX 5.
AC Ad Adapter (30A 30AD) Approx.
<<>>
1. Bitte lesen Sie die Bedienungsanleitung vor dem Betrieb des Geräts aufmerksam durch und bewahren Sie die Anleitung anschließend für späteres Nachschlagen an einem sicheren Platz auf. 2. Änderungen des Inhalts dieser Anleitung bleiben ohne Vorankündigung vorbehalten. 3. Die Vervielfältigung dieser Bedienungsanleitung ohne vorherige Genehmigung verstößt, auch auszugsweise, gegen das Urheberschutzrecht. 4.
ZU BEACHTENDE SICHERHEITSMASSRE SSREG REGELN Zur Vermeidung von Gefahren gegenüber dem Bediener und anderen Personen und Sachschäden sind die folgenden Vorsichtsmaßregeln unbedingt zu beachten. · Der folgende Text beschreibt das Ausmaß der Gefahren und potentiellen Sachschäden, die durch eine Mißachtung der Bedienungshinweise oder durch die unsachgemäße Handhabung des Geräts entstehen können. WARNUNG UNG Die Mißachtung dieser Vorsichtsmaßregel kann zu Körperverletzungen mit möglicher Todesfolge führen.
WARNUNG UNG · Beim Betrieb des Geräts sind die nachfolgenden Vorsichtsmaßregeln unbedingt zu beachten. Eine Mißachtung dieser Hinweise kann zu Schäden, Funktionsstörungen, Rauchentwicklung und Brandgefahr durch Überhitzen und zu elektrischen Schlägen führen. Der fortgesetzte Betrieb des Geräts in anormalem Zustand, wie z.B. nach einer Beschädigung, kann Funktionsstörungen, Rauchentwicklung, fremde Gerüche/Geräusche und Brände verursachen.
VORSICHTSMASSREG REGELN FÜR DIE AU AUFSTELLU LLUNG • Das Gerät nicht an Plätzen abstellen oder betreiben, an denen es Feuer, Feuchtigkeit oder • • • • • • • • • • • • • • • • direkter Sonnenbestrahlung ausgesetzt ist. Ebenso sind Plätze in der Nähe von Heizkörpern und sonstigen Wärmenquellen zu vermeiden, an denen Umgebungstemperatur und Luftfeuchtigkeit nicht den vorgeschriebenen Betriebsbedingungen entsprechen, sowie Plätze, an denen das Gerät Öl, Metallspänen oder Staub ausgesetzt ist.
VORSICHTSMASSREG REGELN FÜR DIE HANDHABUNG UNG Zur Vermeidung von Problemen sind bei der Handhabung des Geräts die folgenden Vorsichtsmaßregeln zu beachten. • Keine andere Betriebsstromquelle als das mitgelieferte Netzteil verwenden. Das Netzteil nicht für andere Zwecke verwenden. • Nicht ohne eingelegte Papier drucken. • Keine Fremdkörper wie Papierclips, Sicherheitsnadeln etc. in den Drucker fallenlassen.
TÄGLICHE WARTUNG UNG • Bei der Wartung immer den Netzschalter des Druckers auf Aus stellen und den Stecker aus der Steckdose ziehen. • Zur Reinigung der Walze Verschmutzungen mit einem Wattestäbchen entfernen, das mit etwas Äthyalkohol benetzt ist. • Schmutz und Staub mit einem trockenen, weichen Tuch vom Druckergehäuse abwischen. Bei starker Verschmutzung einen Lappen in Wasser anfeuchten, auswringen und damit abwischen. Hierzu niemals flüchtige organische Lösungsmittel, wie z.B.
An der im folgenden abgebildeten Stelle ist ein Warnaufkleber angebracht. Die zum korrekten Betrieb des Geräts zu beachtenden Sicherheitshinweise sorgfältig lesen. Dieser Aufkleber warnt davor, daß der Kopf während des Betriebs sehr heiß wird und seine Berührung zu Verbrennungen führen kann.
4. 4 .1 BETRIEB Anschlie ließen des Netzteils ils 1. Das Gerät ausschalten. 2. Den Netzkabelstecker mit der abgeflachten Seite nach unten in die Buchse an der Rückseite des Druckers stecken. 3. Das Netzkabel des Netzteils zwischen Netzteil und Netzstecker anschließen. VORSICHT: • Nur das vorgeschriebene Netzteil verwenden. • Beim Anschließen/Abtrennen des Steckers vom Netzteil immer am Stecker und nicht am Kabel anfassen. • Das Netzteil von anderen rauscherzeugenden Geräten getrennt anschließen.
4 .2 Anschlie ließen des Schni hnitts ttstelle llenkabe abels 1. Das Gerät ausschalten. (Paßseite eingeschlossen) 2. Die Ober- und Unterseite der Kabelkontakte prüfen, und an den Schnittstellenkontakt anschließen. 3. Die Kabelkontakte befestigen. Serielle Schnittstelle: Die Schrauben zum Befestigen festziehen. Parallelschnittstelle: Einen Befestigungsring zum Befestigen in Pfeilrichtung drehen. 4. Das Kabel an den Hostcomputer anschließen.
4 .4 4.4.1 Einlegen des Papiers Einlegen des Papiers 1. Gerät einschalten. 2. Mit den Fingern in die Aussparungen der Druckerabdeckung greifen und die Abdeckung bis zum Anschlag öffnen. 3. Das Ende der Papierrolle im rechten Winkel abschneiden. Gut Schlecht Schlecht Schlecht 4. Sicherstellen, daß die Papierrolle mit der richtigen Seite nach oben in den Papierhalter in der Druckerabdeckung eingelegt ist. 5.
VORSICHT: • Ausschließlich die vorgeschriebene Papiersorte verwenden. • Die Verwendung anderer Papiersorten kann zu verminderter Druckqualität, verkürzter Betriebslebensdauer des Druckers u. dergl. führen. • Die Druckerabdeckung ist nicht abnehmbar und sollte deshalb nicht über den Anschlag hinaus geöffnet werden. • Das in den Drucker einzuführende Papierende darf nicht geknickt oder eingerissen sein. • Das Papierrollenende immer bis an die Kante der Druckerabdeckung ziehen.
4.4.2 Papier manue nuell einlegen Papier kann manuell eingelegt werden, wenn der DIP-Schalter DS1-2 auf ON gestellt ist, um die Erkennung der Stellung der Druckerabdeckung zu deaktivieren. 1. Gerät einschalten. 2. Mit den Fingern in die Aussparungen der Druckerabdeckung greifen und die Abdeckung bis zum Anschlag öffnen. 3. Das Ende der Papierrolle im rechten Winkel abschneiden. Gut Schlecht Schlecht Schlecht 4.
VORSICHT: • Ausschließlich die vorgeschriebene Papiersorte verwenden. • Die Verwendung anderer Papiersorten kann zu verminderter Druckqualität, verkürzter Betriebslebensdauer des Druckers u. dergl. führen. • Die Druckerabdeckung ist nicht abnehmbar und sollte deshalb nicht über den Anschlag hinaus geöffnet werden. • Das in den Drucker einzuführende Papierende darf nicht geknickt oder eingerissen sein. • Lockeres Papier straffwickeln.
4 .6 Beseitigen von Papierstau 1. Das Gerät ausschalten. 2. Die Druckerabdeckung öffnen. 3. Die Papierrolle in der Nähe des Papiereinzugschachts abschneiden. 4. Die Kopffedern auf beiden Seiten in Pfeilrichtung bewegen, um sie aus den Gehäusehaken auszuhaken; dann anheben. 5. Die Druckwalzeneinheit durch Anheben beider Papierfreigabehebel entfernen. 6. Die restlichen Papierrolle vollständig aus dem Papierpfad entfernen. 7.
Gehäusehaken Druckwalzeneinheit Kopffeder Führungsbuchse Führungsbuchse
4 .7 Initialis lisierung des Schne hneidemechanismus 5. Papier aus dem Papierweg entfernen wie im Abschnitt "4.6 Beseitigen von Papierstaus" beschrieben. 6. Gerät einschalten. Die Initialisierung des automatischen Schneidemechanismus beginnt, dieser fährt in seine Ausgangsstellung, worauf dann der Alarm gelöscht wird 7. Wenn der automatische Schneidemechanismus nach Einschalten des Geräts nicht in seine Ausgangsstellung fährt, wie im folgenden beschrieben vorgehen: Gerät ausschalten.
4 .8 Kopf reinigen 1. Druckwalzeneinheit entfernen wie in 4.6 "Beseitigen von Papierstaus" beschrieben. 4. Heizfläche des Kopfs mit einem Wattestäbchen reinigen, das mit etwas Äthyalkohol benetzt ist. 5. Druckwalzeneinheit einbauen. VORSICHT: • Nicht die Oberfläche der Heizeinheit des Druckkopfes mit der bloßen Hand oder mit Metallgegenständen berühren. • Diese Arbeit nicht sofort nach dem Drucken ausführen, da sich der Druckkopf stark erhitzt.
4 .9 Bedienfeld und Fehleranzeigen 1. POWER-Lämpchen (grün) Leuchtet beim Einschalten auf. Blinkt auch zur Anzeige eines Speicherfehlers 2. ERROR-Lämpchen (rot) Zeigen durch Leuchten oder Blinken einen Fehler an.
< Fehler-Einzelheiten > Abdeckung geöffnet ----Der Öffnungssensor der Druckerabdeckung hat erkannt, daß die Druckerabdeckung geöffnet ist. In diesem Fall leuchtet das ERROR- Lämpchen, und der Druckvorgang ist gestoppt. Es ist zu beachten, daß der DIP-Schalter so eingestellt werden kann, daß das Papier auch bei geöffneter Druckerabdeckung vorgeschoben wird.
4.10 Hexadezimal-Dumps 1. Hexadezimal-Dump-Funktion Diese Funktion ermöglicht die Ausgabe der vom Host-Computer gesendeten Daten in hexadezimaler Notation zusammen mit einem Ausdruck der korrespondierenden Zeichen. 4. Hexadezimal-Dump starten Bei geöffneter Abdeckung gleichzeitig Netzschalter und FEED-Taste drücken.
5. 5 .1 DIP-SCHALTEREINSTELLUN LLUNG UNG Lage der DIP-Schalter 1. Das Gerät ausschalten. 2. Die untere Abdeckung durch Lösen der zwei Schrauben entfernen und das Gerät auf die Seite stellen, wie unten abgebildet.
5 .2 DIP-Schalterfunk unktion DS1 No. 1 2 3 4 5 6 7 8 9 10 Funktion Automatische Schneideinheit Abdeckung geöffnet CR-Umschalten Japanische Schriftcode-Wahl Puffergröße Internationale Zeichen “ “ Druckdichte ON Ja Nein LF-Betrieb S-JIS 72 bytes OFF Nein Ja Ignoriert JIS 4 K bytes Siehe Tabelle 1. Siehe Tabelle 2.
6. 6 .1 6.1.1 PARALLE LLELSCHNITTS TTSTELLE LLE Bidirektionale Parallelschni ttsstelle hnitt lle (IEEE 1284) 84) Kompatibilitätsmodus (Übertragung ung Host-Computer ® Drucker über die CentronicsSchni hnitts ttstelle lle) (1) Übersicht Die bekannte Centronics-Schnittstelle wird im Kompatibilitätsmodus verwendet. (2) Technische Daten Datenübertragung : 8 Bit parallel Synchronisierung : externes nStrobe-Signal Handshake-Betrieb : nAck- und Busy-Signale 6.1.
6 .1 .3 Pinbelegung ung der Buchse Pin No.
• Sicherstellen, daß die Schnittstelle mit TTL-Pegel-Signalen arbeitet, die den im folgenden aufgeführten Merkmalen entsprechen, und daß die Signalumschaltzeit 0,5 µsec beträgt. • Wenn die Signale nAck und Busy bei der Datenübertragung nicht beachtet werden, kann dies zu Datenverlusten führen. • Das Schnittstellenkabel sollte so kurz wie möglich sein. 9. WARTUNG UND UND DIENST Bitte wenden Sie sich an die folgenden Stellen für weitergehende Informationen.
ANHANG 1. SEITENMODU ODUS Übersicht Dieser Drucker verfügt über zwei Druckmodi: Standardmodus und Seitenmodus. Im Standardmodus führt der Drucker den Druckbefehl bzw. den Befehl zum Papiervorschub sofort aus, wenn er einen entsprechenden Befehl erhält. Erhält der Drucker im Seitenmodus Druckbefehle bzw. Befehle zum Papiervorschub, legt er sie nur im vorgesehenen Druckbereich im Speicher ab.
Befehlswerte im Standardmodus und im Seitenmodus (1) Die mit Befehlen gesetzten Werte sind im Standard- und im Seitenmodus prinzipiell gleich. Allerdings werden Werte, die mit einem der unten aufgeführten Befehlen gesetzt werden, im Standard- und im Seitenmodus unterschiedlich behandelt und gespeichert. ESC SP, ESC 2, ESC 3, FS S (2) Die maximale Größe, in der ein Bitmap-Bild im Standardmodus gedruckt werden kann, beträgt 512 mal 512 Punkte.
Druckdaten um eine Zeile verschoben ist. Die nächste Position ist der Anfang dieser Zeile. Der Zeilenvorschub ist dabei durch Befehle wie ESC 2 oder ESC 3 festgelegt. (4) Standardmäßig beträgt ein Zeilenvorschub 1/6 Zoll, was 30 Punkten entspricht.
Ablagerichtung Grundlinie Punkt A Druckbereich [Ablagepositionen für Zeichendaten] Strichcode Geladenes Bitmap-Bild Zeichen mit doppelter Höhe Bitmap-Bild Grundlinie Punkt B Punkt B Punkt B Punkt B (HRI-Zeichen) [Ablagepositionen für Druckdaten]
Grundlinie Punkt A Geladenes Bitmap-Bild Grundlinie Punkt B Punkt B [Ablagepositionen für geladene Bitmap-Bilder]
Beispiel für den Einsatz des Seitenmodus Der folgende Abschnitt erläutert die besonderen Verwendungsmöglichkeiten des Seitenmodus. Zur Verwendung des Seitenmodus sendet der Host-Computer Befehle normalerweise in dieser Abfolge zum Drucker: (1) ESC L versetzt den Drucker in den Seitenmodus. (2) ESC W legt den Druckbereich fest. (3) ESC T legt die Druckrichtung fest. (4) Die Druckdaten werden gesendet. (5) FF weist den Drucker an, die Druckdaten in einem Durchgang auszugeben.
In Abbildung 1-1 erfolgt ein Zeilenvorschub zwischen "lesson" und "Test1", weil "lesson" und den darauf folgenden Leerschritt " " den Horizontalwert des Druckbereichs von 200 ( 400 Schritten überschreiten. Der Zeilenvorschubwert entspricht dem Wert, der durch einen Befehl wie beispielsweise ESC 3 festgelegt wurde. Es ist möglich, vor der Ausführung von FF soviele Druckbereiche wie gewünscht einzurichten. Wenn sich Druckbereiche überschneiden, werden die Daten dieser Druckbereiche mit AND verknüpft.
Papier Druckbereich Abbildung 1-2 Vor dem Versenden eines Befehls FF besteht die Möglichkeit, den folgenden Programmcode hinzuzufügen, um einen Teil der Daten zu löschen. 170 PRINT#1, chr$(&H1b); "W";chr$(72);chr$(0);chr$(120);chr$(0); 180 PRINT#1, chr$(36) ;chr$(0);chr$(48);chr$(0); 190 PRINT#1, chr$(&H18); 200 PRINT#1, chr$(&Hc); Als Ergebnis des zusätzlichen Programmcodes erfolgt der Druck wie in Abbildung 1-3 gezeigt, in welchem die Zeichenkette "GH1" gelöscht wurde.
ANHANG 2. BIDIREK REKTIONALE PARAL ARALLELSCHNITTSTELLE LLE 1. Übersicht Die Schnittstelle dieses Druckers ist ein Level-1-kompatibles Gerät gemäß IEEE-P1284. Sie unterstützt die unten in Abschnitt 1.1 beschriebenen Übertragungsmodi. 1 .1 Übertragung ungsmodi der Paralle llelschni hnitts ttstelle lle Die Parallelschnittstelle dieses Druckers verfügt über drei Übertragungsmodi, die unten beschrieben werden.
1 .2 Kommuni unikationsphasen Der Kommunikationsvorgang in den einzelnen Übertragungsmodi unterteilt sich in unterschiedliche Phasen. Zusätzlich gibt es eine Phase für die Modusinitialisierung und eine Phase für den Moduswechsel. Die Kommunikationssignale in den verschiedenen Modi und Phasen werden unterschiedlich benannt und haben unterschiedliche Funktionen.
2. 2 .1 Verhandlung Übersicht Normalerweise befindet sich der Drucker nach dem Einschalten im Kompatibilitätsmodus, welcher der Centronics-Kommunikationsphase entspricht. Wenn der Host-Computer in den Nibble- oder Byte-Modus umschalten will, sendet er eine Anfrage und handelt das Umschalten mit dem Drucker aus. Im folgenden wird die übliche Abfolge bei der Verhandlung dargestellt. 1) Der Host-Computer setzt das Active-Signal gemäß IEEE 1284 auf High.
10) Wenn der Drucker keine Übertragungsdaten hat, die für den Host-Computer bestimmt wären, wechselt der Host-Computer in die Phase "Host Busy Data Not Available" oder "Termination" und kehrt dann in den Kompatibilitätsmodus zurück. 11) Wenn der Drucker den vom Host-Computer angeforderten Übertragungsmodus nicht unterstützt, setzt er Xflag (Select) wie folgt: Wenn der Nibble-Modus angefordert wurde: High Wenn der Byte-Modus angefordert wurde: Low 2 .
Tabelle 2.4.1 Definitionen der Anforderungsbits im Übertragungsmodus gemäß IEEE 1284 Xflag Bitwerte (76543210) Hex.
2 .4 Datenübertragung ung vo vom Drucker zum Host-Computer 2.4.1 Nibb bblle-Modus Ni bb In diesem Modus werden Daten zwischen Drucker und Host-Computer entsprechend der unten beschriebenen Vorgehensweise übertragen. Die Schritte, beginnend mit 1), sind relevant, wenn aus der Verhandlungsphase in die Phase "Host Busy Data Available" gewechselt wurde. Wenn aus der Verhandlungsphase in die Phase "Host Busy Data Not Available" gewechselt wurde, sind die Schritte beginnend mit Schritt 9) relevant.
1. Setzen von HostBusy (nAutoFd) auf Low und Signalisierung, daß der Host-Computer bereit zum Empfang ist. 2. Verbleib in der Phase "Host Busy Data Available" 3. Durchführung der Terminierung und Rückkehr in den Kompatibilitätsmodus 11) Falls der Host-Computer die Phase "Host Busy Data Available" gewählt und HostBusy (nAutoFd) auf Low gesetzt hat, wiederholt der Drucker die Schritte von 2) an.
6) Der Drucker setzt PtrClk (nAck) auf High (Event 10) und beendet das Byte-Handshake (Event 11). 7) Der Host-Computer signalisiert, daß er die Daten erfolgreich empfangen hat. Dies geschieht, indem er HostClk (nStrobe) zunächst auf Low (Event 16) und dann auf High (Event 17) setzt. 8) Die Events 10 und 16 treten möglicherweise zugleich ein, ebenso die Events 7 und 17 (zum Beispiel, wenn HostBusy und HostClk zugleich verwendet werden).
angegebenen Länge empfängt, muß dies unterbrechungsfrei erfolgen, bis die gesamte Geräte-ID empfangen ist. Wird der Vorgang während der Durchführung beendet, verwirft der Drucker den Rest der Zeichenkette; wenn der Drucker ein weiteres Mal die Anforderung der Geräte-ID empfängt, sendet er die Geräte-ID beginnend mit dem ersten Zeichen der ID.
Terminierung sind die Daten nicht gesichert, und der Drucker schaltet den Datenbus innerhalb 1 µsec von Ausgang auf Eingang. In der Phase "Reverse Idle" kann der Drucker dem Host-Computer mitteilen, daß Daten zur Übertragung an den Host-Computer vorliegen. Diese Mitteilung kann gleichzeitig mit der Terminierung erfolgen, um den Host-Computer aus der Idle-Phase in den Kompatibilitätsmodus wechseln zu lassen.
ANHANG 3. ERMITTLUN TTLUNG UNG DE DES SENDESTATUS Da der von diesem Drucker gesendete Status einige unveränderliche Bits enthält, ist es so möglich, zu ermitteln, zu welchem Befehl der Status gehört. Wenn ASB (Automatic Status Back) verwendet wird, sollte allerdings das erste Byte des ASB geprüft werden, und dann sollten die drei nächsten aufeinanderfolgenden Bytes - mit Ausnahme von XOFF als ASB-Daten behandelt werden.