X25AM Programming Manual

ITI Applications
X25AM Programming Manual527201-001
2-24
ITI Programming Tasks
accepted. The remote network address must be specified before the CONTROL is
issued. This is done with the SCF subdevice attribute DESTADDR when the subdevice
is configured or with SETPARAM 1 in your application.
Reading Data
On a conversation-mode terminal, use the READ command to retrieve data entered on
the terminal at the cursor.
On a page-mode terminal, use the READ command to retrieve the value of a function
key entered at the terminal.
Writing Data
On a conversation-mode terminal, use the WRITE command to send control and
escape sequences to the terminal. The WRITE command is not used if a reply is
expected.
On a page-mode terminal, use the WRITE command to send control and escape
sequences to the terminal. Send screens and partial screens of data to the terminal.
The WRITE command is not used if a reply is expected.
Writing and Reading Data
On a conversation-mode terminal, use the WRITEREAD command to read data
entered at the terminal in response to a prompt.
On a page-mode terminal, use the WRITEREAD command to send escape sequences
that require the terminal to respond by returning a specific type of data.
Determining Why a Call has been Cleared
Use SETPARAM 9 to get the reason for clearing a call (disconnecting the circuit)
resulting in error 140.
Getting and Setting Cause and Diagnostic Codes
For the diagnostic codes, see Appendix B, Diagnostic Codes for X25AM. X25AM
always transmits a cause of zero whether it is configured as a DTE or a DCE. Use the
following SETPARAM functions to get and set the Clear, Reset, and Restart Cause
codes.
SETPARAM 2 Get or set the Clear Cause and Diagnostic codes.
SETPARAM 4 Get or set the Reset Cause and Diagnostic codes.
SETPARAM 5 Get the Restart Cause and Diagnostic codes.