Digital PDFs
Documents
Guest
Register
Log In
EK-LA100-RG-001
2000
66 pages
Original
15MB
view
download
OCR Version
7.3MB
view
download
Document:
LA100-Series Programmer Reference Manual
Order Number:
EK-LA100-RG
Revision:
001
Pages:
66
Original Filename:
OCR Text
EK-LA100-RG-001 LA100-Series Programmer Reference Manudl EK-LA100-RG-001 LA100-Series Programmer Reference Manuadl Digital Equipment Corporation « Bedford, MA 01730 ;\f“‘\\wmm«w% lst Edition, Copyright ¢ 1982 by Digital All The material purposes and in is Rights this manual is for informational subject to change without notice. Printed following Corporation, are in trademarks Maynard, assumes no that may appear of Digital Massachusetts. DECnet IAS DECUS DECsystem-10 MASSBUS Logo DECsystem-20 PDT DECwriter RSTS UNIBUS DIBOL RSX VAX EduSystem VMS VT 4/82-15 in U.S.A. DEC Digital PDP Corporation Reserved Digital Equipment Corporation responsibility for any errors this manual. The Equipment January Equipment 1982 L _ CONTENTS INTRODUCTION CHAPTER 1 COMMUNICATION General Serial Character Break Signal Format Character Transmit EIA Interface Modem and Receive Rates Control Disconnect Input CHAPTER 2 Buffer CHARACTER Overflow Prevention PROCESSING General Introduction Printable Characters Control Characters Escape and Control Sequences Control Strings Answerback Message Graphics iii s INTRODUCTION The Letterprinter 100 User Documentation Packages cover all Letterprinter 100 model terminals. The User Documentation 1is written for three general audiences: the hardware installer requiring and checkout information, specific installation the operator requiring general operating information, the applications programmer control function descriptions. requiring interface and The documentation for the Letterprinter 100 is divided into three books: Installation Guide Operator Guide Programmer Reference Guide This book describes the interface and receive character processing information for the Letterprinter 100 terminals. The programmer should use this manual as a reference when writing application software. The Programmer Reference Guide 1is divided into the following chapters: Chapter 1 Communication communication -- describes the terminal interface Chapter 2 Character Processing -- describes the terminal to printable characters control control and features. characters, response escape sequences, and strings. WARNINGS, CAUTIONS AND NOTES In this book, warnings, cautions, and notes are used for specific purposes. Warnings are used to highlight information used to Cautions highlight information used to prevent personal injury. Notes are used to highlight prevent damage to the terminal. general information. oiy, v CHAPTER 1 COMMUNICATION » GENERAL This chapter describes LAl0@ communication interfaces and terminal communication features. The communication features the are used to configure the terminals to operate with specific computers. This chapter also discusses the methods of controlling data received by the terminal to avoid input buffer overflows. SERIAL CHARACTER FORMAT The LA19@ communicates using serial characters (Figure 1-1). The serial character format for the terminal must match the character format used by the computer. Serial characters are transmitted using a start bit, 7 or 8 data bits, a selectable parity bit and 2 stop bits. NOTE:\n\nIf you are using the LAl12X-BB Parallel Interface option, refer to the option installation guide for character format information. The data leading. bits If forced to BREAK SIGNAL 8 the ignored when selectablee A break + the computer EIA signal INTERFACE bit space is The and a 7 bit characters receiving signal 10 percent. break represent a (@) character, least are condition characters. transmitted response a fault paper and The to significant the last parity bit the eighth data data bit bit bit is is 1is operator for #.275 seconds the LAl00 sends a asynchronous 1is a DB-25 communication male 25 pin space condition computer the software used. when selected, the break signal depends on If selected, occurs. INFORMATION The terminal operates on full-duplex, lines. The EIA 1interface <connector connector mounted on the back of the terminal (Figure 1-2). The LA10@ EIA interface signals meet the EIA specification requirements RS-232-C and the International Telephone and Telegraph Consulting Committee (CCITT) recommendation V.24, o IDLE START BIT OF STATE OF NEW CHARACTER LINE Jors DATA BITS "SPACE" + | (m-r-wmwmw*"r“?"'rg?lr lt,sa' 01 | 021 03] 04 | 05 | 06 | S I “MARK' — SR N START BIT P | R ' I ONE BIT TIME = ONE/ BAUD RATE R T R 4 WHEN 8-BIT -]STOPlSTOP T\ \ OPTIONAL RETURN TO IDLE PARITY STATE OF LINE CHARACTERS ARE USED zarrs BIT gth gIT=0 MA-TEBIBA Figure 1-1 Serial Character Format PIN 13 fi o o O e PIN 25 » QO Q 00 OO 00 0‘0 O O Q O OO ) PIN 1 °, o o © 1 PIN 14 25 PIN MALE CONNECTOR “ : B i Ma-7255 Figure 1-2 EIA Connector terminal ft) to 20 mA be current connected away without the use loop interface directly to of a modem. a option computer up to allows 305 m the (1009 Table 1-1 summarizes the ETA connector signals and the followin g paragraphs explain each signal as used in the LAl10@. The Communication Feature section explains the effect that the communication features have on the EIA control signals. Protective This Ground -- Pin 1 circuit also power is connected to the chassis of the terminal. It is connected to external grounds through the third wire of the cord. Transmitted Data (TXD) Direction: From -terminal Signals this circuit are on generated Received by Data (RXD) Direction: To Signals on this are represent -- Pin circuit by the represent Send (RTS) From terminal RTS Clear to Send Direction: This Pin that serially encoded characters that 4 is on, the (CTS) -- Pin 5 the CTS terminal circuit monitors to transmit selected, any CTS Data Ready Set characters equipment. signal response The not -- To Direction: encoded 3 user's Direction: the serially terminal. to When 2 terminal generated Request the Pin RTS. To With modem codes if 1s always (DSR) terminal intends to signal generated control -- Pin protective modem in LAl¢@0 will not modem control | terminal -- Pin the data set is ready. The terminal will data until this signal is on. With no ground be on. The DSR 7 This circuit establishes all interface circuits. the the data. 6 modem control selected, DSR is always assumed to indicator lights when the DSR signal is received. Ground by selected, the CTS 1is not on. With no assumed to be on. DSR signal is on when transmit or receive Signal receive a common ground reference potential for This circuit is permanently connected to circuit. 4 NOTE :\n\nThe Table 1-1 . . EIA Interface Signals CCITT/EIA Pin Name Mnemonic Designation 1 2 3 Protective Ground Transmitted Data Received Data PGND TXD RXD 6 7 8 Request to Send Clear to Send Data Set Ready Signal Ground Receive Line 9 19 No Connection 4 5 11 12 13 Signal Speed Indicator No Connection 16 No Connection 18 No Connection to Send 20 User LA190 User SPDI CI SRTS 120/SCA LAl1QO DTR 198.2/CD LA10Q SPDS 111/CH LAl1G@ No Connection No Connection Secondary Request Data Terminal Ready 21 No Connection 23 Speed Select Connection 22 No 24 No Connection 25 BUSY Restraint Connection 19 LAl1O® User User No Connection No 17 185/CA 106/CB 187/CC 102/AB 109/CF LA10GO User Detect 14 15 RTS CTS DSR SGND RLSD 101 /AA 163/BA 104/BB Source No Connection | Receive Line Direction: Signal To Detect (RLSD) terminal - Pin 8 : When the RLSD signal is on, it indicates that the modem has received the data carrier signal. The terminal will not receive data until this signal is on. With no modem control selected, RLSD is always assumed Restraint (BUSY) Direction: From to be on. - Pin 11 terminal With restraint selected, the on the computer should temporarily off, the Speed computer Indicator Direction: To can resume (SPDI) - condition of BUSY stop sending data. sending Pin indicates When BUSY that goes data. 12 terminal With speed mode selected, the terminal operates at the operator selected baud rate when SPDI is off. The terminal operates at 1200 baud regardless of the operator selected rate when SPDI is on. Secondary Request to Send Direction: Same as Data From restraint Terminal Direction: When the signal Pin 20 the terminal on, the Indicator speed Otherwise SPDS CIRCUIT is baud kept is capable processing a of receiving disconnect or and the receive baud rate of higher, the terminal turns SPDS the on. JUMPERS EIA circuits can be physically jumper: Ground connector EIA Indicator Secondary Speed is 23 off. Busy Speed Pin or Protective - terminal selected, 1200 following a - terminal mode 1is removing (SPDS) From terminal The (DTR) terminal is Speed "EIA -- 11) When Direction: With - Pin 19 DTR is off, terminal is local. data. the (pin Ready From DTR (SRTS) terminal - Request Select - EIA - EIA EIA to connector Pin by 1 11 connector Send Pin disconnected - connector EIA Pin When Pin 12 connector Pin 19 23 any of the EIA circuit jumpers are removed, the loopback control line test fails. Refer to the jumper removal procedure in the Installation guide to remove any of the EIA circuit jumpers. 6 CONNECTING TO THE COMPUTER The LAl1@# can be connected to a computer directly or through a common carrier facility (telephone line) as shown in Figure 1-3. The EIA interface or optional 20mA current loop interface can be used in both applications. When connecting the terminal to the computer through the telephone line, a modem (data set) is needed. The modem changes the serial characters transmitted between the terminal and the computer into signals that can be transmitted over the telephone lines. Several types of modems can be used with the LAl0@. However, the modem used by the terminal must be compatible with the modem used by the computer. The type of communication used by the terminal must also be compatible with the computer and the communication system. The of type (SET-UP communication is used for used by the LAl@#@ the Letterwriter are used for the Letterprinter 100). 100, is operator selectable communication switches MODEM CONTROL When on-line, the LAl@@ is connected to the communication line and terminal The data. sending and receiving of capable is duplex full on EIA compatible devices communicates with asynchronous communication lines. full-duplex of types Dbasic two supports terminal The communication; with or without modem control. Both methods allow received at the same time. When data to be transmitted and the data selected, is full-duplex with no modem control transmission and reception is always enabled when not in local. Full-duplex with modem control requires that both the terminal and the modem data. recognize the proper EIA signals before transmitting Table 1-2 shows the effect of the modem/no modem feature on the EIA control signals. No modem control allows the terminal to communicate directly with a computer (null modem configurations) or with full-duplex modems that do not support DSR (data set ready) or RLSD (receive line signal indicator). Modem control allows the terminal to communicate such as Bell 103, 212, Vadic 3400, or equivalent. through modems L. COMPUTER TERMINAL COMPUTER TERMINAL MA-T776C Figure 1-3 Connecting to the Computer ‘”"‘%« Table 1-2 Modem Control EIA Signal Affect on Modem No Modem Control DTR active active RTS active active CTS inactive active TXD RXD DSR RLSD EIA Signals active active inactive inactive active active active active Key Off Active On Inactive Signal off at EIA connector Signal turns on or off depending on terminal state. Signal on at EIA connector Signal 1ignored at EIA connector but terminal internally forces signal on. FULL-DUPLEX A DISCONNECT full-duplex terminal disconnect ready) off for is accomplished by at turning DTR (data least two seconds plus the DSR (data set ready) delay time, but no greater than 3.8 seconds. The following conditions cause a full-duplex disconnect. [ DSR turns RLSD off turns Wrong within If the paper for more time 20 out is on than (DSR two is seconds on, fault condition EOT key control RLSD does not turn switch is set until to disconnect and a occurs If the terminal is switched to 100, press SELF TEST key; for LINE/LOC then seconds) paper out DTR off number on after LINE character local (for Letterprinter Letterwriter 100, press indicator received goes while off) coded disconnect is enabled INPUT BUFFER OVERFLOW PREVENTION When the LAl00@ receives a character (other characters), the character are input removed falls tone an are is the 4008 occurs, placed three and the 1is If the the is to character the input avoid and DEL in its 4009 characters the terminal input lost, buffer input NUL ready, printed. characters, in ways than character terminal buffer than overflow There stores When input more character sounds. 1. the by If control terminal buffer. from behind overflows. SUB the and buffer buffer a single the bell overflows. Use the XON/XOFF or restraint feature to signal the data source when to temporarily stop or resume sending data. Using the XON/XOFF or restraint feature allows maximum throughput and eliminates the need for fill character calculations and message size limits. These features are explained in detail later in this chapter. 2. Send data only as fast as it can be printed. When receiving data at 1200 baud or less the terminal can keep up with character reception. However, very short 1lines and multiple form feeds are not processed this fast. Also, characters received faster than 1200 baud cannot be processed that quickly. In these cases, are used to slow down the effective speed. Fill time formulas are given in Time 3. Limit Formulas characters section. the number terminal's input of characters buffer the beginning of receive a message overflow. fill data transmission the following Fill the of in the message to the the buffer is empty at transmission, the terminal can 400 characters without a buffer 10 size. If XON/XOFF and Restraint The XON/XOFF and restraint features are used to prevent input buffer overflows. When XON/XOFF and/or restraint is selected, the terminal constantly monitors the number of characters stored 1in buffer. input the The computer the signals terminal to stop (sends XOFF control character or sets the restraint sending data signal off) when any of the following conditions occur: of B Number fat Terminal input the in (sends XON transmits XOFF and signals terminal The characters exceeds buffer 200 characters control computer the or character then to sets receives 60 characters resume the when any of the following conditions occur: data restraint transmission signal on) When the number of characters in the input buffer is less o] than 60 characters Terminal is switched on-line restraint XON/XOFF and Fill Formulas Time (or powered up on-line) selectable operator are features., When receiving data at 1200 baud or less, the terminal can keep up with normal character reception. Very short 1lines and multiple form used feeds cannot be printed this fast. Fill characters may be to slow down the effective data transmission speed in these cases. Fill characters do not enter the input buffer they are stripped out of the data stream upon reception. The terminal's printhead and form movements (horizontal and vertical) terminal are directly related to the fill time required to slow down the effective data transmission speed. The fill time required to compensate for these movements can be converted to the number of fill characters needed using the following formula. Number of Fill Characters = Fill Time Required Character Execution Time NOTE:\n\nNUL is the only recommended fill character even though some other characters may seem to achieve the same result in special cases. | Determining Fill Time Required Required fill time for horizontal Movement (including tabs positoning sequences) is determined in the following way. First figure the actual number of columns moved. Then, and allow 15 ms for each of the first 10 columns (3@ ms in double-width pitches: 5, 6, 6.6, 8.25) and 5.5 ms for each additional column (11 ms in double-width pitches). 11 Required fill time for vertical movement (includes linefeeds, vertical tabs, form feeds, and vertical positioning sequences) is determined in the following way. First using convert the number of the following formula. Inches Moved = Number lines of Vertical Then ms allow for a given ms for the first additional inch. down the Character in Table Fill Time 1. baud rate. effective execution It actual distance moved Moved line moved up to 1/6 inch, and 200 is given in milliseconds and is based the time the computer takes to slow is data times to Pitch Character Execution Time The character execution time on Lines 38 each moved transmission speed to the at the applicable baud rates terminal. are shown 1-3. Formula Examples Horizontal Assumed Movement values: Baud Rate = 1200, Horizontal Pitch = any single width pitch (16, 12, 13.2, 16.5). Also assume that horizontal tab stops are set at columns 9, 17, and 25 and printing begins at column 9. If the next two characters received are characters TAB TAB, required in First, calculate the following formula. Final Column -- 5.5 15 allow ms ms 5.5 ms per Current X 15 ms 10 = 150 X 6 = 33 33 ms 150 + The £ill per column = time following number 25 Then calculate the Column - 9 = column for of the = the number of fill way. columns moved using Number Columns Moved the 16 for the remaining first 10 columns and columns. ms ms 183 ms required is Next, divide the fill execution time found in 12 183 time Table ms. required 1-3. by the character - : Table 1-3 Character Execution Times Baud Rate Execution Times 110 94 .0 300 600 1200 33.3 16.6 8.3 1800 5.5 2400 4.1 9600 1.0 4800 (msec) 2.0 NOTE:\n\nCharacter fill times only. execution times 13 are provided for calculation of Number Fill Characters The number of fill this muber off to Twenty two three characters the f£ill next 183 ms 8.3 ms required whole characters Vertical lines (NUL) per inch Baud and Rate = 1200 baud, paper is set to received are nine characters First, calculate the following formula. Number Inches actual should | Moved Lines inches = Vertical line 1¢. line distance Round is 23. follow the Pitch Also = 6 assume feeds. moved using the Moved Vertical 11/2 22.064. which Movement values: next is number, tabs. Assumed the (23) Required Pitch 9 6 Then allow 38 for the 200 ms X 1 2/6 266 ms + 38 ms The f£ill ms remaining time for the number inches = 304 = required divide the fill execution time found in The fill number characters of fill 266 1/6 inch moved and 200 ms inches moved. ms ms Next, Number first of is 304 time Table ms. required 1-3. required characters required by the 266 ms 8.3 ms is character 32.04. Round this number off to the next whole number, which is Thirty three (33) f£ill characters (NUL) should follow nine line feeds. 14 33. the CHAPTER CHARACTER GENERAL This chapter describes terminals' the response 2 PROCESSING to received characters. The terminal processes characters according to American National Standards Institute (ANSI) standards X3.64-1979, X3.4-1977 and X3.41-1977. The ANSI system defines the American National Standard Code for Information Interchange (ASCII) chart shown in Figure 2-1. Figure 2-1 shows each character with its binary, octal, decimal, and hexadecimal values. The terminal processes a received character based on the type of by ANSI. The position of the character in the character as defined ASCII chart determines the type of character as either a printable character or control The ASCII chart is character. eight columns wide. The control characters are in columns zero and one. The rest of the chart contains printable characters (except for SP and DEL). The DEL (delete) character is always a control character. The SP can be considered either an information separator control character or a printable character. A character sent from the computer to the first goes through the application program, then through the terminal handler of the computer, then through the character processor of the terminal, then finally creates a terminal action. To know exactly what action is caused your application program you have to following parts of Application by a make character sent from sure that all the the system are set properly: program Transmitting part of the terminal handler Receiving part of the terminal General terminal settings To set the terminal, refer to this book and the Operator Guide; to set the terminal handler, refer to your operating system guide; set the application program, refer to your application guide. 15 to 87 0 B6 0 0 BS 0 COLUMN B4 B3 B2 B1|ROW 0 20 0 10 0 1 0 00 1|1 1 1 16 2 0ot 1)z i 17 3 22 18 & (XOFF) | 19 13 4 24 4 20 01o01]s5 ENQ 5 5 25 5 15 6 26 4 14 21 6 6 = | T 12 I'peca| 01 00/}a 01 1 018 ! 1 9 3} SP 21 (XON) 2 001 90]2 32 20 41 33 21 42 34 2 # $ % 43 35 23 44 3 24 45 o 1 48 30 &1 49 31 62 50 3 63 32 51 33 64 52 34 37 S 65 46 6 66 25 35 & 27 ’ 39 7 50 38 53 26 @ A B c D E F 55 67 G 70 36 64 40 101 65 102 52 43 68 T 106 u 44 69 70 v 107 71 w 46 |CAN | 2 ( 40 8 56 H 110 1 oo01|e | HT 11 3 a1 9 71 L 111 19 ) 51 ) 25 32 ¥* 52 : 1 ¢ 1 01w LF 1t o1 1N vT 1T 10 0112 8 18 | 12 10 A 13 18 us 26 1A 33 1 ESC 27 14 34 8 27 24 29 42 28 + B 53 43 28 54 37 a8 57 39 72 58 J 73 K 3A . ! 59 38 74 47 |l 48 49 112 74 44 113 75 4B 114 124 a b d 125 e 85 A 126 141 97 61 142 98 143 99 63 84 54 96 144 160 P 112 q 113 r 114 s 163 62 ¢ w 7 140 60 85 106 s B3 53 104 10 17 81 51 123 BS 30 121 42 S ) 50 103 1 000/|8 7 47 80 82 67 1 1 6 120 122 66 BEL 23 Q 41 o1 1 1|7 7 P 1 1 0 5 100 45 54 1 o 1 4 60 2 4 1 0 0 3 40 22 16 7 1 2 0 1 1 0 1 NUL 0 1 1 BITS 000010 0 0 71 162 72 116 73 164 t 145 u 165 v 166 wa| W 19 150 101 65 146 116 74 75 f 127 87 9 X 130 88 h |] X 120 § 131 J . 151 Y 171 . 152 k 163 Z [ 56 57 58 89 59 132 90 BA 133 91 58 134 66 147 67 68 i 1ws|] 69 106 BA 107 68 154 118 76 z { 167 77 170 78 121 79 172 122 74 173 123 78 FF 12 C 1c 28 ’ 44 < || OB 15 |5 a5 - 55 - s| = sl M | 5] 1 135 93l M | 400 111 0|14 SO 14 30 - 46 56 > 62 76 N el A 136 4 5E n 110 1111 si 15 17 37 o 137 177 aF 5F o 157 1F 47 117 F / 6F 7F troa )18 D 1D 16 36 E ESC ASCII CHARACTER| 29 1€ 3 2C ac 20 2F 57 2F 60 ? 75 3D 3E 77 63 3F L 76 ac 115 4D 78 790 \ 92 5C 5D 94 95 1 108 6C 156 6D 156 | 174 l 124 } 175 e~ 176 7C 6E 111 DEL 125 7D 126 7E 127 33 | OCTAL 27 1 DECIMAL ‘ 18 | HEX MA-TIET Figure 2-1 ASCII Chart 16 —— 117 86 102 * 161 100 64 3 70 ‘ . For example: from the sent terminal because the terminal is not set for form handling, or because the terminal handler is set to change form feed into multiple line feeds. @14) (octal <character A form feed control application program may not be executed by the An escape dollar control sign by the A horizontal spaces not @33) may be changed into a program no tab (octal @l11) or terminal the is set paragraphs describe in the into both may be changed handler, into or may terminal. uppercase characters. printable characters and characters. PRINTABLE CHARACTERS terminal characters in | receives a the following no character paper If character application following The (octal case characters may be changed control of tab control the be executed because Lower The by character terminal handler or the application program. line printable buffer. conditions received The occur: characters characters for more than and stores the right margin, each are printed when one 30 ms motion overprint command (except underline) the is greater active received column character not 1is incremented. The actual code received, the font printed character selected, than and the the active column 1is printed depends on the character and the character set selected. CONTROL CHARACTERS A control character is a single character control function used to control terminal operation. Control characters are not printed. When the LAl0@ receives a control character the terminal responds by performing the action associated with the control character. The LAl190 responds to the control characters listed in Table 2-1. Table 2-1 also 1lists each control character's mnemonic, and function. All other control characters received by the terminal cause no action. NOTE:\n\nEach mnemonic. control The mnemonic function 1s an listed in abbreviation of this chapter the control has a function name. ESCAPE AND Escape and controls character CONTROL SEQUENCES control that set. are sequences not These provided are sequences by used the are to control multiple provide additional characters character in the control fuctions that are not printed but are used to control the printing 17 Table 2-1 ANSI Control Characters Octal | Name Mnemonic Code Function Null NUL o00 Used EOT 204 End of Trans- mission as fill characters Communication Chapter). Used as ENQ @05 Request Bell BEL aga7 Sounds Backspace BS 210 Moves one Horizontal HT 211 tab Feed Vertical character answerback message. LF Tab VT audible the @12 active tone. column left to next horizontal stop. Advances g13 bell if column. Advances Tab Line disconnect enabled. Enquiry (See carriage to next line. Performs return if enabled. Advances to next vertical to next top margin tab stop. Form Feed Carriage FF 214 Advances CR g15 Returns Return Shift Out SO gl6 to line Switches to character Shift In Cancel SI @17 CAN 230 SUB Gl Immediately B32 if enabled. printer printer ends any control or any control or Ssequence. Immediately escape margin. feed set. Switches to G@ character set. escape Substitute left Performs ends sequence. Characters received with errors are replaced by SUB if enabled. is printed as " ", Escape ESC B33 Introduces Delete DEL 177 No an escape operation (not input buffer). 18 SUB sequence. stored in the and processing of characters. Escape and control sequences are defined in ANSI standards X3.41 1977 and X3.64 1979. Refer to Appendix C for more detail on escape and control sequence processing. NOTE:\n\nIf an escape or control sequence is aborted in the middle of the sequence, it is not clear what action the following character will have. It 1s therefore recommended that any abort be followed sequence by ESC \ a cancel control (octal 033 character or a no action escape 127). For example: some operating systems echo CTL (control) C as T C. The sequence ESC CTL C then becomes ESC T C which puts the If this occurs the in ANSI string processing mode. terminal <characters printable discards terminal (see ANSI string processing). if the host does not send the cancel control character. To recover from this mode, if the computer does not send the cancel control character; enter and exit SET-UP for the Letterwriter 1608, enter and exit SELF TEST for the Letterprinter 100. Detailed Sequence Definitions The following paragraphs describe in detail the escape and control sequences described which to the LAl@0 responds. in the following order. These sequences are Line Feed New Line Mode Auto Wraparound Mode Density Select Mode Pitch Select Mode Printer Character Set Designation Font Selection Request Font Configuration Report Font Configuration Horizontal Pitch (Characters Per Horizontal Margins Horizontal Tabs Vertical Form Pitch (Lines Per Inch) Inch) Length Vertical Margins Vertical Tabs Active Column and Active Product Line Identification Line Feed New Line Mode -- defines the terminals' response to the When this mode 1is off and the line feed control character. terminal receives a line feed control character, the terminal When increments the active line and advances the paper one line. the causes character control feed line this mode is on, a received 1in margin 1left the to column active the return to terminal to sequences following the Use functions. usual its to addition enable or disable line feed new line mode. 19 NOTE:\n\nCarriage return line feed mode is operator only. Refer to the Operator Guide for more detail. Name Line new feed line Mnemonic Sequence LNM ESC P33 mode Auto Wraparound printed Mode Function [ 133 2 0 h Set P62 P60 150 line ESC [ 2 Y 1 Set @33 133 P62 P60 154 -- selectable determines line feed mode new on. line feed new line mode off. where the next character is when received while the active position is greater than the right margin. When this mode is off, any characters received while the active position is at the right margin are not printed. When this position mode is is on, greater any than characters the right received margin the left margin on the next line. Use enable or disable auto wraparound mode. Name Auto Mnemonic wrap are the following Sequence DECAWM around while the printed active starting at sequences to Function ESC [ ? 7 h Set auto @33 133 @77 067 150 mode on. ESC | ? 7 P33 133 @077 067 1 154 Set auto wraparound mode off. mode wraparound Quality Select Mode -determines if received characters are printed in letter mode (medium or high density, depending on character ROM) or draft mode. See Figure 2-2 for examples. The standard DPSs are designed to print in draft mode (7 X 9 character) or letter mode/high density (33 X 18 character). Some of the optional DPSs are designed to print in draft mode (7 X 9 character) or 1letter mode/medium density (33 X 9 character). Selecting letter mode selects either 33 X 18 or 33 X 9 characters, depending on the DPS selected. NOTE: Medi andum high density terminal. DPSs can both be resident in the The terminal only responds to these sequences when the AUTO/MAN is in the automatic (up) position. When the AUTO/MAN key 1s 1in the down position and the LTR/DRAFT key 1s used to select the print quality, any quality select sequence sent to the terminal is key processed AUTO/MAN Use the Name Quality select and key is stored. set following to The the sequences Mnemonic sequences automatic to are (up) change the Sequence performed quality select the feature. Function ESC [ Y " zZ Set P33 133 060 @42 172 mode quality to (draft 20 when position. select default mode) . "RSAET (I A+, -, /01234546789 =xTRARCOREFGHIIKLMNGPGRSTUVHXYZINI T “abode FHUE (A4, -, /01234567892 ;<= 7@ARCIEFGH IJKLHNDPORSTUVHXYZIN]I"_ ‘abedef HER (D Ah+, =~ /0123456789 ;<= 7GARCIEFGH IJKLMNOPORSTUVWXYZLNI" “abcdefq DRAFT MODE PUa#SEE' () *+,-. /0123456789 ;<=>?@ABCDEFCGHIJKLMNOFQRETUVREYZC NI _‘abecd THSRE () %+ ,-. /0123456782 ;<{=;PEABCDEFGHISKLMNOPQRSTUVRXYZL\J"_‘abcde 3G () *+,-. /0123456789 ,;<=)?PBABCDEFCGHIJKLMNOPQRSTUVRIYZL\]1"_‘abcdef SE& () *+,-, /0123456789 ; (= ?EABCDEFGHIJKLMNCOFORETUVRYEYZL v 1"_'abedefy LETTER MODE (MEDIUM DENSITY) L UH#SR& ' () %+ ,-./0123456789:; {=)>7?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[C\1"~_‘abc "#S%&' ()*+,-./0123456789:; (=>?C@ABCDEFGHIJKLMNOPQRSTUVHWXYZL\]1~_'abcd #SX&' ()*+,-./0123456789:;<(=>7?@ABCDEFGHIJKLMNOPQRSTUVWXYZL[\1"_‘abcde SX&'()4+,-,/0123456789:;<=>?@ABCDEFGHIJRLMNOPQRSTUVWNXYZL\1"_‘abcdef LETTER MODE (HIGH DENSITY) MA-B300 Figure 2-2 Character 21 Density Examples Quality Esc‘[ 1 " v select @33 A61 @42 172 133 ~Set quality select mode to draft mode. Quality select ESC @33 [ 133 2 @62 " P42 Z 172 Set quality select mode to letter mode (medium Quality ESC @33 select [ 3 " z Set 133 P63 P42 172 mode quality select to letter mode (high Pitch Select Mode terminal is set eight horizontal the terminal 1s -- selects font pitches or all density) . density). pitches. When the to all pitch the terminal can print any of the pitch selections available. This is usefull when used as a 1line printer (with draft density selected). When font pitch is selected, the terminal will print at the single width pitch of the current font (18 or 12 characters per inch) or 1ts double width (5 or 6 characters per inch) only. This is useful when printing draft copies of future letter quality documents because the draft quality copy will look like the letter quality copy. all pitch. Name Pitch Use the following Mnemonic sequences to Sequence ESC [ ? 2 9 h select mode @33 Pitch select select pitch or Function Set pitch select mode to font pitches. 133 @77 0962 @71 150 ESC [ ? 2 9 1 Set @33 133 @77 @62 071 154 mode mode font density to select all pitches. Printer Character Set Designation -The character sets are usually language sets with some exceptions; the VT100 line drawing set, symbol, etc. The character sets that the terminal can actually print depends on the Dot Pattern Set (DPS) that the terminal 1is wusing and the character set selected. If the DPS currently set 1is used wused. character used. The contains the character set If DPS currently used the set selected, standard DPSs ISO ~ USASCITI Kingdom - DIGITAL Finnish DIGITAL Norwegian/Danish DIGITAL Swedish German DIGITAL French ISO French IS0 Italian h IS0 Canadian Spanish DIGITAL VT100 does that not character contain the default character set for that DPS contain the following character sets: ~ ISO United selected, line drawing 22 set the 1is Four of these character two are only). are as ‘sequence. two and the control character sets. selects the GO control (remains 1locking G@ Once single sets locking nonlocking The computer a character sets be preselected active active character Gl using character character The shift character character can (remains selects the sets is for one sets are select are used (designated). until character designated character switch by Two command), printable designated to next set the between by the (SCS) computer, the active in (SI, octal 017) control character set. The shift out (SO, octal @16) the Gl character set. The designated character sets are used until another select character set (SCS) sequence is received. The G@ and Gl character sets can character be redesignated set (SCS) by sequence the as often computer as needed. using the select The sequence used to designate the G@ character set 1is ESC ( (octal 033 050), followed by a valid final character. The sequence used to designate the Gl character followed by a valid final The nonlocking character two set is ESC ) (octal 933 @51), G3 using character. sets are designated G2 and the select character set (SCS) sequence. The G2 and G3 character sets are activated for only one character at a time. They are activated using the single shift 2 (ESC N) (octal and single shift 3 (ESC 0) (octal ©#33 116) for G3 terminal returns to the previously used character single character is printed. The sequence used to designate the G2 character #33 115) for G2 sequences. set after set 1is The the ESC * (octal @033 ©952), followed by a valid final character. The sequence used to designate the G3 character set is ESC + (octal @033 @53), followed by a valid final character. Table valid 2-2 lists the currently final characters. Font Selection -fonts or styles. character but character sets and their The LAl0@@® can print characters in different Changing a font changes the shape of the does currently provides available not the change the following character itself. Digital fonts: Courier Gothic Orator Symbols Additional fonts will be available in the future. The terminal contain up to five fonts accessible at a given time. If multiple these the font option sequences operator when forces a is installed, the font option from is the set terminal to the multiple only computer select. 23 responds select. font option select sequences sent to the terminal are processed The sequences are performed when the option is set can the any to When font and stored. to computer Character Set Final Characters Table 2-2 Character ISO Set United Final Kingdom USASCII DIGITAL Character A 1901 B 102 Finnish 5 @365 DIGITAL Norwegian/Danish 6 66 DIGITAL Swedish 7 267 ISO German DIGITAL French K 113 Canadian 9 071 ISO French R 122 DIGITAL VT100 drawing ISO set Italian line 1) @60 Y 131 ISO Spanish Z 132 24 This sequence 1is also used to set or clear the underline attribute. This feature is used to underline characters. Use the following sequences to select a font or the underline attribute. NOTE:\n\nIf the selected font selects the default (font 1). Name Mnemonic is not installed, Sequence Font ESC Font select the terminal Function [ 4 m Select ESC [ @ m Clear @33 133 @60 155 Font select ESC @33 [ 1 Y m 133 061 @60 155 Select Font 1 Font select ESC P33 [ 1 1 m 133 @61 @61 155 Select Font 2 Font select ESC @33 [ 133 1 @61 2 m @62 155 Select Font 3 Font select ESC @33 [ 133 1 @61 3 m P63 155 Select Font 4 Font ESC [ 1 4 m Select Font 5 select @33 133 @61 @64 155 select P33 133 P64 155 underline underline Request Font Configuration -- causes the terminal to send the font font configuration report to the computer. Send the following sequence to the LAl@0 to request Request ESC Font Configuration @33 [ 133 font ? 077 1 @61 configuration. 0 C 060 143 Causes LAl@0@ to send font configuration report ESC [ 2 Pn ; Pn SP D once for each installed NOTE: SP Report represents Font the each font space Configuration configuration for the request installed selection -- with font. code. character the the The One Selection Font 1 10 Font 2 11 Font 3 12 Font Font 4 5 13 14 Code 25 ESC code 0440). responds to the [ Pn SP parameter selection font. Font terminal sequence first (octal font. is ? Pn in ; the font D once sequence available for 1is each NOTE:\n\nFont selection code 10 is always present It therefore indicates the end of the report. and The font second parameter indicates the font indicates the following information. Font l - 65 128 - the The last. type 200 2 density font 3 density font custom font code the USASCII and an even number character sets. United is an font odd number less than 127, the font contains United Kingdom character sets. If the font code is less than 128, the font contains the following Kingdom USASCII Finnish Norwegian/Danish Swedish German French Canadian French Italian Spanish VT100 At this Font code Indicates: 64 - 129 If Code type. sent line time drawing the Code set currently Font assigned font codes are: Type @3 77 11 Gothic 12, US and UK character sets Courier 12, US and UK character sets Symbol 1@, US and UK character sets A5 Courier g6 ?9 Courier 10, standard Orator 1M, US and UK NOTE:\n\nRefer to the ROM 10, US Option and UK character overlay character Documentation 26 for sets sets more codes. Horizontal Pitch determines the spacing. (Figure print The (Characters width of terminal Any 2-3). line. Per printed has eight Horizontal pitch characters Inch) -- as their horizontal pitch well as selections a single combinations of pitch may be used on NOTE:\n\nThe actual horizontal pitch used by the terminal depends on the density select mode, pitch select mode and horizontal pitch r features when attempting to select to all three features. Refe horizontal Changing modified pitch. the horizontal pitch modifies new active column is the first the active column. The column boundary at or to the right of the physical position of the previous active column in the old pitch. New active column is calculated in the following way. (01d column New column = 1 The or X New pitch + 0ld where 1) pitch New column New pitch 0ld column = = = the new active column the new pitch in inches the old active column 0ld pitch = the old division performed fractional part of above is an the quotient pitch in per character inches per character integer division. Any remainder is discarded. Changing horizontal pitch also clears horizontal margins. The left margin is set to column one and the right margin is set to the maximum column for the selected pitch (Table 2-3). The horizontal (char/in). The pitch default following selection sequences is are 10 used characters to set per inch horizontal pitch. Name Set horizontal pitch Mnemonic DECSHORP Sequence ESC [ @ w Function Set horizontal P33 133 066 167 to ESC @33 ESC @33 [ 133 [ 133 1 W 061 167 2 W @862 167 27 10 pitch char/in Set horizontal to 10 char/in Set horizontal to 12 char/in pitch pitch i = & DHAaRAODTERS CHARACTERS &H.6 CHARACTERS 8.25 CHARACTERS 10 CHAKACTERS PER 12 CHARACTERS PER INCH 3.2 CHARACTERS PER INCH 2-3 DM O OLNCH FER PER INCH INCH INCH 16.5 CHARACTERS PER INCH Figure PER PER MA-B323 Horizontal 28 Pitch Examples W 3 ESC [ @33 133 063 167 Set horizontal pitch to 13.2 char/in ESC @33 w 4 [ 133 064 167 Set horizontal pitch to 16.5 char/in ESC [ @33 133 5 065 Set horizontal pitch w 167 to 5 char/in w 6 ESC [ @33 133 @66 167 Set horizontal pitch to 6 char/in W 7 ESC [ @33 133 867 1lo7 Set horizontal pitch to 6.6 char/in w 8 ESC [ @33 133 @70 167 Set horizontal pitch to 8.25 char/in Horizontal Margins -- The left horizontal margin specifies the first printable column on a 1line; the right horizontal margin specifies the column printable last on a Printing line. 1is permitted only within the left and right margins inclusive (Figure The set horizontal margins sequence when accompanied by two parameters, sets the left and right margins. If both parameters are not zero, and the first is the smaller of the two, the 1left is margin set to the first specified parameter and the right margin is set to the second. The carriage is then repositioned to the new left margin. the horizontal NOTE:\n\nChanging the horizontal pitch modifies margins. The left margin is set to column one and the right margin is set to the maximum right margin in the selected horizontal (Table pitch 2-3). The sequence is ignored if the first parameter 1is greater than the second parameter. The sequence 1is also 1ignored if one of the specified parameters would set the right margin further right than 13.2 inches. If the first parameter in the sequence is omitted, the remaining parameter sets the right margin to the specified value. If an attempt is made to set the right margin to the left of the left margin, the sequence is ignored. If the second parameter in the sequence is omitted, the first parameter sets the left margin to the specified value. If an attempt is made to set the left margin to the right of the right margin, the sequence is ignored. If the active column is less than the new left margin, it is set to carriage is repositioned. 29 the new left margin and the RIGHT MARGIN TAB SE TTING // . / S LEFT MARGIN Figure 2-4 Horizontal Margins 30 and Tabs Table 2-3 Horizontal 10 Maximum Right Margins Pitch Maximum Column 132 158 168 216 66 79 84 108 31 If both parameters are zero or omitted, The default default The setting setting following Name Set left and right for for the sequence the right is left margin used to the margins are unchanged. margin is is column set the left column one. The 132. and right Mnemonic Sequence DECSLRM ESC [ Pn : Pn S 933 Set 133 *** @73 *** 163 margins margins. Function margins left values and right to the given NOTE:\n\nThe *** character is used to indicate variable numeric parameters within the octal representation of the control or escape sequence. Horizontal Tabs -- A horizontal tab is a preselected point on a line to which the printe head advances when a horizontal tab control character is received (Figure 2-4). The LAl9@ has 217 possible horizontal tab stops, one for each column. Tab stops are associated with column numbers, not physical positions on the paper. Therefore, physical position independently. is true or cleared for settings The changing of Setting clearing regardless for tab a a horizontal following pitch stop may also be already set has no already cleared. Tab margins tabs sequences Each stop stop of horizontal stops. are are changes set or or horizontal every nine columns. used to set or pitch. clear The Mnemonic Sequence Horizontal Function HTS ESC @33 Set horizontal stop at active tabulation set tab tab column Horizontal DECHTS tabulation ESC 1 Set B33 @61 stop set horizontal at tab active column Tabulation TBC clear Tabulation TBC clear Tabulation TBC clear Clear default horizontal Name H 110 cleared effect; the same stops may be set one stops. the All horizontal tabs DECCAHT ESC [ ) g Clear @33 133 060 147 tab at ESC | 2 g Clear @33 133 062 147 tab active all column horizontal stops ESC [ 3 g Clear B33 133 @63 147 tab all horizontal stops ESC 2 @33 Clear 062 tab 32 horizontal all stops horizontal NOTE:\n\nThe *** character is used to indicate variable numeric parameters within the octal representation of the control or escape sequence. DECSHTS Set ESC @33 horizontal tabs [ Pn 133 ***x H @73 .es ,,. PN *** u 165 Set horizontal stops given tab the at values *Vertical Pitch -- Vertical pitch determines the spacing between lines, not the height of printed characters (Figure 2-5). The LA190@ has six vertical pitch selections. Changing vertical pitch changes: the active line. Causes the active line to the next vertical motion command so that M between the top margin and the active line the pitch selected. multiple of the action of the form move down on the distance is an integer length command. the action of set top and bottom margin commands. the position of the last printed line on the form. The last printed line will always be above the bottom margin. the position * Note that DIGITAL terminals. Changing vertical ey the vertical the top of the form form vertical pitch pitch does the the of tabs. feature not is different affect: reference. length. top margin. The the same position. the bottom margin. first The below the bottom margin. line will last line always be will never The vertical pitch default selection is six lines following sequences are used to set vertical pitch. Name Set vertical pitch from previous Mnemonic DECVERP per printed be at printed inch. The Sequence z Y ESC [ @33 133 060 172 Function Set vertical pitch to six lines per 1inch ESC @33 Set vertical pitch six lines per inch [ 133 1 @61 33 z 172 to L] 2 LPI $ELE (2 kb, - 3LPI 4 LPI KX174 2X 0T 6 LPI Creero LUESLE AA R "ESLR IO DA+ 8 LPI (A S WO FEAR O A+, D TEEUR & 25IR $%LC () A+ CESUR $F$UR ()(A A+ ¥4787 Ok+, v X (Y +,?’”?‘ A+, LR A+, -, B A, 74 R GF TINEN $FSAR OVA+, SUR O k+,~ & (YA+,~.70 Figure 2-5 Vertical O k+,-./ Pitch 34 Examples ESC @33 ESC [ 2 z 133 062 172 Set vertical pitch to eight lines per inch @33 133 [ 3 z Set vertical pitch to ESC @33 [ 133 4 064 z 172 Set vertical pitch two lines per inch to ESC [ 5 Z Set vertical to @33 133 065 172 three lines per ESC [ 6 Z Set vertical @33 133 066 172 four @63 172 twelve lines per inch pitch inch pitch lines per to inch *Form Length -- The LAl@#@ can operate in one of two modes: form mode or no form mode (roll paper). In the no form mode, there is no form length or vertical lines being * Note DIGITAL margins, spaced appart according that the form length printing to occurs continuously, the current pitch. feature is different from previous terminals. When in form mode, the terminal will not print above the top margin or below the bottom margins, and lines will be spaced so that the distance between active line and top margin is always a (Figure 2-6). multiple of the current pitch. When a form length of zero is defined for the terminal, the LAl00® assumes that roll paper is being used and enters the no form mode, When a non zero form length is given, the terminal assumes that form paper is being used, and enters the form mode. The form length is measured in lines 1/24 of an inch. The form length can be no longer than 21 inches. To set form length, first try to ensure that the terminal is at the top of form. NOTE :\n\nRemember top margin, top margin must Measure current the a form be cleared. feed puts the is a pitch, set a or multiple the form of this 1length new vertical is active pitch. not a If that that the multiple default sets form form length the know the new form the vertical of pitch 1is pitch. and all Then, send the form length command with the parameter form length multiplied by the current vertical pitch. sequence at form the you the current NOTE:\n\nMost form lengths are a multiple of 1/12, form lengths are either a multiple of 1/12 or 1/8. The line To advance to the top of the form 1length in inches. Ensure vertical pitch of the terminal and length unknown that not the top of form. selection length. 35 1is 11 inches. equal The allowed to the following ° o < X |e o 1234567890abcdefghij < . ] o @ 1/3 m_I ° o 9 -a - T -G W T 1234567890abcdefghij. 1234567890abcdefghij 1234567890abcdefghij 1234567890abcdefghij - E o MARGIN o L 1234567890abcdefghij 1234567890abcdefghij ———UNUSED 1234567890abcdefghij AREELEEE-ELE N o L+ BOTTOM 1234567890abcdefghij o —X < 1234567890abcdefghij 1/2 in. 1 R o . |e A ——F 1° 1934567890abcdefghij 1/2in. | 3 1pi TO 2 Ipi LIV i 1/3 En‘" ° TOP MARGIN oilooo oo o £ el Qf@GQQQQQQQQQQGQQ o 2 Ipi === == === R==== TOP OF FORM — c0c0c0006000 0o FORM NOTE: ALWAYS START PRINTING AT TOP MARGIN OR AT SOME DISTANCE FROM TOP MARGIN THAT IS A MULTIPLE OF THE CURRENT VERTICAL PITCH. NEVER PRINT BELOW BOTTOM MARGIN. NO FORM 3 Ipi 1234567890abcdefghij 31pi TO 2 Ipi 1/3 m., 1234567890abcdefghij 1234567890abcdefghij 1234567890abcdefghij Lol 1234567890abcdefghij e IRt§ 2 lpi 1234567890abcdefghij 1234567890abcdefghij 1234567890abcdefghij 1/2 in. 1234567890abcdefghij 1234567890abcdefghij 1/2 in. 1234567890abcdefghij 1234567890abcdefghij 1234567890abcdefghij 1/2 in. 1234567890abcdefghij 1234567890abcdefghij 1234567890abcdefghij 1234567890abcdefghij NOTE: ALWAYS PRINT LINES EVENLY ACCORDING TO VERTICAL PITCH, Figure 2-6 Form/No Form Mode 36 MA-B388 Sequence Pn ESC [ @33 133 *** Mnemonic Name DECSLPP Set lines per physical page Function Set form 1eggth to n X pitch in inches, set top margin to 0 t 164 active line inches, to line one, set top of form to current position, and a set form bottom margin to length. NOTE :\n\nThe *** character is used to indicate variable numeric parameters within the octal representation of the control or escape sequence. Vertical Margins -- The top vertical margin specifies the first printable line; the bottom vertical margin specifies the limit for the last printable line (Figure 2-8). Printing is allowed only on the lines between the top and bottom margins (including the top margin). The vertical bottom margin may pitch. not be included depending on the To set the top and bottom margins, first be sure that the distance between the top of form and the desired margin is a multiple of the vertical pitch selected. Otherwise, change the pitch and then send the set margin command with a parameter equal to the desired margin in inches multiplied by the current vertical pitch in lines per inch. Attempting to print above the top margin or below the bottom margin automatically advances the active line to the top margin of the next page. For example, a line feed (LF) received at the bottom margin causes the terminal to perform a form feed. The set set vertical the top and and the first is margins sequence, accompanied by two parameters, bottom margins. If both parameters are not zero the smaller of the two, the top margin is set to than or the first parameter and the bottom is set to the second. Then the paper may be repositioned to the new top margin depending on the current line position and terminal activity. The sequence of the If the equal to is specified assigned ignored form the parameters length. first parameter parameter if the second parameter. sets the in bottom first parameter The sequence would the set sequence margin to the is the is greater is also ignored omitted, the bottom margin specified if one past remaining line. If attempt is made to set the bottom margin above the top margin, sequence is ignored. 37 the an the If the second parameter parameter in the sequence is top margin to the specified sets omitted, line. If the the first an attempt is made sequence to set the top margin below the bottom margin, is ignored. If the active line is less than the new margin, it 1is set to the new top margin and the paper repositioned. top is If both parameters are unchanged. The default are The default The selection following Name Set top, for set to zero or omitted the margins top margin selection is top of form. the bottom margin is 11 inches. sequences set the top and bottom margins. Mnemonic Sequence DECSTBM ESC | Pn : Pn r P33 133 *** (73 *** 162 bottom margins Function Set top margin to line Pn and bottom margin to line NOTE:\n\nThe parameters escape the is octal used to indicate representation Pn variable of the preselected line numeric control or sequence, Vertical print *** character withln the Tabs head received -- A vertical advances (Figure positions. tab when 2-7). a is a vertical The tab terminal control has 168 to which the character vertical is tab Vertical tabs may be set and cleared like horizontal tabs. Vertical tab stops are associated with specific 1line numbers, not physical positions on the paper. Therefore, changing vertical the pitch paper. line. The 168 inches lines the default following NOTE:\n\n2l first changes The printing settings sequences at set tab set lines. Only stops. 233 DECVTS stops. inch ESC J Vertical tab tab Sequence set vertical per Mnemonic tab one lines VTS tabs are vertical Vertical vertical tabs clear Name of vertical or 12 can have position for = 252 on every the Function Set vertical 112 tab stop at active line ESC 3 Same @33 063 NOTE:\n\nThe *** character is used to indicate variable numeric parameters within the octal representation of the control or escape sequence. Name Mnemonic Sequence Set DECSVTS ESC [ Pn H @33 133 *** @73 vertical tab stops Function ees Pn v Set vertical *** 166 tab stops lines 38 at given (=] [«] -fl o ° 0 o [+ o ° ° 2 . -2 INCHES 1 o 3 . wrior) g SiX -t MHOFQRETY PER NOFORS TUVKX [ LINES ) | o, KLMNOPORSTY ‘ 3 [+ . ;I ° L] lsnoparsTuvkd MA-TT13A Figure 2-7 Vertical Features 39 Tabulation TBC ESC @33 clear [ 133 1 @6l g 147 Clear vertical stop at active Tabulation TBC clear tab line ESC [ 4 g Clear @33 133 964 147 vertical all tab stops Clear All DECCAVT vertical ESC 4 #33 @64 Same tabs Active Column the next and Active character will Line be -- Active printed. column Active is line the is column the the next character is printed. Column and line numbers one, not zero. Printable characters usually increment column. Line active line. feeds, vertical tabs, and form feeds where line where begin with the active increment the The active column and active line are collectively known as active position. Active position is only loosely linked to the physical position of the carriage and paper mechanism. When auto last moves .4 inches one second. character to This the view right action is selected, whenever allows the the printing last terminal stops character viewed. carriage more printed However active column is not affected by this characters do not have an active position attribute. Bell not for guaranteed to be sounded at any particular Name Index escape sequences modify active be feature. They are position. In addition to the control characters (backspace, carriage return, 1line feed, vertical tab, and following than to column horizontal form feed) and active tab, the line. Mnemonic Sequence Function IND ESC D 933 104 Increment active line and advance paper -line feed new line mode has no effect feature on this NOTE :\n\nThe *** character is used to indicate variable numeric parameters within the octal representation of the control or escape sequence, Vertical position VPA ESC @33 [ 133 Pn *** absolute d 144 Set active line to Pnif Pn is less than or equal to active line, or is greater bottom margin, line is set to margin on next 40 than active top page Next line Horizontal position NEL HPA ESC E @33 105 Set active column to left margin and increment active line ESC | Pn @33 133 *** 149 absolute Set active column to column Pn -- if Pn is greater than right margin, active column is set to left margin on is to next line -less than or left margin, column is set if Pn equal active to left margin Horizontal position relative HPR ESC [ Pn @33 133 **% Advance 141 of -- actual value of 1f Pn = @, then motion Cursor up Cuu ESC [ Pn P33 133 *** 101 current active column by Pn columns -- if active column exceeds right margin, active column is set to left margin on next line regardless Pn no occurs Decrement current active line by Pn lines without going past top ~margin -- if Pn is greater than or equal to current active line, sequence 1is ignored Vertical position relative VPR ESC G333 [ 133 Pn **% 145 Advance active line by Pn lines -- if Pn = @, 256 lines is assumed, if parameter exceeds bottom margin, active line is set to top margin on next page regardless of actual value of Pn NOTE :\n\nThe PLD sequence does not modify active line. To avoid losing the top of form reference send an equal number of PLU sequences to the terminal. Partial line down PLD ESC K P33 113 Index paper up .212 cm (1/12 inch) -- 1line feed new line mode has no effect on this sequence 41 NOTE:\n\nThe PLU sequence does not modify active losing the top of form reference, send an equal sequences to the terminal. Partial line PLU ESC P33 up L 114 line. To avoid number of PLD o Index paper down .212 cm (1/12 inch) =-- 1line * feed no new line effect on mode has this sequence Reverse RI index ESC M Decrement @33 115 and move line -- active paper line line down feed line mode has no on this sequence Product Identification -- The LAl@@ automatically one new effect transmits an answer to the ANSI standard request for device attributes. The following sequences cause the terminal to transmit 1its product identification sequence. Name Device attributes Mnemonic DA Sequence ESC | C @33 133 143 Function Transmits ESC [ 21 @ ¢ which forms the | product identification the . of basic LA1Q@. Device attributes DA ESC 33 [ 133 *Identify DECID ESC Z @33 132 terminal * This sequence is provided ] 960@ for compatibility with previous It may not be supported therefore not CONTROL When the Same Same products. ANSI C 143 in future products and 1is recommended. STRINGS terminal | receives any of the escape sequences 1listed below, it responds as usual to control characters received (octal pP@ -- 937 and 177) and discards any printable characters received . when : (octal 040 one ~ of -- the 176). The following terminal ESC \(octal ©33 134) CAN (cancel), SUB error occur. to is received. (substitute), received an reverts conditions text or processing mode ESC (escape) V occurs. 42 1is Name Mnemonic Sequence Application program command APC ESC @33 137 Operating 0SC ESC @33 ] 135 PM ESC ~ system command Privacy message Device DCS @33 136 ESC P @33 120 control NOTE:\n\nThe LAl0¢ remains in DCS mode until it recognizes a valid protocol selector, or the terminal receives the terminator sequence ESC \. For more detail on DCS mode refer to the Graphics Mode and Answerback Message sections 1n this chapter. GRAPHICS MODE While in text mode, dots to be In graphics mode, characters characters printed. are printed received Graphics mode allows combinations anywhere on pictures and plot graphs a page. This (Figure 2-8). After mode, pitch, margins entering graphics the and horizontal margins change. section describes as define mode they are received. specific columns of users print dot can be to used to draw | vertical pitch, horizontal The graphics mode pitch and these changes. DIGITAL does not recommend using single paper when operating in graphics mode. sheet or tractor | feed The terminal has a horizontal resolution of 132 columns per inch with a 50 percent overlap, and a vertical resolution of 72 dots per inch with no overlap between dots. There is a 44 percent dot overlap between lines. The aspect ratio (ratio of horizontal to vertical resolution) 1is 1.83. GRAPHICS STRING FORMAT The format for a string of graphics data is as follows. DCS introducer Protocol Data ESC selector DCS terminator DCS INTRODUCER and waits Pn g P Control characters or column definitions ESC \ when the terminal receives the DCS introducer, for the correct protocol selector. is the ANSI DCS introducer sequence ESC P DCS introducer (octal 033 129). When the protocol selector is received the process data as described in the data section. 43 it enters DCS mode The terminal begins to Iy "Vd*el a““‘ EXPENDITURES FURLIC AAD PRIERTE SXHMRE S ENROLLMENT BILLIONS OF DOLLARS KHILLIONS 100 109 Errollment, 7% |- total 7 Public EnrolIlment :}— Right Scale R Private Enroliment # 7% — Total Expenditures --»- Public Expenditures Left Scale - Pravate Expenditures 50 5 - 50 | # e - 25 0 | 1972 Bl | 0 1974 MA B389 Figure 2-8 Graphics Capabilities e 44 The terminal is not out of remains in DCS mode if the proper protocol selector received, or if the terminal receives a character that is range before the correct protocol selector is recognized. PROTOCOL SELECTOR After receiving the DCS 1ntroducer, the protocol selector causes the terminal to enter graphics mode. The protocol selector for the terminal consists of a numeric parameter and a final character. The correct protocol selector is 1 (octal @061) and g (octal 161). Valid protocol selectors include: @ selects default graphics protocol l selects DECwriter 2 - 255 reserved IV protocol for (same as (described in 1 for this LAl10%) section) future development. DATA The data contained within a graphics string can either be control characters or printable data. The following paragraphs describe the control mode, characters to which the terminal responds in and the format of the printable characters received. Control Characters In graphics mode, the terminal responds to the graphics following control characters. ANSI Control Characters Table 2-4 lists and describes the in the @08 to 037 octal range graphics mode. - Private Control ANSI control characters that are processed 1in Characters Table 2-5 1lists and describes the private control characters in the 0404 -@076 octal range that are processed in graphics mode. Printable Data After the proper protocol selector 1is received, any received in the @77 -- 176 octal range 1is considered character printable data. These characters define a column of six dots to be printed. This allows (Figure not used 2-9). in Printable of fset printhead is The set firing seventh, graphics mode. characters (octal character bit selective @77) received. wire to is 1is are The of result and a dot in from is a six top ninth the the dot printed, six printhead wires printhead wires are following way. The binary column if the value of the definition. A corresponding one. The least significant bit is wire (wire one). The sixth printhead wire, mode. and processed subtracted fired, the eighth and is the associated with the top printhead bit 1s associated with the sixth last wire that can be fired in graphics 45 Table 2-4 Graphics ANSI Control Characters Name Mnemonic Octal Code Cancel CAN @30 Immediately graphics. Substitute SUB @332 Replaces any character received with errors. When received in Function graphics, one Escape ESC 233 SUB column Causes the graphics causes is an exit processed as a space. terminal and process to exit the sequence. NOTE :\n\nNUL, text mode EOT, (refer ENQ, BEL, to Table 2-1). DEL, SI, and SO are BS, LF, CR,'FF, HT, and VT are ignored in graphics. 46 processed as in Table 2-5 Graphics Private Control Characters Octal ASCII Character Function DECGRI p41 ! Begin repeat sequence DECGCR g44 S Returns to graphics left margin DECGNL @55 - Returns to graphics Name Mnemonic Graphics Code Repeat Introducer Graphics Carriage Return Graphics New Line left margin and and ~advances graphics 47 to next line Figure 2-9 COU~ MNP Wy BOTTOM 000000000 WIRE TOP BIT 1 BIT 2 BIT3 BIT 4 BITS BIT6 NOT USED NOT USED NOT USED Graphics Printhead Use RNy 48 ve AU bW W+~ YUt Top Tt Wire 7 Not used 8 Not used Bottom 9 Not used Refer to Repeat Sequence Table 2-6 for several printable character examples. A repeat sequence allows the terminal to continually print a dot column for a specified number of times. It has the same effect as receiving the defined follows. as dot column Repeat introducer Numeric parameter Dot column The repeat (octal sequence that many times. A repeat sequence 1is ! (octal 041) Number of times to print the (characters in the octal range of Character in the @77 -- 176 octal dot column 068 - @71) range introducer character is the private control ! @41). The numeric parameter specifies the number of times to print the column definition that follows. The numeric parameter 1s a string of characters in the @60 -@71 octal range. If a numeric parameter is not specified, a value of zero is assumed for the numeric parameter. If the wvalue specified 1is larger than the graphic printer limit for numeric parameters (64 K), the limit assumed. All decimal digits are processed as part of the count. 1is The 1is dot printed All column (a character as many times control in the @977 as specified characters received during usual. example, the processed as the repeat sequence All unspecified DCS Terminator For by the -- 176 numeric a octal repeat control range) parameter count. sequence character ! are resets count. characters (octal @872 -- 076) are ignored. The DCS terminator ESC \ (octal @33 134) causes the- terminal to exit graphics mode and revert to text mode character processing. The CAN (cancel) or ESC (escape) control characters also cause the terminal to exit graphics mode. If the ESC control character 1s terminal received, the the sequence. escape exits graphics mode 49 and starts processing Table 2-6 Character Printable Character Octal Value Binary Value (minus ? 077 Examples Wires Offset) 0e000000 o o O O O O @ 100 0P0B0001 * O O O O O ~ 176 P3111111 * * * * * * B 137 00100000 o O O O O * 50 Fired After an exit graphics, the terminal is set to the following: Text mode features (margins, pitch) are restored o Vertical position the control just before entering according modified is characters received while in graphics mode is position Horizontal graphics mode the same as to The first text mode vertical motion command causes the terminal to advance to the next text mode line before executing the command. GRAPHICS MODE PITCH In graphic mode inch the horizontal (9.5 characters per inch). lines per pitch is to set 132 columns per The vertical pitch is set to 1/12 inch. GRAPHICS MODE MARGINS Graphics mode maximum line length depends on the horizontal pitch and the margins selected in text mode. In graphics mode, the maximum line 1length is 13.1 inches (1,736 dots). To use the maximum line length, the following conditions must be met before entering graphics mode. the - inch actual horizontal (depends on density selection). pitch pitch must setting, 10 be pitch characters mode, and per the Text mode left margin must be set to column one Text mode right margin must be set to column 132 Active column must be column one After entering graphics mode the left margin is repositioned to the right .11 inches maximum of the last printed column in text mode. Graphics mode left margin is calculated as follows: Left Margin = (Current Active Column - 1) X 0ld Pitch 70 If there is a remainder, round up to the next whole number. After entering graphics mode the right margin the left of the text mode right margin is repositioned (.11 inches maximum). graphics mode right margin is calculated as follows: 01ld Right Margin X 0ld Pitch Right Margin = Discard any 70 remainder. 51 to The If an attempt responds is made according to to print the auto past the right wraparound Superscript or subscript can be used to mode comments. Reverse line feed is the graphics mode vertical vertical ANSWERBACK MESSAGE Answerback 1is a the terminal pitch may not pitch. ENTRY message for the up to thirty computer. This the terminal selection. label grahic data with not recommended because text mode margin, mode be the same characters message is that as the text identifies transmitted upon request from the computer, the keyboard (Letterwriter 10¢ only), or automaticallly if enabled (refer to the auto answerback feature in the Operator Guide). Both printable the answerback and control characters To characters, Answerback Message The format for DCS introducer Protocol the message Format an answerback ESC selector Pn Data terminator DCS Introducer When the and waits the ESC terminal for ANSI message hexadecimal encoded. is: P Answerback Message Text \ receives the introducer, it enters correct protocol selector. introducer The DCS sequence ESC the DCS is v Encoded DCS is and control characters can be part of allow down line entry of both printable message. DCS P (octal @33 DCS monde introducer 129). The protocol selector is followed by the text of the answerback message coded in hexadecimal format. The terminal remains in DCS mode 1f the proper protocol selector is not received, or if the terminal receives a character that is out of range before the correct protocol Protocol selector is recognized. Selector After receiving the terminal to selector for parameter g6l) and and v the DCS introducer, the protocol selector causes enter answerback message entry mode. The protocol answerback message entry consists of a numeric a final (octal character. The correct protocol 166). is 1 (octal NOTE:\n\nWhen the protocol selector is recognized the message operating memory is erased. However the message stored in user permanent memory remains the same until the next store 1is performed. Stored in Data After the proper (8 @37 and --— 177 protocol octal selector range) are 52 is received, executed as control usual. characters Hexadecimal digits (character in the 0606 -- @971, 191 -- 106, 141 -- 146 octal range) are grouped in pairs to give the hexadecimal equivalent of the character to be entered in the answerback message. Any character from @ -- 177 (octal) can be entered in the answerback message using the hex encoding system (see example). When the protocol operating memory selector is is erased. recognized Then a the message character 1is stored added to in the message every time a pair of hexadecimal digits has been received. NOTE:The message padding in NUL is not made control 30 characters long characters are needed, automatically. If they must be included the message. Example: The following DCS introducer | l string will Protocol I | ==~ down selector Hex | === | =r e line the message encoded message : LAl@0 DCS I l terminator | ——-| ESC P 1 \V 4 C 4 1 3 1 3 ) 3 Y ESC \ @33 120 ¥61 166 064 103 064 061 063 @61 063 P60 063 P60 @33 not a Octal 134 Equivalent Error Processing Any character received digit is discarded If an odd processed If the number by hex of which is digits 1is control character received, the 1last character is larger or hex digit 1is than 7F itself value received HEX, the character (1A HEX). is for replaced Once 30 answerback message characters are discarded. a the SUB control characters are received, 53 by character further e Digital Equipment Corporation « Bedford, MA 01730
Home
Privacy and Data
Site structure and layout ©2025 Majenko Technologies