Download Control Microsystems 5901 User manual

Transcript
hart3
Send HART command 3
Description
The hart3 function block sends a HART protocol command 3 (“read dynamic variables and
primary variable current”) to a HART device and processes the response.
hart3
enable
module
addressOfDevice
e
done
error
status
code
v1Current
u1Current
v1
u1
v2
u2
v3
u3
v4
u4
Arguments
Inputs
enable
Type
Boolean
Description
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
done
Type
Boolean
Description
TRUE when the enable input is TRUE and a response
is received from the HART device.
FALSE in all other cases.
error
Boolean
TRUE when the enable input is TRUE and their is an
error in the command, or if the HART device fails to
respond to any of the attempts.
FALSE in all other cases.
IEC61131 User and Reference Manual
April 22, 2008
304