Envoy ACP/XF Application Programming Manual

Normal Response Mode (NRM) Protocols
EnvoyACP/XF Application Programming Manual132179
3-41
SDLC Multipoint Tributary
!accept all addresses
!RS-232 line interface
SETMODE fnum,16,%1003
If <> do error handling
!Define addresses to which tributary will respond
DEFINELIST
fnum,poll^list,addr^size,num^entries,poll^count,0
If <> do error handling
!The following READ call enables the read unit of
!EnvoyACP/XF in preparation for receiving the
!SNRM command from the supervisor station.
READ fnum,read^buffer,256
If <> do error handling
!The following AWAITIO call completes the preceding READ request
AWAITIO fnum
If <> do error handling
When the first READ is issued, the only possible completion is a CCG with %20 in bits
3 through 7 of the received MCW (indicating the receipt of a SNRM or SNRME
command). EnvoyACP/XF handles anything other than a SNRM or SNRME at the link
level and never causes an application-level completion.
To use the SIM initialization prior to the SNRM, use the following commands in place
of the above READ and AWAITIO calls:
! Enable sending of RIM
CONTROL fnum,14
If <>, do error handling
AWAITIO fnum
If <>, do error handling
! Monitor line for SIM command
READ fnum,read^buffer,2
If <>, do error handling
AWAITIO fnum
! CCG completion with %01 in MCW.<3:7>
! The only possible completion for this AWAITIO call is CCG
! with %01 in MCW.<3:7>
! Perform necessary application-dependent initialization
! Monitor line for SNRM command
READ fnum,read^buffer,2
If <>, do error handling
AWAITIO fnum
! CCG completion with %20 in MCW.<3:7>
! The only possible completion for this AWAITIO call is CCG
! with %20 in MCW.<3:7>