23.03.2017 Views

wilamowski-b-m-irwin-j-d-industrial-communication-systems-2011

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

WorldFip 34-9<br />

t r (20 µs)<br />

ID_DAT(25.6 µs)<br />

RP_DAT(32 µs)<br />

F<br />

E<br />

D<br />

C<br />

B<br />

A<br />

1 2 3 4 5 6 7 8 9 10 11 12 13 T (ms)<br />

Microcycle<br />

Macrocycle<br />

FIGURE 34.7 Schedule for the periodic transfers of Table 34.2.<br />

3. The length of the macrocycle can induce a memory size problem, since the table parameters<br />

must be stored in the BA. For instance, if the scanning periodicities of variables E and F were,<br />

respectively, 5 and 7.ms, the length of the macrocycle would be 420 microcycles instead of<br />

just 12 microcycles.<br />

Both the <strong>communication</strong> jitter and memory size problems have been addressed in the literature. In [1],<br />

the authors discuss different methodologies to reduce the BAT size, without penalising the <strong>communication</strong><br />

jitter. The idea is very simple, and it basically consists on reducing some of the scan periodicities in<br />

order to have a harmonic pattern. The problem of table size has also been addressed in other works [2,3],<br />

however, in a different perspective. In the referred work, the authors discuss an online scheduler (instead<br />

of storing the schedule in the BA’s memory), which is not directly applicable to the WorldFIP case.<br />

It is also worth mentioning that Figure 34.7 represents a macrocycle composed of synchronous<br />

microcycles, that is, for the specific example, each microcycle starts exactly 1.ms after the previous one.<br />

Within a microcycle, the spare time can be used by the BA to process aperiodic requests for buffer<br />

transfers, message transfers, and padding identifiers. A WorldFIP BA can also manage asynchronous<br />

microcycles, not transmit padding identifiers. In such case, a new microcycle starts as soon as the periodic<br />

traffic is performed and there are no pending aperiodic buffer transfers or message transfers. Initial<br />

periodicities are not respected since identifiers may be more frequently scanned.<br />

34.5.4 WorldFIP Aperiodic Buffer Transfers<br />

The BA handles aperiodic buffer transfers only after processing the periodic traffic in a microcycle. The<br />

portion of the microcycle reserved for the periodic buffer exchanges is denoted as the periodic window of<br />

the microcycle. The time left after the periodic window until the end of the microcycle is denoted as the<br />

aperiodic window of the microcycle. The aperiodic buffer transfers take place in three stages:<br />

1. When processing the BAT schedule, the BA broadcasts an ID_DAT frame concerning a periodic<br />

variable, say identifier X. The producer of variable X responds with a RP_DAT and sets an apeÂ<br />

riodic request bit in the control field of its response frame. The BA stores variable X in a queue of<br />

requests for variable transfers. Two priority levels can be set when the request for aperiodic transfer<br />

is made: urgent or normal. The BA has two queues, one for each priority level.<br />

2. In the aperiodic window, the BA uses an identification request frame (ID _RQ) to ask the proÂ<br />

ducer of the identifier X to transmit its list of pending aperiodic requests. The producer of X<br />

responds with a RP _RQ frame (list of identifiers). This list of identifiers is placed in another BA’s<br />

queue, the ongoing aperiodic queue.<br />

© <strong>2011</strong> by Taylor and Francis Group, LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!