• Aucun résultat trouvé

PERIPHERAL CONTROL

Dans le document Station System (Page 109-112)

These codes are sent from the host to the UTS 30 for control of the printer and diskette subsystems. In data transfers to peripherals, the SOE character is always suppressed. The data to be sent starts with the first character to the right of the SOE character, or with the character in the home position if no SOE is present. These codes are sent as the last sequence before the ETX character in the text message.

4.5.1. Peripheral Initiation Codes

4.5.1.1. Transfer All Fields (ESC G)

This code causes the UTS 30 to send to peripherals all characters from SOE (or home position if there is no SOE) through the cursor position. FCC sequences are included. Spaces at the ends of fields are suppressed except in front of SO/SI-protected fields. Spaces at ends of lines are suppressed (except in the line containing the cursor). The OLE code is used in place of the CR code to indicate the ends of lines.

4.5.1.2. Transfer Variable Fields (ESC F)

This code causes the UTS 30 to send to peripherals only the unprotected fields between the SOE (or home position) through the cursor position. FCC sequences (of the unprotected fields) are transferred. Spaces at the ends of lines are suppressed, except in the line containing the cursor.

The OLE code is used in place of the CR code to indicate the ends of lines.

4.5.1.3. Transfer Changed Fields (ESC E)

This code causes the UTS 30 to send to peripherals only the changed fields between SOE (or home position) through the cursor position. FCC sequences are included for each changed field transferred. Spaces at the ends of fields are suppressed except in the line containing the cursor.

The OLE code is used in place of the CR code to indicate the end of a line.

4.5.1.4. Print (DC2)

This code causes· the UTS 30 to send to the printer all characters from the SOE (or home position) through the cursor position. FCC sequences are not included. Spaces at ends of lines are suppressed except in the line containing the cursor. The CR code is used to indicate the ends

UP-9799 Rev. 1

4.5.1.5. Print Form (ESC H)

SPERRY UTS 30 SINGLE STATION

System Reference 4-19

This code causes the UTS 30 to send to the printer all characters from the SOE (or home position) through the cursor position. Protected characters are replaced by spaces (SP) in the data stream. FCC sequences are not included. Spaces at the ends of lines are suppressed, except in the line containing the cursor. The CR code is used to indicate the ends of lines.

4.5.1.6. Print Transparent (ESC DC2)

This code causes the UTS 30 to send to the printer all characters from the SOE (or home position) through the cursor position. Spaces are not suppressed. FCC sequences are not included. Cursor returns (CR) are suppressed.

4.5.2. Control Codes for Printers

The UTS 30 is transparent (passive) to these functions. However, these codes may be displayed on the screen if the CC/ON option in the (PARAM) field is chosen. (See Appendix J.) If the last character of a message is not a print initiation character (CR, VT, LF, FF), the terminal adds a line feed (LF) code to the message.

4.5.2.1. Line Feed (LF)

This code causes the printer to perform a line feed operation. The LF code is placed in display storage at the cursor position and appears as a blank on the screen.

4.5.2.2. Form Feed (FF)

When sent to a printer, this code causes the printer to perform a form feed operation. The FF code is placed in oisplay storage at the cursor position and appears

asa

blank on the screen.

4.5.2.3. Vertical Tab (VT)

When sent to a printer, this code causes a vertical tab operation to be performed by the printer.

The VT character should not be immediately preceded by an escape character unless a cursor-positioning sequence is intended. The VT code is placed in display storage at the cursor position and appears as a blank on the screen.

4.5.2.4. Carriage Return (CR)

The cursor return code, when sent to a printer, causes the printer to perform a carriage return (new line). This character is the same as the cursor return character discussed in 4.4.1.4 and 4.4.6.3.

4-20

SPERRY UTS 30 SINGLE STATION

System Reference UP-9799 Rev. 1

4.5.2.5. Search (CAN)

This code, preceded by an SOE (RS) and followed by an appropriate command, specifies a search operation, opens a file, creates a file, or closes a file on a diskette.

The search operations are as follows:

RS CAN xxxx Positions the read/write head at the screen block number designated by xxxx (0001-9999).

RS CAN xxxx/header Searches for the screen block number designated by xxxx (0001-9999), then searches that block and subsequent blocks for the header. The header may contain up to 16 characters. Displays the screen block when a match is found. FCCs on the screen are ignored in the header.

The file operations are as follows:

RS CAN filename.ext[/USER #) where:

filename

ext

1- to 8-character name of a file. It cannot include spaces, periods, or commas, and must end with a period.

1- to 3-character optional extension of a filename.

/USER#

user number for the file. It is required to open an existing file. If the file is being created, it is assigned the specified user number, or the active user number of the terminal if no number is specified.

Opens or creates files. If the diskette specified in the (**XFER**) field contains the specified file name, the file is opened.

RS CAN close Closes the file on the diskette specified by the prior 11open"

UP-9799 Rev. 1

SPERRY UTS 30 SINGLE STATION

System Reference 5-1

Dans le document Station System (Page 109-112)