Page 56 © 2003 HART Communication Foundation
Appendix B: HART Revision 5
UNIVERSAL COMMANDS IN HART REVISION 5
Command Data in Command Data in Reply
# Function Byte Data Type Byte Data Type
0 Read unique identifier None
0
1
2
3
4
5
6
7
8
911
"254" (expansion)
Manufacturer identification code
Manufacturer device type code
Number of preambles required
Universal command revision
Device-specific command revision
Software revision
Hardware revision
Device function flags*
Device ID number
(H)
(B)
* Bit 0 = multisensor device; Bit 1 = EEPROM control required;
Bit 2 = protocol bridge device
1 Read primary variable None 014
PV units code
Primary variable (F)
2 Read current and percent of
range None
03
47
Current (mA)
Percent of range
(F)
(F)
3 Read current and four
(predefined) dynamic variables None
03
4
58
9
1013
14
1518
19
2023
Current (mA)
PV units code
Primary variable
SV units code
Secondary variable
TV units code
Third variable
FV units code
Fourth variable
(F)
(F)
(F)
(F)
(F)
(truncated after last supported variable)
6 Write polling address
0
Polling address As in command
11 Read unique identifier
associated with tag 05 Tag (A) 011 As Command 0
12 Read message None 023 Message (32 characters) (A)
13 Read tag, descriptor, date None
05
617
1820
Tag (8 characters)
Descriptor (16 characters)
Date
(A)
(A)
(D)
14 Read PV sensor information None
02
3
47
811
1215
Sensor serial number
Units code for sensor limits and
minimum span
Upper sensor limit
Lower sensor limit
Minimum span
(F)
(F)
(F)
APPENDICES
Appendix B: HART Revision 5
© 2003 HART Communication Foundation Page 57
Command Data in Command Data in Reply
# Function Byte Data Type Byte Data Type
15 Read output information None
0
1
2
36
710
1114
15
16
Alarm select code
Transfer function code
PV/range units code
Upper-range value
Lower-range value
Damping value (seconds)
Write-protect code
Private-label distributor code
(F)
(F)
(F)
16 Read final assembly number None 02 Final assembly number
17 Write message 023 Message (32 characters) (A) As in command
18 Write tag, descriptor, date
05
617
1820
Tag
(8 characters)
Descriptor
(16 characters)
Date
(A)
(A)
(D)
As in command
19 Write final assembly number 02 Final assembly number As in command
APPENDICES
Page 58 © 2003 HART Communication Foundation
Appendix C: HART Revisions 2, 3, and 4
UNIVERSAL COMMANDS IN HART REVISIONS 2, 3, AND 4 (DIFFERENCES FROM
REVISION 5)
Command Data in Command Data in Reply
# Function Byte Data Type Byte Data Type
0 Read unique identifier None
0
1
2
3
4
5
6
79
Transmitter type code*
Number of preambles
Universal command revision
Device-specific command
revision
Software revision
Hardware revision
Device function flags
Final assembly number
(H)
(B)
* Revision 4 introduced the expanded device type as an option (see
Rev. 5, Table 4-4), with the remaining bytes moved up by two
positions.
4 Read common static data
(block 0): Read message 0 Block number ("0")
0
124
Block number ("0")
Message (A)
4 Read common static data
(block 1): Read tag,
descriptor, date
0 Block number ("1")
0
16
718
1921
2224
Block number ("1")
Tag
Descriptor
Date
"250"
(A)
(A)
(D)
4 Read common static data
(block 2): Read sensor
information
0 Block number ("2")
0
13
4
58
912
1316
1724
Block number ("2")
Sensor serial number
Units code for sensor limits and
minimum span
Upper-sensor limit
Lower-sensor limit
Minimum span
"250"
(F)
(F)
(F)
4 Read common static data
(block 3): Read output
information
0 Block number ("3")
0
1
2
3
47
811
1215
16
17
1824
Block number ("3")
Alarm select code
Transfer function code
PV/range units code
Upper-range value
Lower-range value
Damping value (seconds)
Write-protect code ("1" =
protected)*
Private-label distributor code**
"250"
(F)
(F)
(F)
* 250 or 251 in Revisions 2 and 3
** "250" in Revisions 2 and 3
5 Write common static data
(block 0): Write message
0
124
Block number ("0")
Message (A) As in command
APPENDICES
Appendix C: HART Revisions 2, 3, and 4
© 2003 HART Communication Foundation Page 59
Command Data In Command Data in Reply
# Function Byte Data Type Byte Data Type
5 Write common static data
(block 1): Write tag,
descriptor, date
0
16
718
1921
2224
Block number ("1")
Tag
Descriptor
Date
"250"
(A)
(A)
(D)
As in command
5 Write common static data
(block 4): Write final
assembly number
0
13
424
Block number ("4")
Final assembly
number
"250"
As in command
1119 These commands did not exist before Revision 5.0.
APPENDICES
Page 60 © 2003 HART Communication Foundation
Appendix D: Common Practice Commands
COMMON PRACTICE COMMANDS
Command Data In Command Data in Reply
# Function Byte Data Type Byte Data Type
33 Read transmitter variables
0
1
2
3
Transmitter variable code for
slot 0
Transmitter variable code for
slot 1
Transmitter variable code for
slot 2
Transmitter variable code for
slot 3
0
1
25
6
7
811
12
13
1417
18
19
2023
Transmitter variable code for slot 0
Units code for slot 0
Variable for slot 0
Transmitter variable code for slot 1
Units code for slot 1
Variable for slot 1
Transmitter variable code for slot 2
Units code for slot 2
Variable for slot 2
Transmitter variable code for slot 3
Units code for slot 3
Variable for slot 3
(F)
(F)
(F)
(F)
(truncated after last requested code) (truncated after last requested variable)
34 Write damping value
03 Damping value
(seconds) (F) As in command
35 Write range values
0
14
58
Range units code
Upper-range value
Lower-range value
(F)
(F)
As in command
36 Set upper-range value
(= push SPAN button) None None
37 Set lower-range value
(= push ZERO button) None None
38 Reset "configuration
changed" flag None None
39 EEPROM control 0 EEPROM control code* As in command
*0 = burn EEPROM; 1 = copy EEPROM to RAM
40 Enter/exit fixed current
mode 03 Current (mA)* (F) As in command
*0 = exit fixed current mode
41 Perform device self-test None None
42 Perform master reset None None
43 Set (trim) PV zero None None
44 Write PV units 0 PV units code As in command
44 Write PV units 0 PV units code As in command
45 Trim DAC zero 03 Measured current (mA) (F) As in command
APPENDICES
Appendix D: Common Practice Commands
© 2003 HART Communication Foundation Page 61
Command Data in Command Data in Reply
# Function Byte Data Type Byte Data Type
46 Trim DAC gain 03 Measured current (mA) (F) As in command
47 Write transfer function 0 Transfer function code As in command
48 Read additional device
status None
05
67
810
1113
1424
Device-specific status
Operational modes
Analog outputs saturated*
Analog outputs fixed*
Device-specific status
(B)
(B)
(B)
(B)
*24 bits each: LSB ... MSB refers to AO #1 ... #24.
49 Write PV sensor serial
number 02 Sensor serial number As in command
50 Read dynamic variable
assignments None
0
1
2
3
PV transmitter variable code
SV transmitter variable code
TV transmitter variable code
FV transmitter variable code
51 Write dynamic variable
assignments
0
1
2
3
PV transmitter variable
code
SV transmitter variable
code
TV transmitter variable
code
FV transmitter variable
code
As in command
52 Set transmitter variable
zero
0 Transmitter variable
code As in command
53 Write transmitter variable
units
0
1
Transmitter variable
code
Transmitter variable units
code
As in command
54 Read transmitter variable
information
0 Transmitter variable
code
0
13
4
58
912
1316
1720
Transmitter variable code
Transmitter variable sensor serial
number
Transmitter variable limits units
code
Transmitter variable upper limit
Transmitter variable lower limit
Transmitter variable damping value
(seconds)
Transmitter variable minimum span
(F)
(F)
(F)
(F)
55 Write transmitter variable
damping value
0
14
Transmitter variable
code
Transmitter variable
damping value
(seconds)
(F) As in command
APPENDICES
Page 62 © 2003 HART Communication Foundation
Appendix D: Common Practice Commands
Command Data in Command Data in Reply
# Function Byte Data Type Byte Data Type
56 Write transmitter variable
sensor serial number
0
13
Transmitter variable
code
Transmitter variable
sensor serial number
As in command
57 Read unit tag, descriptor,
date None
05
617
1820
Unit tag (8 characters)
Unit descriptor (16 characters)
Unit date
(A)
(A)
(D)
58 Write unit tag, descriptor,
date
05
617
1820
Unit tag (8 characters)
Unit descriptor
(16 characters)
Unit date
(A)
(A)
(D)
As in command
59 Write number of response
preambles
0 Number of response
preambles As in command
60 Read analog output and
percent of range
0 Analog output number
code
0
1
25
69
Analog output number code
Analog output units code
Analog output level
Analog output percent of range
(F)
(F)
61 Read dynamic variables
and PV analog output None
0
14
5
69
10
1114
15
1619
20
2124
PV analog output units code
PV analog output level
PV units code
Primary variable
SV units code
Secondary variable
TV units code
Tertiary variable
FV units code
Fourth variable
(F)
(F)
(F)
(F)
(F)
62 Read analog outputs
0
1
2
3
Analog output number;
code for slot 0
Analog output number;
code for slot 1
Analog output number;
code for slot 2
Analog output number;
code for slot 3
0
1
25
6
7
811
12
13
1417
18
19
2023
Slot 0 analog output number code
Slot 0 units code
Slot 0 level
Slot 1 analog output number code
Slot 1 units code
Slot 1 level
Slot 2 analog output number code
Slot 2 units code
Slot 2 level
Slot 3 analog output number code
Slot 3 units code
Slot 3 level
(F)
(F)
(F)
(F)
(truncated after last requested code) (truncated after last requested level)
APPENDICES
Appendix D: Common Practice Commands
© 2003 HART Communication Foundation Page 63
Command Data in Command Data in Reply
# Function Byte Data Type Byte Data Type
63 Read analog output
information
0 Analog output number
code
0
1
2
3
47
811
1215
Analog output number code
Analog output alarm select code
Analog output transfer function
code
Analog output range units code
Analog output upper-range value
Analog output lower-range value
Analog output additional damping
value (sec)
(F)
(F)
(F)
64 Write analog output
additional damping value
0
14
Analog output number
code
Analog output additional
damping value (sec)
(F) As in command
65 Write analog output range
value
0
1
25
69
Analog output number
code
Analog output range
units code
Analog output upper-
range value
Analog output lower-
range value
(F)
(F)
As in command
66 Enter/exit fixed analog
output mode
0
1
25
Analog output number
code
Analog output units code
Analog output level* (F)
As in command
* "not a number" exits fixed output mode
67 Trim analog output zero
0
1
25
Analog output number
code
Analog output units code
Externally measured
analog output level (F)
As in command
68 Trim analog output gain
0
1
25
Analog output number
code
Analog output units code
Externally measured
analog output level (F)
As in command
69 Write analog output
transfer function
0
1
Analog output number
code
Analog output transfer
function code
As in command
APPENDICES
Page 64 © 2003 HART Communication Foundation
Appendix D: Common Practice Commands
Command Data in Command Data in Reply
# Function Byte Data Type Byte Data Type
70 Read analog output
endpoint values
0 Analog output number
code
0
1
25
69
Analog output number code
Analog output endpoint units code
Analog output upper endpoint value
Analog output lower endpoint value
(F)
(F)
107 Write burst mode
transmitter variables (for
Command #33)
0
1
2
3
Transmitter variable
code for slot 0
Transmitter variable
code for slot 1
Transmitter variable
code for slot 2
Transmitter variable
code for slot 3
As in command
108 Write burst mode
command number
0 Burst mode command
number As in command
109 Burst mode control
0 Burst mode control code
(0 = exit, 1 = enter) As in command
110 Read all dynamic variables None
0
14
5
69
10
1114
15
1619
PV units code
PV value
SV units code
SV value
TV units code
TV value
FV units code
FV value
(F)
(F)
(F)
(F)
APPENDICES
© 2003 HART Communication Foundation Page 65
Appendix E: Response Codes
STATUS Two bytes of status, also called the response code, are included in every
reply message from a field or slave device. These two bytes convey three
types of information:
Communication errors
Command response problems
Field device status
If an error is detected in the outgoing communication, the most significant
bit (bit 7) of the first byte is set to 1 and the details of the error are reported
in the rest of that byte. The second byte is then all zeros.
If no error is detected in the outgoing communication, bit 7 of the first byte
is 0 and the remainder of the byte contains the command response, which
indicates any problem with the received command. The second byte
contains status information pertaining to the operational state of the field or
slave device.
Communication errors are typically those that would be detected by a
UART (i.e., parity overrun and framing errors). The field device also
reports overflow of its receive buffer and any discrepancy between the
message content and the checksum received.
RESPONSE CODES
First Byte
Bit 7 = 1: Communication Error Bit 7 = 0: Command response
OR Bits 6 to 0 (decoded as an integer, not bit-mapped):
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
hex C0
hex A0
hex 90
hex 88
hex 84
hex 82
hex 81
Parity error
Overrun error
Framing error
Checksum error
0 (reserved)
Rx buffer overflow
Overflow (undefined)
0
1
2
3
4
5
6
7
815
16
28
32
64
No command-specific error
(Undefined)
Invalid selection
Passed parameter too large
Passed parameter too small
Too few data bytes received
Device-specific command error (rarely used)
In write-protect mode
Multiple meanings (see Table 4-9 in A
Technical Overview)
Access restricted
Multiple meanings (see Table 4-9 in A
Technical Overview)
Device is busy
Command not implemented
APPENDICES
Page 66 © 2003 HART Communication Foundation
Appendix E: Response Codes
Second Byte
Note: Hexadecimal equivalents are quoted assuming only a single bit is set. In reality, several bits may
be set simultaneously, and the hex digits can be ored together.
(Not Used) Field Device Status
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
All bits 0
(when a
communication error is
reported in the first
byte)
OR
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
(hex 80)
(hex 40)
(hex 20)
(hex 10)
(hex 08)
(hex 04)
(hex 02)
(hex 01)
Field device malfunction
Configuration changed
Cold start
More status available
Analog output current fixed
Analog output saturated
Nonprimary variable out of limits
Primary variable out of limits
APPENDICES
本文档为【HART实用命令详解】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。