X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-32
PTP Procedure Statements Summary
SETMODE 32
Set the Call Setup parameters.
param1.<1> 0 = No address pass-through (data-exchange mode
2).
1 = Address pass-through (data-exchange mode 2).
param1.<13:15> 0= Mode 0
1= Mode 1
2= Mode 2
3= Mode 3
param2 0 = For modes 1, 2, and 3. Use PACKETSIZE as the
length of the data field.
n = For modes 0 and 3. Size of data field in packet
must be less than PACKETSIZE.
Note. Do not use param2 = n. Most networks clear the M bit to 0.
CALL SETMODE (filenum, operation, param1, param2,
last^params[0])
filenum = file number
operation = 32
param1.<0> 0 = Do not accept reverse charge from remote
process. (SCF SU ACCEPTCHG OFF).
1 = Accept reverse charge from remote process.
(SCF SU ACCEPTCHG ON).
param1.<1> 0 = Do not request acceptance of reverse charge by
remote process. (SCF SU REVERSECHG OFF).
1 = Request acceptance of reverse charge by remote
process. (SCF SU REVERSECHG ON).
param1.<2> 0 = Normal outgoing call. (SCF SU PRICALL OFF).
1 = Priority outgoing call (DATAPAC). (SCF SU
PRICALL ON).
param1.<5> 0 = Send calling address. (SCF SU CALLINGADDR
ON.)
1 = Do not send calling address. (SCF SU
CALLINGADDR OFF).
param1.<6> 0 = Append port number to remote address.
1 = Do not append port number to remote address.
param1.<18:15> = Port numbers less than or equal to 255. (SCF SU
PORT). For port numbers greater than 255, use
SETPARAM 23.