X25AM Programming Manual

Procedures Summary for X25AM
X25AM Programming Manual527201-001
A-7
SETMODE 31
READ and WRITE requests are queued in separate read and write queues. The write
portion of a WRITEREAD request goes in the write queue. When this completes, the
read portion goes in the read queue. Thus, intermingling READs and WRITEREADs
can produce unexpected results.
SETMODE 31
For PTP
Set the data exchange mode and the size of the data field in the first packet if it is less
than the PACKETSIZE configured for the subdevice.
SETMODE 31
For ITI
If the size of packets going to the PAD is going to be less than the default packet size,
then SETMODE 31 is used to set the packet size of the outgoing packets in each
WRITE or WRITEREAD request. It must be smaller than the configured packet size.
SETMODE 31 is accepted but not used when the terminal is in page mode. It becomes
effective when the terminal mode is changed to conversation mode.
CALL SETMODE (filenum, operation, param1, param2)
filenum = file number
operation = 31
param1.<0> 0 = ignore param2
1 = Look at param2 to specify packet size.
param1.<1> 0 = No address pass-through (for data-exchange
mode 2).
1 = Address pass-through (for data-exchange mode
2).
param1.<13:15> 0= Mode 0
1= Mode 1
2= Mode 2
3= Mode 3
param2 0 = Use PACKETSIZE as the length of the data field
(for modes 1, 2, and 3).
n = Use size of data field in first packet (for modes 0
and 3). It must be less than PACKETSIZE.
CALL SETMODE (filenum, function, param1)
filenum = file number
function = 31