Page 102
PROFIBUS-Specification-Normative-Parts-4:1997
Copyright by PNO 1997 - all rights reserved
the addresses of which are situated in the range from the own station address
(TS) to the next station (NS). This address range is called GAP and is repre-
sented in the GAP List (GAPL), except the address range between Highest Station
Address (HSA, see Part 3, Set/Read Value FDL, variables) and 127, which does not
belong to the GAP.
Each master station in the logical token ring examines its address range (all
GAP addresses) periodically in the interval given by the GAP Update Time (T
GUD
)
for changes concerning master and slave stations. This is accomplished by exam-
ining one address per token receipt, using the "Request FDL Status" action frame
(see table 3a, b7=1, Code-No 9: Format 4.6.1A).
Upon receiving the token, GAP maintenance starts immediately after all queued
message cycles have been conducted, if there is still transmission time avail-
able (see subclause 4.1.1.4). Otherwise GAP maintenance starts upon the next or
the consecutive token receipts immediately after the high priority message
cycles have been performed (see subclause 4.1.1.5). In realizations care shall
be taken that GAP maintenance and low priority message cycles do not block each
other.
GAP addresses are examined in ascending order, except the GAP which surpasses
the HSA, i.e. the HSA and the address 0 are not used by a master station. In
this case the procedure is continued at address 0 after checking the HSA. If a
station acknowledges positively with the state "not ready" or "slave station"
(see table 3a, b7=0, Code-No 0, no SC, and Fig. 18), it is accordingly marked
in the GAPL and the next address is checked. If a station answers with the state
"ready to enter logical token ring", the token holder changes its GAP or GAPL
and passes the token to the new NS. This station which has newly been admitted
to the logical token ring has already built up its LAS (List of Active Sta-
tions), when it was in the "Listen_Token" state, so that it is able to determine
its GAP range or GAPL and its NS.
If a station answers with the state "master station in logical token ring", then
for the time being the token holder does not change its GAP and passes the token
to the NS given in the LAS. Thus the "jumped over" master station shall retire
from the bus itself and shall enter in the "Listen_Token" state because of no
correct status report. In this state it generates a new LAS and remains in this
state until it is addressed once more by a "Request FDL Status" transmitted by
its predecessor (PS).
Stations which were registered in the GAPL and which do not respond to a
repeated "Request FDL State" are removed from the GAPL and are recorded as un-
used station addresses. Requests to station addresses, which have not been used
so far, are not repeated.
4.1.1.3 (Re)Initializing the Logical Token Ring
Initialization is primarily a special case of updating the LAS and the GAPL. If
after power on (PON) of a master station in the "Listen_Token" state a time-out
is encountered, i.e. no bus activity within T
TO
(see subclause 4.1.7), it shall
claim the token ("Claim_Token" state), "take it" and start initializing.
When the entire PROFIBUS System is initialized, the master station with the low-
est station address starts initialization. By transmitting two token frames ad-
dressed to itself (DA = SA = TS) it informs any other master stations (entering
a NS into the LAS) that it is now the only station in the logical token ring.