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.

38-4 Industrial Communication Systems<br />

(a)<br />

8B<br />

Pre<br />

6B 6B 2B 4B<br />

Destination<br />

address<br />

(DA)<br />

Source<br />

address<br />

(SA)<br />

Ether<br />

type<br />

(ET)<br />

Ethernet payload<br />

FCS<br />

12B<br />

IFG<br />

20B<br />

8B<br />

(b)<br />

Pre<br />

Ethernet header<br />

IP header UDP header UDP payload<br />

FCS<br />

IFG<br />

2B<br />

EtherCAT<br />

header<br />

EtherCAT<br />

datagram<br />

1<br />

EtherCAT<br />

datagram<br />

2<br />

EtherCAT<br />

datagram<br />

…<br />

EtherCAT<br />

datagram<br />

n<br />

FIGURE 38.2<br />

EtherCAT frame structure.<br />

11 bit 1 bit 4 bit<br />

Length 0<br />

1<br />

EtherCAT<br />

datagram<br />

1<br />

EtherCAT<br />

datagram<br />

…<br />

EtherCAT<br />

datagram<br />

n<br />

10B<br />

Datagram<br />

header<br />

Data<br />

2B<br />

Working<br />

counter<br />

(WC)<br />

8 bit<br />

8 bit 32 bit<br />

11 bit 3 1 1 16 bit<br />

Cmd<br />

Idx<br />

Address Len R C M IRQ<br />

16 bit 16 bit<br />

Position Offset<br />

Address Offset<br />

Logical address<br />

Position addressing<br />

Node addressing<br />

Logical addressing<br />

FIGURE 38.3<br />

EtherCAT datagram structure.<br />

In particular, each datagram contains the fields listed in Table 38.1.<br />

The parameter “command” encodes the service command. Different types of commands can be<br />

used to optimize read and write operations on slave devices, which can be classified depending on the<br />

access type:<br />

• Broadcast read/write: All slaves carry out a logical “OR” operation of data of the memory area and<br />

data of the incoming EtherCAT datagram, insert this information into the outgoing EtherCAT<br />

datagram, and write it back into the local memory area.<br />

• Read, write, or read/write actions: Exchange of incoming data and local data. For read and write<br />

operations, the read operation is performed before the write operation.<br />

• Read multiple write actions (RMW): Addressed slave will read while others will write.<br />

The IDX field is the identifier of the datagram; it is left unchanged by the slaves. The address field can<br />

contain different information according to the addressing mode chosen (a more detailed description is<br />

provided in Section 38.4).<br />

The parameter LEN shall contain the size in byte of the data to be read or written.<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!