Home
MGate MB3660 Series Modbus Gateway User`s Manual
Contents
1. ppy 3 P1 Or Arm Bes Ors Ars Bey Ars Eps E P40 El P41 Blew El P13 El pia El pis E P46 Cl All ports Slave ID 1 255 The Modbus Slave ID that this slave module vvill accept 1 255 Device specific You can change the Modbus slave ID on this page If tvvo or more serial ports use the same slave ID you can chect to see if they use the same setting If tvvo or more slave devices are using the same slave ID connected to different serial ports you can click the intended serial ports for the same slave ID setting Master Mode Settings You will need to specify which Modbus protocols will run in Master mode The MGate MB3660 supports Modbus RTU and Modbus ASCII protocols in Master mode Protocol Settings Operation Mode Agent Modbus RTU ASCII Mode selection MGate role RTU Master v Master Settings Serial port Initial delay Max retry Response timeout Inter frame delay Inter char timeout 1 0 3 1000 0 0 2 0 3 1000 0 0 3 0 3 1000 0 0 4 0 3 1000 0 0 5 0 3 1000 0 0 6 0 3 1000 0 0 7 0 3 1000 0 0 8 0 3 1000 0 0 9 0 3 1000 0 0 10 0 3 1000 0 0 11 0 3 1000 0 0 12 0 3 1000 0 0 13 0 3 1000 0 0 14 0 3 1000 0 0 15 0 3 1000 0 0 16 0 3 1000 0 0 The MGate MB3660 also provides several advanced settings for specific application requirements The following settings are optional for most applications It is suggested to use the default settings to test the MGate MB3660 Double click the intended serial port to configure additio
2. Alternatively the MGate MB3660 Series may be connected directly to the PC for configuration purposes Refer to Chapter 2 for more details You may open DSU from the Windows Start menu by clicking Start gt Programs gt MOXA gt DSU The DSU window should appear as shown below a I psu o JC mm File Function View Help ci 2 a E Exit Search SearchIP Locate Console LAN1 MAC Address LAN1 IP Address LAN2 MAC Address LAN2 IP Address Search Result 0 s Connecting to the Unit The DSU needs to connect to the unit before the unit can be configured There are two methods to connect to the unit Broadcast Search is used to find all MGate MB3660 units on the LAN Search 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 3 5 MGate MB3660 Series Modbus Gateway Device Search Utility Broadcast Search Click Search and a new Search window will pop up rs File Function View Help a a a LA e SearchlP Locate Console lt AssignIP Un Lock Import Export Upgrade No Moh LANT MAC Address LAN1 IP Address LAN2 MAC Address LAN2 IP Address Status Firmware Version Search Result 0 s Searching for devices Show IPv6 Address Found 1 Devicels 8 second s left No f Model OO lLANIMACAddress LAN1 IP Address LAN2 MAC Address LAN2 IP Address MGate MB3550 16 0
3. DO NOT turn off the MGate power before the firmware upgrade progress completes The MGate will be erasing the old firmware to make room for the new firmware to flash memory If you power off the MGate and terminate the progress the flash memory will contain corrupted firmware and the MGate will fail to boot If this happens call Moxa RMA services Configuration Import Export There are three main reasons for using the Import and Export functions e Applying the same configuration to multiple units The Import Export configuration function is a convenient way to apply the same settings to units located in different sites You can export the configuration as a file and then import the configuration file onto other units at any time e Backing up configurations for system recovery The export function allows you to export configuration files that can be imported onto other gateways to restore malfunctioning systems within minutes e Troubleshooting Exported configuration files can help administrators to identify system problems provide useful information for Moxa s Technical Service Team when maintenance visits are requested The import or export function saves all the configuration settings and parameters of the MGate MB3660 ina ini file To begin click the Import or Export button 4 26 MGate MB3660 Series Modbus Gateway Web Console Configuration Configuration Import Export Configuration Import Select configuration file El
4. Software Configuration Options Web console 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 Windows Server 2012 x64 Windows 2012 R2 Network protocols TCP IP UDP HTTP SMTP NTP DNS DHCP Client SNMPv1 read only ARP Telnet Radius Multi master and Multi drop Master mode 128 TCP slaves servers Slave mode 256 TCP masters clients Physical Characteristics Fault Relay Circuit 3 pin circuit with current carrying capacity of 2 A 30 VDC External Storage Drive SD card for configuration backup Housing Metal IP30 protection Dimensions Without ears 440 x 45 x 198 mm 17 32 x 1 77 x 7 80 in With ears 480 x 45 x 198 mm 18 90 x 1 77 x 7 80 in Environmental Limits Operating Temperature 0 to 60 C 32 to 140 F Storage Temperature 40 to 85 C 40 to 185 F Ambient Relative Humidity 5 to 95 non condensing Power Requirements Input Voltage For DC models Dual 20 to 60 VDC 1 5 RV isolation For AC models Dual 100 to 240 VAC 47 to 63 Hz Power Connector Terminal block for DC models 2 7 MGate MB3660 Series Modbus Gateway Getting Started Power Consumption MGate MB3660 8 2AC 144mA 110V 101mA 220V MGate MB3660 8 2DC 312mA 24V 156mA 48V MGate MB36601 8 2AC 244mA 110V 159mA 220V MGate MB3660 16 2AC 178mA 110V 120mA 220V MGate MB3660 16
5. gt 046 050 Port 10 Serial 11 Modbus serial 051 055 lt gt 051 055 Port 11 Serial 12 Modbus serial 056 060 lt gt 056 060 Port 12 Serial 13 Modbus serial 061 065 lt gt 061 065 Port 13 Serial 14 Modbus serial 066 070 lt gt 066 070 Port 14 Serial 15 Modbus serial 071 075 2 2 071 075 Port 15 Serial 16 Modbus serial 076 080 lt gt 076 080 Port 16 Serial How Slave IDs are Mapped on the MGate MB3660 With the slave ID table smart routing is achieved for units with multiple serial ports Since each virtual slave ID is routed to a specific Modbus network requests are not broadcast over all serial ports This keeps communication efficient and prevents devices on one port from slowing down the entire system When a Modbus master requests information from a Modbus slave device the request is addressed to the desired slave s ID which must be unique on the network When Modbus networks are integrated by a Modbus gateway complications can arise if the same slave ID is being used on different networks If this is not properly addressed a request sent to that slave ID would receive more than one response causing communication problems With the MGate MB3660 this situation is addressed by using a slave ID map While configuring the MGate users set up a range of virtual slave IDs that are mapped to slave devices on a specific Modbus network To send a request to a slave device that is on a different M
6. 1 device 1 3 01 03 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A3 67 3 1 465 MGate gt Port 1 device 1 3 01 03 00 00 00 0A C5 CD 4 1 525 MGate Port 1 device 1 3 01 03 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A3 67 5 2475 MGate Port 1 device 1 3 01 03 00 00 00 0A C5 CD 6 2 535 MGate Port 1 device 1 3 01 03 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A3 67 T 3 490 MGate gt Port 1 device 1 3 01 03 00 00 00 0A C5 CD 8 3 550 MGate Port 1 device 1 3 01 03 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A3 67 9 4 505 MGate gt Port 1 device 1 3 01 03 00 00 00 0A C5 CD 10 4 565 MGate Port 1 device 1 3 01 03 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A3 67 11 5 520 MGate gt Port 1 device 1 3 01 03 00 00 00 0A C5 CD 12 5 580 MGate Port 1 device 1 3 01 03 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A3 67 Save Restart All changes will be activated by clicking the Submit button first and then restarting the gateway If a lot of settings need to be changed you can click Submit for each setting and then click Save Restart to activate all the changes Save Restart If yau have submitted any confiquration changes yau must save the changes and restart the server before they take effect Click Submit to reboot the MGate Your changes will take effect after the server restarts 4 28 MGate MB3660 Series Modbus
7. EC The gateway now acts as though it were in agent mode and actively polls the Modbus slave devices The Modbus Master will retrieve the Modbus device s data directly from the gateway s memory If the serial device fails the Modbus master will not be aware of the failure since it is still getting the Modbus slave s data from the gateway s memory The gateway is designed with a fail report mechanism to inform the Modbus Master You may set a pre defined value for the serial port abnormality warning in the Value to TCP master when serial fail text 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 value Agent mode When running in agent mode two Modbus roles must be set One is the Ethernet side Modbus TCP and the other is the serial side Modbus RTU ASCII Modbus TCP Settings The MGate MB3660 supports a Modbus TCP function with Master Client and Slave Server modes For slave mode the MGate works as a server and waits for incoming connections from the Modbus TCP client In master mode the MGate works as a client and tries to build a TCP connection with the remote Modbus TCP slave device In this mode you will need to specify the IP address of the remote device and the relative Modbus command Slave Mode Settings The MGate MB3660 supports Modbus slave mode which means the MGate will work
8. MB3660 Series Modbus gateway e 1 8 pin RJ45 to DB9 female serial cable for console setting e 2 L shaped brackets for wall mounting e Documentation amp software CD e Quick installation guide e Product warranty statement e 2 AC power cord for SAC models Optional Accessories e Mini DB9F to TB Adapter DB9 female to terminal block adapter for RS 422 485 applications e CBL RJ45M9 150 8 pin RJ45 to DB9 male cable 150 cm e CBL RJA5F9 150 8 pin RJ45 to DB9 female cable 150 cm Notify your sales representative if any of the above items are missing or damaged Product Features e Innovative Command Learning eliminates the need to key in SCADA Modbus commands acts as an agent gateway e High performance through active and parallel polling of serial devices e Supports serial Master to serial Slave communication e 2 Ethernet ports with the same IP or dual IP addresses e SD card for configuration backup e Access by up to 256 TCP master client devices or connect to 128 TCP slave server devices e Dual VDC or VAC power inputs with wide power input range e 3 pin fault relay circuit for event alarms e 2 kV isolation protection for I models 1 3 2 Getting Started This chapter provides basic instructions for installing the MGate MB3660 The following topics are covered in this chapter 0 0 au a ada a a a a Connecting the Povver Connecting Serial Devices gt RS 485 Termination and Pull High Low Resi
9. PSs Lean Readaddresso fo x 2 enane commana 1 1 12 502 Quantity 10 icd les Parameters Value Description Initial delay 0 30000 ms Some Modbus slaves may take more time to boot up than other devices In some environments this may cause the entire system to suffer from repeated exceptions during the initial boot up You can force the MGate to wait after booting up before sending the first request with the Initial Delay setting Max retry 0 5 This is used to configure how many times the MGate will try to communicate with the Modbus slave Response timeout 10 12000 ms This is used to configure how long the MGate will wait for a response from a Modbus slave To add anew 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 then click the Remove button To communicate with remote Modbus TCP slave devices specify the Modbus command for each device For each Modbus read write command specify the internal memory address for data exchange For the read command the information received from remote devices will be updated to the specified internal memory address For the write command the data in the specified internal memory address will be sent to the remote device The data will be used to update the remote device register Each remote device may need more than one command for communication so you will need
10. Technical Support Contact Information Moxa Americas Toll free 1 888 669 2872 Tel 1 714 528 6777 Fax 1 714 528 6778 Moxa Europe Tel 49 89 3 70 03 99 0 Fax 49 89 3 70 03 99 99 Moxa India Tel 91 80 4172 9088 Fax 91 80 4132 1045 www moxa com su ort Moxa China Shanghai office Toll free 800 820 5036 Tel 86 21 5258 9955 Fax 86 21 5258 5505 Moxa Asia Pacific Tel 886 2 8919 1230 Fax 886 2 8919 1231 Table of Contents i TRUROGUCTION Noo E 1 1 OS ON seston eat aetna et vent E 1 2 backaged Decks aren eaten ee ern RETO TRE TCR TEER eimmidiediedma ipid a ma IT AR MU RR TATE ERI NIE PO Tee Aen NP ATO M EL 1 3 Product Fectures el eta titat little titat lucidesa 1 3 Ds Getting Started cican a a a a ave Peu uRe ese cinisme 2 1 Cohriectbg the POWER S3 rreswiaturwfecufanuture un uf wt olen ed un vfu ud ux uf us aden Uf WU SEU ranean tA tc nA ute tA OE RE DON 2 2 Connecting serial DEVICES airson TE A aaa es 2 2 RS 485 Termination and Pull High Low Resistors eeeeeeeeeeenm nnn nhan nnn nnne naar nnn 2 2 connecting to a boSLE or the NeEWOEI eese tu urit avv vue v e ud e Loo EU Un hot octet iets 2 3 Installing th SOFEWaLEG it reece eS eee E ee eee er errr reer errr add ed edad edd ad dd 2 3 EI CIRE CEEC IM EES Wevtccceeccrcerceerceercee ccm rem rem cen rm em EENE ren EERE EEN Ta DE ia a SS da Ra in Racine arias 2 3 LEDJIAQICIO S tx T TUTTI mmm 2 4 VC SOD cm A Rm nS 2 4 Adjustable Pull High Low Resi
11. a web browser and enter the MGate gateway s IP address http lt MGate IP address gt The default IP addresses of LAN1 and LAN2 are 192 168 127 254 and 192 168 126 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 MB3660 KA OX A Total Solution for Industrial Device Networking www moxa com MAC Model MGate MB3660 16 2AC IP 192 168 127 254 192 168 126 254 Address 00 90 E8 31 61 00 00 90 E8 31 61 01 Name MG MB3660 16 2AC 12345 Serial No TABC11112345 Firmware 1 0 Build 15080310 Welcome to MGate MB3660 16 2AC web console Main Menu Overview Basic Settings Network Settings Model Name MGate MB3660 16 2AC Serial Settings Serial No TABC11112345 xula Firmware version 1 0 Build 15080310 System Management LAN mode Dual Subnet System Monitoring Save Restart LAN1 IP address 192 168 127 254 Logout LAN2 IP address 192 168 126 254 LAN1 MAC address 00 90 E8 31 61 00 LAN2 MAC address 00 90 E8 31 61 01 Modbus operation mode Transparent System up time 0 days 00h 02m 51s SD card Not detected Basic Settings Server Settings and Time Settings are shown on the Basic Settings page Click Submit to save the current changes to the unit and click Save Restart once all the settings have been changed The unit will reboot immediately to use the
12. apply this definition This last step is not necessary for Specified TCP Port 4 9 MGate MB3660 Series Modbus Gateway Web Console Configuration Advanced Settings The Advanced Modbus tab is where certain adjustments can be made to fine tune the communication between different Modbus networks You can configure Initial Delay Modbus TCP Exception Modbus TCP listen port and Modbus TCP Response Time out Protocol Settings Operation Mode Transparent Advanced Settings Advanced Settings Initial delay 0 30000 ms Modbus TCP exception Disable 7 Modbus TCP listen port 502 1 65535 Modbus TCP response timeout 1000 10 120000 ms Activate Initial delay 0 30000 ms Modbus TCP exception Enable or Disable Modbus TCP listen port 1 65535 Modbus TCP response timeout 10 120000 ms Initial Delay Some Modbus slaves may take more time to boot up than other devices For certain environments this may cause the entire system to suffer from repeated exceptions during the initial boot up You can force the MGate to wait after 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 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 M
13. serial master device with Ethernet slave devices Many HMI Human Machine Interface systems use a Serial interface to connect to a discrete DCS Data Control System However many DCSs are now Ethernet based and operate as a Modbus TCP slave device The MGate MB3660 Modbus gateway can link a serial based HMI to distributed DCSs over an Ethernet network Up to 128 Modbus TCP slave devices are supported by each MGate MB3660 Modbus RTU HMI Master devices Ethernet pes Modbus TCP Slave Device 77 Upto 256 5 2 MGate MB3660 Series Modbus Gateway 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 two and four port MGate models can integrate serial Modbus networks that use different parameters or protocols You can configure each serial port to a specific Modbus serial environment set up a slave ID map After configuration only the gateway will be visible to Modbus TCP masters and all serial devices will be integrated behind it lt TCP Master j Baudrate 9600 j Baudrate 9600 ore Baudrate 4800 Ore Baudrate 4800 Serial Master s with Serial Slaves Let Modbus serial
14. set the pull high low resistor values for each serial port Tear open the screws and find the DIP switches located at the back side of the PCB To add a 120 9 termination resistor set switch 3 on the ports assigned DIP switch to ON set switch 3 to OFF the default setting to disable the termination resistor To set the pull high low resistors to 150 KQ set switches 1 and 2 on the port s assigned DIP switch to OFF This is the default setting To set the pull high low resistors to 1 KQ set switches 1 and 2 on the port s assigned DIP switch to ON ATTENTION Do not use the 1 KQ pull high low setting on the MGate MB3660 when using the RS 232 interface Doing so will degrade the RS 232 signals and reduce the effective communication distance Pin Assignments The MGate MB3660 uses DB9 serial ports to connect to Modbus RTU or ASCII devices Each port supports three serial interfaces that select by software RS 232 RS 422 and RS 485 both 2 and 4 wire RJ45 Ethernet Console im Ethernet Console RS 232 _ h amp m si ko e pe po p os s fore 2 5 MGate MB3660 Series Modbus Gateway Getting Started Male DB9 Serial port 12345 Pim RS 232 _ RS 422 RS a85 w RS a85 2W a poco mo mo B b Roe CI p GND Power Input DC Model V1 VI 7 Relay Output N O Common N C Rackmount The MGate MB3660 is designed to be mounted on a standard 19 inch rack Use
15. the enclosed pair of L shaped metal brackets and screws to fasten your MGate MB3660 to the rack cabinet Each L shaped bracket has 6 holes leaving two outer or inner holes available for other uses You have two options You can lock either the front or rear panel of the MGate MB3660 to the front of the rack Locking the front panel is shown in the following figure L Shaped Meial Bracket s s a fF i I B Ce eL i a E 1 CRB i MUJ mae cee SS 2 6 MGate MB3660 Series Modbus Gateway Getting Started Specifications Ethernet Interface Number of Ports 2 ports 2 IP addresses Speed 10 100 Mbps Auto MDI MDIX Connector RJ45 x 2 Protocols Modbus TCP Client Server Modbus TCP Master Serial Interface Number of Ports MGate MB3660 8 8 ports MGate MB3660I 8 8 ports MGate MB3660 16 16 ports Serial Standards RS 232 422 485 software selectable Connector DB9 male RS 485 Data Direction Control ADDC automatic data direction control Isolation Protection 2 kV for I model Protocols Modbus RTU ASCII Master Slave Serial Communication Parameters Data Bits 8 Stop Bits 1 2 Parity None Even Odd Space Mark Flow Control RTS CTS DTR DSR RTS Toggle RS 232 only Transmission Speed 50 bps to 921 6 Kbps Serial Signals RS 232 TxD RxD RTS CTS DTR DSR DCD GND RS 422 Tx Tx Rx Rx GND RS 485 4 wire Tx Tx Rx Rx GND RS 485 2 wire Data Data GND
16. will be in the range O to 19 whereas command 2 will be in the range 20 to 39 System Management This configuration tab includes several system level settings Most of these settings are optional 4 22 MGate MB3660 Series Modbus Gateway Web Console Configuration Accessible IP Settings Accessible IP List Enable the accessible IP list Disable will allow all IF s connection Index Active IP NetMask 1 in 4 te hM c These settings are used to restrict access to the module by IP address Only IP addresses on the list will be allowed access to the device You may add a specific address or range of addresses by using a combination of IP address and netmask as follows To allow access to a specific IP address Enter the IP address in the corresponding field enter 255 255 255 255 for the netmask To allow access to hosts on a specific subnet For both the IP address and netmask use O for the last digit e g 192 168 1 0 and 255 255 255 0 To allow access to all IP addresses Make sure that Enable the accessible IP list is not checked Additional configuration examples are shown in the following table Any host 192 168 1 120 192 168 1 1 to 192 168 1 254 192 168 1 1 to 192 168 1 126 192 168 1 0 255 255 255 128 192 168 1 1 to 192 168 255 254 192 168 0 0 255 255 0 0 192 168 1 129 to 192 168 1 254 192 168 1 128 255 255 255 128 4 23 MGate MB3660 Series Modbus Gateway Web Console Configuration Auto Warning Se
17. 0 90 E8 31 61 00 192 168 127 254 00 90 8 31 61 01 192 168 126 254 3 6 MGate MB3660 Series Modbus Gateway Device Search Utility File Function View Help Lu 2 2 a Za D FE Ext Search SearchIP Locate Console AssignIP Un Lock Import Export Upgrade No Model LANT MAC Address LAN1 IP Address LAN2 MAC Address LAN2 IP Address Status Firmware Version 81 MGate MB3660 16 2 00 90 E8 31 61 00 192 168 127 254 00 90 E8 31 61 01 192 168 126 254 Verl O Build 15073016 Search Result 1 device s 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 one you would like to configure File Function View Help amp 2 EQ Ens ue d A Search SearchIP Locate Console AssignIP Un Lock Import Export Upgrade No Model OO l LANT MAC Address LAN1 IP Address LAN2 MAC Address LAN2 IP Address Status Firmware Version SOR MGate MB3660 16 2 00 90 E8 31 51 00 192 168 127 254 00 90 E8 31 61 01 192 168 126 254 see Search Result 1 device s Je MGate MB3660 Series Modbus Gateway Device Search Utility Search IP Click Search IP if you know the IP address of the unit and wish to connect to it directly Enter the unit s IP address and click OK Add Device Input an IF address If the search is successful the unit w
18. 2DC 390mA 24V 195mA 48V Standards and Certifications Safety UL 60950 1 EN 60950 1 LVD EMC CE FCC EMS EN 55022 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 Level 2 EN 61000 4 4 EFT Level 2 EN 61000 4 5 Surge Level 3 EN 61000 4 6 CS Level 3 EN 61000 4 8 PFMF Level 3 Shock IEC 60068 2 27 IEC 60870 Freefall IEC 60068 2 32 Vibration IEC 60068 2 64 IEC 61373 Warranty Warranty Period 5 years Details See www moxa com warranty 2 8 The following topics are covered in this chapter 0 0 o Installing the Software Starting Device Search Utility DSU Connecting to the Unit gt Broadcast Search gt Search IP gt Locate Upgrading the Firmware 3 Device Search Utility MGate MB3660 Series Modbus Gateway Device Search Utility Installing the Software The following instructions explain how to install the Device Search Utility abbreviated DSU a utility for configuring and monitoring MGate MB3660 units over the network 1 Insert the Document and Softvvare CD into the CD ROM drive Locate and run the follovving setup program to begin the installation process dsu setup Version Build DateTime exe The latest version might be named dsu setup Ver2 0 Build xxxxxxxx exe for example dsu setup Ver2 0 Build 1507011 en 3 exe EU psu You will be greeted by the Welcome window Click Next to continue l
19. 5 serial port can be configured individually for Modbus RTU or Modbus ASCII operation and for different baudrates allowing both types of networks to be integrated with Modbus TCP through one Modbus gateway High Performance with Innovative Command Learning The MGate MB3660 series gateways support two communication modes transparent mode and agent mode For transparent mode the gateway converts Modbus commands from Modbus TCP to Modbus RTU ASCII and vice versa or from serial Master to serial Slave However since only one Modbus protocol request response action can be executed at any given time each Modbus device has to wait its turn resulting in poorer performance Agent mode is designed to overcome this performance weakness By allowing users to manually 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 through the different serial ports users will see a dramatic reduction in the amount of time a Modbus device needs to wait to be accessed SCADA systems can retrieve Modbus device data directly from the gateway s memory instead of waiting for the gateway to pass commands to the serial ports enhancing the Modbus gateway s communication performance Transparent mode helps users adopt existing SCADA programs but with reduced communication performance whereas agent mode is characterized by high
20. 60 series 8 or 16 port Modbus gateways that convert between the Modbus TCP and Modbus RTU ASCII protocols All MB3660 series 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 chapter we give an introduction to the MGate MB3660 The following topics are covered I Overview O Package Checklist O Product Features MGate MB3660 Series Modbus Gateway Introduction Overview The MGate MB3660 MB3660 8 and MB3660 16 series gateways are redundant Modbus gateways that convert between the Modbus TCP and Modbus RTU ASCII protocols They can be accessed by up to 256 TCP master client devices or connect to 128 TCP slave server devices The MGate MB3660 series isolation model provides 2 kV isolation protection suitable for power substation applications The MGate MB3660 gateways are designed to easily integrate Modbus TCP and RTU ASCII networks The MGate MB3660 series gateways offer features that make network integration easy customizable and compatible with almost any Modbus network For large scale Modbus deployments MGate MB3660 gateways can effectively connect a large number of Modbus nodes to the same network The MB3660 series can physically manage up to 248 serial slave nodes for 8 port models or 496 serial slave nodes for 16 port models the Modbus standard only defines Modbus IDs from 1 to 247 Each RS 232 422 48
21. C or another 32 bit number network Ping remote host 0 0 0 0 Remote server for ping test Pret er so ma fo Oe DNS1 0 0 0 0 This is the IP address of the primary domain name Pe r se umes Tre ant DNS2 0 0 0 0 This is the IP address of the secondary domain name me d or another 32 bit number server Serial Settings The Serial tab is where each serial port s communication parameters are configured You can configure Baud Rate Parity Stop Bit Flow Control FIFO Interface RTS on delay and RTS off delay LAN gateway 0 0 0 0 The IP address of the router that provides network or another 32 bit number access outside the server s LAN Interface RTS Delay The RTS Toggle function is used for RS 232 mode only This flow control mechanism is achieved by toggling the RTS pin in the transmission direction When activated data will be sent after the RTS pin is toggled ON for the specified time interval After data transmission is finished the RTS pin will toggle OFF for the specified time interval 4 4 MGate MB3660 Series Modbus Gateway Web Console Configuration Protocol Settings The MGate MB3660 provides two operation mode for Modbus communication 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 slave devices and store the data in the gateway s memory The Modbus master can retrie
22. Gateway Web Console Configuration Logout For safety reasons remember to log out of the web utility to prevent people who do not have the proper authorization from accessing the gateway MXView The Moxa MXview network management software gives you a convenient graphical representation of your Ethernet network and allows you to configure monitor and diagnose Moxa networking devices MXview provides an integrated management platform that can manage Moxa MGate series products as well as Ethernet switches and wireless APs and SNMP enabled and ICMP enabled devices installed on subnets MXview includes an integrated 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 browsers from both local and remote sites anytime anywhere MXconfig Moxa s MXconfig is a comprehensive Windows based utility that is used to install configure and maintain multiple Moxa devices in industrial networks This suite of useful tools helps users set the IP addresses of multiple devices with one click configure the redundant protocols and VLAN settings modify multiple network configurations of multiple Moxa devices upload firmware to multiple devices export import configuration files copy configuration settings across devices easily link to web and telnet consoles and test device connectivity MXconfig gives device installers a
23. Keep IP settings Configuration Export Once the file has been saved it can be imported into your target unit to duplicate the same settings Select the target unit first and then click the Import button to complete the import action Load Factory Default To clear all the settings on the unit use the Load Default button to reset the unit to its initial factory default values Load Factory Default Click on Submit to reset all settings including the console password to the factory default values To leave the IP address netmask and gateway settings unchanged make sure that Keep IP settings is enabled Reset to Factory Default Keep IP settings J Submit Click Submit to restore the unit to factory default values ATTENTION Load Default will completely reset the configuration of the unit and all of the parameters you have saved will be discarded Do not use this function unless you are sure you want to completely reset your unit System Monitoring The MGate MB3660 provides two system monitoring 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 functions by clicking the relay check box in the Auto Warning Settings Relay State El Auto refresh Power input 1 failure Alarm Acknowledge Event Power input 2 failure N A Ethernet 1 link down Ethernet 2 lin
24. LS CLIC S M NICE 4 4 RES DOI qm 4 4 PROUOGOl cr adini cptec m c qr prp e 4 5 Transparent MOCE ais TTC cT CMM 4 6 Agen MOC Ecos ales tea ale EM MEE EC ee 4 13 System Managemen ete eta gens ano 4 22 SV Sten MONIKON mrar ae a even veveee oorr id vot eor e vl oU bot eus tto P UP Pr ra dd i tisediuad ia dada diua n du qu dau da uoi 4 27 DS OME RES COR uet oreet ee E aM LM M LE 4 28 LOGO Ui MEC aaa aaa aaan aaa aa a a 4 29 P AON qe AEA AE E EE E aca tener Aree eee N 4 29 PA CORIO EM mee EE Acree en ee ne Ecc EE ES EE ET EE UE 4 29 Sy PY DICal ADppIICatIOnS rsrsrsr sere EEES ERKEVEVERERMKEVEREEENENEERERMRVRVE VENE DERNE EEEE E EEEE EREE E REEE EEEE PRENEE 5 1 Ethernet Masters with Multiple Serial SlaveS ssssusansnsnnsnansnnnnnnsnnnnsnannnnnnansnnnnennnrnnnnnnsnnnnesnanrsnnnnnsnnnnan 5 2 Serial Masters with Multiple Ethernet SlaVes iiie eii hr RRREERRRERIEG4G REED URRER EETNDIRRGREREELUEEREREERR Y V au Da 5 2 Modbus TCP Masters with ASCII and RTU Slaves eos rent ee e trc n nat ee ea cannes tirana eee rat rato est eizest mii DIE RE 5 3 SenalMasterts With Seblal SldVes ccu d ad aa dut d e Cnr A Va qa dC qa M M M dU tote 5 3 6 Case SEUdl6es iere xeua eu ex xxxn a nux cun dnd nin au Vd Qu nE cu Ex eee Ex quud EE KK REESE URS EREERRREEREGRRVAREERRRRLLAERARERLUAEARERRRESEEEEMS 6 1 aid
25. MGate MB3660 Series Modbus Gateway User s Manual Edition 1 0 September 2015 www moxa com product MOXA 2015 Moxa Inc All rights reserved MGate MB3660 Series 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 Trademarks 2015 Moxa Inc All rights reserved The MOXA logo is a registered trademark of Moxa Inc All other trademarks or registered marks in this manual belong to their respective manufacturers Disclaimer Information in this document is subject to change without notice and does not represent a commitment on the part of Moxa Moxa provides this document as is without warranty of any kind either expressed or implied including but not limited to its particular purpose Moxa reserves the right to make improvements and or changes 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 responsibility for its use or for any infringements on the rights of third parties that may result from its use This product might include unintentional technical or typographical errors Changes are periodically made to the information herein to correct such errors and these changes are incorporated into new editions of the publication
26. as a server and wait for incoming connection requests The default TCP listen port is 502 In this mode the MGate will wait for incoming Modbus TCP requests and use the internal memory as the slave register to respond Protocol Settings Operation Mode Agent Modbus TCP Mode selection MGate role Slave Slave Settings Master Slave ID 1 1 255 TCP port 502 MGate MB3660 Series Modbus Gateway Web Console Configuration Modify the 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 Slave ID 1 255 The Modbus address of the MGate TCP port 1 65535 The local TCP port for the MGate Master Mode Settings The MGate MB3660 supports Modbus TCP master mode which means the MGate will work as a client and send the Modbus command request to the slave device actively You will need to configure each Modbus command manually On this page users can see all the commands listed in the table Protocol Settings Operation Mode Agent Modbus TCP Mode selection MGate role Master Master Settings Initial delay 0 30000 ms Max retry 3 0 5 Response timeout 1000 10 120000 ms Modbus Commands Add Edit Ey Copy lll Delete Slave IP Slave Poll Endian Index Enable Name EES ID Function Address Quantity Trigger interval Swap Enable Command 4 4 1 1 502 4 3 Read address 0 Cyclic 1000 None Quantity 10 4 dE
27. aster will disregard the request and continue operation This allows the Modbus system to continue operation even if a slave device is disconnected or faulty On 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 to manually set the response time Inter frame delay The users can determine the time delay to transmit the data frame received from the slave device to the upstream The MGate MB3660 will automatically determine the time interval if it is set to O Inter character timeout Use this function to determine the timeout interval between characters for Modbus devices that cannot receive Rx signals within an expected time interval If the response is timed out all received data will be discarded The MGate MB3660 will automatically determine the timeout interval if the timeout value is set to O For Master mode you must identify which Modbus requests need to be sent to Modbus slave devices through serial interface The data will be exchanged between slave devices and the MGate gateway s internal memory To do this manually add all Modbus commands that will handle the data exchange The Add Edit Copy and Delete buttons support the Modbus command arrangement When you click on the Add and Edit buttons the following dialog box will be displayed 4 20 MGate MB3660 Series Modbus Ga
28. ating to 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 serial environments are used for different devices One system may use a different baudrate than another or may use Modbus ASCII instead of Modbus RTU The MGate MB3660 allows the different Modbus systems to be integrated into one network regardless of the protocol or communication parameters SCADA SCADA TCP Master TCP Master ie ad ASCII Slave Baudrate 4800 RTU Slave Baudrate 9600 lt gt P UC Slave 7 N RTU Master Baudrate 9600 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 Slaves are completely passive and communicate only by sending a response to a master s request Master Jm Master Pi Serial TCP Eg Slave EE Slave Slaves are Identified by ID Each Modbus slave in a system is assigned a unique ID between 1 and 247 Whenever a mas
29. by Poll Interval A command is issued when a change in data is detected Poll interval Polling intervals are in milliseconds since the module sends all requests in turns the actual polling interval also depends on the number of requests in the queue and their parameters The range is from 10 to 1 200 000 ms Endian swap Data Byte Swapping None Don t need to swap MGate MB3660 Series Modbus Gateway Web Console Configuration Byte OXOA OxOB OxOC OxOD becomes OxOB OXOA OxOD OXOC Word 0x0A OxOB OxOC OxOD becomes OxOC OxOD OXOA OxOB ByteWord 0x0A OxOB OxOC OxOD becomes OxOD OxOC OxOB OXOA Read quantity Specifying how many quantities to write There are two kinds of quantity units bit and 16bits which is associated with function field The range is from 1 to 125 Write starting address Station Address The range is from 0 to 65535 Write quantity Specifying how many quantities to write There are two kinds of quantity units bit and 16bits which is associated with function field The range is from 1 to 123 Read Write memory Manually decide the read or write starting address in the gateway s memory address The range is from O to 65535 Opposite side s For Modbus TCP master mode the opposite side refers to the serial port side command fault The Modbus writer command is sent from the serial port to the TCP side Once the serial connection fails the gateway will not be able to receive the serial Master s wri
30. dard the time it takes for a slave device to respond to a request is defined by the device manufacturer Based on this response time a master can be configured to wait a certain amount of time for a slave s response If no response is received within the specified time the master will disregard the request and continue operation This allows the Modbus system to continue operation even if a slave device is disconnected or faulty The MGate MB3660 can also auto detect the response timeout Instead of manually figuring out the appropriate setting you can click Auto Detection to have the MGate figure out the setting for you Once a value has been recommended you can fine tune it to get the best performance Inter character timeout Use this function to determine the timeout interval between characters for Modbus only for Modbus RTU devices that cannot receive Rx signals within an expected time interval If the response is timed out all received data will be discarded The MGate MB3660 will automatically determine the timeout interval if the timeout value is set to O Inter frame delay The users can determine the time delay to transmit the data frame received from only for Modbus RTU the slave device to the upstream The MGate MB3660 will automatically determine the time interval if it is set to O Designated TCP port In RTU ASCII slave mode a Modbus command from a specified TCP port can be routed to a specified serial port Desig
31. devices communicate The MGate MB3660 provides a feature for connecting serial master s with serial slave devices by using transparent mode You only need to set up the slave ID routing mechanism Modbus RTU Modbus RTU Master device Master device RS 232 RS 485 p Modbus RTU D 0 f Slave devices PLC Flow meter Loop controller DCS Drives Power measurement 5 3 6 Case Studies The following topics are covered in this chapter O 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 s rJ rJ o O Integrate Modbus RTU ASCII and TCP at the Same Time MGate MB3660 Series Modbus Gateway 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 Replace 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 serial slave devices as follows I Master I Master Master Serial Serial Serial EE Slave ER Slave ER Slave ID 1 ID 1 ID 1 The MGate MB3660 can connect to each serial slave so Ethernet SCADA
32. e mes Welcome to the DSU Setup Wizard This will install DSU Ver2 0 on your computer It is recommended that you dose all other applications before continuing Click Next to continue or Cancel to exit Setup 3 When the Select Destination Location window appears click Next to continue You may change the destination directory by first clicking on Browse if Setup DSU Select Destination Location Where should DSU be installed A Setup will install DSU into the following folder To continue dick Next If you would like to select a different folder dick Browse Program Files x86 Moxa DSU Atleast 2 2 MB of free disk space is required 3 2 MGate MB3660 Series Modbus Gateway Device Search Utility 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 iB Setup DSU Select Additional Tasks Which additional tasks should be performed Select the additional tasks you would like Setup to perform while installing DSU then dick Next Additional icons 5 Click Install to start copying the software files i Setup DSU Ready to Install Setup is now ready to begin installing DSU on your computer Click Install to continue with the installation or click Back if you want to review or change any settings Destination location C Program Files x86 Moxa D5U k JL instal Cance
33. gols 0 clllc npe n m 6 2 Replace Serial Masters with Ethernet Master s Configurable Slave IDs eeeeeeerenenn mnn 6 2 Replace Serial Masters with Ethernet Master s Fixed Slave IDs ceeeeeessseeen nnne nnns 6 3 Keep Serial Master and Add Ethernet Master s sssseeeeeesieleeeeeieeinme nean nnne nna sa semen aaa a sienne nnn 6 3 Integrate Modbus RTU ASCII and TCP at the Same Time eeeeeeeeeeeeee nnnm nnn nane nana annes 6 4 As J MOdbUus OVerVIQW iioi SpULRU PER SDRRWRESERSDREREREBEARE ERR ERR ERESRREREEECRRARERRRRRENIR IR Dates IRIS RN SR SIG PES SR URS ies A 1 IMCFOCUCTION MEET A 1 Devices are Either Masters or Slaves cee cene vna ee nee rr re xen xu rh e axe bebe arr rera rr TepEVFEEDrCEF EF Ue Er Vr WE DS erra pan A 1 Slaves are Jdenutried DY Dictat o tt atacat tat e cuta uhe ta ette o cutuc metusa cm eta aciei tide ct utens perd A 1 Communication is by Request and Response cccccceceeee eee e eee eee nee eee ea nn hme nna a nsmmhu nasa smus e aaa sena nn nn A 1 Requests Need a Time LIMIE e roi b bete e bebes b be ees ee neca tiat nw e lt ato cec s na i d ara A 2 Modbu s Ethernet vs Modbus Seria lisi E tit ERE e EHE de d cee eee tl eta ene cused ee A 3 Integrate Modbus Serial and Ethernet with GatewayS sssssssnanassnnnnsennnrnnannnnunansnnnnenannnnanansnnanenannnsnanan A 3 1 Introduction Welcome to the MGate MB36
34. guration file to a laptop ATTENTION If Search IP fails to locate the MGate MB3660 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 MB3660 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 MB3660 After your PC and the MGate MB3660 are on the same subnet DSU should be able to find the unit Upgrading the Firmware You can obtain the latest firmware for the MGate MB3660 from www moxa com After downloading the new firmware file to your PC you can use the DSU to write it to your MGate MB3660 Select the desired unit from the DSU list and then click Upgrade to begin the process 3 9 4 Web Console Configuration The MGate MB3660 provides a web console for easy configuration through a web browser such as Microsoft Internet Explorer or Google Chrome The following topics are covered in this chapter o 0 0 0 m n n Overview Basic Settings Network Settings Serial Settings gt RTS Delay Protocol Settings gt gt gt gt Transparent Mode Agent mode System Management System Monitoring Save Restart Logout MXView MXconfig MGate MB3660 Series Modbus Gateway Web Console Configuration Overview To connect to the MGate web console open
35. igent 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 from the SCADA system into the gateway However transparent mode uses a traditional round robin polling mechanism which supports only one request response action ata time resulting in poor performance For applications that use large numbers of Modbus devices the inherent latency is unacceptable from the SCADA system s point of view Agent mode provides better performance since the gateway actively polls the devices to retrieve data from the remote site SCADA systems can retrieve Modbus device data directly from the gateway s memory instead of waiting for the gateway to pass commands to the serial ports In order to provide better performance as an agent gateway but without requiring users to key in a lot of Modbus commands the MGate MB3660 series gateways are designed with an innovative command learning function which can be activated with a single mouse click Protocol Settings Operation Mode Transparent 7 Mode Modbus Parameters Port 1 Connected serial device RTU Slave 7 Enable intelligent mode Response timeout 0 zn safata e Auto Detection Inter character timeout 0 10 500 ms 0 for disable Inter frame delay 0 10 500 ms 0 for disable Designated TCP port 1024 65535 0 for disable Designated IP address for Modbus 0 0 0 0 0 for disable P1 Hip Mps Mipa vip
36. ill be listed in the DSU window Right click the unit to open a popup list of possible actions or double click a unit to open the web console i P psu tol JEs File Function View Help a 2 a x E E Exit Search SearchIP Locate Console AssignIP Un Lock Import Export Upgrade No Model LANT MAC Address LAN1 IP Address LAN2 MAC Address LAN2 IP Address edi MGate MB3660 16 2 00 90 E9 31 61 00 192 168 127 254 00 90 E8 31 61 01 192 168 126 254 Ver1 0 Build 15073016 9 Search Ctrl B k Search IP Ctrl S HE Locate IPv4 Ctrl Console IPv4 Ctrl C IE Assign IP Ctrl I ef Un Lock L Import Export Upgrade Si Accessible IP Search Result 1 device s Locate The Locate function will cause the unit to beep so you can determine which unit is the target Locate Device Locating Model MG ate ME 3651 16 24 LL IF Address 192 168 127 254 MAC Address DOLESCEE 8 31 61 00 Serial Number 12345 The Assign IP function allows you to change the unit s IP addresses Use the Un Lock function to execute Import Export and Upgrade actions The default account and password are Admin and Moxa 3 8 MGate MB3660 Series Modbus Gateway Device Search Utility Password Enter Password Information EGX Un Lock OK To Import or Export the configuration file click the icons to Import the configuration file from a laptop or Export the currently used unit s confi
37. k down Alarm Acknowledge Event 4 27 MGate MB3660 Series Modbus Gateway Web Console Configuration When a warning event occurs the relay circuit will activate to enable the warning device such as a beeper The field engineer can click the Acknowledge Event button to temporarily deactivate the relay circuit and then take some time to troubleshoot the problem Relay State El Auto refresh Power input 1 failure Alarm Acked Power input 2 failure Ethernet 1 link down Acknowledge Event Ethernet 2 link down Alarm Once the abnormality has been resolved the relay will return to normal status Protocol Status The MGate MB3660 has a built in Modbus traffic monitor function For troubleshooting or management purposes you can monitor Modbus RTU ASCII data passing through the MGate MB3660 on the serial side Rather than simply echoing the data the DSU presents the data in an intelligent easy to understand format with clearly designated fields including source type destination contents and more Events can be filtered in different ways and the complete log can be saved to a file for later analysis Click the Start Stop or Export button to execute the Modbus traffic monitor Modbus Traffic 7 Auto scroll Select port ALL Include intelligent commands Start Stop Export Capturing No Time Routing Dst Function Data 1 0 450 MGate gt Port 1 device 1 3 01 03 00 00 00 0A C5 CD 2 0 510 MGate Port
38. l Cancel 3 3 MGate MB3660 Series Modbus Gateway Device Search Utility 6 A progress bar will appear The procedure should take only a few seconds to complete i Setup DSU Installing Please wait while Setup installs DSU on your computer Creating shortcuts C ProgramData Microsoft Windows Start Menu Programs Moxa DSU FAQ Ink 7 Amessage will indicate that DSU is successfully installed You may choose to run it immediately by selecting Launch DSU rol S 38 Completing the DSU Setup Wizard Setup has finished installing DSU on your computer The application may be launched by selecting the installed icons Click Finish to exit Setup 8 You may also open DSU through Start gt Programs gt MOXA gt DSU as shown below d MGate Manager a J amp Microsoft Office J Microsoft Office 2013 J Microsoft Silverlight d Microsoft Windows Performance Too Jk Microsoft Windows SDK v7 1 4 MiKTeX 2 8 di Modbus Poll J MOXA Jj DSU mM DSU on the Web DSU 2 FAQ 3 9 Uninstall DSU E Version info d UPort 2000 Series Driver d UPort Windows Driver J MOXA UPort 1100 Series Windows Di d NPort Windows Driver Manager m 3 4 MGate MB3660 Series Modbus Gateway Device Search Utility Starting Device Search Utility DSU DSU is a Windows based utility that is used to configure the MGate MB3660 Series Before running DSU make sure that your PC and the MGate MB3660 are connected to the same network
39. l Determines the RADIUS authentication type authentication Local RADIUS type 4 25 MGate MB3660 Series Modbus Gateway Web Console Configuration Try next type on Disable Enable When the above multi type authentication fails authentication enable disable to try next type of authentication denied automatically Auto logout time 60 3600 sec Set the auto logout time period Change Admin Password You can modify the password for the account Admin The default password is moxa To change the password type the existing password and then type the new password twic Click submit to activate the new password RADIUS Server RADIUS Server The name of the RADIUS server RADIUS key The key for RADIUS authentication be sure to type in the correct key UDP port The TCP port used for UDP protocol User Table The administrator can create a list of user names with passwords for logging in to the MGate MB3660 Maintenance Other gateway maintenance settings Ping To test the network status with the PING function enter the PING server IP address click start and wait fora response Firmware Upgrade Firmware updates for the MGate MB3660 are located at www moxa com After you have downloaded the new firmware onto your PC you can use DSU to write it onto your MGate MB3660 Select the desired unit from the list and click to begin the process Choose the correct file and click submit to upgrade the firmware ATTENTION
40. l be written to the slave device MGate MB3660 Series Modbus Gateway Web Console Configuration Protocol Settings Operation Mode Agent Modbus TCP Command Parameters Enable Enable Name Command Slave IP address 0 0 0 0 Port 502 Slave ID 1 Function 16 Write Multiple Registers hd Trigger Cyclic Poll interval 1000 10 1200000 ms Endian svvap None hd Write starting address 0 0 65535 Write quantity 10 Write memory address 0 0 65535 Fault Protection Serial side s command fault keep latest data Timeout for serial side s data update 0 65535 ms Use the Timeout for serial side s data update item to set how long the gateway will wait to activate this function Fault Protection Serial side s command fault Keep latest data Timeout for serial side s data update 0 65535 ms Status Monitoring The Status Monitoring function provides status information of field devices when the MGate is being used as a master client information includes alive list counter the result of commands issued etc For Modbus gateways in agent mode if a slave device fails or a cable comes loose generally the gateway won t be able to receive up to date data from the slave device The out of date data will be stored in gateway s memory and will be retrieved by the Modbus master which will not be aware the slave device is not providing up to date data The MB3660 supports the Status Monitoring function which pro
41. masters will be able to control them However since slave IDs cannot be repeated in a system we will need to change the IDs of some of the slaves in order to integrate them into a single network as follows SCADA SCADA SCADA Serial Serial EN Slave EE Slave ER Slave IDz 1 IDz2 ID 3 6 2 MGate MB3660 Series Modbus Gateway Case Studies Replace Serial Masters with Ethernet Master s Fixed Slave IDs Some legacy Modbus slave devices have fixed IDs that cannot be changed In order to integrate the devices into a Modbus 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 SCADA SCADA SCADA a ler Virtual ID 1 2 3 Serial m La Serial E g Slave E Slave EA g Slave Real ID 7 1 Real ID 1 Real ID 1 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 Master Serial zs 5 Slave By 6 3 MGate MB3660 Series Modbus Gateway 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 rel
42. mend using I O Data Mapping to check the memory address of each command 4 21 MGate MB3660 Series Modbus Gateway Web Console Configuration For example if you add two Modbus commands and Command1 uses addresses 0 to 19 whereas Command2 uses addresses 10 to19 there is obviously a memory overlap Operation Mode Agent RE O Data Mapping Data flow direction Modbus RTU ASCII Modbus TCP 7 012345578959 ABCDEF D 12345657807 AHUCDBbBDEF 0000 PRR 0000 E on MIB El 0010 El 0020 0020 0030 0030 0040 0040 0050 0050 0060 0060 0070 0070 0080 0080 0090 00830 0040 X 0040 X Modbus RTU ASCII Master Modbus TCP Slave SerialPort All Name Function E CNN RE Serial port Name Function Internal Address Quantity Commande A 2t 20 bytes To rectify the error click Command2 to change its starting address from 10 to 20 Operation Mode Agent xi VO Data Mapping Data flow direction Modbus RTU ASCII Modbus TCP 0123456057895 ABCDEF 01234565789 ABCDEF 0000 0000 El zi 0010 ESTE Ste EES 0010 a o2 PE 0020 0030 0030 0040 0040 0050 0050 0060 00650 0070 0070 0080 0080 0030 0030 OoA0 oe OoA0 a Modbus RTU ASCII Master Modbus TCP Slave SerialPort All Name Function Internal Address Quantity Serial des Name Function Internal Address Quantity Command 1 20 bytes 3 7M Once the change 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
43. n The MGate MB3660 has 2 Ethernet ports with two MAC addresses Hence the unit can be connected by two different IP addresses Installing the Software The Device Search Utility DSU can be installed from the Documentation and Software CD Follow the onscreen instructions after inserting the CD For additional details refer to Chapter 3 Device Search Utility Wiring Requirements NOTE ATTENTION Safety First Be sure to disconnect the power cord before installing and or wiring your MGate MB3660 Wiring Caution Calculate the maximum possible current in each power wire and common wire Observe all electrical codes dictating the maximum current allowable for each wire size If the current goes above the maximum ratings the wiring could overheat causing serious damage to your equipment Temperature Caution Be careful when handling the MGate MB3660 When plugged in the MGate MB3660 s internal components generate heat and consequently the board may feel hot to the touch You should also observe the following common wiring rules e Use separate paths to route wiring for power and devices If power wiring and device wiring paths must cross make sure the wires are perpendicular at the intersection point Do not run signal or communication wiring and power wiring in the same wire conduit To avoid interference wires with different signal characteristics should be routed separately e You can use the type of signal transmi
44. nal settings 4 19 MGate MB3660 Series Modbus Gateway Protocol Settings Operation Mode Agent v Modbus RTU A SCII Master Settings serial port 1 Web Console Configuration Initial delay 0 0 30000 ms Max retry 3 0 5 Response timeout 1000 10 120000 ms Inter frame delay 0 10 500 ms 0 default Inter character timeout 0 10 500 ms 0 default Modbus Commands Add 4 Edit Es Copy fii Delete Index Enable Name Slave ID Function Address Quantity Trigger PollInterval Endian Swap 1 Enable Command1 Read address 0 amas hd tou 1000 None Apply the above setting t m P1 P2 Ar Ops Ops Pe Mp7 Ops P9 1P10 Op Op Opa El P14 1 P415 E P46 All ports Parameters Description Initial delay Some Modbus slaves may take more time to boot up than other devices In some environments this may cause the entire system to suffer from repeated exceptions during the initial boot up You can force the MGate to wait after booting up before sending the first request with the Initial Delay setting The number of times the master will retry the same request when the response times out Response timeout According to the Modbus standard the time it takes for a slave device to respond to a request is defined by the device manufacturer Based on this response time a master can be configured to wait a certain amount of time for a slave s response If no response is received within the specified time the m
45. nated IP address for In RTU ASCII slave mode a Modbus command sent to a specified IP address can be Modbus routed to a specified serial port 4 6 MGate MB3660 Series Modbus Gateway Web Console Configuration For convenience you can apply the setting to other serial ports by checking the desired ports or to all ports by selecting the All ports checkbox This feature can dramatically reduce the time needed to configure Modbus gateways that service a large number of serial ports Slave ID Map The Slave ID Map tab is where slave IDs are managed The definitions on this tab determine how requests will be routed by the unit To configure the Slave ID Map double click the row of the serial port you wish to configure or click Edit to enter the settings page Protocol Settings Operation Mode Transparent v Slave ID Map Slave ID Table Add 4 Edit i Delete Channel No Slave ID Range Virtual ID Real Device ID Destination 2 Modbus serial 006 010 lt gt 006 010 Port 2 Serial 3 Modbus serial 011 015 lt gt 011 015 Port 3 Serial E Modbus serial 016 020 lt gt 016 020 Port 4 Serial 5 Modbus serial 021 025 lt gt 021 025 Port 5 Serial 6 Modbus serial 026 030 lt gt 026 030 Port 6 Serial Modbus serial 031 035 lt gt 031 035 Port 7 Serial 8 Modbus serial 036 040 lt gt 036 040 Port 8 Serial 9 Modbus serial 041 045 lt gt 041 045 Port 9 Serial 10 Modbus serial 046 050 lt
46. nd control engineers a powerful and easy way to mass configure devices and effectively reduces the setup and maintenance cost For more detailed information regarding MXview download the MXview user s manual from Moxa s website at http www moxa com 4 29 5 Typical Applications The follovving topics are covered in this chapter O Ethernet Masters with Multiple Serial Slaves O Serial Masters with Multiple Ethernet Slaves O Modbus TCP Masters with ASCII and RTU Slaves o Serial Master with Serial Slaves over Internet MGate MB3660 Series Modbus Gateway 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 MB3660 Modbus gateway The MGate MB3660 supports Modbus TCP with up to 256 simultaneous connections The serial interface 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 Host Modbus TCP I Computer PLC Le Master devices PT Hw Ethernet RS 232 Y f f f Modbus ASCII uu Slave devices Flow meters Drives RS 485 Modbus RTU Loop controller Power measurement up to 31 devices Serial Masters with Multiple Ethernet Slaves Link a
47. new settings Model MGate MB3660 16 2AC IP 192 168 127 254 192 168 126 254 Address Name MG MB3660 16 2AC 12345 Serial No TABC11112345 Firmware Main Menu a CES Basic Settings Basic Settings Network Settings Server Settings Serial Settings Server name MG MB3650 16 2AC 12345 Protocol Settings Server location System Management System Monitoring Save Restart Time Settings Time zone GMT Greenwich Mean Time Dublin Edinburgh Lisbon London v Local time 2000 701 j01 00 32 45 Time server 4 2 MGate MB3660 Series Modbus Gateway Web Console Configuration Network Settings The Network tab is where the unit s network settings are configured You can modify the LAN mode Network Configuration IP Address Netmask Default Gateway and DNS The MGate MB3660 series gateways have dual Ethernet ports with dual MACs There are two LAN modes Dual Subnet and Single IP Network Parameters Network Settings LAN mode Dual Subnet LAN IP configuration Single IP r LAN1 IP address 192 168 127 254 LAN1 netmask 255 255 2550 LAN gateway Ee LAN IP configuration Static LAN2 IP address 192 168 126 254 LAN2 netmask 255 255 2550 LAN gateway NENNEN DHS1 DHS2 Dual Subnet mode allows the gateway to have two different IP addresses each with distinct netmask and gateway settings Single IP mode allows user to use the same IP address on both Ethernet ports Network Parame
48. nge of virtual slave IDs Slave ID Offset When a serial port is set to RTU slave or ASCII slave mode a virtual ID range will already be created for you Simple select the entry in the table and modify the range and offset as needed For TCP slaves you can add an entry that assigns a range of virtual IDs to a specific IP address using the Remote TCP Slave IP setting ATTENTION The MGate MB3660 will disregard any request that is not addressed to a virtual slave ID on its slave ID map If a device has not been assigned a virtual slave ID it will not be accessible by masters on the other side of the Modbus gateway 4 8 MGate MB3660 Series Modbus Gateway Web Console Configuration Slave ID Map Example Suppose you have two ASCII slave devices on port 1 assigned to slave IDs 3 and 5 The MGate will automatically create a virtual ID range for port 1 which you will need to modify If slave IDs 3 and 5 are already in use by TCP slaves the virtual ID range should be set to IDs that are not in use such as 20 through 22 In that case you would specify a slave ID offset of 17 since that is the difference between the virtual ID range and the actual slave IDs The formula is as follows Real Slave ID Virtual Slave ID Slave ID Offset 3 20 17 With the slave ID map configured a master that wants information from one of the ASCII slaves would address the request to slave ID 20 or 22 The MGate would identify that the request
49. nnected to a separate port from the slaves For serial port pin assignments refer to the Pin Assignments section RS 485 Termination and Pull High Low Resistors In some critical RS 485 environments you may need to add termination resistors to prevent the reflection of serial signals When using termination resistors it is important to set the pull high low resistors correctly so that the electrical signal is not corrupted For each serial port DIP switches or jumper settings are used to set the pull high low resistor values A built in 120 Q termination resistor can also be enabled To modify the termination and pull high low resistor settings refer to the hardware reference chapter for your model ATTENTION Do not use the 1 KQ pull high low setting on the MGate MB3660 when using the RS 232 interface Doing so will degrade the RS 232 signals and reduce the effective communication distance 2 2 MGate MB3660 Series Modbus Gateway Getting Started Connecting to a Host or the Network Two 10 100BaseT Ethernet ports are located on the gateway s back panel These ports are used to connect the unit to a host or Ethernet network as follows e For normal operation use a standard straight through Ethernet cable to connect the unit to your Modbus TCP network e For initial configuration or for troubleshooting purposes you may connect the unit directly to a PC The unit s Link LED will light up to indicate a live Ethernet connectio
50. nresponsive due to device or line failure This function 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 unresponsive for the amount of time specified by the response timeout function The master gives up on the request and resumes operation allowing another request to be initiated X reqmest gt p cancelled after ERE no response To allow for a wide range of devices baudrates and line conditions actual response timeout values are left open for manufacturers to determine This allows the Modbus protocol to accommodate a wide range of devices and systems However this also makes it difficult for system integrators to know what response timeout value to use during configuration especially with older or proprietary devices The MGate MB3660 provides a patent pending function that tests all attached devices and recommends a response timeout value This function saves considerable time and effort for system integrators and results in more accurate timeout settings A 2 MGate MB3660 Series Modbus Gateway Modbus Overview Modbus Ethernet vs Modbus Serial Although Modbus 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 Ethe
51. odbus TCP Exception setting When enabled the unit can return two types of exception Ti i There is no response from the slave Maybe the device is off line or the imeou serial cable is broken There are two situations that will result in this exception Request dropped The request queue is full 32 request queue for each master The destination ID not included in the slave ID map Not all Modbus TCP masters require this exception so it is up to you to determine if this setting should be enabled MGate MB3660 Series Modbus Gateway Web Console Configuration Modbus TCP Listen Port Allow you to change Modbus TCP listen port from the default value 502 Modbus TCP Response Timeout According to the Modbus standard the time that it takes for a slave device to respond to a request is defined by the device manufacturer refer to Appendix A for details Based on this response time a master can be configured to wait a certain amount of time for a slave s response If no response is received within the specified time the master will disregard the request and continue operation This allows the Modbus system to continue operation even if a slave device is disconnected or faulty On the MGate MB3660 the Modbus TCP 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 to manually set the response time out Intell
52. odbus network a Modbus master would address the request to the appropriate virtual slave ID The MGate then routes that request as specified by the slave ID map 4 7 MGate MB3660 Series Modbus Gateway Web Console Configuration For example if a TCP master needs information from an ASCII slave it addresses the request to the corresponding virtual slave ID as defined on the MGate s slave ID map The MGate identifies the request as within its virtual slave ID range and forwards the request to the Modbus ASCII by the device s actual slave ID Virtual slave IDs must not conflict with each other or with other TCP slave IDs How Slave ID Map is Defined The slave ID map consists of entries channels the range of virtual ID versus real ID and the destination of the serial port Operation Mode Transparent 7 Slave ID Map Modify Slave ID Serial port 1 Slave ID Start 4 Slave ID End 5 Slave ID Offset This specifies the range of IDs that will be routed to the numeric range from selected set of slave devices For example you can specify Virtual Slaves ID Range 1 to 254 that IDs between 8 and 24 be routed to the devices on Port 3 The ID 255 is reserved for the gateway itself This specifies the difference between the virtual slave ID number between and the actual slave ID If a slave s virtual ID is 16 and the 253 and 253 actual ID is 5 you would set the offset to 11 This offset is applied to the entire ra
53. ording to the command learned from the SCADA system You can edit the learned Modbus commands received from the Modbus master by clicking the Edit button Since the gateway is actively polling the devices if you would like to edit commands manually you first need to deactivate active polling MGate will suspend intelligent mode before starting to edit commands Do you wish to continue PRES _ eT zi The status of intelligent mode will change to Suspended Intelligent Commands Settings Intelligent command timeout 5 3600s 0 for never timeout Serial device failure action Ma response ta TCP master Y Inteligent Commands Intelligent mode status Suspended Serial Port 4 Edit ill Delete Enable Index Slave ID Fu nction Code Address Quantity Poll Interval 10 60000 ms 0 for busy polling Disable 1 Jo 1412 Read Address 30313 Quantity 29793 101 Enable 2 255 255 Read Address 65535 Quantity 0 0 Enable 3 13 1 Read Address 0 Quantity 49664 4 Click Edit to open the edit page or click the delete button to delete the command You may also disable the Modbus command and then reactivate it when needed 4 12 MGate MB3660 Series Modbus Gateway Web Console Configuration Intelligent Commands Enable Disable Slave ID Function Code 112 AddressiQuantity Read Address 30313 Quantity 29793 Pon ister 101 10 60000 ms 0 for busy polling Value to TCP master when serial fail a
54. performance but requires users to go through the trouble of keying in Modbus commands In order to provide better performance without requiring users to key in a lot of Modbus commands the MGate MB3660 series gateways are designed with an innovative Command Learning function which can be activated with a single mouse click Once activated the gateway will learn and memorize the Modbus commands it receives and once a command has been learned the gateway will act as though it were in agent mode and actively send Modbus requests to the relevant Modbus devices Since the data is saved in a different memory space that can be accessed by the SCADA system the SCADA system can retrieve Modbus response data directly from the gateway s memory instead of waiting for the data to pass through the Modbus devices dramatically increasing communication performance Windows Based Utility and Web Console for Easy Setup A Windows based utility is provided to make it easy to search for and locate devices assign IP addresses import export configuration files and upgrade the the MGate MB3660 s firmware The utility automatically connects to all available MGate MB3660 units on the LAN A user friendly web console is provided to configure the device from a web browser 1 2 MGate MB3660 Series Modbus Gateway Introduction Package Checklist NOTE All models in the MGate MB3660 series are shipped with the following items Standard Accessories e 1 MGate
55. rieve the Modbus TCP slave devices status via Modbus command with the following information Slave ID MB3660 s Modbus RTU ASCII slave ID 0x03 or 0x04 Modbus RTU ASCII Settings According to the Modbus RTU ASCII settings the MGate MB3660 will act as a Modbus master or Modbus slave in order to communicate with your Modbus RTU ASCII devices For Slave mode the MGate acts as a slave and waits for the incoming connection from the Modbus master In this mode you only need to specify the slave ID for the MGate gateway For Master mode the MGate works as a master and will try to send Modbus commands to the Modbus slave devices so you will need to specify the slave device IDs and the relative Modbus commands Slave Mode Settings You will need to specify which Modbus protocols will run in Slave mode The MGate MB3660 supports Modbus RTU and Modbus ASCII protocols in Slave mode Protocol Settings Operation Mode Agent Modbus RTU ASCII Mode selection MGate role RTU Slave hd Slave Settings S Edit Serial port Slave ID Tl III 10 10 11 11 12 12 13 13 14 14 k ni 15 16 k ce MGate MB3660 Series Modbus Gateway Web Console Configuration Double click a serial port for additional settings or click the intended serial port and then click Edit Protocol Settings Operation Mode Agent Modbus RTU ASCII Slave Settings Serial Port 1 Slave ID 1 1 255 zl Apply the above setting to LA 1 i
56. rnet 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 Once a request is sent no other communication on the bus is allowed until the slave sends a response or until the request times 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 requests to other slaves before a response is received The Modbus TCP standard recommends that slaves be able to queue up to 16 requests at a time The MGate MB3660 will queue up to 32 requests from each TCP master for up to 16 TCP masters Integrate Modbus Serial and Ethernet with Gateways Modbus on TCP IP PLC Modbus on RS 232 422 Modbus on RS 485 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
57. s Elre iviprz Hipg Apply the above setting to MPa v P10 Ml P11 Vi P412 Vi P13 V P414 E P15 VI P416 W All ports OK 4 11 MGate MB3660 Series Modbus Gateway Web Console Configuration Once activated the gateway will learn and memorize the Modbus commands it receives and once a command has been learned the gateway will act as though it were in agent mode and actively send Modbus requests to the relevant Modbus devices Since the data is saved in a different memory space that can be accessed by the SCADA system the SCADA system can retrieve Modbus response data directly from the gateway s memory instead of waiting for the data to pass through the Modbus devices dramatically increasing communication performance Protocol Settings Operation Mode Transparent v Intelligent Commands Settings Intelligent command timeout 0 5 3600s 0 for never timeout Serial device failure action No response to TCP master Intelligent Commands Intelligent mode status Running Serial Port 1 Edit Enable Index Slave ID Function Code Address Quantity Poil Interval 10 60000 ms 0 for busy polling Enable 1 E 3 Read Address 0 Quantity 10 10 Enable 2 2 3 Read Address 0 Quantity 10 10 The learned Modbus commands will be shown on the Intelligent Commands tab The gateway will act as in agent mode when intelligent mode is activated Once the Modbus command is learned the gateway will start to actively poll the Modbus device acc
58. s Modbus Gateway Web Console Configuration SNMP Trap Settings SNMP Trap SNMP Trap SNMP trap server IP or domain name Trap community public SNMP trap server IP Use this field to indicate the IP address to use for receiving SNMP traps Trap community Use this field to designate the SNMP trap community SNMP Agent Settings SNMP Agent SNMP Settings SNMP kd Read community string public Contact name Location SNMP To enable the SNMP Agent function select the Enable option and enter a END a Read community string This is a text password mechanism that is used to weakly authenticate queries iiid i77 e Contact name The optional SNMP contact information usually includes an emergency contact aal an NN Location Location For storing the SNMP s location information Misc Settings This page includes console settings password RADIUS Server and User Table Console Settings HTTP Enable Disable This setting is to enable disable the web console Telnet console Enable Disable This setting is to enable disable the telnet console Reset button Disable after 60 sec The MGate provides a reset button to clear the password protect Always enable or load factory default settings For security reasons you can disable this function In disabled mode the MGate will still enable this function within 60 seconds after power up 60 seconds later the function will be disabled Console Local RADIUS RADIUS Loca
59. stors Connecting to a Host or the Network gt Installing the Software Wiring Requirements LED Indicators Dimensions Adjustable Pull High Low Resistors for the RS 485 Port Pin Assignments Power Input DC Model gt Relay Output Rackmount Specifications MGate MB3660 Series Modbus Gateway Getting Started Connecting the Power The unit can be powered by connecting a power source to the terminal block for DC models or power connector for AC models For DC power input models 1 Loosen or remove the screws on the terminal block 2 Connect the 20 60 VDC power line to the terminal block 3 Tighten the connections using the screws on the terminal block For AC power input models e Connect the 100 240 VAC power line to the AC connector Note that the unit does not have an on off switch It automatically turns on when it receives power The PWR LED on the front panel will glow to indicate that the unit is receiving power There are two DC power inputs for redundancy Connecting Serial Devices The unit s serial port s are located on the back panel If you are connecting an RS 485 multidrop network with multiple devices note the following e All devices that are connected to a single serial port must use the same protocol i e either Modbus RTU or Modbus ASCII e Each master device must connect to its own port on the unit If you are connecting to a network with both master and slave devices the master must be co
60. stors for the RS 485 Port sssessssssseeeeeee nn nnnm nena nnn nnn nnn 2 5 PUT NS SU me bs piri TEE ET EREET EEEE ER RETTE a 0006 000 Se be Se be Se be he eee eee eee eee mea DDD bee 2 5 Power Inpit DC Motdeb ie eia tute uu ai ala nade eee DE DO Es EEA de DE Da De Da RE sued RR ECKE EE ERE Conca esde 2 6 Relay OUTED WG E c UO RT 2 6 RCR OLI Genre ee enn ty ene eee nese ee eee ee ee ee ee ee ee ee ee tn 2 6 Se ell esde ea OO mm 2 3 Device Search UNY siddin a a a a aaa REEE EREEREER RRENEN 3 1 Installirig the SOWA rE iere e a a eer NR Ad d A AC A ATA A ES 3 2 Starting Device Search Utility DSU iiicase eene nex xxn rr xen eru ee NR RC RH RR EEEE EAEE EAEEREN 3 5 COMMECEING tO Ee UEM obe bur hbnbk nb RE RhERERUERERERDRERRRERRREREREE Eric ti Da ui Fund add Pad be tcr wd 3 5 siWerc a e ci Nt a EO 3 6 SEC CIP ee Te e esa SATURNI IM PD IT 3 8 Hore 3 8 Upgrading EO ECO Est e cole AM Mein tod ae ulus o v En cac qct ciu ch am aci dian i ch Ar d 3 9 4 Web console Configurati n ceiiiicimt eiaterc tan sur peasa su sE RSR AES RAEERa NAR URER sa ORE E ERRARE EE RR E RU RVE ERR MUR E PERRA MERE QNS RE EEEUE 4 1 UC CIS HR RE DENITRO RUN AUI enm Em TC ND ONE UNDC Occo e e e ton 4 2 Basic Sells oo IM UDIN eee eee vena enone ERE MI ERI nitur CD RON Ceca IUD DONC quedo PIDE LIEU NdN 4 2 NetWork SOCI Pe cc M 4 3 SO
61. te command 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 ways keep latest data clear data to zero and user defined value Timeout for opposite Defines the timeout for the serial side The range is from 0 to 65535 ms side s data update Fault Protection and Status Monitoring Fault Protection The Fault Protection function sends a predefined setting to field devices to prevent incorrect actions when the upstream connection is lost The MB3660 supports a Fault Protection function when in agent mode You can configure the criteria used to determine what to do when the write command is no longer received from the master side For example when a cable comes loose accidentally the most up to date write command from the master side will not be received by the gateway Hence the slave device will use the latest command from the gateway which is now out of date creating an inconsistency between the master and slave devices To avoid this problem the MB3660 supports options for determining which actions should be taken when the master s side is disconnected from the gateway Options Description Keep latest data The gateway will write the same data to the slave device Clear data to zero The gateway will write zero values to the slave device User define value A user defined value wil
62. ter makes a request the request must include the ID of the intended recipient Master devices themselves have no ID Broadcast address Slave individual address Communication is by Request and Response All Modbus communication is by request and response A master sends a request and a slave sends a response The master will wait for the slave s response before sending the next request For broadcast commands no response is expected This is illustrated by three scenarios as follows Normal The master sends a request to the slave The slave sends a response with the requested information TE En E omm MGate MB3660 Series Modbus Gateway 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 1 request p ERN 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 gt Broadcast gt ee Requests Need a Time Limit The original Modbus protocol was not designed for simultaneous requests or simultaneous masters so only one request on the network can be handled at a time When a master sends a request to a slave no other communication may be initiated until after the slave responds The Modbus protocol specifies that masters use a response timeout function to identify when a slave is no
63. ters Network Settings LAN mode single IP LAN IP configuration Static LAN IP address 192 168 127 254 LAN netmask 255 255 255 0 LAN gateway cd Active LAN when boot up LAM 1 Ping remote host a DNS1 DNS2 You need to choose which LAN port will be active when the device boots up The MGate MB3660 will continuously send PING requests to the assigned host to determine the network status If the active LAN fails to respond the unit will automatically hand over to the backup LAN This mechanism not only detects a physical link down situation but detects the actual network status via the PING function Consequently you can plug in both Ethernet cables with the two ports using the same IP address The MGate MB3660 gateway will detect and hand over the active backup LAN automatically 4 3 MGate MB3660 Series Modbus Gateway Web Console Configuration Value Notes o LAN mode Dual Subnet Single IP Use two different IP addresses for the two Ethernet er ports or use one IP address for both ports LAN IP configuration Static IP DHCP BootP or Select Static IP if you are using a fixed IP address DHCP BootP Select one of the other options if the IP address is set dynamically LAN IP address 192 168 127 254 or The IP Internet Protocol address identifies the server 192 168 126 254 on the TCP IP network or another 32 bit number LAN netmask 255 255 255 0 Identifies the server as belonging to a Class A B or
64. teway Web Console Configuration Protocol Settings Operation Mode Agent Y Modbus RTU ASCII Command Parameters Enable Enable v Name Command1 Slave ID 1 Function 23 Read Write Multiple Registers Trigger Cyclic T Poll interval 1000 10 1200000 ms Endian swap None v Read starting address 0 0 65535 Read quantity 10 Read memory address 0 0 65535 Write starting address 0 0 65535 Write quantity 1 Write memory address 0 0 65535 Opposite side s command fault Keep latest data v Timeout for opposite side s data update 0 65535 ms ENLCENNM EC The description of all the fields can refer to Agent mode Master Mode Settings I O Data Mapping You can verify the gateway s memory allocation on the I O Data Mapping page First select the Modbus data flow you want to see Operation Mode Agent VO Data Mapping Data flow direction Modbus TCP Modbus RTU ASCI x Modbus TCP gt Modbus RTU JASCII 0123 4 5 6 7 8 9 A Modbus RTUMASCI Modbus TCP 1 49 6 7 8 9 ABCDEF 0000 OOOO 0010 ei 0010 a 0020 0020 0030 0030 0040 0040 0050 0050 0060 0060 0070 0070 0080 0080 0090 0090 040 5 OOA0 Modbus TCP Slave Modbus RTU ASCII Master Serial Port All Hame Function Internal Address Quantity Name Function Internal Address Quantity Serial port In agent mode you need to manually set Modbus commands one by one and assign a gateway memory address for storing this data We recom
65. to input all the commands manually MGate MB3660 Series Modbus Gateway Protocol Settings Operation Mode Agent Modbus TCP Command Parameters Web Console Configuration Enable Enable Name Command1 Slave IP address 0 0 0 0 Port 502 Slave ID 1 Function 16 Write Multiple Registers Trigger Cyclic Poll interval 1000 10 1200000 ms Endian swap Mane ka Write starting address 0 0 65535 Write quantity 1 Write memory address 0 0 65535 Opposite side s command fault Keep latest data Timeout for opposite side s Keep latest data Cw data update Cleardatatozero 0 65535 ms User define value Port The TCP port number of remote slave devices 1 to 65535 Slave ID The Modbus slave ID that this slave module will accept 0 Broadcasting 1 255 Device specific Function When a message is sent from a Client to a Server device the function code field tells the server what kind of action to perform We support the 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 multiple registers 23 Read Write multiple registers Trigger Disable The command is never sent Cyclic The command is sent cyclically at the interval specified in the Poll Interval parameter Data change The data area is polled for changes at the time interval defined
66. tted through a wire to determine which wires should be kept separate The rule of thumb is that wiring that shares similar electrical characteristics can be bundled together e Keep input wiring and output wiring separate e When necessary we strongly advise labeling wiring to all devices in the system 2 3 MGate MB3660 Series Modbus Gateway Getting Started LED Indicators Description Reset Button Press the Reset button for 5 seconds to load factory defaults The MGate MB3660 will beep twice when the configuration has been reset LEDs PWR 1 PWR 2 Power connection Power cable is not connected Ready Steady on Power is on and unit is booting up Blinking IP conflict DHCP or BOOTP server did not respond properly or a relay output occurred Steady on Power is on and unit is functioning normally Blinking Unit is responding to locate function Tx 1 8 16 Rx 1 8 16 LAN 1 LAN 2 Dimensions 197 5 7 78 4 49 0 18 O Els Q lans Rose oo oo O 2 4 MGate MB3660 Series Modbus Gateway Getting Started AC Model I LL ett 3 O Adjustable Pull High Low Resistors for the RS 485 Port A In some critical environments you may need to add termination resistors to prevent the reflection of serial signals When using termination resistors it is important to set the pull high low resistors correctly so that the electrical signal is not corrupted The MGate MB3660 uses DIP switches to
67. ttings Auto Warning Settings System Event Cold start Mail Trap Warm start Mail Trap Power1 input failure Mail Trap Relay Power2 input failure Mail Trap Relay LAN1 link down Mail Trap Relay LAN2 link down Mail Trap Relay Config Event Console login fail Mail Trap IP changed Mail Password changed Mail Auto Warning is triggered by different events When a checked trigger condition occurs the MGate can send e mail alters SNMP Trap messages or open close the circuit of the relay output and trigger the Fault LED to start blinking To enable an e mail alert configure the e mail address on the E mail Alert page Likewise to enable SNMP Trap alerts configure SNMP trap server on the SNMP Trap page Email Alert Settings Email Alert Mail Settings Mail server SMTP My server requires authentication User name Password From e mail address MG MB3580 16 2AC 12345 MG MB3660 16 2AC To e mail address 1 To e mail address 2 To e mail address 3 To e mail address 4 Parameters Description Mail server The mail server s domain name or IP address User name This field is for your mail server s user name if required This field is for your mail server 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 the automatic e mail warnings will be sent 4 24 MGate MB3660 Serie
68. ve Modbus slave devices data via the gateway s memory Protocol Settings Operation Mode Transparent Transparent 1 Mode Serial port Mode Designated TCP port Designated IP 1 RTU Slave 0 0 0 0 0 2 RTU Slave 0 0 0 0 0 3 RTU Slave 0 0 0 0 0 4 RTU Slave 0 0 0 0 0 5 RTU Slave 0 0 0 0 0 B RTU Slave 0 0 0 0 0 T RTU Slave 0 0 0 0 0 8 RTU Slave 0 0 0 0 0 g RTU Slave 0 0 0 0 0 10 RTU Slave 0 0 0 0 0 11 RTU Slave 0 0 0 0 0 12 RTU Slave 0 0 0 0 0 13 RTU Slave 0 0 0 0 0 14 RTU Slave 0 0 0 0 0 15 RTU Slave 0 0 0 0 0 16 RTU Slave 0 0 0 0 0 4 5 MGate MB3660 Series Modbus Gateway Web Console Configuration Transparent Mode Mode Double click the intended serial port column to set detailed Modbus parameters or click Edit to enter the settings page Protocol Settings Operation Mode Transparent v Mode Modbus Parameters Port 1 Connected serial device RTU Slave Y Enable intelligent mode Response timeout 1000 10 120000 ms Auto Detection Inter character timeout 0 10 500 ms 0 for disable Inter frame delay 0 10 500 ms 0 for disable Designated TCP port 0 1024 65535 0 for disable Designated IP address for Modbus 0 0 0 0 0 for disable P1 P2 lea P4 Ps P6 P OPs Apply the above setting to P9 O p10 O p11 O P12 O pa E P14 E P45 El P16 All ports ENCENN NC Connected serial device Select the role of the device that is connected to the serial port Response timeout According to the Modbus stan
69. vides a warning mechanism to report the list of slave devices that are still alive In agent mode each serial port supports 32 Modbus commands Hence there are at most 512 Modbus commands for all serial devices The MB3660 allocates 1 bit of the gateway s specified memory address to indicate the status of each Modbus command as being normal or abnormal In other word the MB3660 allocates 512 bits of memory to indicate the status of all Modbus commands If a command has run successfully the status value will continuously be 0 On the contrary if a command has failed the status will be set to 1 In this case the Modbus TCP master will be aware of the failure status of the slave device in relation to the Modbus command 4 17 MGate MB3660 Series Modbus Gateway Web Console Configuration In agent mode when the Modbus TCP master queries Modbus serial slave devices the MB3660 plays the role of TCP slave on the Ethernet side and consequently is assigned a Modbus TCP slave ID The Modbus TCP master can retrieve the Modbus slave devices status via Modbus command with the following information Slave ID MB3660 s Modbus TCP slave ID 0x03 or 0x04 Address 40001 Quantity 32 words for MB3660 16 16 words for MB3660 8 When a Modbus serial master queries the Modbus TCP slave devices the MB3660 plays the role of serial slave on the serial side and consequently is assigned a Modbus serial slave ID The Modbus serial master can ret
70. was addressed to a virtual slave ID in the slave ID map The MGate would then forward the request to port 1 applying the 17 offset to obtain the actual ID of the desired device Priority Control The Priority Control tab is where emergency requests are enabled and configured Priority Control Specified TCP Port Specified TCP port Disable Specified Master Specified master Disable 7 Specified Request Specified request Priority control is designed for requests that are sent to Modbus RTU ASCII slaves Since Modbus RTU ASCII slaves cannot handle multiple requests the Modbus gateway must send each request individually and wait for the response before sending 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 certain requests are sent to the front of the queue for more immediate response times Priority requests can be specified by master IP address or serial port TCP port or command type slave ID function code or data When the Modbus gateway identifies a priority request the request will immediately be placed at the front of the queue To define a priority request enable the appropriate priority scheme i e Specified Masters Specified TCP Port or Specified Requests Then specify the parameter s that will indicate a priority request Finally click Add Modify to
Download Pdf Manuals
Related Search
Related Contents
Sandberg Modem Cable 9M - 9F+25F 1.8m 23大気常時監視テレメータシステム中央局設備購入仕様書 Descargar Téléchargez le guide de tous les services COGEPART format PDF Readiris Pro 12 mode d`emploi Add Appointments By Email User`s Manual Les hydrogels - Euro Manuel d`Utilisateur 押入棚板・押入枕棚板セットRⅢ Copyright © All rights reserved.
Failed to retrieve file