User manual
IEC61131 User and Reference Manual
April 22, 2008
339
sethart
Set HART module configuration
Description
The sethart function sets the configuration settings for a 5904 HART Interface module.
set
module
attempts
preambles
useAutoPreamble
typeDevice
sethart
Q
Arguments
Inputs
Type
Description
set
Boolean
Sets the HART module configuration when TRUE.
Set this input to FALSE once the HART module
configuration has been set.
module
Integer
The module address of the HART 5904 module. Valid
values are 0 to 3.
attempts
Integer
The number of times each HART command will be
sent. Valid values are 1 to 4. Default = 3
preambles
Integer
The number of preambles to send if fixed preambles
selected. Valid values are 2 to 15. This value must be
set as it is used by link initialization.
Default = 15
useAutoPreamble
Boolean
Use number of preambles requested by device when
TRUE.
Use fixed number of preambles when FALSE.
Default = TRUE
typeDevice
Integer
Master device type
0 = secondary master device
1 = primary master device (recommended)
Default = 1
Outputs
Type
Description
Q
Boolean
TRUE if set input is TRUE.
FALSE in all other cases.
Notes
This function block provides the basis for communication with HART devices connected to
the 5904 interface module. It does not send commands to the HART devices. Use the hart0,
hart1, hart2, hart3 or hart33 function blocks to send commands to the HART devices.