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.

42-4 Industrial Communication Systems<br />

Length<br />

Octet 0 Octet 1 Octet 2 Octet 3 Octet 4 Octet 5 Octet 6 ...<br />

Control<br />

Source address<br />

Destination address<br />

User data (payload)<br />

Octet 22 (max)<br />

Check octet<br />

Frame type<br />

Repeated<br />

Priority<br />

Sender:<br />

Individual<br />

address<br />

Receiver(s):<br />

Individual<br />

or<br />

group<br />

or<br />

broadcast<br />

address<br />

Address type<br />

Hop count<br />

Length<br />

TPDU<br />

FCS<br />

TP1/PL110 standard data frame<br />

Length<br />

Octet 0 Octet 1 Octet 2 Octet 3 Octet 4 Octet 5<br />

Control Ext. control Source address<br />

Destination address<br />

Octet 6<br />

Octet 7<br />

...<br />

User data (payload)<br />

Check octet<br />

Frame type<br />

Repeated<br />

Priority<br />

Address type<br />

Hop count<br />

Extended<br />

frame<br />

format<br />

Sender:<br />

Individual<br />

address<br />

Receiver(s):<br />

Individul<br />

or<br />

group<br />

or<br />

broadcast<br />

address<br />

Length<br />

TPDU<br />

FCS<br />

TP1/PL110 extended data frame<br />

...<br />

TL<br />

control<br />

field<br />

AL<br />

control field<br />

TPDU<br />

AL<br />

user data<br />

FIGURE 42.2<br />

Frame formats.<br />

two octets specify the source address. Regardless of the used <strong>communication</strong> service, this is always<br />

the individual address of the sending device. The succeeding two octets identify the destination of<br />

the message. The address type (AT) bit indicates whether the destination is an individual address or<br />

a group address. Together with the hop count used by the NL and the frame length, the AT bit makes<br />

up the last octet before the NL payload. The value of the Length field is the number of NL payload<br />

octets minus one. The frame ends with a check octet (FCS, frame checking sequence), which holds the<br />

vertical odd parity of all preceding octets (each Bit is calculated as the logical XOR over all Bits of the<br />

same significance, then inverted).<br />

The format of the TL protocol data unit (TPDU), that is, the NL payload, is shown at the bottom of<br />

Figure 42.2. On KNX, it is the lowest layer PDU whose format is independent of the <strong>communication</strong><br />

medium. The width and alignment of the AL protocol control information and user data differ depending<br />

on the TL and AL service type as well as the size of the AL payload.<br />

The standard data frame supports TPDUs with a maximum length of 16 octets. This corresponds to<br />

a maximum AL payload of 14 octets. For the transmission of longer TPDUs, the extended data frame<br />

format has been defined. It is shown in the middle of Figure 42.2. Extended frames have an additional<br />

control field (Extended Control) as their second octet. Besides the AT Bit and the hop count, this octet<br />

contains a 4 bit field that holds additional format information (Extended Frame Format). The length<br />

field is expanded from 4 to 8 bit.<br />

Standard and extended data frames are usually followed by a layer 2 acknowledgment frame sent by<br />

the receiver, which is 1 octet long. If group addressing is used on the twisted-pair medium, all receivers<br />

send this frame at the same time; negative acknowledgments will cancel out positive ones. The<br />

L_Poll_Data frame format (which is rarely used) is roughly similar to L_Data, with the master<br />

transmitting a request consisting of the control and address part followed by a check octet and the slaves<br />

responding with one octet of user data each.<br />

On the powerline medium, the formats of standard and extended data frames are identical to those<br />

defined for twisted-pair segments. However, a preamble and receiver training sequence are added in<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!