Envoy Application Programming Manual

Table Of Contents
BISYNC Centralized Multipoint Supervisor Protocol
Envoy Application Programming Manual427159-001
4-20
Poll State
Selective Polling (Before Calling DEFINELIST)
Example 4-6 shows how to disable polling for a specific station using the poll-state bit in
the address list.
In Example 4-6
, station 2 (BB01) is not polled when polling is initiated.
Selective Polling (After Calling DEFINELIST)
This example shows how to enable polling for a specific station by means of a call to the
CHANGELIST procedure. The station enabled for polling is station BB01 in
Example 4-6.
CALL CHANGELIST (linefnum,1,0); ! enable polling for entry 1.
As a result of the CHANGELIST procedure in this example, station 2 (BB01) is polled
on the next pass through the poll list.
Example 4-6. Disable Polling
LITERAL addr^size = 3, ! address size in words.
num^entries = 8, ! number of address-list
! entries.
ENQ = 5, ! ASCII ENQ character.
SYN = %26, ! ASCII SYN character.
poll^count = 3, ! number of poll-list entries.
no^poll = %200; ! used to set poll-state bit.
STRING
.saddr^list[ 0 : addr^size * num^entries * 2 - 1] :=
! address list.
[SYN, "AA01", ENQ, ! entry 0, station 1 poll.
no^poll + SYN, "BB01", ENQ, ! entry 1, station 2 poll.
SYN, "CC01", ENQ, ! entry 2, station 3 poll.
SYN, "aa01", ENQ, ! entry 3, station 1 select.
SYN, "bb01", ENQ, ! entry 4, station 2,
! device 1 select.
SYN, "bb02", ENQ, ! entry 5, station 2,
! device 2 select.
SYN, "cc01", ENQ, ! entry 6, station 3,
! device 1 select.
SYN, "cc02", ENQ]; ! entry 7, station 3,
! device 2 select.
INT .addr^list := @saddr^list '>>' 1; ! redefine as INT array.
CALL DEFINELIST (linefnum,addr^list,addr^size,num^entries,
poll^count,poll^type);
IF < THEN ...