mMPersonal Computer Color Printer

mMPersonal Computer Color Printer

-

---

-

-

-

---

--_.­

-

-----

Personal Computer

Hardware Reference

Library

mM

Personal Computer

Color Printer

6361478

ii

Contents

Description ................................... 1

Major Subsystems .......................... 3

6803 Microprocessor ....................... 6

Programming Considerations ..................... 9

Printer Control Codes ...................... 9

Printer Control Code Quick Reference . . . . . . . . .. 29

Printing in Color ........................... 36

Color Printer Character Set 1 ................. 37

Color Printer Character Set 2 ................. 39

All Printable Characters ..................... 41

DIP-Switch Settings ........................ 43

Interface ..................................... 45

Specifications ................................. 47

Connector Pin Assignments .................. 50

Logic Diagrams ................................ 53 iii

iv

Description

The IBM Personal Computer Color Printer is a tabletop, wire matrix, color printer.

It attaches to the system unit's Printer

Adapter or combination Monochrome Display and Printer

Adapter through a standard printer cable, which has a 25-pin connector on the system unit end and a 36-pin connector on the printer end.

When the Color Printer is ready to accept data, the system unit sends the data and control codes through the printer cable to the printer's input/output (I/O) board. The I/O board directs the data and control codes to a buffer. The 6803 Microprocessor on the printer's controller circuit board monitors the buffer constantly and decides when and how to print the information based on the control codes.

The 6803 Microprocessor takes a character from the buffer and compares the character against a table to determine what dots to print.

If the character is a control character, the microprocessor compares the character against a control-character table so that it r--.... knows what action to take.

When the 6803 Microprocessor reads a line-ending character, it determines whether it would be faster to move to the right margin and print backwards or to the left margin to begin printing. This ability, called logic seeking, allows faster printer output.

Color Printer 1

The following block diagram shows the operation of the

IBM

Personal Computer Color Printer.

Mode

Switches and Sensors

Ribbon

Feed

Circuit

Parallel

Data

Q

Data

Flow

Control

t -

1/0

Interface

Buffer and

ROS

6803

Microprocessor

Carriage

Drive

Circuit

......

Paper

Feed

~

Circuit

Address

Latch

Wire

~

Drive

Circuit

Color Printer Block Diagram

Function

Select

Switch

Printer

Status

Indicators

2 Color Printer

Major Subsystems

The three major electromechanical subsystems of the printer are the I/O subsystem, controller subsystem, and print subsystem.

Each subsystem is controlled by the 6803 Microprocessor mounted on the controller circuit board. The power-supply

/""'""'\ regulator circuits are an integrated portion of the controller card.

The

110

Subsystem

The I/O circuit board contains the circuits needed to direct the parallel data from the computer and interface cable to the printer's controller circuit board for processing. The I/O board also contains the circuits for directing operational status signals between the printer and the system unit.

Controller Subsystem

1"'""""'\

The controller subsystem consists of a 6803 Microprocessor and its peripheral interface and memory devices, which are mounted on the controller circuit board. The controller line buffer accepts data from the computer through the printer's I/O board. The controller decodes the data, then sends the data to the print subsystem for printing.

The controller also controls operation of the paper and ribbon feed. These circuits are activated by programming or by a function-select switch. Power regulation and distribution within the printer are also controlled by the controller board.

Color Printer 3

The power regulator circuit, which is part of the controller circuit board, receives 5, 10, and 40 volts ac from the power supply transformer. It rectifies and distributes the different voltages to the various circuits and motors in the printer.

Print Subsystem

The print subsystem prints the data received from the controller.

The subsystem consists of the following:

• Print head and carriage assembly

• Carriage drive motor and belt

• Left-margin sensor

• Paper feed assembly

• Ribbon drive assembly

The print head contains nine print wires. The print wires are staggered in two vertical columns with five wires in one column and four wires in the other. This arrangement is designed to allow overlapping of print dots. Selectively driving the wires against the ribbon and paper as the print head is moved across the platen, results in the printing of high-quality characters. r"\

The print head is mounted on a carriage which is driven bidirectionally by the carriage drive stepper motor and drive belt.

The left-margin sensor is used to signal the controller that the print head is at the home position.

4

Color

Printer

The paper feed assembly is made up of a tractor assembly, paper stepper motor, and a paper-out sensor. It feeds the forms into position and holds the paper stationary while printing.

Continuous forms are fed by pin belts in the tractor assembly, and single sheets of paper are fed by pressure rolls in the paper path.

The pin belts and pressure rolls are driven by a drive shaft, drive

~ belt, and the paper stepper motor.

The ribbon feed assembly drives the ribbon between the paper and the print head at a constant speed. It consists of a ribbon cartridge, ribbon drive motor, and a ribbon feed path made up of two rollers, two fixed posts, and a print-head ribbon guide. The ribbon cartridge contains a continuous loop of pre-inked 19-mm

(3/4-in.) wide ribbon. The ribbon is pulled from the cartridge, around two guide posts, through the print-head ribbon guide, around two more ribbon posts, and "stuffed" back into the cartridge by two "stuffing" wheels.

In order to print different colors, the ribbon is shifted up and down by the color control mechanism, which is made up of a motor and cam assembly. The cam pivots the complete ribbon feed assembly to four different levels that match the four color bands on the ribbon.

Color Printer 5

6803 Microprocessor

The 6803 Microprocessor and its peripheral devices, which are mounted on the controller circuit board, direct all operations of the printer. This 8-bit single-chip microprocessor unit (MPU) functions as a monolithic MPU requiring one +5-Vdc power supply and is TTL-compatible. On-chip resources include parallel ~

1/

0 and a three function programmable timer. Some of the other features include:

• Enhanced 6800 MPU instruction set

• 8 x 8 multiply instruction

• Upward-source and object-code compatibility with the 6800

MPU

• Expanded operation to 64K-byte address space

• 29 parallel I/O and 2-handshake control lines

• Internal clock generator with divide-by-4 output

The program-controlled operating mode determines the configuration of 18 of the 40 MPU pins available, location

(internal or external) of interrupt vectors, and type of external bus. The configuration of the remaining 22 pins is net dependent on the operating mode.

Twenty nine pins are organized as three 8-bit ports and one 5-bit port. Each port consists of at least a data register and a write-only data-direction register. The data-direction register is used to define whether corresponding bits in the data register are configured as an input (clear) or output (set).

6 Color Printer

When the port is used as a "data port" or "I/O port," it is controlled by the port data direction register and the programmer has direct access to the port pins using the port Data Register.

Port pins are labeled as Pij, where "i" identifies one of four ports and "j" indicates the particular bit. The operating mode determines the configuration of Port 3, Port 4, SCI, SC2, and the

The mode used by the 6803 MPU is called the Expanded

Multiplexed mode. Expanded Multiplexed mode refers to the type of bus it supports. In this mode, Port 3 functions as a time-multiplexed address/data bus with address valid on the negative edge of Address Strobe (AS), and data valid while "E"

(which is a timing signal), is high. Port 4 provides address lines

A8 to AIS.

Color Printer 7

8 Color Printer

Programming Considerations

Printer Control Codes

The following pages list, in alphabetic order, the printer control codes with a description of each. Some knowledge of BASIC programming is necessary to insert printer control codes in your program. An example of each code in BASIC is at the end of each description. The "Format" information is given where more information is needed for programming considerations.

Note: All combinations of printing qualities, character spacings, and types are valid. For example, you can print in emphasized print, double-width, and underline all at the same time.

The printer can accept parameters for the ESC commands in either of two formats: r---... •

Binary

• ASCII Character

Although the default format is binary (as used in all examples in the "Printer Control Codes" section), the command, ESC @;n;, can be used to select either format.

This command affects only certain numeric parameters which follow ESC control codes. Parameters not affected by this command are those which select On or Off

(1 or 0) because the

Color Printer operates on only the least significant bit of n in these commands. Therefore, any odd-numbered ASCII decimal value gives the same result as n= 1 and any even-numbered ASCII decimal value gives the same result as n=O.

Color Printer 9

Parameters affected by this command are given in the following three examples:

1. A parameter defining numeric values.

In ASCII format these parameters must be stated as decimal characters, with each numeric field terminated with a non-numeric character (semicolon recommended).

For example, to select the near letter quality type font,

(ESC I3) the command is: LPRINT CHR$(27);

CHR$(73); "3;";

In binary format the command is: LPRINT CHR$(27);

CHR$(73); CHR$(3);

2. A parameter defining lists of values ending in NUL.

In ASCII format these parameters must be stated as decimal numeric characters, with each numeric field terminated with a non-numeric character (semicolon recommended) , with the final NUL being a second semicolon. For example, to set tabs at columns 10 and 40,

(ESC D) the command is: LPRINT CHR$(27);

CHR$(68);" 10;40;;";

In binary format the command is: LPRINT CHR$(27);

CHR$(68);CHR$(10);CHR$(40);CHR$(0);

3. A two byte parameter (n1 ;n2;) defining the amount of data to be printed after the command.

In ASCII format this parameter must be sent as a single decimal numeric value (0 to XXXX) terminated with a non-numeric character (semicolon recommended). For example, to print twenty eight bytes in bit-image graphics,

(ESC K) the command is: LPRINT CHR$(27);

CHR$(75);"28;":FOR X

=

1 TO 28: LPRINT

CHR$(255);: NEXT X

In binary format the command is: LPRINT CHR$(27);

CHR$(75);CHR$(28);CHR$(0);: FOR X

=

1 TO 28:

LPRINT CHR$(255);: NEXT X

~

~

10 Color Printer

Printer

Code

BEL

BS

CAN

CR

DC1

DC2

Printer Function

Audible Alarm

Sounds the printer buzzer for 1 second or less. The buzzer may be turned off with DIP Switch 8.

Example:

LPRINT CHR$(7);

Backspace

Moves the print head one character width to the left. The character width is determined by the selected character spacing.

Example:

LPRINT CHR$(8);

Clear Data

Clears the printer memory of all data waiting to be printed following the last received line ending code. If the initialize function is set On by ESC? (Set Initialize

Signal Function). all control codes, except SO (Double-Width printing). remain in effect. If the initialize function is set Off by ESC 7, all control codes are cleared and the printer is set to the values set by the DIP switches. (See

"ESC 7" for more details about the initialize function.)

Example:

LPRINT CHR$(24);

Carriage Return

Causes the printer to print the data that follows CR beginning at the left margin. No line-feed operation takes place unless DIP Switch 4 is On or ESC

5

(automatic line-feed) has been sent.

Note: IBM Personal Computer BASIC (and many other programs) automatically sends LF (line feed) with CR.

If you do not want LF sent after CR, use ASCII decimal value 141 from Character Set 1 instead of ASCII decimal value 13.

Example:

LPRINT CHR$(13);

Select Printer

Sets the printer to accept data from the system unit.

Example:

LPRINT CHR$(17);

10 Characters per Inch Print

Selects character spacing of 10 characters per inch.

Example:

LPRINT CHR$(18);

Color Printer

11

Printer

Code

DC3

DC4

ESC

ESCA

ESCa

ESC B

Printer Function

Deselect Printer

Sets the Color Printer so it will not accept data from the system unit. A printer must be initialized by the system or control panel buttons or selected using DC1 (Select Printer) to accept data.

Example:

LPRINT CHR$(19);

Cancel Double-Width Printing by Line

Ends double-width printing by line which was started by SO.

Example:

LPRINT CHR$(20);

Command Prefix

Sets the printer to accept the next data sent as a printer command. (See the following list.)

Example:

LPRINT CHR$(27);

Store Text Line Spacing

Format: ESC A;n;

ESC A stores a line-feed value of n/72 inch. ESC 2

(Start Text Line Spacing) must then be sent before the line spacing will change. For example, to store a line-feed value of 24/72 inch, the code is ESC A 24. However, until

ESC 2 is sent, any text following the ESC A 24 will space at the previously set line-feed increment. The text following the ESC 2 will be printed with a new line-feed increment of

24/72 inch. Any increment between 1/72 and

85/72 may be used.

Example:

LPRINT CHR$(27);CHR$(65);CHR$(n);

Select Automatic Ribbon-Band Shift

Causes the ribbon to shift one color band at the end of each page. This command is used with an all-black ribbon to extend the ribbon life.

Example:

LPRINT CHR$(27);CHR$(97);

Set Vertical Tabs

Format: ESC B;n, ;n2; ... n64;NUL;

Sets the vertical tab-stop positions. The power-on default is without vertical tab stops set. n, through n64 represent tab-stop positions by line number.

The topmost line of the page is line O. Tab-stop positions must be received in ascending numeric order and cannot exceed the set page length. Up to 64 positions are recognized by the Color Printer. The positions do not take effect until

NUL is received.

12 Color Printer

Printer

Code

ESCB.

Cont.

ESCb

ESCC

ESCCO

Printer Function

Once vertical tab stops are set, they remain in effect until new ones are specified or all tab stops are set to the power-on defaults by ESC R (Set All Tabs to Power-On

Defaults). If no vertical tab stops are set, the Vertical

Tab (VT) command behaves as a Line Feed (LF) command.

ESC B followed only by NUL cancels all vertical tab stops.

The form length must be set by the ESC C command (Set Page

Length in Lines) prior to setting vertical tab stops.

Example:

LPRINT CHR$(27);CHR$(66);CHR$(n1);

CHR$(n2); .. ·CHR$(n64);CHR$(O);

Select Band 4

Selects ribbon band 4 (black). The printer will continue to print with band 4 until a command to change the ribbon band is received.

Example:

LPRINT CHR$(27);CHR$(98);

Set Page Length in Lines

Format: ESC C;n;

Sets the page length in lines. The number of lines n is converted to inches using the current line spacing. ESC C must be followed by a value, n, that specifies the desired length of page in lines. Maximum page length for this printer is 127 lines. This command also sets the current position of the paper as the top-of-form.

Note: Automatic perforation-skip (ESC N) and vertical tabs (ESC B) may need to be reset after changing the page length.

Example:

LPRINT CHR$(27);CHR$(67);CHR$(n);

Set Page Length in Inches

Format: ESC C;O;n;

Sets the page length in inches. This command requires a value of n between 1 and 22. The power-on default is set with DIP Switch 6. This command also sets the current position of the paper as the top-of-form.

Note: Automatic perforation-skip (ESC N) and vertical tabs (ESC B) may need to be reset after changing the page length.

Example:

LPRINT CHR$(27);CHR$(67);CHR$(O); CHR$(n);

Color Printer 13

Printer

Code

ESCc

ESCD

ESCd

ESC E

Printer Function

Select Band 3

Selects ribbon band 3. The actual color printed will depend on the ribbon being used. The printer will continue to print with band 3 until a command to change the ribbon band is received.

Example:

LPRINT CHR$(27);CHR$(99);

Set Horizontal Tabs

Format: ESC D;n, ;n2; ... n28;NUL;

Sets the horizontal tab-stop positions represented by n, through n28' The power-on default is a tab stop set at column 8 and every eighth column thereafter. The printer recognizes up to 28 horizontal tab stops. They must be in ascending numeric order and followed by NUL. Tab stops can be set between 1 and the maximum column count for the character spacing in effect. ESC 0 immediately followed by NUL will clear all horizontal tabs.

ESC R (Set All Tabs to Power-On Defaults) may be used to set horizontal tabs to the power-on default.

Note: Setting a tab at column 0 clears all tabs and the following tabs will be considered data.

Example:

LPRI NT CH R$(27) ;CH R$(68) ;CH R$(n,);

CHR$(n2);···CHR$(n28);CHR$(0);

Variable Forward Space

Format: ESC d;n, ;n2;

Places the next printed character n, ;n2/120 inch to the right of the last dot of the current character. The position may be beyond the right margin setting. If the position is beyond the physical end of the line. the next character will be printed at the left end of the printer. n, and n2 are binary numbers that specify the number of 1 /120-inch increments the next printed character is to be placed to the right. n, represents values From 0 to 255. and n2 represents values from 0 to 255 times 256.

Example:

LPRINT CHR$(27);CHR$(100);CHR$(n,);CHR$(n2);

Emphasized Printing

Changes the printer to emphasized printing. Characters are double struck with the smallest possible horizontal offset between strikes.

Example:

LPRINT CHR$(27);CHR$(69);

14

Color Printer

Printer

Code

ESCe

ESC F

ESCG

ESC H

ESC I

ESCJ

Printer Function

Variable Backspace

Format: ESC e;n1 ;n2;

Places the next printed character n1 ;n2/120 inch to the left of the last dot of the current character. The position may be beyond the left margin setting. If the specified position is beyond the physical left end of the printer, the next character will be printed at the left end of the printer. n1 and n2 are binary numbers that specify the number of 1 /120-inch increments the next printed character is to be placed to the left. n1 represents values from 0 to 255, and n2 represents values from 0 to 255 times 256.

Example:

LPRINT CHR$(27);CHR$(101);CHR$(nl);CHR$(n2);

Cancel Emphasized Printing

Ends emphasized printing started by ESC E.

Example:

LPRINT CHR$(27);CHR$(70);

Double-Strike Printing

Sets the printer to double-strike printing. Characters are struck twice with no horizontal offset between strikes.

Example:

LPRINT CHR$(27);CHR$(71);

Cancel Double-Strike Printing

Ends double-strike printing started by ESC G.

Example:

LPRINT CHR$(27);CHR$(72);

Change Printing Quality

Format ESC I;n;

Selects the printing quality. When n is 1, data processing quality is selected; when n is 2, text quality is selected; when n is 3, letter quality is selected. Each printing quality selection produces a different spacing of the dots that make up a character. Each character box is: with data-processing quality selected, 8 by 9 dots; with text quality selected, 24 by 9 dots; and with near-letter quality selected, 36 by 18 dots.

Example:

LPRINT CHR$(27);CHR$(73);CHR$(n);

Variable Line Space

Format: ESC J;n;

Advances the paper in increments of n/ 144 inch. The value of n must be between 1 and 255. Line spacing of 14/144 is recommended for bit-image graphics using eight bits. ESC J is canceled after the line space takes place. The value of n is not stored.

Example:

LPRINT CHR$(27);CHR$(74);CHR$(n);

Color Printer 15

Printer

Code

ESC K

Printer Function

1108

Bit-Image Graphics

Format: ESC K;n1 ;n2;v1 ;v2; ... v11OS;

Sets dot spacing to 84 by 84 dots per inch in 1:1 aspect ratio, to 70 by 84 dots per inch in 5:6 aspect ratio (see

··ESC n (Set Aspect Ratio)"). All bit-image graphics is printed from left to right. If the graphics data exceeds the space remaining on the line, the data to be printed beyond the end of the line is printed at the left margin on the next line. n1 and n2 are binary numbers that specify the number of bit-image data bytes to be transferred. n1 represents values from 0 to 255, and n2 represents values from 0 to 4 times 256. The total number of bit-image data bytes is equal to n1

+ n2 x 256 and cannot exceed 1108 (the total number of dot positions in a 13.2 inch line).

Bit-image graphics is printed using eight of the nine print-head wires (the bottom wire is not used). v1 through v110S are bit-image data bytes, each of which represents a set of 8 dots in a vertical line. The horizontal position of these 8 dots is determined by the position of the bit-image data byte within the v1 through v110S series. v1 is printed at the starting position followed in order from left to right by v2 through v110S. Each bit of a bit-image data byte represents a vertical dot position at the horizontal position represented by that bit-image data byte. The lowest value, or least significant bit (Bit 0). represents the bottom dot position, and the highest value, or most significant bit

(Bit

7). represents the top dot position.

16 Color Printer

Printer

Code

ESC K

Cont.

ESC L

ESCM

Printer Function

In the following table the left-hand column of (o)s represents dot positions within a vertical line. The right-hand column shows the corresponding bit number within a bit-image data byte. (The bits are numbered

7 through 0, from left to right.)

Dot Position

Top

Bottom

0

0

0

0

0

0

0

0

-

-

-

-

-

Bit

Number

7

6

5

-

4

-

3

-

2

1

0

For example: if vl is binary 10000000 (decimal 128), only the top dot prints in that horizontal position; if v, is binary

00000001 (decimal 01), only the bottom dot prints; and if vl is binary 11111111 (decimal 255)' all eight dots print.

Example:

LPRINT CHR$(27);CHR$(75);CHR$(nl);

CHR$(n2);CHR$(Vl);CHR$(V2); ... CHR$(Vll0a);

2216 Bit-Image Graphics (half-speed)

Format: ESC L;nl ;n2;v, ;v2; ... v2216;

Sets dot spacing to 168 by 84 dots per inch in 1:1 aspect ratio, to 140 by 84 dots per inch in 5:6 aspect ratio (see

"ESC n (Set Aspect Ratio)"). 2216 bit-image graphics

(half-speed) prints at one-half the speed of 2216 bit-image graphics (ESC Y) for improved print quality and the ability to print consecutive dot positions. nl, n2, vl' and v2 through v2216 represent the same values as in 1108 bit-image graphics (ESC K). Refer to the description of ESC

K for a complete description of these values. The total number of bit-image data bytes cannot exceed 2216 (the total number of dot positions in a 13.2-inch line).

Example:

LPRINT CHR$(27);CHR$(76);CHR$(nl);

CHR$(n2);CHR$(Vl);CHR$(V2); ... CHR$(V2216);

Automatic Line Justification

Format: ESC M;n;

Justifies the right margin. Automatic justification is started when n is 1, and stopped when n is O. The printer adjusts the spaces between words in the text so that the last character of the words at the end of the lines all print in the last position of the line. Thus both the left and right margins appear as straight lines. This gives a block appearance to the printed text. Automatic line justification can be used with any of the character spacings.

Color Printer 17

Printer

Code

ESC M

Cont.

ESCm

ESC N

Printer Function

Notes:

1. Lines are not right justified if the text is less than 75 % of the specified line length. If a line fails the greater than 75

% rule, the remaining portion of the text is tested.

2. If the justification results in a word wrap condition, the remaining text is treated as separate lines and follows the above rule.

3. Control codes in the datastream cause the text before the control code to be printed based on the justification rules. The remainder of the text is justified between the current print position and the right margin.

4. If the last line of a paragraph, or any line of data, is not to be justified, use the control code sequence, backspace (BS) and carriage return (CR).

5. The Color Printer operates only on the least significant bit of n. Therefore, any odd-numbered

ASCII decimal value gives the same result as n=1, and any even-numbered ASCII decimal value gives the same result as n=O.

Example:

LPRINT CHR$(27);CHR$(77);CHR$(n);

Select Band 2

Selects ribbon band 2. The actual color printed depends on the ribbon being used. The printer will continue to print with band 2 until a command to change the ribbon band is received by the printer.

Example:

LPRINT CHR$(27);CHR$(109);

Set Automatic Perforation-Skip

Format: ESC N ;n;

Specifies the number of lines to be skipped at the end of each page. This causes the printer to automatically skip over the perforation between pages of continuous forms. The number of lines n, is converted to inches using the line-spacing in effect. The value of n must be between 1 and

127. ESC N must be reset anytime the page length is changed by ESC C (Set Page Length in Lines) or by ESC C 0 (Set Page

Length in Inches).

Example:

LPRINT CHR$(27);CHR$(78);CHR$(n);

18 Color Printer

Printer

Code

ESC n

ESCO

ESC P

Printer Function

Set Aspect Ratio

Format: ESC n;x;

Sets the printer to a 5:6 or 1:1 aspect ratio. When x is 1, the aspect ratio is set to 1 :1 ; when x is 0, the aspect ratio is set to 5:6. With the 5:6 aspect ratio selected, graphics are printed to match the shape that appears on the display. The

1:1 aspect ratio is recommended for bit-image graphics to improve quality and simplify bit-position calculations. The power-on default is the 5:6 aspect ratio.

Note: The Color Printer operates only on the least significant bit of n. Therefore. any odd-numbered

ASCII decimal value gives the same result as n=1, and any even-numbered ASCII decimal value gives the same result as n=O.

Example:

LPRINT CHR$(27);CHR$(110);CHR$(x);

Cancel Automatic Perforation-Skip

Cancels the automatic perforation-skip function.

Example:

LPRI NT CH R$(27) ;CH R$(79);

Proportional Spacing

Format: ESC P;n;

Starts proportional spacing when n is 1. Stops proportional spacing when n is O. Proportional spacing gives each different character a different amount of space on the line.

That is, narrow characters. such as i. are given a small amount of space on the line relative to a broader character. such as M. This is similar to the way people write characters and gives a more balanced look to the text. Many books are printed in proportional spacing, as is this one.

The distance of a forward space is 10 units; the distance of a backspace is determined by the last printed character or space. if the printing of the character or the space was the last carriage movement.

Normal processing of all control codes continues during proportional spacing.

Note: The Color Printer operates only on the least significant bit of n. Therefore, any odd-numbered

ASCII decimal value gives the same result as n=1, and any even-numbered ASCII decimal value gives the same result as n=O.

Example:

LPRINT CHR$(27);CHR$(80);CHR$(n);

Color Printer 19

Printer

Code

ESCQ2

ESC R

ESCS

ESCSI

ESC SO

Printer Function

Deselect Specific Printer

Format: ESC Q;2;

Sets only the Color Printer so it will not accept data from the system unit. The printer must be initialized by the system or selected using DC1 (Select Printer) to accept data.

Example:

LPRINT CHR$(27);CHR$(81);CHR$(2);

Set All Tabs to Power-On Defaults

Sets all tabs, horizontal and vertical, to the power-on defaults.

Example:

LPRINT CHR$(27);CHR$(82);

Subscript or Superscript Printing

Format: ESC S;n;

ESC S followed by 1 changes the printer to subscript printing. ESC S followed by 0 changes the printer to superscript printing. ESC S is canceled by ESC T.

Notes:

1. If line feed (LF) codes are issued while in subscript or superscript printing, the line feed does not change the subscript or superscript setting. For example, if in superscript printing, the line feed causes the paper to advance to the superscript position of the next line.

2. The Color Printer operates only on the least significant bit of n. Therefore, any odd-numbered

ASCII decimal value gives the same result as n=1, and any even-numbered ASCII decimal value gives the same result as n=O.

Example:

LPRINT CHR$(27);CHR$(83);CHR$(n);

Compressed Printing

Alternate command for SI.

Example:

LPRINT CHR$(27);CHR$(15);

Double-Width Printing by Line

Alternate command for SO.

Example:

LPRINT CHR$(27);CHR$(14);

20 Color Printer

Printer

Code

ESCT

ESCU

ESCW

Printer Function

Cancel Subscript or Superscript

Ends subscript or superscript printing started by ESC S.

Note: If ESC T is issued when not printing in subscript or superscript. it is acknowledged and ignored.

Example:

LPRINT CHR$(27);CHR$(84);

Unidirectional Printing

Format: ESC U;n;

When n is 1, sets the printer to print from left to right only. ESC U 0 returns the printer to normal two-direction printing. Unidirectional printing ensures a more accurate printing start position for better print quality.

Note: The Color Printer operates only on the least significant bit of n. Therefore, any odd-numbered

ASCII decimal value gives the same result as n=1, and any even-numbered ASCII decimal value gives the same result as n=O.

Example:

LPRINT CHR$(27);CHR$(85);CHR$(n);

Continuous Double-Width Printing

Format: ESC W;n;

ESC W 1 changes the printer to double-width printing. ESC W o ends the double-width printing started by ESC W 1. ESC W 1 is not canceled by a line ending code and must be canceled by

ESC WOo

Note: The Color Printer operates only on the least significant bit of n. Therefore, any odd-numbered

ASCII decimal value gives the same result as n=1, and any even-numbered ASCII decimal value gives the same result as n=O.

Example:

LPRINT CHR$(27);CHR$(87);CHR$(n);

Color Printer 21

Printer

Code

ESCX

ESCY

ESCy

Printer Function

Set Left and Right Margins

Format: ESC X;n1 ;n2;

The numbers, n1 and n2, are selected in relation to the left side of the printer, with n1 representing the left margin and n2 the right margin. The value of n1 or n2 is the column of the page you wish to set as the left or right margin. n2 must be greater than n1 by 1.27 cm (1/2 inch) or more, and cannot be greater than 13.2 times the character-spacing

(in characters per inch) in effect. If n2 is greater than this limit, the right margin will be set at the maximum allowable length. Data is printed beginning in column n1' Column n2 is considered the last printable position of the line.

If a word to be printed exceeds the right margin, a carriage-return and line-feed are inserted before the word, and the word is printed on the next line. The margins are converted to inches based on the current character-spacing setting.

The power-on default is set with DIP Switch 5.

Note: Both n1 and n2 must be included in the command or the results will be unpredictable.

Example:

LPRINT CHR$(27);CHR$(88);CHR$(n1);CHR$(n2);

2216 Bit-Image Graphics

Format: ESC Y;n1 ;n2;v1 ;v2; ... v2216;

Sets dot spacing to 168 by 84 dots per inch in 1:1 aspect ratio, to 140 by 84 dots per inch in 5:6 aspect ratio (see

"ESC n (Set Aspect Ratio)") and prints at normal printing speed. ESC Y graphics cannot print dots in consecutive horizontal dot positions. If consecutive dot positions are specified, the printer will not print the second dot. n1, n2, v1, and v2, through v2216 represent the same values as in 1108 Bit-Image Graphics (ESC K). Refer to the description of ESC K for a complete description of these values. The number of bit-image databytes cannot exceed

2216 (the total number of dot positions in a 13.2-inch line).

Example:

LPRINT CHR$(27);CHR$(89);CHR$(n1 );CHR$(n2);

CHR$(v,);CHR$(V2); ... CHR$(V2216);

Select Band 1

Selects ribbon band 1. The actual color printed depends on the ribbon being used. The printer will continue to print with band 1 until a command to change the ribbon band is received by the printer.

Example:

LPRINT CHR$(27);CHR$(121);

22 Color Printer

Printer

Code

ESCZ

ESCO

ESC 1

ESC2

ESC3

ESC4

Printer Function

4432 Bit-Image Graphics

Format: ESC Z;n1 ;n2;v1 ;v2; ... v4432;

Sets dot spacing to 336 by 84 dots per inch in 1:1 aspect ratio, to 280 by 84 dots per inch in 5:6 aspect ratio (see

"ESC n (Set Aspect Ratio)"). 4432 bit-image graphics prints at one- half the speed of 1108 bit-image graphics (ESC

K) for improved print quality. ESC Z graphics can print only every third consecutive horizontal dot position. If consecutive dot positions are specified, the printer will ignore the second and third dots. n2, v1, v2, and v4432 represent the same values as in 1108 bit-image graphics (ESC K). Refer to the description of ESC K for a complete description of these values. The number of bit-image databytes cannot exceed

4432 (the total number of dot positions in a 13.2-inch line).

Example:

LPRINT CHR$(27);CHR$(90);CHR$(n1);CHR$(n2);

CHR$(V1);CHR$(v2); ... CHR$(V4432);

1/8 Inch Line Spacing

Sets line spacing to 8 lines per inch.

Example:

LPRINT CHR$(27);CHR$(48);

6/72 Inch Line Spacing

Sets line spacing to 6/72 inch.

Example:

LPRINT CHR$(27);CHR$(49);

Start Text Line Spacing

ESC 2 is an execution command for ESC A (Set Text Line

Spacing). If no ESC A command has been given, line spacing returns to 6 lines per inch.

Example:

LPRINT CHR$(27);CHR$(50);

Graphics Line Spacing

Format: ESC 3;n;

Sets line spacing to n/144 inch. Line spacing of 14/144 is recommended for bit-image graphics using eight bits. The value of n must be between 1 and 255.

Example:

LPRINT CHR$(27);CHR$(51);CHR$(n);

Set Top of Page

Sets the current vertical position as the top-of-page.

Example:

LPRINT CHR$(27);CHR$(52);

Color

Printer 23

Printer

Code

ESC5

ESC6

ESC7

ESC-

Printer Function

Automatic Line Feed

Format: ESC 5;n;

When n is 1, automatic line feeding starts; the printer will line-feed each time a code that indicates the end of a line, such as CR, is received. When n is 0, automatic line feeding stops.

Note: The Color Printer operates only on the least significant bit of n. Therefore, any odd-numbered

ASCII decimal value gives the same result as n=1, and any even-numbered ASCII decimal value gives the same result as n=O.

Example:

LPRINT CHR$(27);CHR$(53);CHR$(n);

Select Character Set 2

Selects character set 2. (See "Character Set 2.")

Character Set 2 contains most characters and symbols used in non-English languages. The power-on default for Character

Set is set with DIP Switch 1.

Note: Some programs use the control codes in Character

Set 1 that have ASCII decimal values above 128. These control codes are not in Character Set 2. The use of

Character Set 2, therefore, may not give the desired results with some programs.

Example:

LPRINT CHR$(27);CHR$(54);

Select Character Set 1

Selects character set 1. (See "Character Set 1".)

Character Set 1 contains characters and symbols commonly used in the English language, along with some common, non-English, characters and symbols. The power-on default for Character

Set is set with DIP Switch 1.

Example:

LPRINT CHR$(27);CHR$(55);

Continuous Underline

Format: ESC -;n;

When n is 1-all of the following data is underlined. ESC­ followed by 0 cancels underlining.

Note: The Color Printer operates only on the least significant bit of n. Therefore, any odd-numbered

ASCII decimal value gives the same result as n=1, and any even-numbered ASCII decimal value gives the same result as n=O.

Example:

LPRINT CHR$(27);CHR$(45);CHR$(n);

24 Color Printer

Printer

Code

ESC:

ESC

<

ESC?

Printer Function

12 Characters per Inch Printing

Sets character spacing to 12 characters per inch.

Example:

LPRINT CHR$(27);CHR$(58);

Move Carriage to Home Position

Returns the print head to the left side of the printer to print the line following the command. No line feed occurs.

Example:

LPRINT CHR$(27);CHR$(60);

Set Initialize Signal Function

Format: ESC ?;n;

Defines what the printer does when an initialize signal is received. The initialize signal is a hardware signal sent to the printer by the system unit when called for by the program being used. This signal is commonly called for when a program is first loaded. When n is 1, the initialize function is set On; when n is 0, the initialize function is set Off.

When the initialize function is On, the initialize signal causes the printer to clear all data from the printer memory and set all printer functions to the power-on defaults. Some of the data may not have been printed and will be lost.

When the initialize function is Off, the initialize signal causes the printer to insert CAN (Clear Data) into the data in the printer memory. The CAN, when processed by the printer, clears the printer memory of all data waiting to be printed following the-last received line-ending code. All control codes are cleared and the printer is set to the values set by the DIP switches. This allows a printing job to be completed before the printer is reset for the next application.

The power-on default is the initialize function set Off.

Note: The Color Printer operates only on the least significant bit of n. Therefore, any odd-numbered

ASCII decimal value gives the same result as n=1, and any even-numbered ASCII decimal value gives the same result as n=O.

Example:

LPRINT CHR$(27);CHR$(63);CHR$(n);

Color Printer 25

Printer

Code

[email protected]

ESC \

ESC]

ESC A

Printer Function

Select Control-Value Data Type

Format: ESC @;n;

Allows the printer to accept certain parameters for the

ESC commands in either of two forms: binary or ASCII character. When "n" is 1 (odd) ASCII is selected.

When "n" is 0 (even) Binary is selected.

Note: See "Programming Considerations at the

Beginning of this section for a detailed explanation of this command.

Example:

LPRINT CHR$(27);CHR$(64);CHR$(n);

Print All Characters

Format: ESC \;n 1 ;n2;

Allows the printing of all characters. This includes characters that are normally recognized by the printer as control codes. This code (ESC \) allows the printer to print the special symbols assigned to these ASCII values. If no character is assigned to a decimal value received by the printer, a space character is printed. No control code functions are performed when this command is in effect. n1 and n2 are binary numbers that specify the number of characters to be printed. n1 represents values from

o

to 255, and n2 represents values from 0 to 255 times 256.

Example:

LPRINT CHR$(27);CHR$(92); CHR$(n1);CHR$(n2);

Reverse Line Feed

Causes the printer to move the paper down one line space as defined by DIP Switch 2 or by printer control codes, ESC A and ESC 2, ESC 0, ESC 1, or ESC 3.

Example:

LPRINT CHR$(27);CHR$(93);

Print Any Character

Allows the printer to print any character each time the command is received. This includes characters normally recognized by the printer as control codes. This code (ESC A) allows the printer to print the special symbols assigned to these ASCII values. If no character is assigned to a decimal value received by the printer, a space character is printed.

Example:

LPRINT CHR$(27);CHR$(94);

26 Color Printer

Printer

Code

FF

HT

LF

NUL

51

50

Printer Function

Form Feed

Advances the paper to the next top-of-form position. The top-of-form position is set by the position of the paper when power is switched On, or by ESC 4, ESC C, or the control-panel buttons. The next top-of-form is determined by the form length defined by DIP Switch 6, ESC C, or ESC C O.

Example:

LPRINT CHR$(12);

Horizontal Tab

Moves the print head to the next horizontal tab stop. If the next horizontal tab stop is beyond the right margin, the character following HT is printed at the left margin. Tab stops are set with ESC D. A tab stop every 8 columns is the power-on default.

Example:

LPRINT CHR$(9);

Line Feed

Advances the paper one linespace, as defined by DIP Switch 2 or by printer control codes; ESC A and ESC 2, ESC 0, ESC 1, or ESC 3.

Example:

LPRINT CHR$(10);

Command End

Used with control commands as a command list terminator.

NUL is also used with other printer control codes to select options.

Example:

LPRINT CHR$(O);

Compressed Printing

Causes the printer to begin compressed printing. Character spacing in compressed printing is 17.1 characters per inch.

Example:

LPRINT CHR$(15);

Double-Width Printing by Line

Causes the printer to start double-width printing.

Double-width printing prints the characters twice as wide as the current character spacing. This results in half as many characters per inch. A Carriage Return, Line Feed or DC4

(End Double-Width Printing by Line) cancels the SO command.

Example:

LPRINT CHR$(14);

Color Printer 27

Printer

Code

VT

Printer Function

Vertical Tab

Advances the paper to the next vertical tab-stop position.

If

the next vertical tabstop is beyond the bottom of the page, the paper is placed at the first line of the next page. If no vertical tab stops are set, the VT command is treated as a line-feed (LF) command.

Example:

LPRINT

CHR$(ll);

28 Color Printer

Printer Control Code Quick Reference

This is an alphabetic listing of the descriptions of the printer control codes. You will find it helpful in locating the code you need to perform a certain job, or to determine the ASCII decimal value quickly, once you are familiar with the control codes.

Note: ASCII values greater than 27 must be preceded by the

ESC code (ASCII value 27).

Description Code ASCII

Value

10 characters-per-inch print

12 characters-per-inch print

17.1 characters-per-inch print

Alarm

All-characters print

Aspect ratio set

Audible alarm

Auto justification On/Off

Auto line feed On/Off

Auto perforation skip Off

Auto perforation skip On

Auto ribbon-band shift

Auto ribbon shift

Backspace

Backspace n increments

Backspace variable

Band 1

Band 2

Band 3

Band 4

Bell

Black ribbon band

Buzzer

DC2

ESC:

SI

BEL

ESC \

ESCn

BEL

ESCM

ESC 5

ESC 0

ESCN

ESCa

ESC a

BS

ESCe

ESCe

ESCy

ESCm

ESCc

ESCb

BEL

ESCb

BEL

109

99

98

7

98

7

110

7

77

53

79

78

97

97

8

101

101

121

18

58

15

7

92

Color Printer 29

Description Code

Cancel

Cancel auto line feed

Cancel data

Cancel double-strike printing

Cancel double-width by line

Cancel double-width printing (lines)

Cancel emphasized printing

Cancel perforation skip

Cancel proportional spacing

Cancel subscript

Cancel superscript

Carriage return

Change color

(see ribbon band desired)

Change printing quality

Character quality set

Character set 1 select

Character set 2 select

Character spacing, 12 per inch

Character spacing, 10 per inch

Character spacing, 17.1 per inch

Character under decimal 32, print

Characters under decimal 32, print

Clear data

Clear horizontal tabs

Clear tabs

Clear vertical tabs

Color band 1

Color band 2

Color band 3

Color band 4

CAN

ESC 5

CAN

ESCH

DC4

ESCW

ESCF

ESC 0

ESCP

ESCT

ESCT

CR

ESC I

ESC I

ESC 7

ESC 6

ESC:

DC2

SI

ESC

A

ESC \

CAN

ESCR

ESCR

ESCR

ESCy

ESCm

ESCc

ESCb

ASCII

Value

24

53

24

72

20

87

70

79

80

84

84

13

73

73

55

54

58

18

15

94

92

24

82

82

82

121

109

99

98

30 Color Printer

Description Code

Command designator

Command end

Command prefix

~

Command terminator

Compressed On

Compressed print

Condensed print

Control-data value-type set

Data clear

Data-processing quality set

Data-value type set

Deselect printer

Deselect specific printer

Double-strike printing

Double-strike printing Off

Double-width-by-line Off

Double-width-by-line On

Double-width On/Off (lines)

Eject form

Eject paper

Emphasized printing

Emphasized printing Off

Escape

Feed line

Form feed

Foml, set top of

Forward space variable

Graphics, 1108 bit-image

Graphics, 2216 bit-image, 1/2 speed

Graphics, 2216 bit-image, full speed

ESC

NUL

ESC

ESC

NUL

SI

SI

SI

[email protected]

CAN

ESC I

[email protected]

DC3

ESCQ

ESCG

ESCH

DC4

SO

ESCW

FF

FF

ESCE

ESCF

ESC

LF

FF

ESC 4

ESCd

ESCK

ESCL

ESCY

ASCII

Value

87

12

12

69

70

27

10

12

52

73

64

19

81

71

72

20

14

100

75

76

89

27

0

27

27

0

15

15

15

64

24

Color Printer 31

Description Code

Graphics, 4432 bit-image, 1/2 speed

Graphics, line-feed set

Head, home

Home head

Horizontal tab

Horizontal tab stops set

Incremental backspace

Initialize function set

Justification On/Off

Length-of-page set in lines

Length-of-page set in inches

Line-feed

Line-feed, auto On/Off

Line-feed, reverse

Line-feed, set 1/8 inch

Line-feed, set 6/72 inch

Line-feed, set graphics

Line-feed, store text

Line-feed, start text

Line-feed, variable

Margins set

Near-letter quality, set

Null

Page eject

Page length, set in inches

Page length, set in lines

Paper eject

Perforation skip Off

Perforation skip set

Print all characters

Print character under decimal 32

ESCZ

ESC 3

ESC

<

ESC

<

HT

ESCD

ESCe

ESC?

ESCM

ESCC

ESCCO

LF

ESC 5

ESC]

ESCO

ESC 1

ESC 3

ESC A

ESC 2

ESC]

ESCX

ESC I

NUL

FF

ESCCO

ESCC

FF

ESC 0

ESCN

ESC \

ESC

A

ASCII

Value

90

51

60

60

9

68

101

63

77

67

670

88

73

0

12

670

67

12

79

78

92

94

10

53

93

48

49

51

65

50

74

32 Color Printer

Description

Print double-width one line

Print double-width multiple lines

Print emphasized

Print quality set

Print 10 characters per inch

Print 12 characters per inch

Print unidirectional On/Off

Printer deselect

Printer deselect specific

Printer select

Proportional spacing On/Off

Quality set

Return carriage

Reverse line feed

Ribbon band 1

Ribbon band 2

Ribbon band 3

Ribbon band 4

Ribbon band auto shift

Select character set 1

Select character set 2

Select color

(see ribbon band desired)

Select printer

Set 1 (character set 1)

Set 1/8-inch line feed

Set 2 (character set 2)

Set 6/72-inch line feed

Set aspect ratio

Set data-processing quality

Code

SO

ESCW

ESCE

ESCF

ESC I

DC2

ESC:

ESCU

DC3

ESCQ

DC1

ESCP

ESCI

CR

ESC]

ESCy

ESCm

ESC c

ESCb

ESC a

ESC 7

ESC 6

ASCII

Value

80

73

13

93

121

109

99

98

97

55

54

58

85

19

81

17

14

87

69

70

73

18

DC1

ESC 7

ESC 0

ESC 6

ESC 1

ESCn

ESC I

17

55

48

54

49

110

73

Color Printer 33

Description

Set data-value type

Set graphics line feed

Set horizontal tab stops

Set initialize function

Set left margin

Set margins

Set near-letter quality

Set page length in lines

Set page length in inches

Set perforation skip

Set right margin

Set text quality

Set top-of-form

Set vertical tabs

Space forward variable

Specific printer deselect

Start 6/72 inch line feed

Start auto line feed

Start double-strike print

Start double-width print by line

Start double-width print (lines)

Start emphasized print

Start graphics line feed

Start perforation skip

Start proportional spacing

Start subscript

Start superscript

Start text line feed

Start underline

Stop auto line feed

Stop double-strike print

Code ASCII

Value

64

51

68

63

88

73

52

66

100

81

49

53

71

14

88

88

73

67

670

78

87

69

51

78

80

83

83

50

45

53

72

[email protected]

ESC 3

ESCD

ESC?

ESC X

ESC X

ESC I

ESCC

ESC CO

ESCN

ESC X

ESCI

ESC 4

ESCB

ESCd

ESCQ

ESC 1

ESC 5

ESCG

SO

ESCW

ESCE

ESC 3

ESCN

ESCP

ESC S

ESC S

ESC 2

ESC-

ESC 5

ESCH

34 Color Printer

Description

Stop double-width by line

Stop double-width print (lines)

Stop emphasized print r---..

Stop perforation skip

Stop proportional spacing

Stop subscript

Stop superscript

Stop underline

Stops, horizontal tabs, set

Stops, vertical tabs, set

Store text line feed

Subscript Off

Subscript On

Superscript Off

Superscript On

Tab horizontal

Tab stops, horizontal, set

Tab stops, vertical, set

Tab vertical

~

Tabs horizontal set

Tabs vertical set

Text line-feed store

Text line-feed start

Text quality set

Top-of-form set

Underline On/Off

Unidirectional printing On/Off

Variable backspace

Variable forward space

Variable line feed

Vertical tabs set

Vertical tab

Code ASCII

Value

45

68

66

65

84

83

84

20

87

70

79

80

84

84

83

9

68

66

11

82

68

66

65

50

73

52

45

85

101

100

74

66

11

DC4

ESCW

ESCF

ESCO

ESCP

ESCT

ESCT

ESC­

ESCD

ESCB

ESC A

ESCT

ESC S

ESCT

ESC S

HT

ESCD

ESCB

VT

ESCR

ESCD

ESCB

ESCA

ESC 2

ESC I

ESC4

ESC­

ESCU

ESCe

ESCd

ESC]

ESCB

VT

Color Printer 35

Printing in Color

The IBM Personal Computer Color Printer is capable of printing in 8 colors when the process color ribbon is used. The 4 colors of the ribbon are selected by: ESC b (Select Band 4) for black, ESC c (Select Band 3) for cyan, ESC m (Select Band 2) for magenta, and ESC y (Select Band

1) for yellow. You can print four additional colors, orange, green, violet, and brown, by printing the data twice. Print the data in one color and then print over the data in a second color according to the table below. When printing data twice to mix colors, always print the lighter color first to avoid contaminating the ribbon.

Color Desired

Ribbon

Bands to Mix

Orange

Green

Violet

Brown

Bands 1 (ESC y) and 2 (ESC m)

Bands 1 (ESC y) and 3 (ESC c)

Bands 2 (ESC m) and 3 (ESC c)

Bands 2 (ESC m) and 4 (ESC b)

To mix colors, data must be sent to the printer in the following order: printer control code to select the first color, data to be printed, carriage return with no line feed, printer control code to r " \ select the second color, repeat the data to be printed. For example, to print "IBM Personal Computer" in green, you must; select band 1 (yellow) with ESC y, print "IBM Personal

Computer", return the carriage with no line feed with ASCII decimal value 141 from "Character Set 1," select band 3 (cyan) with ESC c, and print "IBM Personal Computer." To do this, type the following:

LPRINT CHR$(27);CHR$(121);"IBM Personal

Computer";CHR$(141);CHR$(27);CHR$(99;)"IBM Personal

Computer"

Note: The above example is for use with "Character Set 1."

36 Color Printer

Color Printer Character Set 1

IN:'I~I~I;Ho ~IB+sH

""" I:: I

20

IDC4

21

§

+++:

I:' : I

22 23 24 25 26 27

1-

1.-

CAN

~

ESC

L

28

;+:'1

29

I-I

30 31 32 33 34 35 36 37 38 39

~o

· .1

SP

! " #

$

% &

I ' I

;r :':

~

:" ;

~

I

~

; ;1; ; ; ; ; ;

~ ~I

I

"""

~:I;;; ~ ~

I

~ ~ ~

I

;I~I~I;I~

;

~I;; ~I

;I~I~I;I; ~I~I;;

;1

I;I[I~

11 :

~I~

I:

~ ~I

I

'~

I:F ; I

~

I

';"1';"

I'~

';" I;I

~

I~I~I'~ ~I';I':I';I'~ ~I:I

120 121 122 123 124 125 126 127 128 129 I

X

I y

I z

[I: I

J

I-I

'Uljuj

Color Printer 37

Color Printer Character Set 1 (Continued)

130 131 132 133 134 135 136 137 138 139

140

e a

ala

0 a

BEL

us

I

HT

IlF

VT

I

142 143 144 145 146 147 148 149 141

FF

CR

150 151

SO

I

SI

152

153

E

DCI DC21 Dca

I

DC4 01

157

158 159

154 155 156

U U

CANIO

ESC

I

¥

I

R rl

I

160

170

161

a

i

171

162 163 164 165 166 167 168 169

61u

n

N

~IQll

II

172

112

1/4

173 i

174

«

175 176

:::

»

--­

177 178

--'-"­

~

- ­

38 Color Printer

Color Printer Character Set 2

':l

~ ~I~I~ ~

; I·;ll .: I

H~

I

11

If

VT

12 ff

13 14

Icn Iso

SI

15 16

~

17 18 19

IDCl DC21 Dcal

20

DC4

21

§

22 n

24 25 26 27 28

L

29

-I_lICAN! IESC -I

: :' :; I;' :: ;

$1;'; ':

I

I;

;1=1::

~ ~I; ~

;1

; ; ;1; ;1;

;1; ;

:1

~ ~:;; ;I~ ;I~ ~ ~!

; 1

~ ~

';

I

~ ~

I

~

I

~ ~ ~

I

;

~ ~

;1;

~I~I~~I~

I; [

~

11:

~I~

I:

~I~

I'~

;'I;' ': I

~

';' I';"

I'~

';' I:

~ I~ ~I'~I'~I; '~I':I'~ ~I:

I ' :

'~I'~

I

'1'

I';'

'J'

I:I I;I:"

Color Printer 39

Color Printer Character Set 2 (Continued)

171 172

17 17 1

--,

liz

1/4 i

«

»

•••

1

--!.~

-'--­

0: f3

rTII

0"

f.1 T

Q8n

8 m0€

n

=+><

J--;-=o.

-.,[" 21sp

40 Color Printer

All Printable Characters

Color Printer

41

All Printable Characters (Continued)

I

170 171 172

112

1/4

173 i

N

166 167

~

l

168 169

177 178 r-r'­

174 175 176

«

»

•••

•••

~L-..

42

Color

Printer

DIP-Switch Settings

Many of the printer functions can be manually set with a la-position dual in-line package (DIP) switch. Although these same functions are programmable, the printer defaults to the values set by the DIP switch.

The DIP switches must be set prior to switching the printer's power to On. The printer logic reads the DIP-switch settings only at power-on or printer initialization.

Note: Some programs use the control codes in Character Set

1 that have ASCII decimal values above 128. These control codes are not in Character Set 2. The use of Character Set 2, therefore, may not give the desired results with some programs.

The charts on the following page describe the functions available through the DIP-switch settings.

~------~~~---

Switch Lever

Location of Printer DIP Switch

Color Printer 43

Switch

1

4

5

5

6

6

7

3

3

4

1

2

2

7 a a

Setting

On

Off

On

Off

On

Off

On

Off

On

Off

On

Off

On

Off

On

Off

Function

Selects Character Set 2 (see "Character Set

2")(see "Note" below)

Selects Character Set 1 (see "Character Set 1 ")

Sets line soacina to a lines oer inch

Sets line soacinQ to 6 lines per inch

Sets automatic 1-inch perforation skip

No automatic perforation skip

Sets automatic line feed on carriaqe return

No automatic line feed on carriaae return

Sets minter to a 13.2-inch print line

Sets printer to an a-inch print line.

Selects 12 - inch paqe lenqth

Selects ll-inch oaqe lenqth

Sets automatic ribbon-band shift (use with all-black ribbon)

No automatic ribbon-band shift (use with color)

Does not allow audible alarm to sound

Allows audible alarm to sound

DIP-Switch Settings - 1 Through 8

Switch 9

Off

Off

On

On

Switch 10

Off

On

Off

On

Quality and Spacing Set

Data processing quality, 12 characters per inch, (see "Note" below)

Data processing quality, 10 characters per inch

Text quality, 10 characters per inch

Near letter quality, 10 characters per inch

DIP-Switch Settings 9 and 10

Switches 9 and 10 select the printing quality and character spacing. See "ESC !" in "Printer Control Codes" for a description of the printing qualities.

Note: When switches 9 and 10 are Off, the printer prints with a i-inch page length with no perforation skip. Switches 3 and

~

6 are overridden. This is the self-test setup.

44 Color Printer

Interface

Specifications:

• Data transfer rate: 1000 CPS (max.)

• Synchronization: By externally supplied STROBE pulses.

• Handshaking: -ACKNLG or +BUSY signals.

• Logic level: Input data and all interface control signals are

TTL-compatible.

• Connector type: 57-30360 (AMPHENOL), or equivalent,

36-pin connector on printer end of cable.

Data Transfer Sequence:

~ BUSV------,

ACKNLG

Approximately

0.5 \ls

I I

.••.

DATA

- - - - - - I

STROBE

- - - + - - .

0.5 \ls (Minimum)

0.5 \ls (Minimum)

0.5 \ls (Minimum)

Parallel Interface Timing Diagram

Color Printer 45

46 Color Printer

Specifications

Size

Height

Width

Depth

Weight

Power Cable

Length

Size

Signal Cable

Length

Size

Physical Specifications

24.4 em (10 in.)

57.8 em (22.75 in.)

35.43 em (14 in.)

18.4 kg (40 Ib)

1 .98 m

(6.5

tt)

28AWG

1.89 m (6

tt)

3by18AWG

Voltage (Vac)

Nominal

100

120

200

220

Frequency Current

(Hz) (Amps)

Power

(Watts)

Maximum Maximum Minimum Maximum

:!:

3 Hz

90

102

180

118

139

236

50/60

60

50/60

190 264 50/60

1.5

1.5

1.0

1.0

135

135

135

135

Electrical Specifications

Color Printer 47

Print Method

Print Speed

Data Processing Quality

Text Quality

Near Letter Quality

Print Direction

Number of Pins in Head

Size of Pins in Head

Line Spacing

Printing Characteristics

Matrices

Wire matrix

200 cps

110 to 150 cps

30 to 40 cps

Bidirectional with logic seeking

9 (4- and 5-column arrangement)

.356-mm (0.014-in.) wire diameters

4.23 mm (1/6 in.) or programmable

Character Sets

Data processing:

Text: 24 x 9

9 x 9

Near-letter: 36 x 18

Block graphic: 24 x 14

See "Color Printer Character Sets" 1 and 2.

Printing Sizes

Normal

Double Width

Compressed

Double Width-Compressed

Proportional

Subscript

Superscript

Media Handling

Paper Feed

Speed

Paper Width Range

Forms tractor feed

Friction feed

Paper Weight

Continuous forms

Single sheet

Characters per inch

10

5

17.1

13.3

12 (average)

10

10

Maximum characters per line

132

66

225.7

175.5

158.4 (average)

132

132

Forms tractor feed and friction feed

127 mm (5.0 in.) per second

76.2 to 406.4 mm (3 to 16 in.)

177.8 to 304.8 mm (7 to 12 in.)

(216 to 432 mm (8.5 to 17 in.) adjustable length)

Single part: 15 to 20 Ib bond

Multipart: 12 to 15 Ib, 6 to 8 Ib carbon

15 to 20 Ib bond

Printer Specifications (Part 1 of 2)

48 Color Printer

Media Handling (continued)

Copies

Continuous forms

Single sheet

Paper Path

Continuous forms

Single sheet

Interfaces

1 to 4 parts

1 part only

Front. bottom. and rear

Front

Standard parallel 8- bit

Data and Control lines

Inked Ribbon

Type

Color

Process Ribbon

Primary Ribbon

Cartridge (all ribbons)

COLOR

Yellow

Magenta

Cyan

Black

BAND

1

2

3

4

COLOR

Red

Green

Blue

Black

BAND

1

2

3

4

Environmental Conditions

Operating Temperature

Operating Humidity

Heat Output

Memory Allocation

Internal

Data

Reserved

Total

10 to 40°C (50 to 104°F)

10 to 80

% non-condensing

140 BTU/hr (maximum)

2K bytes

6K bytes

8K bytes

16K bytes

Printer Specifications (Part 2 of 2)

Color Printer 49

Connector Pin Assignments

Printer connector-pin assignments and descriptions of signals are provided in the following chart.

Signal Pin

No.

1

Connector Pin Assignment

Signal Description

8

9

10

2

3

4

5

6

7

-STROBE

DATA 1

DATA 2

DATA 3

DATA 4

DATA 5

DATA 6

DATA 7

DATA 8

-ACKNLG

-STROBE pulse to read data in. Pulse width must be more than O. 511s at receiving terminal. The signal level is normally high (logical 1); data is read at the low (logical 0) level.

These signals represent information of the 1st to 8th bits of parallel data respectively.

11

12

13

+BUSY

+PE

+SLCT

(ENABLE)

Approx. 0.511s pulse. A low signal indicates that the printer is ready to accept other data.

A high signal indicates that the printer cannot receive data. The signal becomes high in the following cases:

1 . During data entry

2. During printing operation

3. In offline state

4. During printer error status

A high signal indicates that the printer is out of paper.

A high signal indicates that the remote control select feature has not deselected the printer. The signal level goes high lIpon going ready or receiving a DC 1

(SELECT). If currently ready but deselected, it goes low upon receiving a DC 3 (DESELECT).

Not used 14 -AUTO

FEED

15

16 Ov

Not used

Logic GND level.

Connector Pin Assignment (Part 1 of 2)

50 Color Printer

Signal Pin

No.

Connector Pin Assignment

Signal

Description

17

18

19-30

31

32

33

34

35

36

CHASSIS

GND

GND

-INIT

-ERROR

GND

Printer chassis ground (GND). In the printer, the chassis GND and the logic

GND are isolated from each other.

Not used

TWISTED-PAIR RETURN logic GND level.

When the level of this signal becomes low, the printer controller is reset to its initial state, and the print buffer is cleared. This signal is normally at high level, and its pulse width must be more than 50 Ils at the receiving terminal.

The level of this signal becomes low when the printer is in:

1 . Paper Out state

2. Offline state

3. Error state

TWISTED-PAIR return logic GND level.

Not used

Not used

Not used

Connector Pin Assignment (Part 2 of 2)

Notes:

1. All interface conditions are based on TTL-level signals. The rise and fall time of each signal must be less than 0.2 microseconds.

2. Data must not be transmitted until the -ACKNLG signal and

+BUSY signal go low.

Color Printer 51

52 Color Printer

Logic Diagrams

,-

~-

-

-

- - -

-~-;.

,

1 1

;: k-v-+-+-++-HoO+~:

.1

I

81 .........

+-t-tl++++~

....

....

...

<II

<II

.r:.

~

"

... ca o a::I

~

<II

... s::

';:

... o

'0

(,)

Color Printer 53

I

0 e~l nl:

54 Color Printer

... o

"0 u

...

I

....

';:

Il.

.... o

....

... o

"0 u

;

G)

.::.

....

:2

(/)

I~ e

~

...

~~

-\,-,-.-~--~

~.----, l t

'0

...

CD

CD

.r.

~

Q) c

~

... c o

(,)

...

I

CD

C

';:

... o

'0

(,)

RIBBON CABLE TO 110 BOARD

REF. PART NO 6036-004-019

Color Printer 55

!iL

~,

---H4H,FH-h

~

S6

Color Printer

I~

~; r

~ ~

S'-'-_L-'---LLJ

...

CD

...

I c:

';::

Q" ...

0

'0 u

...

e c:

0 u

....

...

....

CD

CD

.l:

~

'0

...

I'CI

0

...

J! r".

~

Color Printer 57

...

C

0

(,)

(Y)

....

0

N

...

Q)

Q)

~

~

'tl

... ca

0 r::c

...

Q)

...

I

Q)

...

C

'l:

Il.

...

0

'0

(,)

R8J 1K

Index

A

All Printable Characters 41

ASCII values 29

B block diagram 2 c codes (printer control quick reference) 29 color control mechanism 5

Color Printer Character Set 1 37

Color Printer Character Set 2 39 color printing 36 connector type 45 control codes (quick reference) 29 controller subsystem 3

D data direction register 6 data register 6

Index-l

data transfer rate 45 description 1

DIP-switch settings 43

E

Expanded Multiplexed mode 7

H handshaking 45

I

110

subsystem 3 interface 45

L logic level 45

M major subsystems 3 microprocessor 6

Index-2

MPU (microprocessor unit) 6 p paper feed 5 parallel interface 45 print head 4 print subsystem 4 print wires 4

Printable Characters (All) 41 printer control code quick reference 29 printing in color 36 process color ribbon 36

Q quick reference (printer control codes) 29

R ribbon feed 5 s switch settings (DIP switches) 43 synchronization 45

Index-3

Index-4

Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement