23.03.2017 Views

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

WorldFip 34-17<br />

1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9<br />

AP<br />

F<br />

E<br />

D<br />

C<br />

B<br />

A<br />

Length of the ASI<br />

1 2 3<br />

Microcycle<br />

4 5 6 7 8 9 10 11 12 13 Time (ms)<br />

Macrocycle<br />

Periodic elementary transactor length periodic traffic<br />

ID_RP, RP_RQ transactor length, aperiodic traffic<br />

ID DAT, RP DAT transactor length, aperiodic traffic<br />

FIGURE 34.10<br />

Example of aperiodic traffic schedule.<br />

The number of microcycles (N′) in an ABI is then<br />

N ′<br />

∑<br />

N′ = min{ Ψ}, with Ψ = nap( l)<br />

∧ Ψ ≥ 2 × na<br />

l = 1<br />

(34.6)<br />

that is, the minimum number of microcycles within which the number of available “slots” (each “slot”<br />

with the length of Ca*) is at least 2 × na.<br />

Knowing N′, the length of the aperiodic busy interval (len _ abi) may be evaluated as follows:<br />

np<br />

N ′−1<br />

⎛<br />

⎞<br />

len_ abi = ( N′ − 1) × µ Cy + ∑( bat[ i, N] × Cpi<br />

) + ⎜2<br />

× na −∑nap( l)<br />

⎟ × Ca *<br />

⎝<br />

⎠<br />

i=<br />

1<br />

l=<br />

1<br />

(34.7)<br />

where<br />

Σ i=1,…,np (bat[i, N] × Cp i ) gives the length of the periodic window in microcycle N′<br />

(2 × na − Σ l=1,…,N′−1 nap(l).) × Ca* gives the length of the aperiodic window, with respect to the<br />

aperiodic busy interval, also in microcycle N′<br />

Therefore, the worst-case response time for an aperiodic transfer requested at station k is<br />

Ra<br />

k<br />

k<br />

= σ + len_ abi<br />

(34.8)<br />

and the maximum admissible interval between consecutive aperiodic requests of an aperiodic variable<br />

in a station k is<br />

MIT( Va k ) ≥ Ra k = σ k + len_<br />

abi<br />

(34.9)<br />

34.5.5.9 Example of Aperiodic Traffic Scheduling<br />

Assume that a system configured for six periodic variables (Table 34.1) must also support nine aperiodic<br />

buffer exchanges. Assume also that the length of each Vp i , ∀ i , is Cp i = Cp = 0.0976.ms, and that for sporadic<br />

traffic Ca* = 0.1.ms. If the BAT is implemented as shown in Table 34.2, transactions concerning the<br />

nine aperiodic variables are scheduled as shown in Figure 34.10.<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!