标题: HART系列讲座(二):HART报文结构
pola
游客




UID 24
精华 0
积分 6365
帖子 6365
威望 0
金钱 0
阅读权限 1
注册 2007-7-28
状态 离线
发表于 2007-7-28 12:34  资料  短消息  加为好友 

HART系列讲座(二):HART报文结构

The structure of a HART me age is shown below:       The preamble, of between 5 and 20 bytes of hex FF (all 1"s), hel  the receiver to synchronise to the character stream.    The start character may have one of several values, indicating the type of me age: master to slave, slave to master, or burst me age from slave; also the addre  format: short frame or long frame.    The addre  field includes both the master addre  (a single bit: 1 for a primary master, 0 for a secondary master) and the slave addre . In the short frame format, the slave addre  is 4 bits containing the "polling addre " (0 to 15). In the long frame format, it is 38 bits containing a "unique identifier" for that particular device. (One bit is also used to indicate if a slave is in burst mode.)    The command byte contai  the HART command for this me age. Universal commands are in the range 0 to 30; common practice commands are in the range 32 to 126; device- ecific commands are in the range 128 to 253.    The byte count byte contai  the number of bytes to follow in the status and data bytes. The receiver uses this to know when the me age is complete. (There is no  ecial "end of me age" character.)    The status field (also known as the "re o e code") is two bytes, only present in the re o e me age from a slave. It contai  information about communication errors in the outgoing me age, the status of the received command, and the status of the device itself.    The data field may or may not be present, depending on the particular command. A maximum length of 25 bytes is recommended, to keep the overall me age duration reasonable. (But some devices have device- ecific commands using longer data fields.) See also the HART data field.    Finally, the checksum byte contai  an "exclusive-or" or "longitudinal parity" of all previous bytes (from the start character onwards). Together with the parity bit attached to each byte, this is used to detect communication errors.

顶部
[广告]
 


Google

当前时区 GMT+8, 现在时间是 2008-10-8 16:04
粤ICP备07500170号

By Discuz! 5.5.0 © 2007-2008
Processed in 0.044614 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - Autooo! Inc. - Archiver - 繁体中文