BB-MESR90x Modbus Gateways CONTENTS ABOUT THIS DOCUMENT ..................... 6 1. INTRODUCTION ........................7 About BB-MESR90x Modbus Gateways ................. 7 BB-MESR90x Modbus Gateways – Numbering Matrix ............8 List of BB-MESR90x Modbus Gateway Models ..............8 BB-MESR90x Modbus Gateway Features ................9 Vlinx™...
Page 4
BB-MESR90x Modbus Gateways BB-MESR90x Modbus Gateway Configuration Connections ..........16 Installing Modbus Configuration Manager Software ............17 Configuring the Gateway via the Network Connection ............21 Configuring with Modbus Configuration Manager ...............21 Configuring the BB-MESR90x Modbus Gateway on Networks without a DHCP Server ..36 Configuring the BB-MESR90x Modbus Gateway via the Serial Port (Console Mode) ..39 BB-MESR90x Modbus Gateway Operational Connections ............41 Using BB-MESR90x Modbus Gateways in Direct IP Mode ..........41...
Page 5
Serial Interface Specifications .....................69 Network Specifications .......................69 Appendix C: Dimensional Diagrams ..................70 Appendix D: Connector Pinouts .....................72 BB-MESR901 Serial Port Pinouts ..................72 BB-MESR902T Serial Port Pinouts ..................73 Standard Ethernet Cable RJ45 Pin-out ................74 GLOSSARY ..........................75 APPROVALS, DIRECTIVES, STANDARDS ................76 ADVANTECH TECHNICAL SUPPORT ..................76...
Information in this manual is subject to change without notice, and does not represent a commitment on the part of Advantech Advantech shall not be liable for incidental or consequential damages resulting from the furnishing, performance, or use of this manual.
BB-MESR90x Modbus Gateways 1. INTRODUCTION Thank you for purchasing a BB-MESR90x Modbus Gateway product. This product has been manufactured to the highest standards of quality and performance to ensure your complete satisfaction. A BB-MESR901 Modbus Gateway ABOUT BB-MESR90X MODBUS GATEWAYS BB-MESR90x Modbus Gateways connect Modbus networks (RS-232, RS-422 or RS-485) to Ethernet networks, allowing the Modbus network to become a node on the network.
BB-MESR90x Modbus Gateways BB-MESR90X MODBUS GATEWAYS – NUMBERING MATRIX LIST OF BB-MESR90X MODBUS GATEWAY MODELS The following table lists the BB-MESR90x Modbus Gateway model configurations. Model Serial Serial Ethernet Ethernet Ethernet Number Port/s Connector Port/s Media Connector/s BB-MESR901 DB9 or TB Copper (1) RJ-45 BB-MESR902T...
BB-MESR90x Modbus Gateways BB-MESR90X MODBUS GATEWAY FEATURES • Two models: BB-MESR901 (one serial port, one Ethernet Port) • BB-MESR902T (two serial ports with pluggable terminal blocks, one Ethernet port) • • Multi-interface serial ports • DB9M and/or pluggable terminal block serial port connector options •...
BB-MESR90x Modbus Gateways SERIAL PORT LEDS Model BB-MESR901 Modbus Gateway features one serial port. Model BB-MESR902T Modbus Gateway features two serial ports. Each serial port has an associated LED. Serial Port LEDs blink (green) when data is being transmitted or received on the serial port. When the LED is On, it indicates the serial port is open.
BB-MESR90x Modbus Gateways Ethernet Connector. NOTE: Refer to Appendix D for connection pin-outs. SERIAL PORT CONNECTORS BB-MESR90x Modbus Gateways use four serial port connector configurations, depending on the model: • BB-MESR901 Modbus Gateway features one serial port and uses a DB9M connector for RS-232 and a 5-position removable terminal block for RS-422 and RS-485 connections.
BB-MESR90x Modbus Gateways POWER CONNECTOR The power connector is a 2-position pluggable terminal block. Power Connection MOUNTING HARDWARE BB-MESR90x Modbus Gateway modules can be DIN rail mounted. The DIN mounting clip and spring is included on each module. DIN Clip Detail...
BB-MESR90x Modbus Gateways 3. MODBUS GATEWAY SETUP & CONNECTIONS NOTE: In this section, devices to be connected to the Modbus gateway’s serial connection are simply referred to as the “Modbus network”. CONNECTING THE POWER SUPPLY Connect a DC power supply to the power terminals on the top of the Modbus gateway. Polarity of the wires is indicated on the label on the side of the Modbus gateway.
Page 15
BB-MESR90x Modbus Gateways The BB-MESR901 has one serial connection that supports RS-232, RS-422 and RS-485 (2- and 4-wire). The unit has two connectors: a DB9M connector and a 5-position terminal block. If you select RS-232 mode when you configure the Modbus gateway, you must connect the Modbus serial network to the Modbus gateway via a serial cable.
BB-MESR90x Modbus Gateways CONNECTING THE BB-MESR902T The BB-MESR902T has two serial connections that support RS-232, RS-422 and RS-485 (2-wire and 4-wire). The unit has two connectors that are both 5-position terminal blocks. Make the appropriate connections to the terminal blocks to match the serial connection mode that you select when configuring the Modbus gateway.
BB-MESR90x Modbus Gateways INSTALLING MODBUS CONFIGURATION MANAGER SOFTW ARE 1. The Modbus Configuration Manager Software is contained on the CD that is packaged with the product. Insert the CD into your CD ROM drive. The software should automatically begin the installation process. If AUTO RUN is disabled on your computer, open the CD drive and double-click on the executable file.
Page 18
BB-MESR90x Modbus Gateways c. Click Next. The User Information Screen will be displayed on your computer. Enter your name and organization (optional) and select if the software will be accessible to your account or anyone who uses the computer. User Information Screen d.
Page 19
BB-MESR90x Modbus Gateways e. Click Next. The Ready to Install Application Screen will be displayed on your computer. You can select the Back button to change destination folder. Ready to Install Application Screen f. Click Next. The software will begin installing. Software Installing Screen...
Page 20
BB-MESR90x Modbus Gateways g. After the installation is complete, an information screen will be displayed containing contact information and release notes. Click Next. Information Screen h. Click Next. The Installation Complete screen will be displayed on your computer. Click Finish to finish the installation. Installation Complete Screen...
Configuration manager software running on a PC. To open Modbus Configuration Manager: 1. From the Desktop, click Start Programs Advantech Vlinx Modbus Gateway Manager. Alternate method: double-click the shortcut installed on the desktop. Opening Vlinx Modbus Gateway Manager...
Page 22
BB-MESR90x Modbus Gateways 2. The Vlinx Modbus Configuration Manager Device Discovery window appears. Vlinx Modbus Configuration Manager Discovery Window 3. If you do not know the IP address, check Network and I don’t know the IP address of this device selections and click the Connect” button. The software will discover any BB-MESR90x Gateways on the network.
Page 23
BB-MESR90x Modbus Gateways 4. All Modbus Gateways on the network will be displayed in the top portion of the screen. To select a gateway, click the appropriate device. a. The main portion of the screen displays the Model, Firmware version, Hardware version, MAC Address, and Link Status.
Page 24
BB-MESR90x Modbus Gateways 3. Search allows you to search for Modbus Gateways on the network. 4. Upgrade allows you to upgrade your Modbus Gateway’s firmware. 5. Diagnostic allows you to test a configured Modbus Gateway. See Section 5. 6. Monitor allows you to monitor a Modbus Gateway. See Section 5. 7.
Page 25
BB-MESR90x Modbus Gateways Changing The Password c. Type your new password in the “Type the new password box.” Verify the password by typing it again in the box provided. To save the new password click the “Save” button.
Page 26
BB-MESR90x Modbus Gateways 8. Network Settings a. To get to the Network Settings Screen, you can either click the Next button or click on the Network link on the left side of the screen. Network Settings Screen (DHCP Selected) b. The default network configuration is to receive an IP address assignment from a DHCP Server.
Page 27
BB-MESR90x Modbus Gateways For Class B network (IP addresses 128.0.0.0 through 191.255.255.255), the default subnet mask is 255.255.0.0. For Class C network (IP addresses 192.0.0.0 through 223.255.255.255), the default subnet mask is 255.255.255.0. For Class D network (IP addresses 224.0.0.0 through 239.255.255.255) and Class E network (IP addresses 240.0.0.0 through 255.255.255.255), the subnet mask is ignored.
Page 28
BB-MESR90x Modbus Gateways Modbus TCP Settings Screen c. TCP Server Settings i. Connect to Port identifies TCP port to be used by the Modbus Gateway in TCP client mode. Valid value range is from 1 to 65535. ii. Response Timeout is the maximum amount of time to wait for a response to a request that is sent to the device connected through TCP.
Page 29
BB-MESR90x Modbus Gateways TCP Connection Filter “Allow Specific IP addresses to Connect a. You can select and allow a specific range of IP addresses to connect. This filter is limited to 4 IP address ranges. b. Save settings by clicking the Save button. TCP Connection Filter “Allow Specific Range of IP Addresses to Connect”...
Page 30
BB-MESR90x Modbus Gateways 10. PORT x Serial Settings a. To access this screen, click the Next button or click the Port X Serial link on the left side of the screen. X = the Serial Port number (1 or 2) b.
Page 31
BB-MESR90x Modbus Gateways 11. Port X Modbus a. To access this screen, click the Next” button or click the Port X Modbus” link on the left side of the screen. X = the Serial Port Number (1 or 2) b. This screen allows you to change Modbus settings for the port. Modbus Port Screen c.
Page 32
BB-MESR90x Modbus Gateways h. Modbus Serial Retires – Select 0 through 5. This sets the maximum number of times that the Modbus gateway will retry to send a Modbus message to a Modbus client, before reporting a 0Bh exception if it is selected. Number of retries is limited to 5.
Page 33
BB-MESR90x Modbus Gateways e. The third box in line is the starting ID of a range to remap to. Valid value range is from 1 to 255. The fourth box in line is auto-filled in based on the range filled in the first 3 boxes. Valid value range is from 1 to 255.
Page 34
BB-MESR90x Modbus Gateways 14. Modbus Priority a. To access this screen, click the Next button or click the Modbus Priority link on the left side of the screen. b. This screen allows you to configure the gateway to move high priority messages to the front of the serial message buffer.
Page 35
BB-MESR90x Modbus Gateways CONFIGURING WITH THE WEB INTERFACE BB-MESR90x Modbus Gateways can be configured over the network using a standard internet browser such as Internet Explorer or Firefox. To open the web configuration interface: 1. On a PC connected to the network, open a web browser. Open Web Browser 2.
BB-MESR90x Modbus Gateways The web interface Login page appears. Modbus Gateway Login Screen 3. The screens for configuring your gateway via a web browser are the same as those used to configure using the Vlinx Modbus Manager software. CONFIGURING THE BB-MESR90X MODBUS GATEWAY ON NETWORKS WITHOUT A DHCP SERVER Your Modbus Gateway comes factory-set to receive an IP assignment from a DHCP server.
Page 37
BB-MESR90x Modbus Gateways Open your network connection: b. Click on Internet Protocol (TCP/IP) and click <Properties>. Change the parameters to the following: IP Address = 169.254.102.1 Subnet Mask = 255.255.0.0 Default Gateway = 169.254.102.100 c. Use the Vlinx™ Modbus Manager Software to search for, discover, and configure the Modbus Gateway.
Page 38
BB-MESR90x Modbus Gateways 2. Method 2: Change the Modbus Gateway’s network settings to match your PC using Console Mode: a. Connect a null modem serial cable (crossover cable) from Port 1 on the Modbus Gateway to an available COM port on your PC. b.
BB-MESR90x Modbus Gateways CONFIGURING THE BB-MESR90X MODBUS GATEWAY VIA THE SERIAL PORT (CONSOLE MODE) Your Modbus gateway can be configured via a serial port using Vlinx™ Modbus Manager. To use this feature, the Modbus Gateway's serial port must be connected to the serial port of a PC (using a null modem cable).
Page 40
BB-MESR90x Modbus Gateways Connection 2. If you do not know which COM port your gateway is connected to, select Search all serial ports for the device under Serial Port Options. If you do know, you may specify the COM port by selecting The device is connected to this serial port under Serial Port Options and using the pull down menu to choose the COM port.
BB-MESR90x Modbus Gateways BB-MESR90X MODBUS GATEWAY OPERATIONAL CONNECTIONS BB-MESR90x Modbus Gateways can operate in Direct IP Mode. USING BB-MESR90X MODBUS GATEWAYS IN DIRECT IP MODE A Direct IP connection allows applications using TCP/IP socket programs to communicate with the COM ports on the Modbus gateway. In this type of application, the Modbus gateway is configured as a TCP server.
BB-MESR90x Modbus Gateways INITIATING A HARDWARE RESET ON THE MODBUS GATEWAY To initiate a Hardware Reset on the Modbus Gateway, press and hold the Mode switch for 0 to 2 seconds, then release it. The LED indicators respond as follows: 1.
BB-MESR90x Modbus Gateways 4. UPGRADING THE MODBUS GATEWAY FIRMWARE Occasionally, updated firmware may become available for your Modbus Gateway. The firmware can be upgraded using the Zlinx™ Manager software. The following procedure describes the firmware updating process: 1. Click the Upgrade button to open the Firmware Upgrade dialog box.
BB-MESR90x Modbus Gateways DOWNLOADING FIRMW ARE FILES The Firmware File list (second box) displays all firmware files in the firmware installation folder. Only firmware that is compatible with the selected Modbus gateway is available in this list. To download the latest firmware files from an FTP site on the Internet: 1.
BB-MESR90x Modbus Gateways DIAGNOSTICS Clicking the Diagnostics icon opens the Diagnostics dialog box and enables you to check the operation of connected Modbus gateways on the local computer. The Computer Information box displays information about the type of network connections, the IP Addresses, Subnet Masks and Default Gateways in use. Diagnostics Dialog Box TESTING A MODBUS GATEWAY CONNECTION To run diagnostics on a Modbus gateway:...
BB-MESR90x Modbus Gateways 2. In the drop down box select the specific Modbus gateway that you want to check. 3. Click the Start button Information about the progress of the pinging process is displayed in the Test Progress box. Testing a Modbus Gateway Connection MONITOR FUNCTION The Monitor button is used to display a screen that shows information about events and data transfer through the Modbus Gateway.
The following scenarios are examples only, and many others are possible. Contact Advantech technical support for information on other applications.
Page 48
BB-MESR90x Modbus Gateways 1. Log into your gateway. 2. Access the Serial Port 1 setup screen by clicking the link on the left side of the screen. Serial Port 1 Setup 3. Configure Serial Port 1. In this case, it is RS-232, 19.2 kbps, 8 data bits, 1 stop bit, and even parity.
Page 49
BB-MESR90x Modbus Gateways Port 1 Modbus 5. Configure the Port 1 Modbus settings. In this case, Attached should be slaves, Modbus should be RTU. The other settings depend on your application. 6. Configure Port 2 Serial and Modbus in the same way. 7.
Page 50
BB-MESR90x Modbus Gateways Port x Modbus Slave ID Remapping 8. Access Modbus ID Routing. Configure as necessary. In this example, Slave ID 200 is mapped to serial port 1, Slave ID 1 through 5 and 205 are mapped to serial port 2.
Page 51
BB-MESR90x Modbus Gateways Modbus ID Routing 9. Access Modbus Priority and configure as necessary.
BB-MESR90x Modbus Gateways SERIAL & ETHERNET MASTERS, SERIAL & ETHERNET SLAVES Your Modbus Gateway can also integrate multiple master devices onto serial and Ethernet networks. Serial & Ethernet Masters, Serial & Ethernet Slaves 1. In this example, Serial Port 1 has an RTU Master attached. Configure the serial port settings as appropriate for the device.
Page 54
BB-MESR90x Modbus Gateways Port 1 Modbus 2. Configure the Modbus Slave ID routing. In this case Modbus Slaves 1 through 5 and 205 are on Serial Port 2. Modbus Slaves 150 and 151 through 160 have IP assignments. Modbus Slave ID Routing...
BB-MESR90x Modbus Gateways SERIAL MASTERS, IP SLAVES Serial Masters can be used to control IP slaves. Serial Masters, IP Slaves 1) In this example, an ASCII Master is connected to Serial Port 1 and an RTU Master is connected to Serial Port 2. Configure the serial ports as appropriate for these devices. Port 1 Serial...
Page 56
BB-MESR90x Modbus Gateways Access the Modbus screen for each port and configure as appropriate. In this case, Port 1 has an ASCII Master and Port 2 has an RTU Master attached. Port 2 Serial...
Page 57
BB-MESR90x Modbus Gateways Port 1 Modbus...
Page 58
BB-MESR90x Modbus Gateways 3. Set up the Slave ID Routing to associate IP addresses with the appropriate Slave ID. Port 2 Modbus...
Page 59
BB-MESR90x Modbus Gateways Modbus Slave ID Routing...
BB-MESR90x Modbus Gateways IDENTICAL HARD CODED SLAVES In this example, two slave devices that are hard coded with the same ID are required. This is accomplished by putting them on different serial ports. Identical Hard Coded Slaves...
BB-MESR90x Modbus Gateways IDENTICAL PRODUCTION LINES In this example, identical or backup production lines can be controlled by the same IP Master. This allows the duplicate networks to be configured identically, saving documentation and maintenance time. Identical Production Lines...
BB-MESR90x Modbus Gateways MODBUS HELP MODBUS ASCII / RTU BASICS The Modbus protocol emerged in the mid-1970s as an early protocol for linking terminals with Modicon PLCs using a master/slave (sometimes called “master/client”-) relationship. As a simple, open, message-based protocol, it caught on quickly and became a de facto standard in the industry.
While this was true of early serial network configurations, it is typically the wrong answer – call Advantech Technical Support to verify if your application is an exception. A sometimes difficult problem is: difference in grounding voltage between various network locations.
BB-MESR90x Modbus Gateways APPENDIX A: DEFAULT GATEWAY SETTINGS Setting Default Value Gateway Name User assigned Password Password field is blank from factory DHCP Enabled DHCP will configure. If a DHCP server is not available, IP Address the unit will default to 169.254.102.39 Net Mask 255.255.0.0 Gateway 169.254.102.100 MAC Address Fixed - see bottom label...
BB-MESR90x Modbus Gateways APPENDIX B: PRODUCT SPECIFICATIONS This section includes the following specifications: • General Specifications • Controls, Indicators and Connector Specifications • Serial Interface Specifications • Network Specifications...
BB-MESR90x Modbus Gateways GENERAL SPECIFICATIONS Hardware and Included Device BB-MESR901, BB-MESR902T Modbus Gateway Module Accessories CD with Vlinx™ Modbus Manager software for Windows 2000, XP (32/64 bit), 2003 Server (32/64 bit), Vista (32/64 bit), 2008 Server (32/64 bit), 7 (32/64 bit) Optional Accessories Null Modem Crossover Cable for DTE to DTE connection Cable...
BB-MESR90x Modbus Gateways CONTROLS, INDICATORS AND CONNECTOR SPECIFICATIONS Switches Hold in for 0 to 2 seconds for hardware reset. Hold in for 2 to 10 seconds for Console Mode (do a hardware reset or Reset Button recycle power to exit Console Mode). Hold in for more than 10 seconds to reset to factory defaults.
BB-MESR90x Modbus Gateways BB-MESR902T SERIAL PORT PINOUTS Direction Terminal RS-232 RS-422 RS-485 (RS-232) Output TDA (-) Data A (-) Output TDB (+) Data B (+) Input RDA (-) Input RDB (+) In RS-422 mode, TX lines are outputs and RX lines are inputs. Connect the Modbus gateway TXB(+) line to the RXB(+) line of the Modbus network;...
BB-MESR90x Modbus Gateways STANDARD ETHERNET CABLE RJ45 PIN-OUT RJ45 Pin Signal Wire Color White-Green Green White-Orange Not used Blue Not used White-Blue Orange Not used White-Brown Not used Brown...
Number of bit times after a character is transmitted before the next character can start Stop Bit transmission. Transmission Control Protocol Unit ID Unit Identifier. This is the same as the slave/s’ address. BB-MESRx Advantech Modbus Ethernet Gateway Series Vlinx Advantech family name for the Ethernet gateway line...
CE - Standards EN 55032: Class B Electromagnetic Compatibility of Multimedia Equipment – Emission Requirements EN 55024: Information Technology Equipment – Immunity Characteristics – Limits and Methods of Measurement ADVANTECH TECHNICAL SUPPORT Phone: 1 (800) 346-3119 Fax: 1 (815) 433-5109 Email: support@advantech-bb.com...
Need help?
Do you have a question about the Vlinx BB-MESR90 Series and is the answer not in the manual?
Questions and answers