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.

46-8 Industrial Communication Systems<br />

Bit7<br />

Bit6<br />

Bit5<br />

Bit4<br />

Bit3<br />

Bit2<br />

Bit1<br />

Bit0<br />

res<br />

res<br />

Toggle bit<br />

Fail-safe<br />

values (FV)<br />

to be<br />

activated<br />

Use<br />

F_WD_Time_2<br />

(Redundancy)<br />

Reset<br />

Vconsnr_d<br />

Operator<br />

acknowledge<br />

requested<br />

iParameter<br />

assignment<br />

deblocked<br />

– –<br />

FIGURE 46.12<br />

Toggle_h Toggle_FV Use_TO2 R_cons_nr OA_Req iPar_EN<br />

Control byte sent to device/module.<br />

Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1<br />

Bit0<br />

res<br />

Vconsnr_d<br />

has been<br />

reset<br />

Toggle Bit<br />

Fail-safe<br />

values (FV)<br />

activated<br />

Communication<br />

fault:<br />

WD_Timeout<br />

Communication<br />

fault:<br />

CRC<br />

Failure exists<br />

in F-Device or<br />

F-Module<br />

F-Device has<br />

new iParameter<br />

values assigned<br />

–<br />

cons_nr_R<br />

Toggle_d<br />

FV_Activated<br />

WD_Timeout<br />

CE_CRC<br />

Device_Fault<br />

iPar_OK<br />

FIGURE 46.13<br />

Status byte returned from device/module.<br />

The consecutive number is used in an acknowledgment mechanism for monitoring the propagation<br />

times between sender and receiver. The value “0” is reserved for the first run and for a <strong>communication</strong><br />

error reaction. The V2-mode uses 24 bit counters for consecutive numbering, counting in a cyclic mode<br />

from 1…0.× FFFFFF and wrapping over back to 1 at the end. Using the consecutive number, a receiver<br />

can see whether or not it received the messages completely and within the correct sequence. When it<br />

returns a message with the consecutive number as an acknowledgment to the sender, the sender will be<br />

assured of the same. In V2-mode, the 24 bit consecutive number is not actually transmitted in the safety<br />

data. A toggle bit is implemented as an “increment counter command/counter incremented response”<br />

handshake between the controller and the device, as shown in Figure 46.14.<br />

The consecutive number is not actually transmitted in the safety data but, after being incremented, is<br />

used in calculating the CRC2 as shown in Figure 46.15. Thus, reception of safety data with an appropriate<br />

toggle bit state and a valid CRC2 indicates the message is in the proper sequence.<br />

0 1 2 3 4<br />

5<br />

F-Host consecutive no.<br />

(Vconsnr_h)<br />

Toggle_h<br />

(from F-Host)<br />

Toggle_d<br />

(from F-Device)<br />

F-Device consecutive no.<br />

(Vconsnr_d)<br />

0<br />

1<br />

2<br />

3<br />

4<br />

FIGURE 46.14 Toggle bit functionality. (Adapted from Stripf, W. and Barthel, H., Comprehensive safety with<br />

PROFIBUS DP and PROFINET IO—Training for “PROFIsafe certified designers.”)<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!