Envoy ACP/XF Application Programming Manual

System Procedure Call Specifics for EnvoyACP/XF
EnvoyACP/XF Application Programming Manual132179
4-18
SETMODE Procedure
Condition Codes
Examples
The following SETMODE 18 call sets the statistics threshold of the specified line to 10.
When the sum of CRC errors, command reject errors, and retries exceeds 10, statistics
are displayed at the operator console. The fnum is the one-word integer variable
specified in the OPEN call that opened the communications line.
CALL SETMODE (fnum,18,10);
The following SETMODE 16 call establishes line-configuration parameters.
CALL SETMODE (fnum,16,%1003)
.<1:2> 0: 1-octet address field
1: 2-octet address field
2: 3-octet address field
3: 4-octet address field (See ADDRESSSIZE modifier)
.<3> 0: 1-octet control field
1: 2-octet control field (See EXTENDEDCONTROL modifier)
.<4:15> Translation length (See TRANSLENGTH modifier)
30 Allow nowait I/O operations to complete in any order
paramete
r-1
0: No (default)
1: Yes
paramete
r-2
(not used)
116* Specify extended addresses for ADCCP or HDLC point-to-point
stations.
paramete
r-1
The name of a one-word integer value specifying the first two
address octets for a point-to-point station with an extended
address.
paramete
r-2
The name of a one-word integer value specifying the second two
address octets for a point-to-point station with an extended
address.
= (CCE) indicates that the SETMODE procedure was executed successfully.
= (CCL) indicates that an error occurred (call FILE_GETINFO_).
Table 4-4. SETMODE Function Codes (page 4 of 4)
Function
Code Parameter Description
* These SETMODE requests automatically reset the line and place the station in disconnect state. Note that for
SETMODE 16 parameter-1, some bits reset the line and others do not.