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.

33-4 Industrial Communication Systems<br />

Out data<br />

Out data<br />

N N – 1<br />

Loopback<br />

word<br />

1<br />

2<br />

Input<br />

buffer<br />

N<br />

1<br />

2<br />

Output<br />

buffer<br />

N<br />

Loopback<br />

word<br />

In data<br />

Out data<br />

Data flow<br />

inside the<br />

shift registers<br />

In data<br />

Out data<br />

1<br />

2<br />

Master<br />

In data<br />

In data<br />

FIGURE 33.4<br />

Logical structure of the ring in INTERBUS.<br />

According to the logical structure shown in Figure 33.4, the summation frame will shift inside all the<br />

SRs and this way data sent by the master will cross all the nodes. There is a precise time instant when<br />

all output data registers inside each slave will contain the data addressed to that slave. At that moment,<br />

data contained in the output data register will be stored into the node, whereas data addressed to the<br />

master will be loaded into the input data register and will begin to travel along the ring by substituting<br />

the original data into the summation frame. This operating mode is very efficient allowing the ring, into<br />

a single round, to transfer data from and to the master.<br />

An important role is played by the CRC register, which is switched to the input data register in<br />

parallel. The Comité Consultatif International Téléphonique et Télégraphique (CCITT) polynomial<br />

g(x) = x 16 + x 12 + x 5 + 1 is used for the CRC, which is able to detect burst errors shorter than 16 bits. The<br />

CRC registers are used during the frame check sequence to check whether the data have been transmitted<br />

correctly. An important point is that, since the CRC is located at the end of the summation frame, each<br />

slave checks the data correctness only when the whole frame has crossed inside it, but as data contained<br />

into the summation frame are changed during the crossing of the various slaves, CRC must be recalculated<br />

several times. For this reason, two CRC registers are present into each node. The first one (on the left side<br />

Figure 33.3) is used to check incoming data, whereas the second one (on the right side Figure 33.3) is used<br />

to calculate the new CRC value to be attached at the end of the summation frame.<br />

The length of the I/O data registers in each node depends on the number of I/Os of the individual<br />

node. The master needs to know which and how many devices are connected to the bus so that it can<br />

assign the right I/O data to the right device. For this reason, once the bus system has been switched<br />

on, the master starts a series of identification cycles, which enable it to detect how many and which<br />

devices are connected. Each slave has an identification data register with a fixed length 16 bit identification<br />

code.<br />

The master can use this identification code to assign a slave node to a defined device class (e.g., digital<br />

I/O node and analog I/O node) and detect the length of the I/O data registers in a data cycle. The control<br />

data registers are switched in parallel to the identification data registers, whereby the individual devices<br />

can be managed by the master. Commands are transmitted, for example, for local resets or outgoing<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!