Eloquence Language Manual

13 Asynchronous Devices

In order to address an asynchronous port with TIO statements, an appropriate entry must be made in the global, group, or user configuration file. The entry must have the following format:

PORT port# device file

The terminal input/output (TIO) statements provide a means to connect RS-232 asynchronous devices to your computer system. The devices may be terminals, printers, or computers.

This chapter describes the TIO statements and provides programming approaches and tips. Note that TIO error codes are listed in page 427 .

An application program can be written to send output to and receive input from asynchronous devices. TIO statements allow the application program to determine the state of each asynchronous port. The program uses PRINTER IS, PRINT ALL IS or SYSTEM PRINTER IS (coupled with the device address) to direct output to the remote device.

The port number can be between 11 and 20, but cannot be the same as any device address. The device file must have read and write capabilities. Here is an example PORT entry on HP-UX:

PORT 15 /dev/tty1p4
The interface parameters (such as baud rate) can be adjusted with the HP-UX stty command.

NOTE: This manual assumes that you are familiar with your computer system and that you have a good understanding of Eloquence. It is also assumes that you have read the manuals which accompany the remote printers and terminals and that you understand the devices.

Chapter contents:

TIO Statements
Eloquence Statements Used With TIO
Programming with TIO

Eloquence Language Manual - 19 DEC 2002