Honeywell XYR 5000 LINE manual Modbus Commands, Command 03-Read Holding Registers

Page 34

device ID. The Base Radio uses register addresses 1 through 10 with each subsequent group of 10 registers used by a Transmitter.

The RF online/offline status of a Transmitter can be determined through a number of different sources. In the Base Radio holding registers, a count of the current number of online Transmitters can be found at address 00004. Also the individual online/offline status of each Transmitter is stored in the Base Radio holding registers at addresses 00005, 00006, 00007, and 00008. These registers are bit field variables with each bit of the 16-bit number representing the status of a Transmitter. If the bit is set, the corresponding Transmitter is online. If the bit is cleared, the corresponding Transmitter is offline.

In the Transmitter holding registers, bit 1 in the Transmitter & Sensor Status holding register holds the online/offline status of the particular device. Any Transmitter that is currently offline will return NaN (Not a Number) when queried for its primary or secondary measurement value. Note that if a Transmitter is online and is a single measurement device type, NaN will also be returned for the Secondary Sensor Value, as the measurement does not exist in these devices.

6.3Modbus Commands

The Base Radio responds to six Modbus commands including the Read Holding Registers (03), Diagnostic (08), Get Com Event Count (11), Get Com Event Log (12), Report Slave ID (17), and Read Device Identification (43). The Read Holding Registers command provides the bulk of the functionality with the remaining commands being used for diagnostics/troubleshooting purposes. No other Modbus commands are supported and will be responded to with an ILLEGAL FUNCTION exception (code 01). A description of each command code is listed in the following sections.

6.3.1 Command 03-Read Holding Registers

This command is used to read the contents of a contiguous block of holding registers in a Base Radio or Transmitter. If an invalid register address is requested, an ILLEGAL DATA ADDRESS exception (code 02) will be returned.

Section 6.4 lists the holding registers for the Base Radio and Transmitters, as well as how to understand the contents of the registers.

6.3.2 Command 08- Diagnostic

This command provides a number of tests for checking the communications between the Base Radio and the Host master device.

Subfunction Code

Transmitter Device Status

0

Return Query Data

1

Restart Communications Option

2

Return Diagnostics Register

3

Change ASC-II Input Delimiter (NOT SUPPORTED)

4

Force Listen Only Mode

5-9

NOT USED

10

Clear Counters & Diagnostics Register

11

Return Bus Message Count

27

Image 34
Contents Base Radio User Guide XYR 5000 Line 34-XY-25-05 Rev 08/06Page Base Radio FCC CertificationContacts Revision NotesTelephone Table of Contents Quare R OOT F Unction Overall Wiring Schematic Table of FiguresIntroduction Using this ManualAbout the Device Unpacking Software CompatibilityOverall Wiring Schematic Quick StartPage Mechanical Installation InstallationBase Radio Positioning General Layout Electrical Installation Electrical SpecificationsTerminal Block Labels Wiring Power to the Base Radio Wiring RS-485 to the Base RadioWiring the RS-485/232 Converter to the Base Radio Wiring RS-485 to the Base RadioWiring the RS-485/USB Converter to the Base Radio USB Driver InstallationUSB Converter’s Male DB-9 Connector Daisy-Chaining Multiple Base Radios to Single RS-485/PowerWiring the DB-9 RS-485 Cable to the Base Radio USB Driver Un-installationDaisy-Chaining Power to Multiple Base Radios Daisy-Chaining RS-485 to Multiple Base RadiosTerminating Communications Wiring to the Base Radio Daisy-Chaining RS-485 to Multiple Base RadiosGrounding the Base Radio High Gain AntennaBase Radio Displayed Messages General ConfigurationRead Only Sequence Overall Configuration Menu Map Read Only SequenceSetting the User Password Menu Map to Password SettingConfiguring the RF Communications RF Channel SelectionMenu Map to RF Baud Rate Setting RF Baud Rate SelectionHigh RF ID Setting High Rfid SettingBase Radio Setup Modbus Baud Rate SettingModbus Device ID Setting Menu Map to Modbus Baud Rate SettingPage Modbus Parity Setting Modbus Mapping Mode SettingModbus Communication Protocol RegmodeCommand 03-Read Holding Registers Modbus CommandsCommand 08- Diagnostic Command 12- Get Com Event Log Command 11- Get Com Event CounterCommand 17- Report Slave ID Register Address Description Register Type Command 43- Read Device IDBase Radio Holding Registers Register Address DescriptionBase Radio On/Offline Transmitter Registers Base Radio Device Type RegistersBase Radio Device Status Registers Value Base Radio Device StatusTransmitter Holding Registers Device ID Mapping ModeRegister Mapping Mode Register AddressTransmitter Device Type Holding Registers Value Device TypeTransmitter Device Status Registers Alarm Condition WN571 onlySquare Root Function Value Transmitter Device StatusTechnical Specifications Overall Base Radio Dimensions Appendix a Navigating the Menus Appendix B Base Radio Menu Map Figure A- 1 Base Radio Menu MapAppendix C Modbus Register Definitions Page Page Page Honeywell