Anonymous
Not logged in
Talk
Contributions
Create account
Log in
RS-485
Search
Editing
Highway Addressable Remote Transducer Protocol
(section)
From RS-485
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
Edit source
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Packet structure== The request HART packet has the following structure: {| class="wikitable" |- ! Field Name ! Length (in bytes) ! Purpose |- | Preamble | 5β20 | Synchronization and Carrier Detect |- | Address | 1 or 5 | defined by bit 7 in Delimiter. Specifies slave, Specifies Master and Indicates Burst Mode |- | Expansion | 0β3 | This field is 0β3 bytes long and its length is indicated in the Delimiter (Start byte) |- | Command | 1 | Numerical Value for the command to be executed |- | Number of data bytes | 1 | Indicates the size of the Data Field |- | Data | 0β255 | Data associated with the command. BACK and ACK must contain at least two data bytes. |- | Checksum | 1 | XOR of all bytes from Start Byte to Last Byte of Data |} ===Preamble=== Currently all the newer devices implement five byte preamble, since anything greater reduces the communication speed. However, masters are responsible for backwards support. Master communication to a new device starts with the maximum preamble length (20 bytes) and is later reduced once the preamble size for the current device is determined. Preamble is: "ff" "ff" "ff" "ff" "ff" (5 times ff) ===Start delimiter=== This byte contains the Master number and specifies that the communication packet is starting. {| class="wikitable" style="margin: 0 auto; text-align:center" |+Delimiter Field |- ! [[Bit]] ! style="text-align:center;" | 7 !! 6 !! 5 !! 4 !!3 !! 2 !! 1 !! 0 |- ! Desc | Address size |colspan="2"| Number of Expansion bytes |colspan="2"| Physical layer type |colspan="3"| Frame type |} ;bit 7, if high use Unique (5 byte) address, else use Polling (1 Byte) addresses. ;bit 6 and 5, Number of Expansion bytes: normally it set if Expansion field is used, normally 0. ;bit 4 and 3, Physical layer type: 0=Asynchronous, <br> 1=Synchronous ;bit 2, 1 and 0, Frame type: 1=BACK Burst Acknowledge send by Burst-mode Device<br> 2=STX Master to Field Devices.<br> 6=Slave Acknowledge to STX frame. ===Address=== Specifies the destination address as implemented in one of the HART schemes. The original addressing scheme used only four bits to specify the device address, which limited the number of devices to 16 including the master. The newer scheme utilizes 38 bits to specify the device address. This address is requested from the device using either Command 0, or Command 11. ===Command=== This is a one byte numerical value representing which command is to be executed. Command 0 and Command 11 are used to request the device number. ===Number of data bytes=== Specifies the number of communication data bytes to follow. ===Status=== The status field is absent for the master and is two bytes for the slave. This field is used by the slave to inform the master whether it completed the task and what its current health status is. ===Data=== Data contained in this field depends on the command to be executed. ===Checksum=== [[Checksum]] is composed of an XOR of all the bytes starting from the start byte and ending with the last byte of the data field, including those bytes.
Summary:
Please note that all contributions to RS-485 may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
RS-485:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs