25.03.2015 Views

IBM 5150 PC Technical Reference (6025005, August, 1981) (PDF)

IBM 5150 PC Technical Reference (6025005, August, 1981) (PDF)

IBM 5150 PC Technical Reference (6025005, August, 1981) (PDF)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ASCII Control Codes<br />

Control Codes<br />

Various kinds ofcontrol codes are contained in Table 11. These control<br />

codes are recognized by the printer and perform specified functions<br />

~upon receipt of these codes. The following are descriptions of respective<br />

control codes.<br />

(1) CR (Carriage Return)<br />

When the CR code is transmitted to the print buffer, all data<br />

stored in the print buffer is printed.<br />

(When AUTO FEED XT (Pin No. 14) is at "LOW" level or<br />

DIP switch pin 2-2 is ON, the paper is advanced one line<br />

automatically after printing.)<br />

~ When 80 columns of print data (including spaces) are<br />

continuously received and the following data is valid and<br />

printable, the Printer automatically begins to print the<br />

data stored in the print buffer. In this case, if AUTO<br />

FEED XT is at "LOW" level or DIP switch pin 2-3 is<br />

ON, the paper is advanced one line after printing.<br />

(2) LF (Line Feed)<br />

When the LF code is input, all data in the print buffer is printed<br />

~ and the paper is advanced one line.<br />

Note: If no data precedes the LF code, or if all preceding data<br />

is "SPACE", only paper feeding is performed.<br />

For example, if the data is transferred in the order of<br />

DATA-+CR-+LF, DATA will be printed by the CR<br />

code, and when the Printer receives the LF code, it only<br />

carries out one line feed.<br />

(3) VT (Vertical Tab)<br />

When the VT code is input, all data preceding this code is<br />

printed. And the paper is advanced to the line position set by<br />

"ESC B" (described later). If no vertical tab position is set by<br />

ESC B, the VT code behaves like the LF code. Therefore, the<br />

paper is advanced one line after printing.<br />

(4) FF (Form Feed)<br />

The FF code carries out the printing of all data stored in the<br />

print buffer and advances the paper to the next predetermined<br />

Top ofForm position. The Top ofForm is determined when the<br />

POWR switch is turned on or the INIT signal is applied. Ifthe<br />

form length per page is not set by "ESC C+n", it is regarded<br />

as 66 or 72 lines.<br />

2-79

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!