Envoy ACP/XF Application Programming Manual
Normal Response Mode (NRM) Protocols
EnvoyACP/XF Application Programming Manual–132179
3-36
SDLC Point-to-Point Secondary
 SETMODE fnum^1,19,,%30000
If <> do error handling
!Send SNRME
 CONTROL fnum^1,13,3
If <> do error handling
 AWAITIO fnum^1
If <> do error handling
 .
 .
 .
Setting Line Configuration Parameters
For both SDLC and ADCCP-NRM, you also can include additional SETMODE calls for 
operations 15, 17, 18, 19, and 30 to ensure that all line-configuration parameters are set.
Except for SETMODE 30, you issue only one SETMODE call for each ADCCP line no 
matter how many OPEN calls you issue.
SDLC Point-to-Point Secondary
The example below shows how to open and initialize a line for an SDLC point-to-point, 
secondary-station application that performs two-way, alternate communication over half-
duplex, nonswitched, line facilities. The line name is $SDLC1.
!Open the line "SDLC1"
 OPEN SDLC1,%36
If <> do error handling
!This open the lines $SDLC1 for exclusive
!Get the current line setting.
 SETMODE fnum,16,,,current_value !two words
If <> do error handling
!The following SETMODE ensures that certain crucial 
! parameters are set:
!Point-to-point secondary station
!Half-duplex line facilities (two-way alternate operation)
!Nonswitched lines
!REJ supervisory frame not allowed
!RS-232C line interface
 SETMODE fnum^1,16,%0
If <> do error handling
!A READ call activates the read unit of EnvoyACP/XF in 
preparation for accepting the SNRME command 
!from the primary
 READ fnum^1,read^buffer,256
If <> do error handling
!The following AWAITIO call completes the previous READ 
!request as soon as the SNRM is received.










