User manual

IEC61131 User and Reference Manual
April 22, 2008
296
Outputs
Type
Description
error
Boolean
TRUE when the enable input is TRUE and a there is
an error in the command, or if the HART device fails
to respond to any of the attempts.
FALSE in all other cases.
Status
Integer
This output contains the status of the HART
command sent to the HART device.
0 =HART interface module is not communicating
1 =Command ready to send to device
2 =Command sent to device
3 =Response received
4 =No valid response received after all attempts
made
5 =HART interface is not ready to transmit
code
Integer
This output contains one of the following depending
on the command status.
The number of the current command attempt, or,
Zero if the hart device does not respond after all
command attempts, or,
The response code from the HART device to the
command sent. See the Response Code section
below for information on response codes.
IDManufacturer
Integer
HART device manufacturer ID
typeManufDevice
Integer
HART device manufacturer Device Type
preamblesRequest
Integer
HART device preambles Requested
cmdRevision
Integer
HART device command Revision
xmtrRevision
Integer
HART device transmitter Revision
swRevision
Integer
HART device software Revision
hwRevision
Integer
HART device hardware Revision
flags
Integer
HART device flags
IDDevice
Integer
HART device ID
See Also
hart1, hart2, hart3, hart33
HART Device Response Codes
The code output of the function block contains the response code from the HART device. It
contains communication error and status information. The information varies by device, but
there are some common values.
If bit 7 of the high byte is set, the high byte contains a communication error summary. This
field is bit-mapped. The following table shows the meaning of each bit as defined by the
HART protocol specifications. Consult the documentation for the HART device for more
information.
Bit
Description
6
vertical parity error