EasyManua.ls Logo

Honeywell UDA2182 - Function Code 03- Read Holding (Data) Registers

Honeywell UDA2182
64 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Modbus/TCP & Modbus RTU Function Codes
22 UDA2182 Communications User Guide January 09
8.2 Function Code 03- Read Holding (Data) Registers
Description
Function code 03 (also referred to as 4X decimal references) is used to read 32-bit floating point analog
variables and 32-bit integer digital variables in the UDA as described in Section 10. Registers are
consecutive. These registers are writeable using function code 16.
If a request is made to an address that does not exist in the map in Section 10 , the UDA will honor that
request and return zeros for that address.
Broadcast is not supported.
Query
The query message specifies the starting register and quantity of registers to be read. Registers are
addressed starting at zero: registers 1-16 are addressed as 0-15.
Example:
Read Analog variable #1, Analog variable #2, Analog variable #3, and Analog variable #4 as
floating point values in the UDA at slave address 1.
Query message format for function code 03
Slave
Address
(00 for TCP)
Function
Code
Starting
Address
High
Starting
Address
Low
Number
Addresses
High
Number
Addresses
Low
CRC
(RTU)
CRC
(RTU)
TCP Example 00 03 00 00 00 08
RTU Example 01 03 00 00 00 08 CRC CRC
Response
The register data in the response message is packed as two bytes per register. For each register, the first
byte contains the high order bits and the second contains the low order bits.
The floating point values require two consecutive registers. The word order of the floating point number is
determined by the setting of the word swap configuration value. In this example, and the examples that
follow, the word swap order is yes which is big endian. Refer to section 7. The first 16 bits of the response
contain the IEEE MSB of the float value. The second 16 bits of the response contain the IEEE LSB of the
float value. If the master station requests only one register at an address of a floating point value then half
of a float will be returned.
Example:
Return Analog variable #1, Analog variable #2, Analog variable #3, and Analog variable #4
where Analog variable #1=100.0, Analog variable #2=100.0, Analog variable #3=100.0, and Analog
variable #4=55.32
Response message format for function codes 03
Slave
Address
(00 for TCP)
Function
Code
Byte
Count
Data Data Data Data CRC
(RTU)
CRC
(RTU)
TCP Example 00 03 10 42 C8 00 00
(100)
42 C8 00 00
(100)
42 C8 00 00
(100)
42 5D 47 AE
(55.32)
RTU Example 01 03 10 42 C8 00 00
(100)
42 C8 00 00
(100)
42 C8 00 00
(100)
42 5D 47 AE
(55.32)
CRC CRC

Table of Contents

Other manuals for Honeywell UDA2182

Related product manuals