An example of HART protocol data format and message structure

Source: Internet
Author: User

In the previous article, we analyzed the specific content of the HART protocol message format. So many of my friends have not fully mastered this knowledge, so that you can have a clear idea about this part of knowledge. The following is an example of the data format and message structure of the HART protocol.

HART protocol data format

If the sent command fails, the response does not contain data. However, the response value is taken from the memory of the field device, which is an approximate value. The bytes and format of data depend on different commands. Specific rules can be used to query relevant information.

Read instances to learn about the HART protocol message structure

Example 1: host to slave

FF FF FF FF FF 82 A6 06 BC 61 4E 01 00 B0

The above is a message sent from the host to the slave. The values of the first five bytes are FF, which is obviously an introduction byte. The START byte of the next 82 indicates the long-structured message sent from the host to the slave. The last five bytes, namely A6, 06, BC, 61, and 4E, are the address bytes in binary format:

A6

06

BC

61

4E

1010 0110

0000 0110

1011 1100

0110 0001

0100 1110

It can be seen that the highest bit of A6 in the first byte is 1, indicating the host, and the second High is 0, indicating the non-burst mode, and 38 B Indicates the unique identifier of the device: "100110" indicates the manufacturer code, the value is 38, which is the code of Rosemount. The last byte 06 is the device model code, 06 represents the model 3051C, and the third byte is the device identification number, in this example, the value is 12345678, And the next 01 is the command byte, indicating the 1 command. That is, the 00 value after reading the PV value indicates the data length. In this example, no data exists, the value is 0, and finally the validation byte B0.

Example 2: from the host to the host

FF 86 A6 06 BC 61 4E 01 07 00 00 06 40 B0 00 45

The example of the HART protocol from the host to the host indicates a message from the host to the host. In this example, most of the data in this example is similar to that in Example 1. The difference is that the Data byte is no longer 0, and the 06 represents the unit PSI. The 4 bytes following it are the value represented by a floating point number, which is 5.5. In this example, the response message is sent from the server to the host, so there is a status bit, that is, 00 in this example indicates OK.

Example 3: Burst Mode

FF 81 53 03 04 E6 D7 03 1A 00 60 41 3F A0 00 27 41 3F A0 00 39 42 47 60 00 06 BF 06 60 00 39 41 95 00 00 D4

The above is a message sent from the burst mode HART protocol.

The 1st-byte 81 represents the burst long structure mode, which is similar to that in bytes. Note that the byte "41 3FA000" after the status Byte "00 60" indicates the current Current current value, and the calculated value is 11.976 6; the following 27 indicates the unit of mA, like 39 in the end, it indicates "%. In the data bytes, "42 47 60 00", "BF06 60 00", "41 95 0000" indicate "SV", "TV", and "FV" indicate the same method as PV. The interpreted message can be expressed as "LBTXS/RdAllPv/026/0060/11.9766/mA/11.9766/%/49.8438/psi/-0.524902/%/18.625/D4 ".

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.