X25AM Programming Manual

ITI Applications
X25AM Programming Manual527201-001
2-45
ITI Programming Example
ITI Programming Example
This example is written in a coding shorthand (also called “generic,” or “pseudo-” code)
that does not include error-handling procedures. The example shows receiving data
from a remote terminal.
1. Open the subdevice $ line.# subdevice.
2. CONTROL 11.
!
!Wait for a Call Request.
!
!A Call Request is received from the PAD.
!A Call Accepted is sent by ITI.
!A PAD command with the default terminal profile
!is sent by ITI.
!READ PARAMETER 11 command is sent by ITI.
!
!The CONTROL completes.
!Data is received from the terminal.
3. READ.
!The READ completes.
!
4. SETMODE 20 0,0
!
!A complete set of conversation PAD parameters
!with the altered echo value (ECHO OFF) is sent
!by ITI.
!
5. WRITEREAD: “ENTER YOUR PASSWORD AT THE PROMPT *”
!
!The prompt is the asterisk.
!
!Data is sent to the terminal.
!Echo is off so the password is not visible.
!
!Data comes back from the terminal.
!
6. SETMODE 20 1,0
!
!A complete set of conversation PAD parameters
!with the altered echo value (ECHO ON)
!is sent by ITI.
!
7. WRITEREAD: “HERE IS THE PROMPT AGAIN *”
!
!Data is sent to the terminal.
!
!Data comes back from the terminal
! (for example, a user wants to LOGOFF).
!
8. CONTROL 12.
!The application sends a CONTROL 12.
!
!ITI sends a Clear request to the PAD.
!
!The PAD returns a Clear Confirmation to ITI.
!
9. CLOSE.
!The application sends a CLOSE.
!
!The PAD returns a Complete.
!