X25AM Programming Manual

ITI Applications
X25AM Programming Manual527201-001
2-25
ITI Procedure Statements Summary
Counting Page-Mode Terminal Errors
Use SETPARAM 6 to initialize and read the counters.
Timing Page-Mode Timeouts
The ITI timer is used for determining page-mode timeout, the time that can elapse
before the absence of a reply from the terminal is considered to be an error.
Use SETPARAM 22 to set the timeout interval. The timeout interval can also be set
with the SCF subdevice attribute REXMITTIMEOUT.
Counting 64-byte Segments
Use the following formula to count 64-byte segments sent or received by a subdevice:
Count = count + ((data^byte^count + 63) / 64);
This can be used for calculating network charges. Sixty-four bytes is usually the
dividing line for packet charges. Packets less than or equal to 64 bytes usually cost
less than packets greater than 64 bytes. The count consists of two double word values,
the number of 64-byte blocks sent, and the number of 64-byte blocks received. Use
SETPARAM 21 to get the counts.
Requesting the Call to be Cleared
Use CONTROL 12 to request a Clear.
Clearing the Call
Use CLOSE to clear the call.
ITI Procedure Statements Summary
The following ITI procedure statements are described below: CLOSE, CONTROL,
OPEN, READ, SETMODE, SETPARAM, WRITE, and WRITEREAD.
CLOSE
If this is the last close operation and an SVC is used, then the call is cleared.
Note. CLOSE and CONTROL procedures are only used with an SVC. They are not needed for
a PVC connection.
CALL CLOSE (filenum)