background image

MGate MB3660 Modbus Gateway   

User’s Manual 

Edition 2.0, June 2017 

www.moxa.com/product 

 

© 2017 Moxa Inc. All rights reserved. 

 

 

Summary of Contents for MGate MB366-8

Page 1: ...MGate MB3660 Modbus Gateway User s Manual Edition 2 0 June 2017 www moxa com product 2017 Moxa Inc All rights reserved...

Page 2: ...nges to this manual or to the products and or the programs described in this manual at any time Information provided in this manual is intended to be accurate and reliable However Moxa assumes no resp...

Page 3: ...gs 4 3 Serial Settings 4 4 RTS Delay 4 4 Protocol Settings 4 5 Transparent Mode 4 6 Agent mode 4 16 System Management 4 31 System Monitoring 4 36 Save Restart 4 38 Logout 4 38 MXView 4 38 MXconfig 4 3...

Page 4: ...U ASCII protocols All MB3660 gateways MB3660 8 MB3660 16 have dual AC DC power inputs and dual IP addresses built in for redundancy Magnetic serial port isolation is also provided for I models In this...

Page 5: ...y key in Modbus commands the gateway can send Modbus commands to multiple Modbus devices at the same time Since the gateway actively and continuously retrieves data from Modbus devices simultaneously...

Page 6: ...CBL RJ45F9 150 8 pin RJ45 to DB9 female cable 150 cm NOTE Notify your sales representative if any of the above items are missing or damaged Product Features Innovative Command Learning eliminates the...

Page 7: ...apter Connecting the Power Connecting Serial Devices RS 485 Termination and Pull High Low Resistors Connecting to a Host or the Network Installing the Software Wiring Requirements LED Indicators Dimen...

Page 8: ...erial port must use the same protocol i e either Modbus RTU or Modbus ASCII Each master device must connect to its own port on the unit If you are connecting to a network with both master and slave de...

Page 9: ...Caution Calculate the maximum possible current in each power wire and common wire Observe all electrical codes dictating the maximum allowed current for each wire size If the current goes over the al...

Page 10: ...n and unit is booting up Blinking IP conflict the DHCP or BOOTP server did not respond properly or a relay output occurred Green Steady on Power is on and unit is functioning normally Blinking Unit is...

Page 11: ...to ON set switch 3 to OFF the default setting to disable the termination resistor To set the pull high low resistors to 150 K set switches 1 and 2 on the port s assigned DIP switch to OFF This is the...

Page 12: ...C Rackmount The MGate MB3660 is designed to be mounted on a standard 19 inch rack Use the enclosed pair of L shaped metal brackets and screws to fasten your MGate MB3660 to the rack cabinet Each L sha...

Page 13: ...sole Serial console Telnet console Utilities Device Search Utility DSU for Windows 95 98 ME NT 2000 Windows XP Server 2003 Vista Server 2008 x86 x64 Windows Server 2008 R2 Windows 7 8 8 1 x86 x64 Wind...

Page 14: ...A 48V Standards and Certifications Safety UL 60950 1 EN 60950 1 LVD EMC CE FCC EMS EN 55032 24 EN 61000 4 2 ESD Level 3 for power side Level 4 for serial side Contact 8 kV Air 15 kV EN 61000 4 3 RS Le...

Page 15: ...ice Search Utility The following topics are covered in this chapter Installing the Software Starting Device Search Utility DSU Connecting to the Unit Broadcast Search Search IP Locate Upgrading the Fi...

Page 16: ...Document and Software CD into the CD ROM drive Locate and run the following setup program to begin the installation process dsu_setup_ Version _Build_ DateTime exe The latest version might be named d...

Page 17: ...Search Utility 3 3 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 DSU on your desktop 5 Click Install to...

Page 18: ...bar will appear The procedure should take only a few seconds to complete 7 A message will indicate that DSU is successfully installed You may choose to run it immediately by selecting Launch DSU 8 Yo...

Page 19: ...uration purposes Refer to Chapter 2 for more details You may open DSU from the Windows Start menu by clicking Start Programs MOXA DSU The DSU window should appear as shown below Connecting to the Unit...

Page 20: ...MGate MB3660 Modbus Gateway Device Search Utility 3 6 Broadcast Search Click Search and a new Search window will pop up...

Page 21: ...e Search Utility 3 7 When the search is complete every MGate MB3660 found on the LAN will appear in the DSU window The MAC address IP address and Firmware version of each unit will be shown Select the...

Page 22: ...P address and click OK If the search is successful the unit will be listed in the DSU window Right click the unit to open a pop up list of possible actions or double click a unit to open the web conso...

Page 23: ...the search again and re entering the IP address carefully Another possibility is that the MGate MB3660 is located on the same LAN as your PC but on a different subnet In this case you can modify your...

Page 24: ...a web browser such as Microsoft Internet Explorer or Google Chrome The following topics are covered in this chapter Overview Basic Settings Network Settings Serial Settings RTS Delay Protocol Settings...

Page 25: ...254 respectively If you are unable to log in to the unit you can use the DSU to first search for the unit Refer to the Device Search Utility The welcome page shows information relevant to the MGate MB...

Page 26: ...ngs Single IP mode allows users to use the same IP address on both Ethernet ports You need to choose which LAN port will be active when the device boots up The MGate MB3660 will continuously send PING...

Page 27: ...0 0 0 or another 32 bit number Remote server for ping test DNS1 0 0 0 0 or another 32 bit number This is the IP address of the primary domain name server DNS2 0 0 0 0 or another 32 bit number This is...

Page 28: ...nication Transparent mode and Agent Mode In Transparent mode the gateway will bypass and translate Modbus commands between Modbus TCP RTU ASCII In Agent mode the gateway will actively poll the Modbus...

Page 29: ...MGate MB3660 Modbus Gateway Web Console Configuration 4 6 Transparent Mode Mode Double click the intended serial port column to set detailed Modbus parameters or click Edit to enter the settings page...

Page 30: ...to 0 Designated TCP port In RTU ASCII slave mode a Modbus command from a specified TCP port can be routed to a specified serial port Designated IP 1 2 address for Modbus In RTU ASCII slave mode a Mod...

Page 31: ...xa Modbus gateways provide an auto routing mechanism that eliminates the burdensome task of setting the slave ID table manually Now users no longer need to set the routing table The Moxa Modbus gatewa...

Page 32: ...it correctly Note that the routing table will be clear as illustrated below Once the Modbus Master starts to send Modbus requests the gateway will auto detect the routing and show results in the web...

Page 33: ...legacy Modbus devices cannot set slave ID arbitrarily It has a fixed slave ID or a short range of slave IDs Then the slave IDs of the Modbus devices connected to different serial ports will be in con...

Page 34: ...The Slave ID here represents the Virtual ID recognized by the Modbus master The routing table will be as follows Then select the second channel and click Edit Since the virtual ID recognized by the M...

Page 35: ...the next request As requests stack up the response time can suffer This can cause problems for certain critical requests that require an immediate response With priority control you can specify that c...

Page 36: ...booting up before sending the first request with the Initial Delay setting Modbus TCP Exception The MGate MB3660 is a protocol gateway that transparently passes requests and responses between the Eth...

Page 37: ...entation to manually set the response timeout Intelligent Mode When the MGate MB3660 runs under transparent mode with the serial device as a Modbus slave you do not need to type Modbus commands copied...

Page 38: ...for the data to pass through the Modbus devices dramatically increasing communication performance The learned Modbus commands will be shown on the Intelligent Commands tab The gateway will act as in...

Page 39: ...box When the serial device fails the gateway will automatically write this predefined value to memory The Modbus master will be aware of the serial device failure when it receives this predefined valu...

Page 40: ...he Slave ID settings to match the system requirements The default TCP port for Modbus TCP is 502 so you may need to modify if there is a firewall in place Parameters Value Description Slave ID 1 255 T...

Page 41: ...from a Modbus slave To add a new command or modify the existing one click the Add button or Modify button and a new dialog box will appear To remove Modbus commands select the specific command and th...

Page 42: ...he following function codes so far 01 Read coils 02 Read discrete inputs 03 Read holding registers 04 Read input register 05 Write single coil 06 Write single register 15 Write multiple coils 16 Write...

Page 43: ...ommand but the gateway will continuously send Modbus write commands to the Modbus TCP slave device To avoid problems when the serial side fails the MB3660 can be configured to react in one of three wa...

Page 44: ...ich will not be aware that the slave device is not providing up to date data The MB3660 supports the Status Monitoring function which provides a warning mechanism to report the list of slave devices t...

Page 45: ...nsequently is assigned a Modbus serial slave ID The Modbus serial master can retrieve the Modbus TCP slave devices status via Modbus command with the following information Slave ID MB3660 s Modbus RTU...

Page 46: ...click the intended serial port and then click Edit Parameters Value Description Slave ID 1 255 The Modbus Slave ID that this slave module will accept 1 255 Device specific You can change the Modbus sl...

Page 47: ...s will run in Master mode The MGate MB3660 supports Modbus RTU and Modbus ASCII protocols in Master mode The MGate MB3660 also provides several advanced settings for specific application requirements...

Page 48: ...the MGate 5101 MB EIP the Response timeout field is used to configure how long the gateway will wait for a response from a Modbus ASCII or RTU slave Refer to your device manufacturer s documentation t...

Page 49: ...Master Mode Settings Port Configuration A Modus RTU ASCII master may set several commands that are sent to slave devices Some users are familiar with CSV file format to edit these commands Therefore...

Page 50: ...1 to 8 the MGate MB3660 16 Series Serial port number SlaveID Slave ID 1 to 255 basic_setting Master mode only PortIndex 1 to 8 Serial port number InitDelay Initial delay 0 to 30000 ms MaxRetry Max re...

Page 51: ...efined value cmdFaultProtValue Fault protection value 00 to FF cmdFaultProtTout Timeout for opposite side s data update 0 to 65535 ms Timeout for opposite side s data update NOTE In basic_setting the...

Page 52: ...First select the Modbus data flow you want to see In agent mode you need to manually set Modbus commands one by one and assign a gateway memory address for storing this data We recommend using I O Da...

Page 53: ...y address the internal address The update internal address will become as follows Example 2 On the contrary you can also set the internal address manually For example if you add two Modbus commands th...

Page 54: ...has been made each of the two commands will be allocated to unique address ranges in the gateway s memory That is the address for command 1 will be in the range 0 to 19 whereas command 2 will be in th...

Page 55: ...IP list is not checked Additional configuration examples are shown in the following table Desired IP Range IP Address Field Netmask Field Any host Disable Enable 192 168 1 120 192 168 1 120 255 255 2...

Page 56: ...erver s password if required From e mail address This is the e mail address from which automatic e mail warnings will be sent To e mail address 1 to 4 This is the e mail address or addresses to which...

Page 57: ...Local RADIUS RADIUS Local Local RADIUS Determines the RADIUS authentication type Try next type on authentication denied Disable Enable When the above multitype authentication fails enable disable to...

Page 58: ...ort the configuration file onto other units at any time Backing up configurations for system recovery The export function allows you to export configuration files that can be imported onto other gatew...

Page 59: ...functions Relay status and Protocol status Relay Status The MGate MB3660 has a built in 3 pin relay output It can be triggered by power input failure and LAN link down Enable the relay output functio...

Page 60: ...rposes you can monitor Modbus RTU ASCII TCP data passing through the MGate MB3660 Rather than simply echoing the data the DSU presents the data in an intelligent easy to understand format with clearly...

Page 61: ...rated MIB complier that supports any third party MIB It also allows you to monitor third party OIDs and Traps Network and Trap components that have been located by MXview can be managed via web browse...

Page 62: ...following topics are covered in this chapter Ethernet Masters with Multiple Serial Slaves Serial Masters with Multiple Ethernet Slaves Modbus TCP Masters with ASCII and RTU Slaves Serial Master with...

Page 63: ...erface supports both RS 232 and RS 422 485 selectable through software Each serial port can be connected to one RS 232 or RS 422 serial device or to 31 RS 485 serial devices Serial Masters with Multip...

Page 64: ...s The MGate models with two or more ports can integrate serial Modbus networks that use different parameters or protocols You can configure each serial port to a specific Modbus serial environment to...

Page 65: ...this chapter Introduction Replace Serial Masters with Ethernet Master s Configurable Slave IDs Replace Serial Masters with Ethernet Master s Fixed Slave IDs Keep Serial Master and Add Ethernet Master...

Page 66: ...Serial Masters with Ethernet Master s Configurable Slave IDs In this scenario the original control system consists of several serial based systems In each system a serial master directly controls seri...

Page 67: ...bus TCP network a multiport MGate model can be used to assign virtual slave IDs For more information about virtual slave IDs refer to Set Up Slave ID Mapping chapter 4 Keep Serial Master and Add Ether...

Page 68: ...factory environment or equipment However other Modbus serial slaves may be as complex as a manufacturing machine or a PLC controller When integrating these devices there may be issues if different ser...

Page 69: ...master s request Slaves are Identified by ID Each Modbus slave in a system is assigned a unique ID between 1 and 247 Whenever a master makes a request the request must include the ID of the intended r...

Page 70: ...unction allows a master to give up on a request if no response is received within a certain amount of time This is illustrated as follows Response Timeout The master sends a request The slave is unres...

Page 71: ...s out However Modbus TCP allows simultaneous requests on the network from multiple masters to multiple slaves TCP masters cannot send more than one request at a time to a slave but they can send reque...

Reviews: