X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-36
PTP Procedure Statements Summary
The protocol identifier refers to the protocol that you set. X25AM does not save the
incoming (remote) protocol ID.
SETPARAM 9
Get the reason for the disconnection of the circuit.
Table 3-11 lists the numeric values returned in the reason buffer for SETPARAM 9.
CALL SETPARAM (filenum, operation,,, reason, length)
filenum = file number
operation = 9
reason
= 4 words. For reasons for call disconnection,
see Table 3-11.
length = 8 (the length in bytes of the reason
parameter)
Table 3-11. Reasons for Circuit Disconnection (SETPARAM 9) (page 1 of 2)
Integer Reason for Circuit Disconnection
Integer <0>
0 Never connected.
1 Still connected or connecting.
2 CONTROL 12 issued.
3 Subdevice file closed.
4 Processor down.
5 Subdevice aborted with SCF.
6 Subdevice stopped with SCF.
7 Clear request issued.
8 Clear request received.
9 Incoming data packet > PACKETSIZE.
10 Incoming packet invalid for circuit state.
11 Restart Request issued.
12 Inconsistent internal data structure.
13 Incoming Call Request packet had invalid data or L3WINDOW holding
buffers could not be allocated.
14 Level-2 problem.
Integer <1>
nnn If <0> = 14, then <1> contains the applicable Guardian error code.
Integer <2>
1 The line is logically down. (It has been downed with PUP or stopped with
SCF).