Envoy ACP/XF Application Programming Manual

Normal Response Mode (NRM) Protocols
EnvoyACP/XF Application Programming Manual132179
3-42
ADCCP-NRM Multipoint Tributary
ADCCP-NRM Multipoint Tributary
The example below is for an ADCCP multipoint tributary station application that
performs two-way alternate communication over half-duplex, nonswitched, line
facilities.
In this example, the line name is $TRIB2. The application uses a 2-octet address field, a
2-octet control field, and three line openings.
!Open the line
OPEN TRIB2,fnum^1,%36
If <> do error handling
OPEN TRIB2,fnum^2,%36
If <> do error handling
OPEN TRIB2,fnum^3,%36
If <> do error handling
!Set line configuration parameters
!The following SETMODE specifies
!multipoint tributary station
!half-duplex
!nonswitched
!accept all addresses
!RS-232 line interface
SETMODE line^fnum^1,16,%1003
If <> do error handling
!The following SETMODE call specifies
!2-octet address field
!2-octet control field
SETMODE fnum^1,19,,%30000
If <> do error handling
!Specify addresses to which tributary will respond
DEFINELIST fnum^1,poll^list,addr^size,
num^entries,poll^count,0
If <> do error handling
READ fnum^1,read^buffer,256
If <> do error handling
AWAITIO fnum^1
If <> do error handling
NRM Nonswitched Point-to-Point
The example below shows you how to use file-system procedures and error returns in a
two-way-simultaneous, point-to-point data link over a nonswitched, full-duplex line:
Primary
Application
Process
Point-to-Point
$PRIM $SEC
Secondary
Application
Process
Primary Secondary
041