MGate MB3000 Modbus Gateway User’s Manual First Edition, April 2007 www.moxa.com/product Moxa Technologies Co., Ltd. Tel: +886-2-8919-1230 Fax: +886-2-8919-1231 Web: www.moxa.com MOXA Technical Support support@moxa.com Worldwide: support@usa.moxa.
MGate MB3000 Modbus Gateway User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement. Copyright Notice Copyright © 2007 Moxa Technologies Co., Ltd. All rights reserved. Reproduction without permission is prohibited. Trademarks MOXA is a registered trademark of The Moxa Group. All other trademarks or registered marks in this manual belong to their respective manufacturers.
Table of Contents Chapter 1 Introduction ...............................................................................................1-1 Overview .............................................................................................................................. 1-2 Package Checklist ................................................................................................................ 1-2 Product Features................................................................................
Integrate Modbus RTU, ASCII, and TCP at the Same Time ................................................ 6-4 Appendix A Modbus Overview..................................................................................... A-1 Introduction ......................................................................................................................... A-1 Devices are Either Masters or Slaves ..................................................................................
1 Chapter 1 Introduction Welcome to the MGate MB3000 line of Modbus gateways. All models feature easy integration of Modbus TCP to Modbus RTU/ASCII and feature RS-232/422/485 ports for Modbus serial communication. One, two, and four-port models are available.
MGate MB3000 User’s Manual Introduction Overview The MGate MB3000 is a line of protocol gateways that provides users with y seamless integration of Ethernet and serial Modbus devices y powerful operation modes to handle almost any Modbus application y Windows utilities for easy setup and traffic monitoring Seamless integration of Ethernet and serial Modbus devices Modbus is one of the most popular automation protocols in the world, supporting traditional RS-232/422/485 devices and recently developed Ethe
MGate MB3000 User’s Manual Introduction Product Features All models in the MGate MB3000 line enjoy the following features: y y y y y y y Integration of Modbus TCP and Modbus RTU/ASCII networks Up to 31 Modbus RTU/ASCII slaves per serial port Up to 32 Modbus TCP connections with Modbus RTU/ASCII masters Configuration over Ethernet with easy-to-use Windows utility 10/100M Fast Ethernet with automatic IP setting (DHCP) Software-selectable RS-232/485/422 communication High speed serial interface supporting 9
MGate MB3000 User’s Manual Power Requirements Power Input Power Socket Introduction 12 to 48 VDC MB3180: Power jack MB3480: Power jack and terminal block Power Consumption Mechanical Material Environment Operating Temperature Storage Temperature Regulatory Approvals EMC Safety Shock Freefall Vibration EMS Warranty MB3180: Aluminum (1 mm) MB3480: SECC sheet metal (0.
2 Chapter 2 Getting Started This chapter includes information about installing the MGate MB3000.
MGate MB3000 User’s Manual Getting Started Panel Layout MGate MB3180 Rear Panel View RJ45 10/100M Ethernet port Reset button Power input Top Panel View DIN-Rail screw hole Wallmount screw hole Front Panel View Male DB9 serial port Stick-on pad MGate MB3480 Power input RESET LAN V+ V- RJ45 10/100 Mbps Ethernet port Terminal Block power input Indicator LEDs Male DB9 serial port 2-2
MGate MB3000 User’s Manual Getting Started Dimensions MGate MB3180 MGate MB3480 LAN RESET V+ V- 35.5 mm (1.4 in ) 39 mm 25 mm (1.54 in) (0.98 in) 103 mm (4.06 in) O 3.2 mm (0.13 in) 158 mm (6.22 in) 169 mm (6.67 in) 181 mm (7.
MGate MB3000 User’s Manual Getting Started Connecting Power The unit can be powered using the AC adaptor or by connecting a power source to the terminal block. Follow these instructions to supply power using the AC adaptor: 1. Plug the connector of the power adapter into the DC-IN jack on the back of the unit. 2. Plug the power adapter into an electrical outlet. Follow these instructions to connect a power source to the terminal block: 1. Loosen or remove the screws on the terminal block. 2.
MGate MB3000 User’s Manual Getting Started switches or jumper settings are used to enable a 120 Ω termination resistor and set the pull high/low resistor values. To add a 120 Ω termination resistor, set switch 3 on the port’s assigned DIP switch to ON; set switch 3 to OFF (the default setting) to disable the termination resistor. This function is only available for the MGate MB3480.
MGate MB3000 User’s Manual Getting Started MGate MB3480 DIP switches SW1 for Port 1 SW2 for Port 2 SW3 for Port 3 SW4 for Port 4 2-6
MGate MB3000 User’s Manual Getting Started Installing the Software The following instructions explain how to install MGate Manager, a utility for configuring and monitoring MGate MB3000 units over the network. 1. Insert the Document and Software CD into the CD-ROM drive. Locate and run the following setup program to begin the installation process: MGM_Setup_[Version]_Build_[DateTime].exe The latest version might be named MGM_Setup_Ver1.1.0_Build_07041910.exe, for example: 2.
MGate MB3000 User’s Manual Getting Started 4. When the Select Additional Tasks window appears, click Next to continue. You may select Create a desktop icon if you would like a shortcut to MGate Manager on your desktop. 5. Click Next to start copying the software files. 6. A progress bar will appear. The procedure should take only a few seconds to complete.
MGate MB3000 User’s Manual Getting Started 7. A message will indicate that MGate Manager is successfully installed. You may choose to run it immediately by selecting Launch MGate Manager. 8. You may also open MGate Manager through Start Æ Programs Æ MGate Manager Æ MGate Manager, as shown below. Mounting the Unit DIN-Rail You can use attachments so the unit can be mounted on a DIN-rail, as shown below. STEP 1: There are two plates on either side of the unit for mounting purposes.
MGate MB3000 User’s Manual Getting Started STEP 2: STEP 3: Use the DIN-rail attachments to hook the unit onto the DIN-rail, as shown. Gently but firmly snap the unit into place. The attachments should fit snugly over the top and bottom edges of the DIN-rail. NOTE: The DIN-rail mounting kit is an optional accessory. To remove the unit from the DIN-rail, hold the unit with both hands and use your fingers to pull the attachments off the bottom edge of the DIN-rail.
MGate MB3000 User’s Manual Getting Started MGate MB3480 STEP 1: Attach the fix ribs onto the unit with screws. 4 mm 2.5 cm 16.9 cm STEP 2: Position four screws on the wall, with each screw at the corner of a rectangle 16.9 cm across and 2.5 cm high. Make sure the heads are 6 mm in diameter or less, with shafts at 3 mm in diameter or less. Tighten the screws but leave about 5 mm of space between the head and the wall.
3 Chapter 3 Typical Applications In this chapter, we introduce four typical Modbus applications.
MGate MB3000 User’s Manual Typical Applications Ethernet Masters with Multiple Serial Slaves Connect all Modbus devices over an Ethernet network Most modern PLCs and host computers support Modbus TCP over Ethernet. In order to access discrete Modbus RTU/ASCII devices for data collection and control, they can rely on the MGate MB3000 Modbus gateway. The MGate MB3000 supports Modbus TCP with up to 16 simultaneous connections.
MGate MB3000 User’s Manual Typical Applications Modbus TCP Masters with ASCII and RTU Slaves Link TCP master devices with both ASCII and RTU serial devices simultaneously When integrating Modbus networks, you may encounter different Modbus serial networks that use different baudrates or a different protocol. Modbus ASCII might be used by some devices, while Modbus RTU is used by other devices. The MGate MB3280 and MB3480 can integrate serial Modbus networks that use different parameters or protocols.
4 Chapter 4 Configuring the Modbus Gateway We discuss the following topics in this chapter: Starting MGate Manager ¾ Change Language Setting Connecting to the Unit ¾ Broadcast Search ¾ Specify by IP Address Modifying the Configuration ¾ Configure Serial Port for RTU or ASCII, Master or Slave ¾ Configure IP Address and Other Network Settings ¾ Configure Serial Communication Parameters ¾ Set up Slave ID Mapping (Smart Routing) ¾ Customize Modbus Settings Verifying Location of Unit Monitoring Mod
MGate MB3000 User’s Manual Configuring the Modbus Gateway Starting MGate Manager MGate Manager is a Windows-based utility that is used to configure the MGate MB3000. If you have not already installed MGate Manager, please do so by referring to Chapter 2, Getting Started. Before running MGate Manager, make sure that your PC and the MGate MB3000 are connected to the same network. Alternatively, the MGate MB3000 may be connected directly to the PC for configuration purposes.
MGate MB3000 User’s Manual Configuring the Modbus Gateway ATTENTION Use “Default Language” before contacting MOXA Technical Support With support for multiple languages, MGate Manager is more user-friendly and accessible. However, if you need assistance from MOXA Technical Support, please change the language to “Default Language”. This will prevent any misunderstandings or confusion about MGate Manager menu items and commands as our engineers assist you.
MGate MB3000 User’s Manual Configuring the Modbus Gateway When the search is complete, every MGate MB3000 that is found on the LAN will appear in the window with MAC address and IP address. Simply select the one that you wish to configure. Specify by IP Address Click Specify by IP Address if you know the IP address of the unit and wish to connect to it directly. A dialog box will appear. Enter the unit’s IP address and click OK. If the search is successful, the unit will be listed in MGate Manager.
MGate MB3000 User’s Manual Configuring the Modbus Gateway ATTENTION If Search by IP Address fails to locate the MGate MB3000, the IP address that you entered might be incorrect. Try doing the search again and re-entering the IP address carefully. Another possibility is that the MGate MB3000 is located on the same LAN as your PC, but on a different subnet. In this case, you can modify your PC’s IP address and/or netmask so that it is on the same subnet as the MGate MB3000.
MGate MB3000 User’s Manual Configuring the Modbus Gateway Mode Description RTU Slave Modbus RTU slave(s) will be connected to the serial port, to be controlled by Modbus TCP masters. RTU Master A Modbus RTU master will be connected to the serial port and will control Modbus TCP slaves. ASCII Slave Modbus ASCII slave(s) will be connected to the serial port, to be controlled by Modbus TCP masters.
MGate MB3000 User’s Manual Configuring the Modbus Gateway Network Settings Parameter Value Name (an alphanumeric string) Network Configuration Static IP, DHCP, BootP, or DHCP/BootP IP Address Netmask Gateway DNS1 DNS2 192.168.127.254 (or other 32-bit number) 255.255.255.0 (or other 32-bit number) 0.0.0.0 (or other 32-bit number) 0.0.0.0 (or other 32-bit number) 0.0.0.0 (or other 32-bit number) 4-7 Notes You can enter a name to help you identify the unit, such as the location, function, etc.
MGate MB3000 User’s Manual Configuring the Modbus Gateway Password (an alphanumeric string) You can set a password to prevent unauthorized users from configuring the unit. The password will be required when anyone attempts to configure the unit over the network. Modbus operation is not affected by the password. Confirm password (an alphanumeric string) Re-type the password again for confirmation.
MGate MB3000 User’s Manual Configuring the Modbus Gateway Serial Settings Parameter Value RS-232 RS-422 Interface Mode RS-485, 2W RS-485, 4W Baud Rate 50 bps to 961200 bps Parity None, Odd, Even, Space, Mark Data Bits 7, 8 Stop Bits 1, 2 Flow Control None, Xon/Xoff, RTS/CTS UART FIFO Enable, Disable Set up Slave ID Mapping (Smart Routing) The SID Map tab is where slave IDs are managed. The definitions on this tab determine how requests will be routed by the unit.
MGate MB3000 User’s Manual Configuring the Modbus Gateway SID Map Settings Setting Value Notes This specifies the range of IDs that will be routed to the selected set of slave devices. For example, you can specify that IDs between 8 and 24 be routed to the devices on Port 3. The ID 255 is reserved for the gateway it's self (numeric range from 1 to 254) Virtual Slaves ID Range This specifies the difference between the virtual slave ID and the actual slave ID.
MGate MB3000 User’s Manual Configuring the Modbus Gateway You will need to modify the virtual ID range for each port on the MGate. Since there are no slaves on Port 2 or 4, their ranges can be set to anything that does not conflict with other ranges.
MGate MB3000 User’s Manual Configuring the Modbus Gateway Modbus TCP Exception The MGate MB3000 is a protocol gateway that transparently passes requests and responses between the Ethernet and serial interfaces. In some situations, it may be necessary for the gateway to return an exception in response to a request from a Modbus TCP master. This is enabled or disabled with the “Modbus TCP Exception” setting.
MGate MB3000 User’s Manual Configuring the Modbus Gateway ATTENTION Please note the following regarding automatic calibration of response timeouts: y When automatically detecting the response timeout, the MGate will use the ID table in the SID Map tab to determine which ports and which IDs to search. Make sure that you have defined the ID table for your system before clicking “Auto Detection”. y The automatic calibration will take some time to complete.
MGate MB3000 User’s Manual Configuring the Modbus Gateway Monitoring Modbus Activity For troubleshooting or management purposes, you can monitor the data passing through any MGate MB3000 on the network. Data events will be logged as they pass through the gateway. Rather than simply echoing the data, MGate Manager presents the data in an intelligent, easily-understood format, with clearly designated fields including source, type, destination, contents, and more.
MGate MB3000 User’s Manual Configuring the Modbus Gateway To stop capturing the log, press the Stop button.
MGate MB3000 User’s Manual Configuring the Modbus Gateway Filter Traffic Information By default, all events are displayed in the traffic monitor window. MGate Manager also allows the data to be filtered so only the relevant information is displayed.
MGate MB3000 User’s Manual Configuring the Modbus Gateway Upgrading Firmware Firmware updates for the MGate MB3000 are located at www.moxa.com. After you have downloaded the new firmware onto your PC, you can use MGate Manager to write it onto your MGate MB3000. Select the desired unit from the list in MGate Manager and click Upgrade Firmware to begin the process. The dialog boxes will guide you through the process. You will need to browse your PC for the firmware file.
MGate MB3000 User’s Manual Configuring the Modbus Gateway Once the firmware has been successfully written onto the unit, click Exit to close the Upgrade Firmware window. MGate Manager will automatically execute a Broadcast Search for all MGate MB3000 units on the LAN. Your MGate should reappear in the list of units.
5 Chapter 5 Pin Assignments The MGate MB3000 uses DB9 (male) serial ports to connect Modbus RTU or ASCII devices. Each port supports three serial interfaces: RS-232, RS-422, and RS-485 (both 2 and 4-wire).
6 Chapter 6 Case Studies We discuss the following topics in this chapter: Introduction Replace Serial Masters with Ethernet Master(s), Slave IDs are Configurable Replace Serial Masters with Ethernet Master(s), Slave IDs are Fixed Keep Serial Master and Add Ethernet Master(s) Integrate Modbus RTU, ASCII, and TCP at the Same Time
MGate MB3000 User’s Manual Case Studies Introduction There are many reasons a Modbus gateway might be used to integrate Modbus networks. However, every situation has its own requirements and difficulties. Users may wonder how the gateway can help or even if the gateway is suitable for the system. This chapter presents some case studies to help guide. If you can not find the case the same as yours, it does not mean the MGate MB3000 is not suitable with you.
MGate MB3000 User’s Manual Case Studies Keep Serial Master and Add Ethernet Master(s) In this scenario, the serial control system is a direct, low-latency system. The serial master must not be replaced, but Ethernet masters will need to have access to the serial slaves for monitoring or supervision. The advanced, multiport MGate MB3270 or MB3470 can be inserted into the serial system, with the slaves connected to one serial port and the master to another serial port.
MGate MB3000 User’s Manual Case Studies Integrate Modbus RTU, ASCII, and TCP at the Same Time There can be a wide range in number, type, and sophistication of devices on the factory floor. The most common devices are simple serial-based meters, which report certain information relating to factory environment or equipment. However, other Modbus serial slaves may be as complex as a manufacturing machine or a PLC controller.
A Appendix A Modbus Overview Introduction Modbus is one of the most popular automation protocols in the world. It supports both serial and Ethernet devices. Many industrial devices, such as PLCs, DCSs, HMIs, instruments, meters, motors, and drivers, use Modbus as their communication standard. Devices are Either Masters or Slaves All Modbus devices are classified as either a master or a slave. Masters initiate all communication with slaves and do not communicate to other masters.
MGate MB3000 User’s Manual Modbus Overview Exception The master sends a request to the slave. The slave may not support the command or an error is detected, so it sends an exception to the master. Broadcast The master sends a broadcast command, such as a reset command. Every slave on the network complies with the command, and no response is sent to the master.
MGate MB3000 User’s Manual Modbus Overview Modbus Ethernet vs. Modbus Serial Although Modbus standard is intended as an application layer messaging protocol, the data format and communication rules for Ethernet-based Modbus TCP are different from serial-based Modbus ASCII and RTU. The major difference between the Ethernet and serial Modbus protocols is the behavior of the communication model. Modbus ASCII and RTU allow only one request on the network at a time.
B Appendix B Declaration of Conformity Manufacturer’s Name: Moxa Technologies Co., Ltd. Manufacturer’s Address: Fl.4, No.135, Lane 235, Pao-Chiao Rd., Shing Tien City, Taipei, Taiwan, R.O.C.
C Appendix C Service Information This appendix shows you how to contact Moxa for information about this and other products, and how to report problems.
MGate MB3000 User’s Manual Service Information MOXA Internet Services Customer satisfaction is our number one concern, and to ensure that customers receive the full benefit of our products, MOXA Internet Services has been set up to provide technical support, driver updates, product information, and user’s manual updates. The following services are provided: E-mail for Technical Support support@moxa.com Website for Product Information http://www.moxa.
MGate MB3000 User’s Manual Service Information Problem Report Form MGate MB3000 Customer name: Company: Tel: Fax: Email: Date: 1. Model Number: MGate MB3180 2. Serial Number: MGate MB3480 _________________ Problem Description: Please describe the symptoms of the problem as clearly as possible, including any error messages you see. A clearly written description of the problem will allow us to reproduce the symptoms and expedite the repair of your product.
MGate MB3000 User’s Manual Service Information Product Return Procedure For product repair, exchange, or refund, please follow these instructions: y Provide evidence of original purchase. y Obtain a Product Return Agreement (PRA) from the sales representative or dealer. y Fill out the Problem Report Form (PRF). Include as much detail as possible for a shorter product repair time. y Carefully pack the product in an anti-static package, and send it, pre-paid, to the dealer.