Page 1
CITIZEN User's Manual Model : iDP-3221 Line Thermal Printer Rev 1.00 Newly issued on 04. Mar.1999 Japan CBM Corporation Information Systems Div. Declaration of Conformity Manufacturer’s Name : : Japan CBM Corporation Manufacturer’s Address : CBM Bldg., 5-68-10, Nakano, Nakano-ku...
Conform to the following Standards : EN60950 : A3:1995 : EN55022 : 1994 Class A : EN61000-3-2 : 1995 : EN50082-1 : 1992 : IEC801-2 : 1991 4KV CD, 8KV AD : IEC801-3 : 1984 3V/m, 26MHz-1000MHz AM1KHz 80% ±0.5KV Signal Line ±1KV AC mains : IEC801-4 : 1988 Supplementary Information...
Page 3
not sure of the type of power available, consult your dealer or local power company. •Do not allow anything to rest on the power cord. Do not place this product where the cord will be walked •If an extension cord is used with this product, make sure that the total of the ampere ratings of the products plugged into the extension cord does not exceed the extension cord ampere rating.
Page 4
Abdeckungen, die mit “Do not remove” gekennzeichenet sind, könnte gefährliche spannungführende Stellen oder sonstige Gefahrenpunkte freilegen. Die Wartung solcher Stellen darf grundsätzlich nur von besonders ausgebildetem Fachpersonal vorgenommen werden. A. Wenn das Stromanschlußkabel oder der Stecker beschädigt oder durch-gescheuert ist. B.
Page 5
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.
Page 7
SAFETY PRECAUTIONS ----- BE SURE TO 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.
Page 8
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.
PRECAUTIONS FOR INSTALLATION • 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.
PRECAUTIONS 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. •...
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.
Page 12
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.
Line thermal printing for high speed and low noise. A long-life head with a simple mechanism to ensure high reliability. Built-in input buffer. Bar code printing (with special commands). 9. Built-in drawer kick-out interface. 10. Auto cutter fitted as standard. 11.
Page 17
(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.
BASIC SPECIFICATIONS Model Classifications The models are classified by the following designation method: iDP-3221 Model Name AC Adapter Characters Set 120: 120 V AC F: International 230: 230 V AC Interface R: Serial (RS-232C) P: Parallel (IEEE 1284 Compliant, Bi-directional communication)
2.3 Paper Specifications 2.3.1 Recommended Paper •Type : Thermal paper •Paper width : 80 + 0/- 1 mm •Paper thickness : 60∼75µm : φ83 mm or less •Roll diameter •Printing surface : Outside of the roll (Surface) •Recommended paper : TF50KS-E2C (Monochrome) made by NIPPON SEISHI or its equivalent : φ12 mm (Inner diameter),φ18 mm (Outer diameter) •Core CAUTION:...
OPERATION Connecting 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: •...
Connecting Interface Cable 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.
Inserting the Paper 4.4.1 Inserting the Paper Turn on the power. Put your hands in the concave parts on both sides of the printer cover, and open it until it comes to a stop. Cut the end of the paper roll at close to a right angle. Ensure that the paper roll is placed correct side up in the roller part in the upper cover.
Page 26
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. •...
4.4.2 Manually Inserting the Paper The manual insertion is effective when DIP switch DS1-2 is set to ON to disable the cover open detection. Turn on the power. Put your hands in the concave parts on both sides of the printer cover, and open it until it comes to a stop.
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. •...
Eliminating the Paper 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.
Page 30
Hook of the Chassis Guide Bush Platen Roller Unit Head Springs Guide Bush...
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.
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: •...
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 ERROR Lamp Reset Memory check error...
Page 34
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.
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"...
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. Bottom Cover...
DIP Switch Function Function Upon Shipment Cutter Enabled Disabled Cover open Disabled Enabled CR switching LF operation Ignored Kanji code selection S-JIS Input buffer 72 bytes 4 K bytes International character “ See Table 1. “ Print density See Table 2. “...
PARALLEL INTERFACE Bi-directional Parallel Interface (IEEE 1284) Compatibility Mode (Host → Printer Communication Using the Centronics Interface) 6.1.1 (1) Outline The familiar Centronics interface is used in the Compatibility mode. (2) Specifications Data transfer : 8-bit parallel Synchronization : External nStrobe signal Handshaking : nAck and Busy signals Signal level...
Input and Output Signals 6.3.1 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.
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...
6.3.3 Timing Chart (Compatibility Mode) Data Input and Print Timings 0.5 µs MIN 270 ns MAX 2.3 µs TYP 500 ms MIN (At power-on) 6.3.4 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."...
SERIAL INTERFACE Specifications (1) Synchronous system : Asynchronous (2) Baud rate : 150, 300, 600, 1,200, 2,400, 4,800, 9,600, 19,200 bps (Selected by the user) (3) 1-word configuration Start bit : 1 bit Data bits : 8 bits or 7 bits (Selected by the user) Parity bit : Odd, even, or no parity (Selected by the user) Stop bit...
7.3.1 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.
(2) Data bits + Parity bit The system samples the data bits and parity bit for the 1 bit worth of time from 1/2 start bit and assumes the then status as the data for the relevant bits. The bits are called Bit 0, Bit 1, ..., Parity bit, counting from the one closest to the start bit.
Page 47
Equivalent to MAX232 Mark=(-8V): At Busy Mark=(-8V): 1 Space=(+8V): At Busy Space=(+8V): 0...
DRAWER KICK-OUT CONNECTOR, POWER CONNECTOR Drawer Kick-Out Connector 8.1.1 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.
8.2 Power Connector This connector is to supply the power from the special AC adapter. Connector's Pin Configurations Function +24V SHELL 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: •...
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 CBM Bldg., 5-68-10, Nakano Suit 510 Nakano-ku, Tokyo 164-0001 Torrance, CA 90501, U.S.A...
10. PRINT CONTROL FUNCTIONS 10.1 Command List Command Function Mode Code Page Horizontal tab Printing and paper feed Printing Printing in Page mode and returning to Standard mode Canceling print data in Page mode DLE EOT Sending status in real time 16H 04H n DLE ENQ Real-time request to printer...
Page 52
Specifying/Canceling 90°-right-turned characters 29 ESC V 1BH 56H n 1BH 57H xH yH 30 ESC W Defining the print area in Page mode dxL dxH dyL dyH 31 ESC \ Specifying the relative position S,P* 1BH 5CH nL nH 32 ESC a Aligning the characters 1BH 61H n Selecting the paper near end sensor valid for a paper...
60 GS r Sending status 1DH 72H n Specifying the horizontal size (magnification) of bar 61 GS w 1DH 77H n code In the Mode column: S = Standard Mode, P = Page Mode * shows the command affected by GS P. 10.2 Command Details 10.2.1...
Page 54
[Sample Program] Describes a coding example in the Q-BASIC sample program. W This example is only for your reference and differs depending on the language used, version, and so on. For details, see the manual for the language used. [Print Result] Shows a print result obtained by running the above-mentioned program.
10.2.2 Command Details [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.
Page 56
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"...
Page 57
[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. •...
Page 58
DEL EOT n [Function] Sending status in real time [Code] <16>H<04>H<n> 1 ≤ n ≤ 4 [Range] [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:...
Page 59
(1) Printer status (when n = 1 is specified) Status Hex. Decimal 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 ...
Page 60
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." (4) Paper detector status (when n = 4 is specified) Status Hex. Decimal Unused Unused...
DLE ENQ n [Function] Real-time request to printer [Code] <10>H<05>H<n> 1 ≤≤ n ≤ 2 [Range] [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.
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.
Page 64
ESC ! n [Function] Collective specifying the printing mode [Code] <1B> H <21> H <n> 0 ≤ n ≤ 255 [Range] [Outline] Printing mode is assigned. Each "n" bit indicates the following: Value Function Character Font Font A Font B Undefined Undefined High-lighting...
Page 66
ESC $ n1 n2 [Function] Specifying the absolute positions [Code] <1B> H <24> H < n1> <n2> 0 ≤ n1 ≤ 255 [Range] 0 ≤ n2 ≤ 1 [Outline] The printing start position is specified in the number of dots (1/203 inch unit) from the beginning of line.
Page 67
[Outline] Specifying/canceling download characters. Further, only the lowest bit (n0) is valid for n. The lowest bit (n0) indicates the following. Function Canceling download character set Specifying download character set [Caution] Download characters and download bit images cannot be defined simultaneously. [Default] n = 0 [See Also]...
Page 68
ESC & s n m [a [p] s×a] m−n+1 [Function] Defining the download characters <1B> H <26> H <s> <n> <m> [<a> <p1> <p2> … <ps×a>] m-n+1 [Code] [Range] s = 3 32 ≤ n ≤ m ≤ 126 0 ≤ a ≤ 12 (Font A) 0 ≤...
Page 69
ESC * m n1 n2 [ d ] k [Function] Specifying the bit image mode [Code] <1B> H <2A> H <m> <n1> <n2> [<d>] k [Range] m= 0, 1, 32, 33 0 ≤ n1 ≤ 255 0 ≤ n2 ≤ 3 0 ≤...
Page 71
ESC − n [Function] Specifying/Canceling underline [Code] <1B> H <2D> H <n> 0 ≤ n ≤ 2 [Range] [Outline] Specifying/canceling an underline. • Types of underlines by "n" value are shown below: Type Canceling an underline Specifying an underline for 1-dot width Specifying an underline for 2-dots width [Caution] •...
Page 72
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. [Sample Program] [Print Results] LPRINT "AAAAA" ; CHR$ (&HA) ; 1/6-inch line feed LPRINT CHR$ (&H1B) ; "3" ; CHR$ (0) ; 0/156-inch line feed 50/156-inch line feed LPRINT "AAAAA"...
ESC 3 n [Function] Setting line feed rate of minimum pitch [Code] <1B> H <33> H <n> 0 ≤ n ≤ 255 [Range] Sets the line feed width per line to [n × basic calculation pitch] inches. [Outline] [Caution] The line feed width can be set separately for the Standard and Page modes. The basic calculation pitch is set by GS P.
Page 74
ESC = n [Function] Data input control [Code] <1B> H <3D> H <n> 0 ≤ n ≤ 255 [Range] [Outline] Selecting equipment in which data input from the host is effective. •Each bit of "n" indicates as follows: Value Equipment Printer Invalid Valid...
Page 75
ESC ? n [Function] Deleting downloaded characters [Code] <1B>H<3F>H<n> [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 !.
Page 76
ESC D [ n ] k NUL [Function] Setting horizontal tab position [Code] <1B> H <44> H [<n>] k <00> H 1 ≤ n ≤ 255 [Range] 0 ≤ k ≤ 32 [Outline] 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−...
ESC E n [Function] Specifying/Canceling highlighting [Code] <1B> H <45> H <n> 0 ≤ n ≤ 255 [Range] [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: Type Canceling highlighting Specifying highlighting...
ESC G n [Function] Specifying/Canceling double printing [Code] <1B> H <47> H <n> 0 ≤ n ≤ 255 [Range] [Outline] Specifying/canceling the double printing. •"n" is valid only for the lowest bit (n0). •Control by "n" is shown as follows. Type Canceling double printing Specifying double printing...
ESC J n [Function] Printing and feeding paper in minimum pitch [Code] <1B> H <4A> H <n> 0 ≤ n ≤ 255 [Range] [Outline] Prints the data held in the print buffer and feeds paper by n/360 inches. The beginning of the line is taken as the start position for the next print.
Page 80
ESC L [Function] Selecting Page mode [Code] <1B>H<4C>H<n> [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.
Page 81
ESC R n [Function] Selecting the international character set [Code] <1B> H <52> H <n> 0 ≤ n ≤ 10 [Range] [Outline] Depending on the value of "n," following character sets are specified. Character Set U.S.A. France Germany U.K. Denmark I Sweden Italy Spain...
Page 82
ESC S [Function] Selecting Standard mode [Code] <1B>H<53>H<n> [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.
ESC T n [Function] Selecting the character printing direction in Page mode [Code] <1B>H<54>H<n> 0 ≤ n ≤ 3, 48 ≤ n ≤ 51 [Range] [Outline] Selects the direction and start position of character printing in Page mode. Printing direction Start point 0,48 Left to right...
ESC V n [Function] Specifying/Canceling 90°-right-turned characters [Code] <1B> H <56> H <n> 0 ≤ n ≤ 1 [Range] [Outline] Specifying/canceling characters 90°-right- turned character. •"n" means the followings. Condition Canceling 90°-right- turned Characters Specifying 90°-right- turned Characters [Caution] No underlines are attached to 90°-right- turned characters . [Default] n = 0 [Sample Program]...
ESC W xL xH yL yH dxL dxH dyL dyH [Function] Defining the print area in Page mode [Code] <1B>H<57>H<xH><yH><dxL><dxH><dyL><dyH> 0 ≤ xL, xH, yL, yH, dxL, dxH, dyL, dyH ≤ 255, except for dxL = dxH = 0 or dyL = dyH = 0 [Range] [Outline] Defines the location and size of the print area.
Page 86
The printable area for this printer is approximately 72.249 mm (512/180 inches) horizontally and 117.263 mm (1662/360 inches) vertically. [Default] xL = xH = yL = yH = 0 dxL = 0, dxH = 2, dyL = 126, dyH = 6 [See Also] "Page Mode"...
Page 87
ESC \ nL nH [Function] Specifying the relative position [Code] <1B> H <5C> H <nL><nH> 0 ≤ nL ≤ 255 [Range] 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.
ESC a n [Function] Aligning the characters [Code] <1B> H <61> H <n> 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Range] [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: Position 0,48 Left end alignment...
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<n> 0 ≤ n ≤255 [Range] [Outline] This command selects at which paper near end sensor a paper end signal should be output. Each bit for "n"...
ESC c 5 n [Function] Enabling/Disabling the panel switches [Code] <1B> H <63> H <35> H <n> 0 ≤ n ≤ 255 [Range] [Outline] Selecting the FEED switch valid/invalid. •"n" is valid only in the lowest bit (n0). •"n" bit means the followings. Condition FEED switch valid.
Page 91
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.
Page 92
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.
Page 93
ESC p m n1 n2 [Function] Generating the specified pulses [Code] <1B>H<70>H<m><n1><n2> [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"...
Page 94
ESC t n [Function] Selecting the character code table [Code] <1B>H<74>H<n> 0 ≤ n ≤ 5, n = 255 [Range] [Outline] Selecting page "n" on the character code table: The character code table is selected depending on the value of "n." "n"...
Page 95
ESC { n [Function] Specifying/Canceling the inverted characters [Code] <1B>H<7B>H<n> 0 ≤ n ≤ 255 [Range] [Outline] Specifying/canceling inverted characters. •"n" is valid only for the lowest bit (n0). •Bit "n" (n0) means the followings. Condition Canceling inverted characters. Specifying inverted characters. [Caution] •Inverted printing means printing the line at 180°turned.
Page 96
GS ! n [Function] Specifying the character size [Code] <1D>H<21>H<n> 0 ≤ n ≤ 255, where: [Range] 1 ≤ vertical magnification ≤ 8, and 1 ≤ horizontal magnification ≤ 8 [Outline] Specifies the character size (vertical and horizontal magnification). Value Meaning Hex.
Page 97
•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. [Default] n = 0 [See Also]...
Page 98
GS $ nL nH [Function] Specifying the absolute vertical position of characters in Page mode [Code] <1D>H<24>H<nL><nH> 0 ≤ nL ≤ 255 [Range] 0 ≤ nH ≤ 255 [Outline] 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.
Page 101
GS / m [Function] Printing the downloaded bit image [Code] <1D>H<2F>H<m> 0 ≤ m ≤ 3 [Range] 48 ≤ m ≤ 51 [Outline] Prints downloaded bit image in a mode specified by "m." Modes can be selected by "m" are shown below. Dot Density in Dot Density in Mode Name...
Page 102
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.
GS B n [Function] Specifying/Canceling the black/white inverted printing [Code] <1D>H<42>H<n> 0 ≤ n ≤ 255 [Range] [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"...
Page 104
GS H n [Function] Selecting of printing position of HRI characters [Code] <1D>H<48>H<n> 0 ≤ n ≤ 3 [Range] 48 ≤ n ≤ 51 [Outline] Selecting printing position of HRI characters in printing bar codes. •"n" means the followings. Printing Position 0,48 No printing 1,49...
Page 105
GS I n [Function] Sending the printer ID [Code] <1D>H<49>H<n> 0 ≤ n ≤ 3 [Range] 49 ≤ n ≤ 51 [Outline] Sends the specified printer ID. "n" means the following. Type of printer ID Specification Value (hex) 1,49 Model ID iDP3221 2,50 Type ID...
GS L nL nH [Function] Setting the left margin [Code] <1D>H<4C>H<nL><nH> 0 ≤ nL ≤ 255 [Range] 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.
GS P x y [Function] Specifying the basic calculation pitch [Code] <1D>H<50>H<x><y> 0 ≤ x ≤ 255 [Range] 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.
Page 108
GS V m ..(1) GS V m n ... (2) [Function] Cutting the paper [Code] <1D>H<56>H<m> <1D>H<56>H<m><n> 0 ≤ m ≤ 1, 48 ≤ m ≤ 49 [Range] 65 ≤ m ≤ 66, 0 ≤ n ≤ 255 [Outline] Cuts the specified paper.
GS W nL nH [Function] Setting the print area width [Code] <1D>H<57>H<nL><nH> 0 ≤ nL ≤ 255 [Range] 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 Print Area Width Left Margin...
Page 110
(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 Extended toward The left margin is trimmed. the right Print Area Width (3) If a sufficient area cannot be provided as a result of step (2), the right spacing is...
Page 111
GS \ nL nH [Function] Specifying the relative vertical position of a character in Page mode [Code] <1D>H<5C>H<nL><nH> 0 ≤ nL ≤ 255 [Range] 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.
Page 112
GS ^ n1 n2 n3 [Function] Executing the macro [Code] <1D> H <5E> H <n1> <n2> <n3> 0 ≤ n1 ≤ 255 [Range] 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 Waiting time...
Page 113
GS a n [Function] Enabling/Disabling ASB (Automatic Status Back) [Code] <1D>H<61>H<n> 0 ≤ n ≤ 255 [Range] [Outline] This command selects the status item to be addressed by ASB (automatic status back). Status item addressed by ASB Hex. Decimal Status of pin 3 of drawer kick connector = disabled Status of pin 3 of drawer kick connector = enabled Online/offline status = disabled Online/offline status = enabled...
Page 114
(1) 1st byte (printer information) Status Hex. Decimal 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 (2) 2nd byte (error occurrence information)
Page 116
GS f n [Function] Selecting the font of HRI charactetrs [Code] <1D> H <66> H <n> [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. Font Font A (12×24) 0, 48...
Page 117
GS h n [Function] Specifying the height of the bar code [Code] <1D> H <68> H <n> 1 ≤ n ≤ 255 [Range] [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.
Page 118
GS k m [d1 ..dk] NUL GS k m n [d1 ..dn] [Function] Printing the bar code [Code] (1) <1D> H <6B> H <m> [d1..dk] NUL (2) <1D> H <6B> H <m><n> [d1..dn] (1) 0 ≤ m ≤ 6 [Range] The definitions of "k"...
Page 119
•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.
Page 120
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 12th-column numeral is sent from the host, the entire bar code will be printed as it is.
Page 121
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.
Page 122
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 "{{."...
Page 123
[Description Codes] UPC-A, UPC-E, JAN-13 (EAN), JAN-8 (EAN), CODE39, ITF, CODABAR, CODE93, CODE128 Type Print Sample Outline of Symbol Max. column Bar Code 1 12-column fixed-length bar code consisting − UPC-A of numerals only Bar Code 2 8-column fixed-length bar code consisting −...
Page 124
GS r n [Function] Sending status [Code] <1D>H<72>H<n> 1 ≤ n ≤ 2 [Range] 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:...
Page 125
• Drawer kick connector status (n = 2, 50) Status Hex. Decimal Status of pin 3 of drawer kick connector = "L" Status of pin 3 of drawer kick connector = "H" Undefined — — Undefined — — Undefined — —...
GS w n [Function] Specifying the horizontal size (magnification) of bar code [Code] <1D> H <77> H <n> 2 ≤ n ≤ 6 [Range] [Outline] Selecting bar code width. "n" denotes the number of dots in fine element width. [Default] n = 3 [Sample Program] LPRINT CHR$ (&H1D) ;...
APPENDIX 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.
Page 136
(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"...
Page 137
<Example: When printing a downloaded bitmap image covering six bytes vertically> [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. ESC W, xL, xH, yL, yH, dxL, dxH, dyL, dyH ESC Tn ←(Additional line feed width)
Page 138
Mapping Direction Baseline Point A [Mapping Positions for Character Data] Print Area Bar Code Downloaded Vertically Doubled Character Image [Mapping Position for Print Data] Bit Image Baseline (HRI Characters) Point B Point B Point B Point B...
Page 139
Mapping Direction Baseline Point A Downloaded Bit Image Baseline Point B Point B Print Area [Mapping Position for a Downloaded Bit Image]...
Page 140
Example of the Use 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.
Page 141
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.
Page 142
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.
APPENDIX 2. BI-DIRECTIONAL PARALLEL INTERFACE Overview The interface of the printer is a Level-1 compatible device according to IEEE-P1284. It supports the communication modes described in 1.1 below. 1.1. Parallel Interface Communication 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.
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.
Page 145
Request EPP Mode 01000000 High Request ECP Mode with RLE 00110000 High Request ECP Mode 00010000 High Reserve 00001000 High Request Device ID: Return Data Using Nibble Mode Rev Channel Transfer 00000100 High High Byte Mode Rev Channel Transfer 00000101 High High ECP Mode Transfer without RLE...
Data Communication from Printer to Host 2.4.1 Nibble Mode In this mode, data is transferred between the printer and the host through the procedure described below. The steps beginning from 1) are applicable when the Negotiation phase has switched to the Host Busy Data Available phase. If the Negotiation phase has switched to the Host Busy Data Not Available phase, the procedure starts at step 9).
4) The host sets HostBusy (nAutoFd) to High to indicate that it has latched data and received the signal in event 9. (Event 10) 5) The printer must set the four status lines as shown below. (Event 13) •PtrBusy (Busy): Returned to the status given in the Forward mode.
Page 148
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): •HostBusy (nAutoFd): High (Event 22) There are two methods of Termination: (1) Termination through a handshake between the host and the printer.
APPENDIX 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.
<<<German>>> <VORSICHT> 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.
Page 155
ZU BEACHTENDE SICHERHEITSMASSREGELN 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 Die Mißachtung dieser Vorsichtsmaßregel kann zu Körperverletzungen mit möglicher Todesfolge führen.
Page 156
WARNUNG • Beim Betrieb des G eräts sind die nachfolgenden V orsic htsma ßrege ln unbedingt zu beac hten. Eine Mißa chtung die ser H inweise ka nn zu Schä den, Funktionss törungen, Rauchentwicklung und Brandgefa hr durch Ü berhitzen und zu elektrischen Sc hläge n führen.
Page 157
VORSICHTSMASSREGELN FÜR DIE AUFSTELLUNG • 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.
Page 158
VORSICHTSMASSREGELN FÜR DIE HANDHABUNG 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. •...
Page 159
TÄGLICHE WARTUNG • 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.
Page 160
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.
BETRIEB Anschließen des Netzteils 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. •...
Anschließen des Schnittstellenkabels 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.
Page 163
Druckerabdeckung eingelegt ist. 5. Überprüfen, daß sich die Papierrolle zwischen den Papierfreigabehebeln befindet, das Papierrollenende bis an die Kante der Druckerabdeckung ziehen und die Druckerabdeckung schließen. Das Papier wird automatisch eingezogen und tritt am Papierauslauf des Druckers aus. 6. Überschüssiges Papier Papierabreißkante Papierauslauf...
Page 164
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.
4.4.2 Papier manuell 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.
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. •...
Page 167
VORSICHT: • Diese Arbeit nicht sofort nach dem Drucken ausführen, da sich der Druckkopf stark erhitzt. • Kopffedern nicht überdehnen. • Beim Entfernen von verbleibendem Papier nicht die Heizoberfläche des Kopfes mit bloßen Händen oder Metallgegenständen berühren. • Bei m Wie derei nsetz en de r Druckwal zenei nheit imme r bestätigen, daß si e kor rekt angebracht ist. •...
Initialisierung des Schneidemechanismus 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.
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.
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. ERROR- Fehler PAPER-Lämpchen Rückstellen Lämpchen Speicherprüfung-Fehler Kann nicht rückgestellt werden Schnelles Blinken Abdeckung geöffnet Druckerabdeckung schließen.
Page 172
< 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. Wenn die Abdeckung geschlossen ist, wird "Hexadecimal Dump" auf dem Papier ausgegeben, und dann werden die empfangenen Daten in hexadezimaler Form gedruckt, zusammen mit einem Ausdruck der korrespondierenden Zeichen.
DIP-SCHALTEREINSTELLUNG 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. Untere Abdeckung...
PARALLELSCHNITTSTELLE Bidirektionale Parallelschnittstelle (IEEE 1284) Kompatibilitätsmodus (Übertragung Host-Computer → Drucker über die Centronics-Schnittstelle) 6.1.1 (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 Signalpegel : Alle Signale sind TTL-kompatibel.
Datenverlusten führen. • Das Schnittstellenkabel sollte so kurz wie möglich sein. WARTUNG UND DIENST Bitte wenden Sie sich an die folgenden Stellen für weitergehende Informationen. Nordamerika Andere Gebiete CBM America Corporation Japan CBM Corporation Service Center Information Systems Division 365 Van Ness Way CBM Bldg., 5-68-10, Nakano Suite 510 Nakano-ku, Tokyo 164-0001...
ANHANG 1. SEITENMODUS Ü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.
Page 180
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.
Page 181
GS/1 ←(Zeilenvorschubwert wieder auf 1/6 Zoll setzen) ESC2 Hinweis. Da der Standardwert für die Schrittweite in horizontaler Richtung 1/180 und in vertikaler 1/360 beträgt, können, abhängig von der Druckrichtung, Fehler auftreten, wie beispielsweise bei der Festlegung der Position. Es treten keine Fehler auf, wenn der Wert für die Schrittweite in vertikaler Richtung mittels des GSP-Befehls auf 1/180 gesetzt ist.
Page 182
Ablagerichtung Grundlinie Punkt A [Ablagepositionen für Zeichendaten] Druckbereich Strichcode Bitmap-Bild Geladenes Zeichen mit doppelter Höhe Bitmap-Bild [Ablagepositionen für Druckdaten] Grundlinie (HRI-Zeichen) Punkt B Punkt B Punkt B Punkt B...
Page 183
Grundlinie Punkt A Geladenes Bitmap-Bild Grundlinie Punkt B Punkt B [Ablagepositionen für geladene Bitmap-Bilder]...
Page 184
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.
Page 185
110 PRINT#1, chr$(&H1b); "W";chr$(0);chr$(0);chr$(0);chr$(0); 120 PRINT#1, chr$(200) ;chr$(0);chr$(144);chr$(1); 130 PRINT#1, chr$(&H1b); "T";chr$(0); 140 PRINT#1, "Page mode lesson 2 CAN command" 150 PRINT#1, chr$(&HA); 160 PRINT#1, "ABCDEFGHIJKLMNOPQRST1234567890" 170 PRINT#1, chr$(&Hc); Als erstes wird mit dem Befehl ESC L in den Seitenmodus (Zeile 100) gewechselt. Dann werden zur Reservierung eines Druckbereichs mit ESC W acht Argumente gesendet (n1 bis n8).
Page 186
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"...
ANHANG 2. BIDIREKTIONALE PARALLELSCHNITTSTELLE Ü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. Übertragungsmodi der Parallelschnittstelle Die Parallelschnittstelle dieses Druckers verfügt über drei Übertragungsmodi, die unten beschrieben werden. Wenn der Drucker eingeschaltet oder zurückgesetzt wird, wird er standardmäßig in den Kompatibilitätsmodus geschaltet.
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.
Page 189
zurückgewechselt ist. 3) In die Verhandlungsphase kann vom Busy- oder Error-Status des Kompatibilitätsmodus aus eingetreten werden. In diesem Fall kehrt der Drucker nicht in den Busy- oder Error-Status zurück, in dem er sich vor den Verhandlungen befand, sondern in denjenigen Druckerstatus, in dem er sich nach der Terminierung befindet. 4) Wenn der Host-Computer einen Übertragungsmodus angefordert hat, der vom Drucker nicht unterstützt wird, muß...
Page 190
Tabelle 2.4.1 Definitionen der Anforderungsbits im Übertragungsmodus gemäß IEEE 1284 Xflag Bitwerte Definition Hex. Von diesem (76543210) Wenn unterstützt Drucker Anforderung einer Dehnbarkeitsverbindung 10000000 High Anforderung von EPP-Modus 01000000 High Anforderung von ECP-Modus mit RLE 00110000 High Anforderung von ECP-Modus 00010000 High Reserve...
Datenübertragung vom Drucker zum Host-Computer Nibble-Modus 2.4.1 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"...
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 9) relevant. 1) Nach Abschluß der Verhandlungen zum Wechseln in den Byte-Modus signalisiert der Host-Computer, daß er bereit ist, Daten vom Drucker zu empfangen.
Mal die Anforderung der Geräte-ID empfängt, sendet er die Geräte-ID beginnend mit dem ersten Zeichen der ID. Nachdem der Host-Computer die ID mit der durch die ersten zwei Bytes festgelegten Länge empfangen hat, muß er eine Terminierung durchführen, selbst wenn dem Drucker Daten vorliegen, die gesendet werden sollen (Data Available).
ANHANG 3. ERMITTLUNG 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.
Need help?
Do you have a question about the iDP-3221 and is the answer not in the manual?
Questions and answers