Envoy Application Programming Manual

Table Of Contents
Asynchronous Line Supervisor Protocol
Envoy Application Programming Manual427159-001
10-19
CONTROL 15 and SETMODE 15 (Break)
Table 10-14 shows the SETMODE procedures needed to define the different types of
break characteristics.
Continuous break must be defined every time it is required by calling SETMODE before
calling the CONTROL procedure. After the CONTROL call has completed, another call
to SETMODE should be made to restore the timeout value for the line and restore the
break detection on the receive line.
Example 10-4
shows how to define a noncontinuous break for 200 milliseconds:
Table 10-14. Break Characteristics Defined by SETMODE 15
Break Type Required SETMODE Procedures Description
Noncontinuous SETMODE 15, parm2 .<14> = 0 Specifies noncontinuous out-
put break.
SETMODE 15, parm1 = n Specifies the timeout interval
in 10-millisecond units. The
break signal lasts for the speci-
fied time interval.
Continuous SETMODE 15, parm2 .<14> = 1 Specifies continuous break.
The break signal stays active
on the transmission line until
either a WRITE operation is
invoked or a SETMODE
request is invoked.
Note. The timeout value is also used by READ and WRITEREAD calls. Therefore, you should
always restore the timeout to its regularly used value.
Example 10-4. Define a Noncontinuous Break for 200 Milliseconds
CALL SETMODE (fnum,15,,,old^value);! Obtains current values
CALL SETMODE (fnum,15,20,0); ! Note break detect disabled.
CALL CONTROL (fnum,15); ! Line in "space" condition.
! CONTROL completes after 200 ms.
! Error = 0.
CALL SETMODE (fnum,15,old^value[0],old^value[1]);
! Restores values