Envoy ACP/XF Application Programming Manual

Asynchronous Balanced Mode (ABM) Protocols
EnvoyACP/XF Application Programming Manual132179
2-14
Initiating and Terminating an ADCCP-ABM Link
Initiating and Terminating an ADCCP-ABM Link
The following example shows the initiation of an ADCCP-ABM link. The stations are
connected over a nonswitched, full-duplex line. This example specifies the following
variables:
Multiple opens (3)
Nowait I/O for each OPEN
Open depth of 15
Extended control
Nowait operations complete in any order
The line is called $ADCP. In this first portion of the example, the line is opened and the
line configuration parameters are set.
!Open the line $ADCP three times shared
OPEN ADCP,fnum^1,%17
IF <> do error handling
OPEN ADCP,fnum^2,%17
IF <> do error handling
OPEN ADCP,fnum^3,%17
IF <> do error handling
!Use 2-octet control field
SETMODE fnum^1,116,,%10000
IF <> do error handling
!Allow nowait I/O operations to complete in any order
SETMODE fnum^1,30,1
IF <> do error handling
Between the OPEN request completion and the CONTROL 13 completion, ADCCP is
in disconnect mode (that is, ADCCP replies with DM to all commands received from the
remote station).
Here the local station initiates the link:
!Send SABME.
CONTROL fnum^1,13,2
IF <> do error handling
.
.
.
The link between the combined stations is in ABM.