User manual
IEC61131 User and Reference Manual
April 22, 2008
295
hart0
Send HART command 0
Description
The hart0 function block sends a HART protocol command 0 (“read the device identifier”) to
a HART device and processes the response.
This command is also the link initialization command. The Send HART command function
blocks hart1, hart2, hart3 and hart33 perform link initialization automatically. The user does
not have to send this command unless the device identifier is needed.
enable
module
addressOfDevice
e
hart0
error
done
status
IDManufacturer
code
typeManufDevice
cmdRevision
preamblesrequest
xmtrRevision
swRevision
hwRevision
flags
IDDevice
Arguments
Inputs
Type
Description
enable
Boolean
Set to TRUE to send one HART command. Enable
must then be set to FALSE and back to TRUE to
send another command. Each command is complete
when either the done or error output is TRUE.
module
Integer
The module address of the HART 5904 modem
module. Valid values are 0 to 3.
This must correspond with the module number of a
hart5904 Hart Modem I/O hardware.
addressOfDevice
Integer
The address of the HART device. Valid values are 0
to 15.
Outputs
Type
Description
done
Boolean
TRUE when the enable input is TRUE and a
response is received from the HART device.
FALSE in all other cases.