Monnit Wireless Sensors Serial MODBUS (RTU/ASCII) Gateway For Version 3.
Contents 1.0 - Serial MODBUS Gateway Overview Features Example Network Integration Monnit Serial MODBUS Gateway Specifications 3 5 5 6 2.0 - Connecting the Serial MODBUS Gateway Hardware 2.1 - Connecting to a USB Programming Dongle 2.2 - Serial MODBUS Gateway Indicator Lights 7 8 9 3.0 - MODBUS Protocol Implementation 3.1 - Register Size 3.2 - Multi-byte Formatting 3.3 - Communication Defaults 3.4 - Communications Settings Reset Jumper 3.5 - Factory Reset 10 10 10 11 11 11 4.0 - Using the Gateway 4.
1.0 Serial MODBUS Gateway Overview The Monnit Serial MODBUS Gateway (SMG) acts as a data concentrator for Monnit wireless sensor networks. This device allows you to connect up to 50 wireless sensing devices, per gateway, to your existing serial MODBUS RS-232C and RS-485 sensing and control infrastructures. Monnit has recognized the importance of using open standards like MODBUS, allowing Monnit wireless sensors to be used in the majority of industrial applications.
Contains FCC ID: ZTL-RFSC1 & IC: 9794A-RFSC1 This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference and (2) this device must accept any interference received, including interference that may cause undesired operation. This device has been designed to operate with an approved antenna listed on page 11, and having a maximum gain of 5.1 dBi. Antennas not included in this list or having a gain greater than 5.
Features Works with Monnit 900, 868 and 433MHz Sensor Networking Solutions Communicates with MODBUS RTU / ASCII Protocols Supports RS-232C / RS-485 Interfacing 3 LED Indicators (System, Wired and Wireless) NEMA 4X / IP65 Rated Enclosure RP SMA Antenna Connector (Antenna Included) Example Network Integration Monnit wireless sensors integrate with existing MODBUS systems allowing for additional environmental variables to be monitored.
Monnit Serial MODBUS Gateway Specifications General Monnit APN Interface Support RFSC1 Module by Monnit Frequencies: 433, 868 and 900 MHz (Future support for WiFi and 500 mW modules) Antenna Connector: RP-SMA Gain: 3.0 dBi Standard 3 Wire Communication Interface RS-232C TXD (OUT), RXD (IN), and Ground / Common RS-485 D+, D-, and Ground / Common Protocol Selector Jumper for RS-232 and RS485 Power Input Voltage Range 4.5 - 36.
2.0 Connecting The Serial MODBUS Gateway Hardware This section contains details on how to connect the Serial MODBUS Gateway (SMG) for testing and use. The SMG has a communication select jumper. No Jumper is RS-485, jumper on is RS-232C. The SMG has a 5 wire connector already installed and ready for connection. The table below shows the wire mapping. SMG 5-Wire Connector Red: 4.5 – 36 VDC Black: Power ground Orange: RS-232C: TXD gateway’s transmitter data connection.
2.1 Connecting the Serial MODBUS Gateway to the USB Programming Dongle: Monnit provides MODBUS configuration software that presents a GUI to the user and makes interfacing to the MODBUS gateway easy. Monnit also provides a USB to RS485 dongle to connect the hardware to a PC. To use the USB to RS485 dongle, connect the wires from the MODBUS gateway as shown in the illustration below. Note: The white wire is not used with the USB programming dongle.
2.2 Serial MODBUS Gateway Indicator Lights System - Indicates gateway status. A green light indicates ready and working, a red light indicates there is a hardware problem. Wired - Indicates connectivity with MODBUS system. A green light indicates ready and working, a red light indicates there is a problem. A flashing green light indicates active communication. Wireless - Indicates wireless sensor network activity.
3.0 MODBUS Protocol Implementation See http://MODBUS.org/docs/MODBUS_Application_Protocol_V1_1b.pdf for details on the official protocol and function code. The Serial MG supports 2 transmission modes: RTU and ASCII. MODBUS Interfaces will support the following commands: (FC refers to MODBUS Function Codes).
3.3 Communication Defaults MODBUS slave ID or MODBUS address: 95 or 0x5F MODBUS-RTU, 8 data bits, No Parity, 1 Stop bit (8-N-1), 19200 baud 3.4 Communication Settings Reset Jumper MUST OPEN ENCLOSURE TO ACCESS If the device’s communications settings are unknown, it is possible to reset the communication settings by placing a jumper on the RESET jumper position when the gateway is not powered. This jumper is scanned at power up or reset.
4.0 Using the Gateway - Coil and Register Map This device has various coils and registers that allow the user to access gateway and wireless device feature. Here is a brief listing of the accessible coil and register map.
4.2 Resetting the Gateway Write the “RST_DEVICE” Gateway Coil (Function Code address = 2, Raw Address = 1) to TRUE. The device will reset one second after receiving this command. This resets all wireless device data in the FRR. Additionally, if any gateway settings (baud rate, MODBUS address, communication mode) were modified, this causes these settings to take effect. 4.3 Resetting the Wireless Network Write the “RST_WNET” Gateway Coil (Function Code address = 3, Raw Address = 2) to TRUE.
4.6 Viewing and Modifying MODBUS Communication Settings The BAUDRATE Gateway Register (Function Code 40006, Raw Address 5) contains the baud rate setting. Encoded options are: 0 : 2400 1 : 4800 2 : 9600 3 : 19200 4 : 38400 5 : 57600 6 : 115200 Example: Writing a value of 2 to this register will effectively change the baud rate to 9600.
4.7 Viewing Registered Wireless Devices The WD_CNT Gateway Register (Function Code address = 40004, Raw Address =3) contains the number of registered devices in the Wireless Device List (WDL). A Value of 0 here denotes that no devices are registered and the wireless is disabled. The WDL consists of 50 set of 2-paired registers that represents the Serial Identifier (SID) for the register device. These registers can be read to discover the location of a specific device in the list (SLOT).
To delete a wireless device from the list, write a 0,0 into the SLOT and the device will be erased and the SLOT is prepared for future use. When registering the first wireless device, the second LED will go red signifying there is no wired communication available, then the third LED will start flashing while the wireless network resets.
The purpose of these registers is to allow for efficient access to the remote wireless device’s most current data. When new data is available from any Wireless device the FRR is updated with the newly reported values. The FRR will zero itself out if no new data is received within a defined period. The defined period is specified in the Wireless Device Registers offset 18. Any write to the first address in the FRR will zero out the latest measurement and age.
4.12 Configuring Wireless Devices (Standard Requests) For a user to view and modify wireless device settings, read/write to register WDR[SLOT] offset 19-23. These registers contain information and settings relating to communication intervals, retry, and failure recovery behaviors. Please see Ref.6 for more details on these registers. After changes are made to these registers, the user can use the PENDING_CFG coil @ WDC[SLOT] offset 2 to check the status of these changes.
5.0 Upgrading Gateway Firmware Gateway Versions 3.0.0.0 and above are remotely upgradeable. To upgrade the SMG, you will need to already have or download the Monnit MODBUS Sensor Gateway software executable and possess a Monnit Serial MODBUS Gateway to USB Programming dongle. Once these are in place, obtain and the latest file upgrade from Monnit Support and save the file locally on your PC. Put the SMG in bootloader mode by opening the enclosure and accessing the RESET Jumper.
Reference Section Complete Gateway Features and Resource Mapping Reference Through the MODBUS interface, the following features are available for access by a MODBUS master. All coils and registers are available for read or write access through the MODBUS address mapping presented here. Ref.1 - Gateway Coils The following table represents the supported gateway specific coils. These are intended to report the status, control the state, or trigger events on the gateway.
RST_FACTORY 5 4 Writing True (1) to this coil will force all settings to Factory defaults. Always read as False (0). After setting this coil to true, the device will automatically reset so the new settings will take effect.
Ref.2 - Wireless Device Coils This section defines the location and function of all the remotely located coils available for access through the MODBUS interface. Every wireless device has been allotted 4 possible coils. The table below enumerates the address allotment. FCADDRESSFORMULA=2001+(4*WDL_SLOT) Raw Address Formula = 2000+(4*WDL_SLOT) Register Name Address Register Name Address WDC [0] FC 2001 / 2000 WDC [49] FC 2197 / 2196 The following table represents the specific Wireless Device Coils.
PENDING_CFG 2 True (1) denotes that one or more registers have been modified from their original values (located on the remote device). False (0) denotes that the no local registers contain configurations that are different from the remote device. Writing True (1) to this coil will cause the local configuration parameters contained in the gateway to be sent to the remote device. (FORCE OVERWRITE). Writing False (0) to this coil will be ignored.
Example Value: 0 (no sensors registered, factory reset condition) Example Value: 10 (10 Registered device) OP_CHAN 40005 4 Operating channel designator reports the wireless channel in use. Value of 0-25 is permitted (READ-ONLY) BAUDRATE 40006 5 Designates the baud rate used by the MODBUS interface. After modifying this register, a gateway reset must be performed before changes can take effect.
CHANM_H 40009 8 CHANM_L 40010 9 The configurable channel mask is a UInt32 bit-field that represents the allowed channels the wireless is allowed to establish a network. Default value contains a 1 for every possible channel (all channels are allowed). If the value is 0x00000011, then the network is only allowed to be established on channels 0 and 4. After these registers are modified, the RST_WNET coil must be set to true to reform the network and select new OP_NETID and OP_CHAN settings.
Ref.4 - Wireless Device List Registers The WDL register stores the serial identifier of the registered wireless devices. The serial identifiers are formatted as a UInt32, therefore two contiguous registers must be read to extract the full value.
The format of these records are: Name Offset Description AGE 0 time in seconds when the wireless device generated this data. DATA_0, DATA_1, DATA_2, DATA_3 1, 2, 3, 4 Data is generated by wireless device. The format for this data can be found in the Monnit Serial MOD-BUS Sensor Application Definition document Battery 5 register value / 100 = x.xx Volts RSSI 6 a negative number from -20 to -110 dBm The FRR is auto zeroed when no new data comes in. Ref.
Field Name Offset Description ID_H 0 ID_L 1 Wireless device’s globally-unique identifier. Combine a ID_H and ID_L to form full UInt32 number. (READ-ONLY) VER_MAJOR 2 VER_MINOR 3 TYPE 4 Device Type value that is used to interpret the sensor specific portions of this record. (READ-ONLY) VOLTAGE 5 Current Voltage reported from the remote device. Value formatted in millivolts. (READ-ONLY). Example: 301 → 3.01 Volts RSSI 6 Current Received Signal Strength Indicator. Formatted as Int16.
CFG_ CHANM_H 17 CFG_ CHANM_L 18 CFG_INTERVAL_ LINK 19 Configurable Channel Mask is a UInt32 bit-field that represents the allowed channels the wireless device is permitted to use to search for gateways. If the value is written to 0x00000011, then the network is only allowed to be established on channels 1 and 4. Configurable Interval Link represents the device’s link-state sleep time. If the device disconnects from its current network (e.g.
CFG_ PROFILE_TYPE 24 Value that selects what profile specific device type is recognized by the remote device. (READ ONLY – Write attempts are ignored) INTERVAL–TYPE DEVICE = 1 -- Primarily governed by a timer. When it is time to deliver data, the wireless device transmits the data to the gateway. TRIGGER–TYPE DEVICE = 2 -- Primarily governed by the occurrence of an event. If an event is detect OR the CFG_INTERVAL_STANDARD is reached, then the wireless device transmits the data to the gateway.
CFG_INT_TYPE_ CALVAL_1_H 32 CFG_INT_TYPE_CAL VAL_1_L 33 CFG_INT_TYPE_ CALVAL_2_H 34 CFG_INT_TYPE_ CALVAL_2_L 35 CFG_INT_TYPE_ CALVAL_3_H 36 CFG_INT_TYPE_ CALVAL_3_L 37 CFG_INT_TYPE_ CALVAL_4_H 38 CFG_INT_TYPE_ CALVAL_4_L 39 CFG_TRG_TYPE_ DETECT_TYPE 40 CFG_TRG_TYPE_ DETECT_PERIOD 41 CFG_TRG_TYPE_ DETECT_COUNT 42 CFG_TRG_TYPE_ DETECT_REARM 43 CFG_TRG_TYPE_ DETECT_BISTABLE 44 UNUSED 45-49 Device-Type Specific Parameter: INTERVAL–TYPE DEVICE Calibration / Control Values.
Error Reporting, Troubleshooting and Support For technical support and troubleshooting tips please visit our support library online at http://www.monnit.com/support/. If you are unable to solve your issue using our online support, email Monnit support at support@monnit.com with your contact information and a description of the problem, and a support representative will call you within one business day. For error reporting, please email a full description of the error to support@monnit.com.
(b) As a condition to Monnit’s obligations under the immediately preceding paragraphs, Customer shall return Products to be examined and replaced to Monnit’s facilities, in shipping cartons which clearly display a valid RMA number provided by Monnit. Customer acknowledges that replacement products may be repaired, refurbished or tested and found to be complying. Customer shall bear the risk of loss for such return shipment and shall bear all shipping costs.
Certifications United States FCC This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications.
Canada (IC) English Under Industry Canada regulations, this radio transmitter may only operate using an antenna of a type and maximum (or lesser) gain approved for the transmitter by Industry Canada. To reduce potential radio interference to other users, the antenna type and its gain should be so chosen that the equivalent isotropically radiated power (e.i.r.p.) is not more than that necessary for successful communication.
For additional information on Monnit Wireless Sensors and Software, please visit us on the web at www.monnit.com. Monnit Corporation 7304 South Cottonwood Suite #204 Midvale, Utah 84047 www.monnit.com All trademarks are property of Monnit. ©2009-2014 Monnit Corp. All Rights Reserved.