相关帖子:
HART消息的格式
前导符 | Delimiter | Address | [Expansion] | Command | ByteCount | [Data] | CheckByte |
FFFFF |
HART消息中的前导符
关于前导符的含义,需要了解HART协议本身。
可以参考:
http://www.analogservices.com/about_part1.htm
中的解释:
HART消息(命令)的组成及含义
Part of Message | Length in Bytes | Purpose |
Preamble | 5 to 20 | Synchronization & Carrier Detect |
Start Delimiter | 1 | Synchronization & Shows Which Master |
Address | 1 or 5 | Choose Slave, Indicate Which Master, and Indicate Burst Mode |
Command | 1 | Tell Slave What to Do |
Number Data Bytes | 1 | Indicates Number Bytes Between Here and Checksum |
Status | 0 (if Master) | Slave Indicates Its Health and Whether it did As Master Intended |
Data | 0 to 253 | Argument Associated with Command (Process Variable, For Example) |
Checksum | 1 | Error Control |
HART消息中的Delimiter
0/1 | xxx | xxx | xxx |
短/长地址 | expansion | layer | frame type |
HART消息中的长地址和短地址
HART中的缩写:
长地址==LA==Long Address
短地址==SA==Short Address
1.长地址,短地址的前两个bit都是:
0/1 | 0/1 |
secondary/master | 是否是Burst mode |
2.
长地址 | ? | ? | 设备码14bit | Unique Device Identifier |
>=HART5 | HART基金会发放的 | 厂商自己分配的 |
3.
短地址:0号命令
短地址-> 只出现在HART4或更早
6bit==Polling Address==0-63
一般Polling Address:
=0 | 4-20mA+HART数字(传统仪表) |
=1~63 | 无4-20mA,纯数字(仪表),是固定的4mA |
转载请注明:在路上 » 【整理】HART软件知识总结:HART消息(Message)