Table of Contents Introduction ............................1-1 Overview ............................1-2 Package Checklist ..........................1-2 Product Features ..........................1-2 Getting Started..........................2-1 Connecting Power ..........................2-2 Connecting PROFIBUS Devices ......................2-2 Connecting Modbus Serial Devices ......................2-2 Connecting to a Host via Serial Console Cable ..................2-2 Hardware ............................
Introduction Welcome to the MGate 4101-MB-PBS line of Modbus to PROFIBUS gateways. All models feature easy protocol conversion from Modbus to PROFIBUS, and RS-232/422/485 port for Modbus communication. This chapter is an introduction to the MGate 4101-MB-PBS and includes the following sections: ...
Windows utilities for easy setup and traffic monitoring A Windows utility is provided to make configuration and operation of the MGate 4101-MB-PBS as easy as possible. The utility uses serial console port to connect MGate 4101-MB-PBS unit. Besides, Wizard functions can help you finish configuration in only several minutes by automatic commands detection and automatic memory mapping.
Getting Started The following topics are covered in this chapter: Connecting Power Connecting PROFIBUS Devices Connecting Modbus Serial Devices Connecting to a Host via Serial Console Cable...
MGate 4101-MB-PBS UM Getting Started Connecting Power The unit can be powered using the AC adaptor or by connecting a power source to the terminal block, depending on the model. The following instructions are for the AC adaptor: 1. Plug the connector of the power adapter into the DC-IN jack on the back of the unit.
Hardware The following topics are covered in this chapter: Function Block Power Input and Relay Output Pinouts LED Indicators Dimensions Pin Assignments Mounting the Unit Specifications Adjustable Pull High/Low Resistors for the Modbus Port (P1) in RS-485 Mode ...
MGate 4101-MB-PBS UM Hardware Function Block Power Input and Relay Output Pinouts Shielded DC Power DC Power Relay Common Relay DC Power DC Power Ground Input 2 Input 2 output output Input 1 Input 1 LED Indicators Color Function PWR1 Green Power is on.
Steady: Error in Configuration. Blinking: Error in Parameter data PROFIBUS offline or Slave ID wrong. Dimensions Pin Assignments Modbus P1 Pin Assignment The MGate 4101-MB-PBS series use DB9 (male) serial port to connect to Modbus devices. RS-232 RS-422/ RS-485 (2W) RS-485 (4W) TxD-(A)
Mounting the Unit The unit can be mounted on the wall or mounted on a DIN-Rail. The MGate 4101-MB-PBS/4101I-MB-PBS series is designed to be attached to a DIN-Rail or mounted on a wall. For DIN-Rail mounting, push down the spring and properly attach it to the DIN-Rail until it “snaps”...
MGate 4101-MB-PBS UM Hardware Specifications Power Input Input Voltage 12 to 48 VDC Connector 8-pin terminal block (GND, V1+, V1-, Relay NC, Relay NC, V2+, V2-), screw mounting Modbus Serial Interface Protocol Modbus ASCII/RTU, Master/Slave Number of Ports Serial Standards...
MGate 4101-MB-PBS UM Hardware Warranty 5 years Adjustable Pull High/Low Resistors for the Modbus Port (P1) in RS-485 Mode Pull High Pull Low Terminator 1KΩ 1KΩ 120Ω Default 150Ω 150KΩ In some critical environments, you may need to add termination resistors to prevent the reflection of serial signals.
MGate 4101-MB-PBS UM Hardware To reset the MGate to the factory default settings, hold down the reset button for about 5 seconds. The MGate will restart and be rest to factory default settings. Rotary Switch Before communication, you must assign a slave ID to the PROFIBUS slave, If you would like to assign an address between 0 - 99, you need to change the rotary switch to the desired address.
Configuration The following topics are covered in this chapter: Installing the Software Starting MGate Manager Connecting to the Unit Modifying the Configuration Configure Device Configure Modbus Settings Set up PROFIBUS IO Mapping Setup ...
MGate 4101-MB-PBS UM Configuration Installing the Software The following instructions explain how to install MGate Manager, a utility for configuring and monitoring MGate 4101-MB-PBS 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...
Page 17
MGate 4101-MB-PBS UM Configuration 3. When the Select Destination Location window appears, click Next to continue. You may change the destination directory by first clicking on Browse. 4. When the Select Additional Tasks window appears, click Next to continue. You may select Create a desktop...
Page 18
MGate 4101-MB-PBS UM Configuration 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.
Page 19
MGate 4101-MB-PBS UM Configuration 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...
Starting MGate Manager MGate Manager is a Windows-based utility that is used to configure the MGate 4101-MB-PBS. Before running MGate Manager, make sure that the MGate 4101-MB-PBS is connected to your PC. Please refer to Chapter 2 for more details.
Prior to configuration, MGate Manager must be connected to its unit. There are three methods to establish connection. Broadcast Search locates the MGate series on the LAN and each MGate 4101-MB-PBS connected to a PC COM port. Search by IP attempts to connect to a specific unit by IP address, which is useful if the unit is located outside the LAN or can only be accessed by going through a router.
EIP3000 series are on the same subnet, MGate Manager should be able to find the unit. Connect through COM Port Connect through COM Port is used for MGate PROFIBUS Gateways, such as the MGate 4101-MB-PBS series, which are discovered via RS-232 serial COM Port. Click Connect through COM Port if you know the COM port number of the unit.
MGate 4101-MB-PBS UM Configuration Modifying the Configuration Once your unit is displayed in MGate Manager, select it by clicking on it. The Configuration button will become available. Click Configuration to open the configuration window. 4-10...
MGate 4101-MB-PBS UM Configuration Configure Device In first page, you can change device name and select a Password to protect the unit from unauthorized access. Parameter Value Notes Name (an alphanumeric string) You can enter a name to help you identify the unit, such as the location, function, etc.
RS-232, RS-422, RS-485 Protocol Description Slave ID Slave mode only, Modbus slave identification number of the MGate 4101-MB-PBS Response Time-out Master mode only, the time master will wait for a response after sending a request. (ms) See detailed description below.
This allows the Modbus system to continue operation even if a slave device is disconnected or faulty. On the MGate 4101-MB-PBS, the “Response Time-out” field is used to configure how long the gateway will wait for a response from a Modbus ASCII or RTU slave. Please refer to your device manufacturer’s documentation to manually set the response time-out.
IO Mapping Setup In this page, you should define all commands that Modbus uses and all I/O modules PROFIBUS slave provides. If you choose MGate 4101-MB-PBS as Modbus Master, you should designate all Modbus Read or Write requests in the upper table.
MGate 4101-MB-PBS UM Configuration Each Modbus request includes Enable, Modbus slave ID, Function Code, Address, Length, Internal Address, Poll Interval, Swap. Please refer to datasheets or manuals of Modbus slave devices to fill out these fields. Parameter Description Enable The Enable for the transaction: Disable: The transaction is never sent Cyclic: The transaction is sent cyclically at the interval specified in the “Poll Interval”...
Page 30
MGate 4101-MB-PBS UM Configuration After all Modbus requests finish, all the data collected from Modbus should be mapped to PROFIBUS I/O modules for the PROFIBUS Master to use. Click Add to create each PROFIBUS I/O module in the lower table.
Status to On Learning. The number of Learned Requests will increase as the MGate 4101-MB-PBS learns each request. When you are sure all requests have been learned by the MGate 4101-MB-PBS, click the Stop button, then click the Next button to continue QuickLink.
Page 32
The interface of next dialog is divided into two sections. The upper section is labeled Modbus and will display the details of the Modbus requests which have been learned by the MGate 4101-MB-PBS. The lower section is labeled PROFIBUS Slave and will display the I/O module. Moreover, based on these learned requests, the I/O module blocks are allocated intelligently by MGate Manager.
MGate 4101-MB-PBS UM Configuration IO Map The IO Map is a mechanism which is applied when data from different networks are exchanged via the gateway’s internal memory, so you must define a memory map in the gateway before starting data exchange.
Page 34
MGate 4101-MB-PBS UM Configuration In addition you can select the Paging checkbox to enable the page function, so the utility will insert two I/O word modules into the starting location of the input/output memory bank for separate page functionality. Basically, because one I/O module supports 244 bytes only, the paging function can be used to break through this limit.
Page 35
MGate 4101-MB-PBS UM Configuration The IO map interface shows input and output memory array. The row unit is internal address and the column unit is byte number. Each column has a length of 20 bytes. Each cell is showed as the following table:...
MGate 4101-MB-PBS UM Configuration Load Default If for some reason you would like to clear all the settings of the unit, the load default button will reset the unit to its initial factory default values. Click Load Default and review the confirmation message. If you are sure you would like to reset the configuration to the factory default, click the OK button.
MGate 4101-MB-PBS UM Configuration Monitoring Modbus Activity For troubleshooting or management purposes, you can monitor the data passing through any MGate 4101-MB-PBS on the Modbus side. 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 4101-MB-PBS UM Configuration Open Traffic Monitor Window Select the unit that you wish to monitor and click Monitor to open the Traffic Monitor window. In the Traffic Monitor window, click Start to begin live monitoring of the data passing through the selected MGate 4101-MB-PBS unit.
MGate 4101-MB-PBS UM Configuration To stop capturing the log, press the Stop button. Save Log to File To save the data log to a file, click Save. You may retrieve a saved log by clicking Load. 4-25...
MGate 4101-MB-PBS UM Configuration Diagnose Diagnose is a powerful function to identify communications problems and assist in troubleshooting when setting up a PROFIBUS and Modbus environment. Select the desired unit from the list in MGate Manager and click Diagnose to check the communication status.
Page 41
MGate 4101-MB-PBS UM Configuration There are two parts. In Modbus tab, the first part is the information regarding Modbus. These details will help you to analyze the Modbus communication. Modbus Description State The communication state of Modbus side Type RTU Slave / RTU Master / ASCII Slave / ASCII Master...
Firmware updates for the MGate 4101-MB-PBS 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 4101-MB-PBS. Select the desired unit from the list in MGate Manager and click Upgrade Firmware to begin the process.
You can export the configuration as a file, and then import that configuration file onto other units at any time. The export function saves all the configuration settings and parameters of the MGate 4101-MB-PBS will be saved in an .ini file. To begin, click the Export button.
Page 44
MGate 4101-MB-PBS UM Configuration If you export the configuration file successfully, a confirmation message will pop up. After that, the configuration file will be saved as an .ini file Once the file is saved, it can be imported into your target unit to duplicate the same settings. Select the target unit first and click the Import button to import.
Page 45
MGate 4101-MB-PBS UM Configuration Please be patient and wait as MGate Manager configures the target device. If you import the configuration file successfully, a confirmation message will pop up. After closing the message dialog, MGate Manager will automatically execute a Broadcast Search for all MGate units on the LAN and the recording COM port.
QuickLink process, the MGate 4101-MB-PBS can replace the legacy Modbus master. Moreover, the MGate 4101-MB-PBS can respond to all of the Modbus slaves correctly. NOTE QuickLink is enabled with the MGate 4101-MB-PBS is in master mode only. Please set the MGate 4101-MB-PBS in master mode before you use the QuickLink function.
Quick Configuration Quick Configuration Steps MGate 4101-MB-PBS provides an innovative function which can automatically and quickly finish the configuration. Two typical architectures are illustrated below. Confirm which architecture is used in your application and then follow the steps to finish the configuration.
MGate 4101-MB-PBS UM Quick Configuration 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.
MGate 4101-MB-PBS UM Quick Configuration 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 4101-MB-PBS UM Quick Configuration Integrate Modbus Serial and Ethernet with Gateways Ordinarily, Modbus TCP and Modbus ASCII/RTU are unable to communicate with each other. However, with a Modbus gateway in between the Modbus serial network and the Modbus Ethernet network, TCP masters are able to communicate with serial slaves and serial masters are able to communicate with TCP slaves.
Need help?
Do you have a question about the MGate 4101-MB-PBS and is the answer not in the manual?
Questions and answers