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.

32-6 Industrial Communication Systems<br />

32.3.3 Media Access<br />

The Profibus medium access control (MAC) includes the token-passing procedure, which is used by<br />

complex bus stations (masters) to communicate with each other and the master–slave procedure used<br />

by complex bus stations to communicate with the simple peripherals (slaves).<br />

The token-passing procedure ensures that the bus access right (the token) is assigned to each master<br />

within a precisely defined timeframe. The token message, a special telegram for passing the token from<br />

one master to the next master must be passed around the logical token ring once to all masters within a<br />

(configurable) maximum token rotation time. In Profibus, the token-passing procedure is only used for<br />

<strong>communication</strong> between complex stations (masters).<br />

The master–slave procedure permits the master (the active station) which currently owns the token to<br />

access the assigned slaves (the passive stations). This enables the master to send messages to, or retrieve<br />

them from the slaves. This method of access allows implementation of the following system configurations:<br />

• Pure master–slave system with just one master polling the slaves<br />

• Pure master–master system with token passing and no slaves<br />

• A hybrid system combining multiple masters passing the token and polled slaves (Figure 32.2)<br />

On system startup, every master listens to the bus and watches the transmissions. If the bus is idle a<br />

timer is started; the timer is set as a multiple of the unique station address n as shown in formula (32.1).<br />

The timer of the master with the lowest address expires first and this master has the first token as shown<br />

Token<br />

Master<br />

1<br />

Token<br />

Master<br />

2<br />

Slave<br />

1<br />

Slave<br />

2<br />

Slave<br />

3<br />

Slave<br />

4<br />

Slave<br />

5<br />

FIGURE 32.2<br />

Hybrid system with two masters and five slaves.<br />

Bus is “Idle”<br />

Master<br />

1<br />

n = 1 Time-out time = 8T SL<br />

Master 1 sends token<br />

2<br />

n = 2 Time-out time = 10T SL<br />

3<br />

n = 3 Time-out time = 12T SL<br />

FIGURE 32.3<br />

Generation of the first token.<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!