22.07.2013 Views

II - DCE FEL ČVUT v Praze

II - DCE FEL ČVUT v Praze

II - DCE FEL ČVUT v Praze

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SIMATIC S7 HART Analog Modules<br />

Structure of the<br />

response data<br />

record<br />

Evaluating the<br />

response data<br />

4-32<br />

The following figure shows the structure of the response data record, which<br />

contains the response to the HART command you sent previously and any<br />

error or status bits.<br />

Byte 0<br />

Byte 1<br />

Byte 2<br />

Byte 3<br />

to<br />

6<br />

Byte 7<br />

Byte 8<br />

Byte 9<br />

Byte 10<br />

Byte 11<br />

to<br />

Byte 239<br />

7 6 5 4 3 2 1 0<br />

always 0 (”monodrop”)<br />

Processing state<br />

1=module command,<br />

0=HART command<br />

7 6 5 4 3 2 1 0<br />

0<br />

see Table 4-13<br />

7 6 5 4 3 2 1 0<br />

see Table 4-14<br />

.<br />

.<br />

.<br />

.<br />

.<br />

0 = idle<br />

1 = waiting<br />

2 = waiting in burst mode<br />

3 = executing<br />

4 = success; no data<br />

5 = success; with data<br />

6 = success; burst data<br />

7 = error<br />

HART group error bits<br />

HART protocol error during<br />

response from field device to<br />

module<br />

always 0, reserved for time stamp<br />

From here onwards: HART<br />

response with status<br />

Last command<br />

Number of bytes for response<br />

1. HART status byte and<br />

2. HART status byte, see HART<br />

technical specification<br />

Fig. 4-15 Response data record of the HART analog module<br />

Response data<br />

according to HART:<br />

Length: No. of bytes - 2:<br />

max. 228 bytes<br />

When you have an up-to-date response data record, you can check the<br />

following:<br />

You can use the “last command” byte to check that the response belongs<br />

to the command sent.<br />

You can evaluate the “Group error bits” (see Table 4-13) to locate<br />

individual errors.<br />

You can obtain more information from “HART protocol errors during<br />

response” (see Table 4-14) and both HART status bytes.<br />

that in the group error bytes the corresponding bits will be set to “1”.<br />

I/O Modules with Intrinsically-Safe Signals<br />

C79000-G7076-C152-04

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!