Envoy ACP/XF Application Programming Manual

System Procedure Call Specifics for EnvoyACP/XF
EnvoyACP/XF Application Programming Manual132179
4-3
CONTROL Procedure
tag input
INT(32):value
applies to nowait I/O only. tag is a value you define to identify uniquely the
operation associated with this CONTROL call.
Condition Codes
Example
CALL CONTROL (fnum,19);
fnum is the one-word integer variable returned by the OPEN call that opened the
communications line. In a switched, bit-synchronous environment, this call disables the
data terminal ready (DTR) modem signal.
= (CCE) indicates that the CONTROL procedure was executed successfully.
< (CCL) indicates that an error occurred (call FILE_GETINFO_).
Table 4-2. CONTROL Function Codes (page 1 of 3)
Function
Code Parameter Description
11 Sets DTR true and waits for DSR to become true.
Same as 17,1. Required for switched lines.
Recommended for all line configurations, because
nonswitched lines often have switched-line backup
configurations.
13 Sends the link-initialization command.
parameter-1
.<0>
= 0: Sends the link-initialization command to all
stations.
= 1: Sends the link-initialization command to a
specific station, as indicated in .<8:15> (only NRM
multipoint).
.<1:15> = 2: Sends SABM or SABME.
= 3: Sends SNRME.
= 4: Sends SNRM or SNRME only to those stations
that were in an error stop state (only NRM multipoint).
= 5: Sends SABME.
.<8:15> Specifies the station-index value of the station that is
to receive the SNRM or SNRME command (only
relevant if .<0> = 1).
14 If the station is the primary, CONTROL 11 sends SIM.
If the station is the secondary, CONTROL 11 sets the
station to respond with RIM frame to anything other
than SIM.