X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-37
PTP Procedure Statements Summary
SETPARAM 21
Count 64-byte segments.
count = count + ((data^byte^count + 63) / 64);
Get the counts of segments sent and received.
SETPARAM 23
Get the port number. It can be larger than 255.
Set the port number. It can be larger than 255.
SETPARAM 29
Get the local NSAP address:
2 The line is logically up, but the physical circuit has not been established.
3 The line is logically up, and the physical circuit has been established.
Integer <3>
If <2> = 1 or 2, then <3> contains the applicable file-system error code.
CALL SETPARAM (filenum, function,,, counts, length)
filenum = file number
function = 21
counts
= segments sent (4 bytes), segments received
(4 bytes).
length = 8 (the length in bytes of the counts
parameter)
CALL SETPARAM (filenum, operation,,, port^number,
length)
CALL SETPARAM (filenum, operation, port^number,
length)
filenum = file number
operation = 23
port^number
= port number
length = 2 (the length in bytes of the port^number)
CALL SETPARAM (filenum, function,,,
extended^address, length)
Table 3-11. Reasons for Circuit Disconnection (SETPARAM 9) (page 2 of 2)
Integer Reason for Circuit Disconnection