Home
Moxa MGate MB3180
Contents
1. Name MG MB3270_32705 Password J Network Configure Static Fr Confirm Password IP Address 192 168 35 116 Netmask 255 255 252 0 L Gateway 168 DNS1 DNS2 MGate MB3000 User s Manual Configuring the Modbus Gatewav Parameter Value Notes Name an alphanumeric string You can enter a name to help you identify the unit such as the location function etc Network Static IP DHCP BootP or Select Static IP if you are using a fixed IP 8 A address Select one of the other options if the IP Configuration DHCP BootP f address is set dvnamicallv IP Address 192 168 127 254 The IP Internet Protocol address identifies the or other 32 bit number server on the TCP IP network Netmask 255 255 255 0 This identifies the server as belonging to a Class or other 32 bit number A B or C network Cena 0 0 0 0 This is the IP address of the router that provides y or other 32 bit number network access outside the server s LAN DNSI 0 0 0 0 This is the IP address of the primary domain or other 32 bit number name server DNS2 0 0 0 0 This is the IP address of the secondary domain or other 32 bit number name server You can set a password to prevent unauthorized users from configuring the unit The password Password an alphanumeric string will be required when anyone attempts to configure the unit over the network Modbus operation is not
2. 5 years 4 6 gt Hardware MB3480 This chapter provides hardware information for the MGate MB3480 The following topics are covered Panel Layout LED Indicators Dimensions Jumpers Pin Assignments gt DB9 Male DIN Rail Wall Mounting Specifications OooOcoOo Oo MGate MB3000 User s Manual Hardware MB3480 Panel Lavout r Power input Ele RJ45 10 100 Mbps Ethernet port Terminal Block power input E 0O 10 Lizas voe geng m Ready M Ethernet mM MPS LIE Du Modbus Ffhernet Serici Gateway Fort 3 Ports BS 282 422 485 55 2244224 485 U PT U U IG U JU Indicator LEDs Male DB9 serial port LED Indicators Name Color Function Steady on Power is on and unit is booting up Red Blinking Indicates an IP conflict or DHCP or BOOTP server is not responding properly Ready Steady on Power is on and unit is functioning normally en Blinking Unit is responding to software Locate function Off Power is off or power error condition exists Orange 10 Mbps Ethernet connection Ethernet Green 100 Mbps Ethernet connection Off Ethernet cable is disconnected or has a short Orange Serial port is receiving data P1 P2 P3 P4 Green Serial port is transmitting data off No ER is being transmitted or receive
3. Keep Serial Master and Add Ethernet Master s Integrate Modbus RTU ASCIL and TCP at the Same Time DODODOO MGate MB3000 User s Manual Case Studies Introduction There are manv reasons a Modbus gatewav might be used to integrate Modbus networks However everv situation has its own requirements and difficulties Users mav wonder how the gatewav can help or even if the gatewav is suitable for the svstem This chapter presents some case studies to help guide If you can not find the case the same as yours 1t does not mean the MGate MB3000 is not suitable with you Please contact Moxa and we will work 1t out with you Replace Serial Masters with Ethernet Master s Slave IDs are Configurable 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 gd Master S Master z Master Serial Serial Serial G AL Slave Ko Slave SEH Slave ID 1 ID 1 ID 1 The MGate MB3000 can connect to each serial slave so Ethernet SCADA masters will be able to control them However since slave IDs cannot be repeated in a svstem 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 RS 485 Serial Sertal Serial SH Slave SEH Slave SCH H Slave ID 1 ID 2 ID 3 11 2 MGate MB3000 User s Manual Case Studies Replace Serial Masters with Ethe
4. Broadcast Search Click Broadcast Search to begin searching the LAN for all MGate MB3000 units Y MGate Manager MAC Address IP Address Specify by IP Address Locate Configuration Upgrade Firmware ProCOM Mapping Monitor Language Import Load Default When the search is complete every MGate MB3000 that is found on the LAN will appear in the window with MAC address and IP address Simply select the one that you wish to configure Y MGate Manager Broadcast Search E MAC Address IP Address MG MB31701 0 MGate MB31701 00 90 E 8 32 54 41_ 192 168 35 115 Specify by 1P Address MG MB3270_32705 MGateMB3270 00 90 E8 00 32 75 192 168 35 116 Locate Configuration Upgrade Firmware ProCOM Mapping Monitor lt Language Load Default 9 7 MGate MB3000 User s Manual Configuring the Modbus Gatewav Specifv bv IP Address Click Specify by IP Address if you know the IP address of the unit and wish to connect to it directly Y MGate Manager Name Model MAC Address IP Address aT Di MG MB3270_32705 MGate MB3270 00 90 E5 00 32 75 192 168 35 116 Q Specify by IP Address L3 Configuration Upgrade Firmware l ProCOM Mapping re Export Import Load Default A dialog box will appear Enter the unit s IP address and click OK Specify IP Serach If the search is successful the unit will be listed in MGate Manager Click the unit to begin conf
5. Data Bits Stop Bits Flow Control Transmission Speed Software Features Operation Mode Utilities Multi Masters and Multi Request Power Requirements Power Input Power Socket Power Consumption Relav Output Environment Operating Temperature Storage Temperature Warrantv Period None Even Odd Space Mark 7 8 1 2 RTS CTS XON XOFF 50 bps to 921 6 Kbps RTU Slave RTU Master ASCII Slave ASCII Master MGate Manager 16 simultaneous TCP masters 32 simultaneous requests for each TCP master 12 to 48 VDC Terminal block MB3270 410 mA 12 VDC 145 mA 48 VDC MB3270I 470 mA 12 VDC 150 mA 48 VDC 1 digital relay output to alarm normal close Current carrying capacity 1 A 30 VDC 0 to 55 C 32 to 13 1 F 5 to 95 RH 40 to 75 C 40 to 167 F 5 to 95 PH for advanced models with T option 40 to 85 C 40 to 185 F 5 to 95 RH 5 years 7 7 8 Tvpical Applications In this chapter we introduce four tvpical Modbus applications Ethernet Masters with Multiple Serial Slaves Serial Masters with Multiple Ethernet Slaves Modbus TCP Masters with ASCII and RTU Slaves Serial Master with Serial Slaves over Internet Ooco MGate MB3000 User s Manual Tvpical 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 ASCH de
6. 00 01 00 02 00 03 FD 74 00 05 00 00 00 09 01 03 06 00 0 00 06 00 00 00 06 01 03 00 00 0 01 03 00 00 00 03 05 CB 01 03 06 00 01 00 02 00 03 FD 74 00 06 00 00 00 09 01 03 06 00 0 00 07 00 00 00 06 01 03 00 00 0 01 03 00 00 00 03 05 CB Comment Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers gt v By default all events are displayed in the traffic monitor window MGate Manager also allows the data to be filtered so only the relevant information is displayed The filter is selected using the radio buttons and customized using the Filter info field as follows All Filter Customization Description Show all traffic Exception only Show only exceptions VSID lt virtual slave ID gt e g VSID 1 Show only traffic to and from the specified virtual slave ID as assigned in the MGate s slave ID map mn h 1 ffi fi th RS
7. 1A 30 VDC 0 to 55 C 32 to 13 1 F 5 to 95 RH 40 to 75 C 40 to 167 F 5 to 95 PH for T models 40 to 85 C 40 to 185 F 5 to 95 RH 5 years 6 7 7 Hardware MB3270 MB32701 This chapter provides hardware information for the MGate MB3270 and MB3270I The following topics are covered Panel Layout LED Indicators Dimensions Jumpers Pin Assignments gt DB9 Male gt Power Input Relay Output DIN Rail Wall Mounting Specifications DODOO DO MGate MB3000 User s Manual Hardware MB3270 MB32701 Panel Lavout Pt RS 232 422 485 P2 LED Indicators oo _ EEE __ _ EF eee o o Bi Name Color Function PWRI Red Power is being supplied to the power input PWR2 Red Power is being supplied to the power input Steadv on Power is on and unit is booting up Red Blinking Indicates an IP conflict or DHCP or BOOTP server is not responding properly RDY Steady on Power is on and unit is functioning normally Kee Blinking Unit is responding to software Locate function Off Power is off or power error condition exists Orange 10 Mbps Ethernet connection Ethernet Green 100 Mbps Ethernet connection Off Ethernet cable is disconnected or has a short Orange Serial port is receiving data PI P2 Green Serial port is transmitting data Off No data is being transmitted or receiv
8. Chinese Simplified jn English Ing German ba Japanese ka Russian ba Spanish Ing Game Le La 9 5 MGate MB3000 User s Manual Configuring the Modbus Gatewav When vou click OK MGate Manager will immediatelv reflect vour chosen language Y MGate Manager 23 iP FERE EBEE maci 01 MG MB3270_32705 MGate MB3270 00 90 E8 00 32 75 192 168 35 116 JEEP m Procom jik Language A ATTENTION Use Default Language before contacting Moxa Technical Support With support for multiple languages MGate Manager is more user friendly and accessible However if you need assistance from Moxa Technical Support please change the language to Default Language This will prevent any misunderstandings or confusion about MGate Manager menu items and commands as our engineers assist you The default language is English and will only be active for the current MGate Manager session When you open MGate Manager again the language will revert to your original setting Connecting to the Unit MGate Manager 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 every MGate MB3000 on the LAN Search by IP attempts to connect to a specific unit by IP address which is useful if the unit is located outside the LAN or can only be accessed by going through a router 9 6 MGate MB3000 User s Manual Configuring the Modbus Gatewav
9. Serial Sl ves crono nocnncrnnornnonns 8 2 Serial Masters with Multiple Ethernet Slaves se mmmmemennnnnnnnnnznnzennzznnznenznznzza 8 2 Modbus TCP Masters with ASCII and RTU Slaves mm eennnnnennenznnnsnnnznnzna 8 3 Serial Master with Serial Slaves over Internet 8 3 Configuring the Modbus Gateway uuuununsunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 9 1 Installiti the SoftWare Li ii bike arena 9 2 Starting MGate Manager nn n e a nn nanna pE SRo V aE 9 5 Change Language SOUND essen neu ini 9 5 Connecting to the Unit ENEE E E are 9 6 Broadcast Sears os 9 7 Specily Dy IP Address ti a a ea 9 8 Modifying the Conti guration eta ide 9 9 Configure Serial Port for RTU or ASCII Master or Slave oooonoconnnnonnnocnconcconccanocnnonns 9 10 Whatis Pro COMP catan ss ls 9 11 How to Configure ProCOM for the MGate MB3000 oooocccnccnccccoccconoconcconocnoconocnnonn 9 11 Configure IP Address and Other Network Senge 9 14 Configure Serial Communication Parameters ooooononnonnconnnonnnonnonnconoconoc noc nccn nono nonnnonns 9 16 Set up Slave ID Mapping Smart Roupng ss semen nnnncnnccnncconocnnos 9 17 Customize Modbus Settings u 2 2 200 008 essen hen apa 9 19 Set Up Priority Control isses ss 9 21 Accessible IP cuina Debat a B 9 22 Miscellaneous A 9 24 Verifying the Location of the Umt cnn cnn nnnn conc cn nena recono 9 25 Monitoring Modbus Activity oooooococncocccononanonancnanonnnco noc nocn nooo nono
10. affected by the password Confirm password an alphanumeric string Re type the password again for confirmation ATTENTION To erase an existing password leave both the New Password and Confirm Password text input boxes blank The password will be erased when you click OK in the bottom right corner 9 15 MGate MB3000 User s Manual Configuring the Modbus Gatewav Configure Serial Communication Parameters The Serial tab is where each serial port s communication parameters are configured You can configure Baud Rate Parity Stop Bit Flow Control FIFO and Interface Mode Configuration 12345 amp DBS Male PIN rs 232 Rs 422 RS 485 RS 485 Mode Network Serial Slave ID Map Modbus Priority Control Accessible IP Miscellaneous Port 1 Port 2 Baudrate Flow Control Baudrate Flow Control 115200 v None Y 115200 v None w Parity FIFO Parity FIFO None EI Enable e More v Enable ze Stop bit Interface Stop bit Interface 1 v RS5s232 vit sel Dain w Data bits Data bits Parameter Value RS 232 RS 422 Interface Mode RS 485 2W RS 485 4W Baud Rate 50 bps to 961200 bps Parity None Odd Even Space Mark Stop Bits 1 2 Flow Control None Xon Xoff RTS CTS UART FIFO Enable Disable 9 16 MGate MB3000 User s Manual Configuring the Modbus Gatewav Set up Slave ID Mapping Smart Routing The Slave I
11. an Ethernet port and up to four serial ports that support RS 232 RS 422 and RS 485 communication It automatically and intelligently translates between Modbus TCP Ethernet and Modbus ASCH RTU serial protocols allowing Ethernet based PLCs to control instruments over RS 485 without additional programming or effort Powerful operation modes to handle almost any Modbus application With the Modbus protocol devices must be clearly defined as either masters or slaves Unlike other Modbus gateways the MGate MB3000 s operation modes allow users to select master or slave operation for each serial port Not only does the MB3000 allow Ethernet masters to control serial slaves it also allows serial masters to control Ethernet slaves In addition the advanced models MGate MB3170 allow both Ethernet and serial slaves to be controlled by both Ethernet and serial masters On multiport models each serial port s operation mode is independent of the other ports so that one port may be configured for slave mode and another port configured for master mode Extra address mapping and exception parameters are provided to ensure that most situations can be handled Windows utilities for easy setup and traffic monitoring A Windows utility is provided to make configuration and operation of the MGate MB3000 as easy as possible The utility automatically connects to all available MGate MB3000 units on the LAN for you Traffic monitoring functions help you troubles
12. and RTU The major difference between the Ethernet and serial Modbus protocols is the behavior of the communication model Modbus ASCII and RTU allow only one request on the network at a time 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 MB3000 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 Modbus on RS 485 Ordinarily Modbus TCP and Modbus ASCH 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 Declaration of Conformitv Manufacturer s Name Manufacturer s Address Declares that the product Product Name Model Number Moxa Technologies Co Ltd HA No 135 Lane 235 Pao Chiao Rd Shing Tien City Taipei Taiwan R O C MGate MB3000 series MGate MB3180 MGate MB3280 MGate MB3
13. 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 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 Customize Modbus Settings The 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 Slave Channel and Response Time out Parameter Value Initial Delay Numeric Modbus TCP Exception Enable or Disable Slave Channel Radio button Response Time out Numeric 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 MB3000 is a protocol gateway that transparently passes requests and responses between the Ethernet and seria
14. devices are simple serial based meters which report certain information relating to factory environment or equipment However other Modbus serial slaves may be as complex as a manufacturing machine or a PLC controller 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 MB3000 allows the different Modbus systems to be integrated into one network regardless of the protocol or communication parameters SCADA SCADA 3 EZ A gd DCS TCP Master A Wee E ia Slave ke ei Sat RTU Master EN Kg Baudrate 9600 ASCII Slave RTU Slave Baudrate 4800 Baudrate 9600 11 4 A Modbus Overview Introduction Modbus is one of the most popular automation protocols in the world It supports both serial and Ethernet devices Manv 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 completelv passive and communicate onlv bv sending a response to a master s request gd Master gt Master Serial BER H Slave BER H Slave Slaves are Identified bv ID Each Modbus slave in a svstem is assi
15. mode is configured The operation mode determines whether the device s that are connected to the serial port will operate as a master ora slave and whether the Modbus RTU or Modbus ASCII protocol will be used There are four operation modes as follows Mode Description RTU Slave Modbus RTU slave s will be connected to the serial port RTU Master A Modbus RTU master will be connected to the serial port ASCII Slave Modbus ASCII slave s will be connected to the serial port ASCII Master A Modbus ASCII master will be connected to the serial port e For entry level models MB3180 MB3280 and MB3480 Modbus TCP masters will control Modbus RTU ASCII slaves and Modbus RTU ASCII masters will control Modbus TCP slaves e For advanced models MB3170 MB3270 both Modbus TCP and Modbus RTU ASCII masters can control Modbus TCP and Modbus RTU ASCI slaves Use the radio buttons to select the desired operation mode for each serial port on the Modbus gateway Select the ProCOM Enable check box located in the center of the page to enable ProCOM For detailed information refer to the ProCOM function description in this manual Configuration ASCII Slave ASCII Master RTU Slave ul gt y og RTU Master bat GC CR _ tii Mode Network Serial Slave ID Map Modbus Priority Control Accessible IP Miscellaneous Serial Port 1 RTU Slave Mode ORTU Master Mode O ASCII Slave Mod
16. recommend that you save this step for last and take a break as the MGate does its work Set Up Priority Control The Priority Control tab is where emergency requests are enabled and configured This is available for advanced models only MB3170 MB3170I and MB3270 Configuration q _ Az Mode Network Serial Slave ID Map Modbus Priority Control Accessible IP Miscellaneous u All Zu A UE AR GEES Specified Masters Enable Master No Type Definition 07 Modbus TCP 192 168 35 111 Serial Port U Modif Orr 192 168 35 111 gt Specified TCP Port Enable CPPort 7502 1024 65535 Specified Requests Enable Req No Slav Function Code 1 3 Slave ID Function Code 9 21 MGate MB3000 User s Manual Configuring the Modbus Gatewav Priority control is designed for requests that are sent to Modbus RTU ASCII slaves Since Modbus RTU ASCH 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 sl
17. 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 Data 00 01 00 00 00 06 01 03 00000 01 03 00 00 00 03 05 CB 01 03 06 00 01 00 02 00 03 FD 74 00 01 00 00 00 09 01 03 06 000 00 02 00 00 00 06 01 03 00 00 0 01 03 00 00 00 03 05 CB 01 03 06 00 01 00 02 00 03 FD 74 00 02 00 00 00 09 01 03 06 000 00 03 00 00 00 06 01 03 00 00 0 01 03 00 00 00 03 05 CB 01 03 06 00 01 00 02 00 03 FD 74 00 03 00 00 00 09 01 03 06 000 00 04 00 00 00 06 01 03 00 00 0 01 03 00 00 00 03 05 CB 01 03 06 00 01 00 02 00 03 FD 74 00 04 00 00 00 09 01 03 06 00 0 00 05 00 00 00 06 01 03 00 000 01 03 00 00 00 03 05 CB 01 03 06 00 01 00 02 00 03 FD 74 00 05 00 00 00 09 01 03 06 000 00 06 00 00 00 06 01 0300000 01 03 00 00 00 03 05 CB 01 03 06 00 01 00 02 00 03 FD 74 00 06 00 00 00 09 01 03 06 000 00 07 00 00 00 06 01 03 00 00 0 01 03 00 00 00 03 05 CB 9 29 Comment Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read holding registers Read hol
18. 32 RS 422 and RS 485 both 2 and 4 wire Pin RS 232 eege RS 485 2W 1 DCD TxD 2 RxD TxD 3 TxD RxD Data 4 DTR RxD Data 5 GND GND GND 6 DSR 7 RTS 8 CTS DIN Rail Wall Mounting Mounting on a DIN rail Attach the DIN rail accessories and latch the unit onto the DIN rail as shown The DIN rail kit is ordered separately IA Mounting on the wall Place two screws in the wall and slide the unit onto the screws as shown The head of each screw 6 5 mm or less in diameter and the shaft should be 3 mm or less in diameter Make sure to leave about 2 mm of space between the head and the wall See I248VDC weg ge 6 5 mm SS E Goon lt 7 8 cm gt Medbux Eihemet Serial Gateway O treaty O teg Onna MOXA Port 1 BS 231 428 463 3 5 MGate MB3000 User s Manual Hardware MB3180 Specifications LAN Ethernet Protection Serial Interface Interface No of Ports Connector Tvpe Signals Serial Line Protection RS 485 Data Direction 10 100 Mbps RJ45 Auto MDI MDIX Built in 1 5 KV magnetic isolation RS 232 422 485 1 port DB9 male RS 232 TxD RxD RTS CTS DTR DSR DCD GND RS 422 Tx Tx Rx Rx GND RS 485 2 wire Data Data GND RS 485 4 wire Tx Tx Rx Rx GND 15 KV ESD for all
19. 4 Mounting on the wall Pull out both the top and bottom sliders and align the screws accordingly pe pm 6 6 MGate MB3000 User s Manual Hardware MB3170 MB31701 Specifications LAN Ethernet Protection Serial Interface Interface No of Ports Connector Tvpe Signals Serial Line Protection RS 485 Data Direction 10 100 Mbps RJ45 Auto MDI MDIX Built in 1 5 KV magnetic isolation RS 232 422 485 1 port DB9 male for RS 232 terminal block for RS 422 485 RS 232 TxD RxD RTS CTS DTR DSR DCD GND RS 422 Tx Tx Rx Rx GND RS 485 2 wire Data Data GND RS 485 4 wire Tx Tx Rx Rx GND 15 KV ESD for all signals Patented ADDCTM Serial Communication Parameters Parity Data Bits Stop Bits Flow Control Transmission Speed Software Features Operation Mode Utilities Multi Masters and Multi Request Power Requirements Power Input Power Socket Power Consumption Relay Output Environment Operating Temperature Storage Temperature Warranty Period None Even Odd Space Mark 7 8 1 2 RTS CTS XON XOFF 50 bps to 921 6 Kbps RTU Slave RTU Master ASCII Slave ASCII Master MGate Manager 16 simultaneous TCP masters 32 simultaneous requests for each TCP master 12 to 48 VDC Terminal block MB3170 400 mA 12 VDC 130 mA 48 VDC MB3170I 405 mA 12 VDC 140 mA 48 VDC 1 digital relay output to alarm normal close Current carrying capacity
20. 480 MGate MB3170 MGate MB3170I MGate MB3270 MGate MB32701 Conforms to the following standards EMC Safety FCC Class B EN55022 1998 class B EN61000 3 2 1995 class B EN61000 3 3 1995 EN55082 1 1997 EN61000 4 2 1995 Contact Discharge 4 KV Air Discharge 8 KV EN61000 4 3 1995 EN61000 4 4 1995 AC DC Power supply 1 KV Data Signal lines 5 KV EN61000 4 5 1995 AC DC Line to Line 1 KV AC DC Line to Earth 2 KV EN61000 4 6 1995 EN61000 4 8 1993 3 A m at 50 Hz EN61000 4 11 1994 UC CUL TUV EN60950
21. 68 35 130 2601 gt 192 168 35 130 2601 lt Port1 gt Porti lt 192 168 35 130 2601 gt 192 168 35 130 2601 lt Porti gt Pot lt 192 168 35 130 2601 gt 192 168 35 130 2601 lt Port1 gt Porti lt 192 168 35 130 2601 gt 192 168 35 130 2601 lt Port1 gt Filter Traffic Information Type TCP Req RTU Req RTU Resp TCP Resp TCP Req RTU Req RTU Resp TCP Resp TCP Req RTU Req RTU Resp TCP Resp TCP Req RTU Req RTU Resp TCP Resp TCP Req RTU Req RTU Resp TCP Resp TCP Req RTU Req RTU Resp TCP Resp TCP Req RTU Req Slav 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Function Code 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 Data 00 01 00 00 00 06 01 03 00 00 0 01 03 00 00 00 03 05 CB 01 03 06 00 01 00 02 00 03 FD 74 00 01 00 00 00 09 01 03 06 00 0 00 02 00 00 00 06 01 03 00 00 0 01 03 00 00 00 03 05 CB 01 03 06 00 01 00 02 00 03 FD 74 00 02 00 00 00 09 01 03 06 00 0 00 03 00 00 00 06 01 03 00 00 0 01 03 00 00 00 03 05 CB 01 03 06 00 01 00 02 00 03 FD 74 00 03 00 00 00 09 01 03 06 00 0 00 04 00 00 00 06 01 03 00 00 0 01 03 00 00 00 03 05 CB 01 03 06 00 01 00 02 00 03 FD 74 00 04 00 00 00 09 01 03 06 00 0 00 05 00 00 00 06 01 03 00 00 0 01 03 00 00 00 03 05 CB 01 03 06
22. 9 male RS 232 TxD RxD RTS CTS DTR DSR DCD GND RS 422 Tx Tx Rx Rx GND RS 485 2 wire Data Data GND RS 485 4 wire Tx Tx Rx Rx GND 15 KV ESD for all signals Patented ADDC Serial Communication Parameters Parity Data Bits Stop Bits Flow Control Transmission Speed Software Features Operation Mode Utilities Multi Masters and Multi Request Power Requirements Power Input Power Socket Power Consumption Environment Operating Temperature Storage Temperature Warranty Period None Even Odd Space Mark 7 8 1 2 RTS CTS XON XOFF 50 bps to 921 6 Kbps RTU Slave RTU Master ASCII Slave ASCII Master MGate Manager 16 simultaneous TCP masters 32 simultaneous requests for each TCP master 12 to 48 VDC Power jack and terminal block 460 mAO 12 VDC 170 mA 48 VDC 0 to 55 C 32 to 13 1 F 5 to 95 RH 20 to 85 C 4 to 185 F 5 to 95 RH 5 years 5 7 6 Hardware MB3170 MB31701 This chapter provides hardware information for the MGate MB3170 and MB3170I The following topics are covered Panel Lavout LED Indicators Dimensions Jumpers Pin Assignments gt DB9 Male gt Terminal Block RS 422 RS 485 gt Power Input Relay Output DIN Rail Wall Mounting Specifications DOODOO UU MGate MB3000 User s Manual Hardware MB3170 MB31701 Panel Lavout LED Indicators Name Color Function PWRI Red Power is bei
23. D Map tab is where slave IDs are managed The definitions on this tab determine how requests will be routed by the unit 1 D e 1 Mode Network Serial Slave ID Map Modbus Priority Control Accessible IP Miscellaneous Bar Remote TCP Slave Ip EEE TCP Port 502 Virtual Slaves ID Range Slave ID Offset Real Slaves ID Range Modify Slaves Channels Information Configuration Cancel Channel No Type Definition Slave ID Range Virtual lt gt Real Modbus Serial PORTI 001 005 lt gt 001 005 Modbus Serial PORT2 006 010 lt gt 006 010 Modbus Serial ProCOM PORT3 011 015 lt gt 011 015 Modbus Serial ProCOM PORT4 D16 020 lt gt 016 020 Modbus Serial ProCOM PORTS 021 025 lt gt 021 025 Modbus Serial ProCOM PORTS 026 030 lt gt 026 030 MGate MB3000 User s Manual Configuring the Modbus Gatewav How Slave IDs are Mapped on the MGate MB3000 ATTENTION The MGate MB3000 will disregard anv request that is not addressed to a virtual slave ID on its When a Modbus master requests information from a Modbus slave 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 resp
24. ID lt actual slave ID gt S OW on y tra ege and from the RSID 1 specified actual slave ID as e 8 ii assigned on the device itself IP lt IP address gt Show only traffic sent from the e g IP 192 168 1 27 specified IP address Source only PORT lt MGate serial port number gt e g PORT 1 Show only traffic sent from the specific serial port on the MGate Function code only FCODE lt Modbus function code gt e g FCODE 3 9 28 Show only traffic for a specific function code MGate MB3000 User s Manual Configuring the Modbus Gatewav Save Log to File To save the data log to a file click Save You may retrieve a saved log by clicking Load Traffic Monitor MGate MB3270 192 168 35 116 Filter info O Exception only O Slave ID only O Source only O Function code only Src amp Dst 192 168 35 130 2601 lt Porti gt Porti lt 192 168 35 130 2601 gt 192 168 35 130 2601 lt Port1 gt Porti lt 192 168 35 130 2601 2 192 168 35 130 2601 lt Portl 2 Porti lt 192 168 35 130 2601 gt 192 168 35 130 2601 lt Port1 gt Porti lt 192 168 35 130 2601 gt 192 168 35 130 2601 lt Porti gt Porti lt 192 168 35 130 2601 gt 192 168 35 130 2601 lt Portl 2 Port1 lt 192 168 35 130 2601 gt 192 168 35 130 2601 lt Portl 2 Function Code 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03
25. MGate MB3000 Modbus Gatewav User Manual Sixth Edition Julv 2012 www moxa com product O 2012 Moxa Inc All rights reserved MGate MB3000 Modbus Gatewav 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 Copvright Notice Copyright O 2012 Moxa Inc All rights reserved Reproduction without permission is prohibited Trademarks MOXA 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
26. Modbus Serial and Ethernet with Gatewavs sena nn A 3 Declaration of Conformity ssssseennnnnnnzznnzznnennnnnnnnnnnnnnnnnznnnnnnnn B 1 1 Introduction Welcome to the MGate MB3000 line of Modbus gatewavs All models feature easy integration of Modbus TCP to Modbus RTU ASCII and feature RS 232 422 485 ports for Modbus serial communication One two and four port models are available This chapter is an introduction to the MGate MB3000 and includes the following sections Overview U Package Checklist O Product Features MGate MB3000 User s Manual Hardware Reference MB3270 MB32701 Overview The MGate MB3000 is a line of protocol gatewavs that provides users with e seamless integration of Ethernet and serial Modbus devices e powerful operation modes to handle almost any Modbus application e Windows utilities for easy setup and traffic monitoring Seamless integration of Ethernet and serial Modbus devices Modbus is one of the most popular automation protocols in the world supporting traditional RS 232 422 485 devices and recently developed Ethernet devices Many industrial devices such as PLCs DCSs HMIs instruments and meters use Modbus as their communication standard However the Ethernet based Modbus protocol is so different from the original serial based protocols that a communication gateway is needed as a bridge for integration In order to integrate Modbus networks the MGate MB3000 includes
27. P switches or jumper settings are used to set the pull high low resistor values For all models except the MB3180 a built in 120 2 termination resistor can also be enabled To modify the termination and pull high low resistor settings please refer to the hardware reference chapter for your model ATTENTION Do not use the 1 K pull high low setting on the MGate MB3000 when using the RS 232 interface Doing so will degrade the RS 232 signals and reduce the effective communication distance Connecting to a Host or the Network A 10 100BaseT Ethernet port is located on the unit s front panel This port is used for the unit s connection to a host or Ethernet network as follows e For normal operation use a standard straight through Ethernet cable to connect the unit to vour Modbus TCP network e For initial configuration or for troubleshooting purposes vou mav connect the unit directiv to a PC In this case use a crossover Ethernet cable to connect the unit to vour PC s Ethernet connector The unit s Link LED will light up to indicate a live Ethernet connection For advanced models MB 3170 MB3170I MB3270 and MB32701 two Ethernet ports are provided One port can be used to connect to the network and the other port can be used to connect to another Ethernet device Installing the Software The Windows management utilitv is installed from the Document and Software CD Follow the onscreen instructions after inserting the CD For
28. additional details please refer to Chapter 9 Mounting the Unit The unit can be placed on a desktop mounted on the wall or mounted on a DIN rail The MB3180 MB3280 and MB3480 require optional attachments for DIN rail mounting For additional details please refer to the hardware reference chapter for vour model 2 3 3 Hardware MB3180 This chapter provides hardware information for the MGate MB3180 The following topics are covered Panel Lavout LED Indicators Dimensions Jumpers Pin Assignments gt DBO Male DIN Rail Wall Mounting Specifications DOODODO DO DO MGate MB3000 User s Manual Hardware MB3180 Panel Lavout LED Indicators Rear Panel View MA E R 145 10 100M Ethernet port LI Reset button Power input O Top Panel View 10 100M eco 1248VDC RESET hemet DIN rail kit screw hole Modbus Elhemel Serial Gateway N Wallmount screw hole ready Bhemet O rite MOXA Port 1 R 232 422 485 Male DB9 serial port Name Color Function Steady on Power is on and unit is booting up Red Blinking Indicates an IP conflict or DHCP or BOOTP server is not responding properly ro Steady on Power is on and unit is functioning normally a Blinking Unit is responding to software Locate function Off Power is off or power error condition exists Orange 10 Mbps Ethernet connection Ethernet Green 100 Mbps Ether
29. ave 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 Modifv to apply this definition This last step is not necessary for Specified TCP Port For example 1f you want all requests from 192 168 32 161 to be considered a priority request you would follow these steps 1 Enable Specified Masters 2 Enter 192 168 32 161 as the IP 3 Click Add Modify Accessible IP The MGate MB3000 uses an IP address based filtering method to control access to itself The Accessible IP List function allows you to add or block remote host IP addresses to prevent unauthorized access Access to the MGate MB3000 is controlled by IP address That is if a host s IP address is in the accessible IP table then the host will be allowed to access the MGate MB3000 The following descriptions illustrate how to configure the accessibility parameters e Only one host with a specific IP address can access the MGate MB3000 Enter IP address 255 255 255 255 e g 192 168 1 1 255 255 255 255 and activate the item by selecting the checkbox e Hosts on a specific subnet can access the MGate MB3000 Enter IP address 255 255 255 0 e
30. cators Name Color Function Steady on Power is on and unit is booting up Red Blinking Indicates an IP conflict or DHCP or BOOTP server is not responding properly Ready Steady on Power is on and unit is functioning normally en Blinking Unit is responding to software Locate function Off Power is off or power error condition exists Orange 10 Mbps Ethernet connection Ethernet Green 100 Mbps Ethernet connection Off Ethernet cable is disconnected or has a short Orange Serial port is receiving data PI and P2 Green Serial port is transmitting data Off Se is being transmitted or received through the serial 4 2 MGate MB3000 User s Manual Hardware MB3280 Dimensions 9 DN in GO h V V WIM wn Li2 48 we ie PA fel c 2 19 in 50 5 mm 1 99 in 43 mm 1 69 i ES 55 5 mmi Ab mfo 38 Im Modbus Ethemet Serial Gateway y 0 80 mm 3 15 in 111 mm 4 37 in MOXA 21 3 mm 0 8 in Porti Port2 BS 232 422 485 BiS 232 422 485 43 3 mm 1 34 mm 1 34 in ST 1 70 in 77 mm 3 03 in 88 mm 3 46 in 100 mm 3 94 in 4 3 MGate MB3000 User s Manual Hardware MB3280 Jumpers 00000 o0o000 00000 0000 To add a 120 Q termination resistor set switch 3 on the port s assigned DIP switch to ON set switch 3 to OFF the default setting to disable the termination resisto
31. cify by IP Address U Modifying the Configuration Configure Serial Port for RTU or ASCII Master or Slave Configure IP Address and Other Network Settings Configure Serial Communication Parameters Set up Slave ID Mapping Smart Routing Customize Modbus Settings Set Up Priority Control Accessible IP Miscellaneous LI Verifying the Location of the Unit U Monitoring Modbus Activity gt Open Traffic Monitor Window gt Filter Traffic Information gt Save Log to File U Upgrading Firmware VVVVVV VV MGate MB3000 User s Manual Configuring the Modbus Gatewav Installing the Software The following instructions explain how to install MGate Manager a utilitv for configuring and monitoring MGate MB3000 units over the network 1 Insert the Document and Software CD into the CD ROM drive Locate and run the following setup program to begin the installation process MGM_Setup_ Version _Build_ DateTime exe The latest version might be named MGM_Setup_Ver1 1 0_Build_xxxxxxxx exe for example 2 You will be greeted by the Welcome window Click Next to continue 3 When the Select Destination Location window appears click Next to continue You may change the destination directory by first clicking on Browse 9 2 MGate MB3000 User s Manual Configuring the Modbus Gatewav 4 When the Select Additional Tasks window appears click Next to continue You may select Create a desktop icon if you would like a shortcut to MGate Manag
32. ck RS 422 RS 485 U Power Input Relay Output MGate MB3000 User s Manual Pin Assignments DB9 Male The MGate MB3000 uses DB9 male serial ports to connect Modbus RTU or ASCII devices Each port supports three serial interfaces RS 232 RS 422 and RS 485 both 2 and 4 wire 1 5 o A d 6 9 A RS 422 Pin RS 232 RS 485 4W RS 485 2W 1 DCD TxD 2 RxD TxD ae 3 TxD RxD Data 4 DTR RxD Data 5 GND GND GND 6 DSR 7 RTS 8 CTS MB3170 MB31701 7 5 RS 232 DCD RxD TxD DTR GND DSR RTS CTS JNIA JAIS IN a 10 2 MGate MB3000 User s Manual Pin Assignments Terminal Block RS 422 RS 485 The MB3170 and MB31701 have a terminal block connector for RS 422 and RS 485 signals T 2 Se 4 5 Pin FSE RS 485 2W 1 TxD 2 TxD 3 RxD Data 4 RxD Data 5 GND GND Power Input Relay Output dee 23 Li ESS Sp Ss Se B rh V2 V2 rt Vi VI Shielded DC Power DC Power Relay Relay DC Power DC Power Ground Input 1 Input 1 Output Output Input 2 Input 2 10 3 11 Case Studies We discuss the following topics in this chapter Introduction Replace Serial Masters with Ethernet Master s Slave IDs are Configurable Replace Serial Masters with Ethernet Master s Slave IDs are Fixed
33. d through the serial port 5 2 MGate MB3000 User s Manual Hardware MB3480 Dimensions aa AM 2 3 2 mm A Y We GE 10 1004 4 0 13 in Lem Wm Se E S Es coon NS O oO EE E Mc us Et 1 Ser ateway ai jodbus Ethemet Sertal Base a Be a I A ES e m 158 mm 6 22 in jat 169 mm 6 67 in al 181 mm 7 14 in 5 3 MGate MB3000 User s Manual Hardware MB3480 Jumpers SWI for Port 1 SW2 for Port 2 SW3 for Port 3 SW4 for Port 4 i l To add a 120 Q termination resistor set switch 3 on the port s assigned DIP switch to ON set switch 3 to OFF the default setting to disable the termination resistor To set the pull high low resistors to 150 KO 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 KO set switches 1 and 2 on the port s assigned DIP switch to ON ATTENTION Do not use the 1 KO pull high low setting on the MGate MB3000 when using the RS 232 interface Doing so will degrade the RS 232 signals and reduce the effective communication distance 5 4 MGate MB3000 User s Manual Hardware MB3480 Pin Assignments DB9 Male The MGate MB3000 uses DB9 male serial ports to connect Modbus RTU or ASCII devices Each port su
34. ding registers Read holding registers Read holding registers Read holding registers gt Next page gt MGate MB3000 User s Manual Configuring the Modbus Gatewav Upgrading Firmware Firmware updates for the MGate MB3000 are located at www moxa com After vou have downloaded the new firmware onto vour PC vou can use MGate Manager to write it onto vour MGate MB3000 Select the desired unit from the list in MGate Manager and click Upgrade Firmware to begin the process MGate Manager Broadcast Search No MG MB31701 0 MG MB3270_32705 DI Specify by IP Address 02 MGate MB3270 Locate Configuration U Upgrade Firmware A b e MAC Address MGate MB31701 DO IP Address 54 41 192 168 35 115 32 75 192 168 35 116 The dialog boxes will guide you through the process You will need to browse your PC for the firmware file Make sure that it matches your model Upgrade Firmware Firmware for MB3180 Model MAC Address IP Address Status MGate MB3160 00 90 8 0E 86 87 192 168 20 122 Transmit 05 Once the firmware has been successfully written onto the unit click Exit to close the Upgrade Firmware window MGate Manager will automatically execute a Broadcast Search for all MGate MB3000 units on the LAN Your MGate should reappear in the list of units 9 30 10 Pin Assignments We discuss the following topics in this chapter U DB9 Male Q Terminal Blo
35. e O ASCII Master Mode Port 2 RTU Slave Mode ORTU Master Mode ASCII Slave Mode O ASCII Master Mode 9 10 ProCOM Enable Port 3 RTU Slave Mode ORTU Master Mode O ASCII Slave Mode O ASCII Master Mode Port 5 RTU Slave Mode ORTU Master Mode O ASCII Slave Mode O ASCII Master Mode Port 4 RTU Slave Mode ORTU Master Mode OASCII Slave Mode O ASCII Master Mode Port 6 RTU Slave Mode ORTU Master Mode O ASCII Slave Mode O ASCII Master Mode MGate MB3000 User s Manual Configuring the Modbus Gatewav What is ProCOM ProCOM is a Moxa proprietary function that creates virtual serial ports on the MGate MB3000 Series to make Fieldbus gateway communications more versatile This intelligent Fieldbus gateway mimics the behavior of a native serial port when transmitting data to the desired destination PCs can use ProCOM to communicate over the Ethernet with serial devices connected to the MGate MB3000 as if they were connected to the PC s native COM ports This advanced feature only works with the MGate MB3x70 Series How to Configure ProCOM for the MGate MB3000 If your system uses remote PCs that only support COM port behavior to control remote Modbus devices then ProCOM is the best solution for your system Before using ProCOM your PC needs to create virtual COM ports that connect to a specific ProCOM over an Ethernet network By using ProCOM the MGate MB 3000 will treat your PC s COM port as if i
36. e driver will forward your request to the MGate MB3000 and then the MGate MB3000 will forward the request to the target Modbus device using the pre set Modbus device mode and Slave ID For example the Modbus request from ProCOM can be redirected to a Modbus RTU ASCII device that is behind the MGate MB3000 s serial interface or to a Modbus TCP device through the MGate MB3000 s Ethernet port In addition it can be redirected to another ProCOM port on the MGate MB3000 9 12 MGate MB3000 User s Manual Configuring the Modbus Gatewav If vou would like to change the COM port numbers double click on the items as follows ProCOM Mapping No Model Protocol IP Address COM MB3270 MODBUS 192 168 35 116 Port 3 ProCOM 4 2 M83270 MODBUS 192 168 35 116 Port 4 ProCOM 6 Remove 1 2 3 MB3270 MODBUS 192 168 35 116 Port 5 ProCOM 7 F MB3270 MODBUS 192 168 35 116 Port 6 ProCOM 8 ProCOM Mapping ProCOM PORT4 6 current in use ze Cancel MGate MB3000 User s Manual Configuring the Modbus Gatewav Configure IP Address and Other Network Settings The Network tab is where the unit s network settings are configured You can modify the Name Network Configuration IP Address Netmask Default Gateway and DNS You may also select a Password to protect the unit from unauthorized access Configuration CA e g 8 Slave ID Map Modbus Priority Control Accessible IP Miscellaneous
37. ed through the serial port T 2 MGate MB3000 User s Manual Hardware MB3270 MB32701 Dimensions 29 mm 1 14 in 14 5 mm 0 57 in 14 5 mm 0 57 in 89 2 mm 3 51 in 69 5 mm 2 74 in 124 5 mm 4 9 in 118 5 mm 4 67 in 20 mm 0 79 in 20 6 mm 29 91 mm 0 81 in 1 18 in 1 02in 1 38 in 7 3 MGate MB3000 User s Manual Hardware MB3270 MB32701 Jumpers SW2 SW The DIP switches are located beneath the DIP switch panel on the side of the unit To add a 120 Q termination resistor set switch 3 on the port s assigned DIP switch to ON set switch 3 to OFF the default setting to disable the termination resistor To set the pull high low resistors to 150 KO 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 KO set switches 1 and 2 on the port s assigned DIP switch to ON Switch 4 on the port s assigned DIP switch is reserved ATTENTION Do not use the 1 KQ pull high low setting on the MGate MB3000 when using the RS 232 interface Doing so will degrade the RS 232 signals and reduce the effective communication distance 7 4 MGate MB3000 User s Manual Hardware MB3270 MB32701 Pin Assignments DB9 Male The MGate MB3000 uses DB9 male serial ports to connect Modbus RTU or ASCII devices Each port supports three serial interfaces RS 232 RS 422 and RS 485 both 2 and 4 wi
38. er on your desktop 5 Click Next to start copying the software files 6 A progress bar will appear The procedure should take only a few seconds to complete 9 3 MGate MB3000 User s Manual Configuring the Modbus Gatewav 7 A message will indicate that MGate Manager is successfully installed You may choose to run it immediatelv bv selecting Launch MGate Manager 8 You may also open MGate Manager through Start gt Programs gt MGate Manager gt MGate Manager as shown below 9 4 MGate MB3000 User s Manual Configuring the Modbus Gatewav Starting MGate Manager MGate Manager is a Windows based utilitv that is used to configure the MGate MB3000 Before running MGate Manager make sure that your PC and the MGate MB3000 are connected to the same network Alternativelv the MGate MB3000 mav be connected directiv to the PC for configuration purposes Please refer to Chapter 2 for more details You may open MGate Manager from the Windows Start menu by clicking Start gt Programs gt MGate Manager gt MGate Manager The MGate Manager window should appear as shown below Y MGate Manager Broadcast Search E MAC Address IP Address Specify by IP Address ProCOM Mapping i Change Language Setting If you wish to run MGate Manager in a different language you may click Language to change the language setting A dialog box showing the available languages should appear as shown below Language
39. et 1 Link Down C Enable Ethernet 2 Link Down C Enable Console Settings Reset Button Protect C Enable Telnet Console Enable Web Console Enable 9 24 MGate MB3000 User s Manual Configuring the Modbus Gatewav Z MGate MB3270 Web Console Microsoft Internet Explorer File Edit B wx 7 Q EN E Le ja Search Sie Favorites View Favorites Tools Help PEF BR Address http 192 168 35 115 Model MGate MB3270 Name MG MB327 Main Menu H Overview Basic Settings Advanced Settings Model Name Serial NO Welcome to MGate MB3270 web console www moxa com MAC Address 00 90 E8 12 E3 7D Firmware 2 0 Build 09101913 MGate MB3270 Maintenance Settings Serial No 28 Restart l l Firmware version 2 0 Build 09101913 Ethernet IP address 192 168 35 115 goahead WEBSERVER Best viewed with IE 5 above at Ethernet MAC address 00 90 E8 12 E3 7D resolution 1024 x 768 ATTENTION Currently the MGate MB3180 does not The MGate MB3180 3280 3480 do not have relay outputs and consequently do not support Auto Relay Warning Verifying the Location of the support Web Console Unit If you are managing multiple MGate units you may wonder if you are configuring the correct unit in MGate Manager You can select a unit in MGate Manager and click Locate to make that unit s Ready LED blink for a few seconds This will tell you which phys
40. fault setting To set the pull high low resistors to 1 KO set switches 1 and 2 to ON Switch 4 on the port s assigned DIP switch is reserved ATTENTION Do not use the 1 KQ pull high low setting on the MGate MB3000 when using the RS 232 interface Doing so will degrade the RS 232 signals and reduce the effective communication distance 6 4 MGate MB3000 User s Manual Hardware MB3170 MB31701 Pin Assignments DB9 Male The MGate MB3170 and MB31701 use a DB9 male serial port for RS 232 connections to Modbus RTU or ASCII devices 1 5 0 ol 6 9 Pin RS 232 1 DCD 2 RxD 3 TxD 4 DTR 5 GND 6 DSR 7 RTS 8 CTS Terminal Block RS 422 RS 485 The MGate MB3170 and MB3170I use a terminal block connector for RS 422 and RS 485 connections to Modbus RTU or ASCII devices Pin en RS 485 2W 1 TxD m 2 TxD 3 RxD Data 4 RxD Data 5 GND GND 6 5 MGate MB3000 User s Manual Hardware MB3170 MB31701 Power Input Relav Output V2 V2 Se Vi V1 Shielded DC Power DC Power Relay Relay DC Power DC Power Ground Input 1 Input 1 Output Output Input 2 Input 2 DIN Rail Wall Mounting There are two sliders on the back of the unit for DIN rail and wall mounting Mounting on a DIN rail Pull out the bottom slider latch the unit onto the DIN rail and push the slider back in
41. g 192 168 1 0 255 255 255 07 and activate the item by selecting the checkbox e Any host can access the MGate MB3000 9 22 MGate MB3000 User s Manual Configuring the Modbus Gatewav Disable this function by clearing the Enable the accessible IP list checkbox Configuration Cancel Non Accessible Mode Network Serial Slave ID Map Modbus Priority Control Accessible IP Miscellaneous Enable the Accessible IP list IP address HD Active 192 168 35 112 255 255 255 Netmask Modify Double click item to activate unactivate Remove IP address 192 168 35 111 192 168 35 112 192 168 35 113 No Active 01 a piii 03 Netmask 255 255 255 255 255 255 255 0 9 23 MGate MB3000 User s Manual Configuring the Modbus Gatewav Miscellaneous Setup This page identifies options that were not mentioned previously Auto Relay Warning Reset Button Protect Web Console and Telnet Console Auto Relay Warning will be triggered in the event of a power failure or when Ethernet links are disconnected When a checked trigger condition occurs the EIP3000 will open the circuit of the relay output and trigger the Fault LED to start blinking Otherwise the EIP3000 will short circuit the relay output Configuration Relay Output Relay Output J 3 1 p J Power Failure C Enable Close Auto Relay Warning Ethern
42. gned a unique ID between 1 and 247 Whenever a master makes a request the request must include the ID of the intended recipient Master devices themselves have no ID 0 l 247 248 255 Broadcast address Slave individual address Reserved MGate MB3000 User s Manual Modbus Overview Communication is bv 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 N request gt 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 D request gt T Broadcast The master sends a broadcast command such as a reset command Everv slave on the network complies with the command and no response is sent to the master 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 maste
43. holding registers 0x03 01 03 00 00 00 1E C5 C2 Read holding registers gt 1 1 1 1 1 1 1 1 1 1 1 1 d Porti gt 1 0x03 01 03 00 00 00 1E C5 C2 Read holding registers 1 1 1 1 1 1 1 1 1 1 1 1 9 26 MGate MB3000 User s Manual Configuring the Modbus Gatewav Open Traffic Monitor Window Select the unit that vou wish to monitor and click Monitor to open the Traffic Monitor window Y HGate Manager Broadcast Search No MAC Address gt MG MB3170L 0 MGate MB31701 00 90 E8 32 54 Specify by IP Address 02 MG MB3270_32705 MGate MB3270 00 90 E8 00 32 75 192 168 35 116 Locate Configuration Upgrade Firmware ProCOM Mapping In the Traffic Monitor window click Start to begin live monitoring of the data passing through the selected MGate MB3000 unit Traffic Monitor MGate MB3270 192 168 35 116 O Exception only O Slave ID only O Source only Function code only A 7 Filter info No Src amp Dst Type Slav Function Code Comment Next page 9 27 MGate MB3000 User s Manual Configuring the Modbus Gatewav To stop capturing the log press the Stop button Traffic Monitor MGate MB3270 192 168 35 116 Src amp Dst 192 168 35 130 2601 lt Port1 gt Porti lt 192 168 35 130 2601 gt 192 168 35 130 2601 lt Porti gt Porti lt 192 168 35 130 2601 gt 192 168 35 130 2601 lt Portl 2 Porti lt 192 1
44. holding registers Porti gt 0x03 01 03 00 00 00 1E C5 C2 Read holding registers Porti lt 0x03 01 03 3C 00 00 00 00 00 00 00 Read holding registers 192 168 33 34 1655 gt 0x03 19 00 00 00 00 3F 01 03 3C 00 Read holding registers 192 168 33 34 1655 lt 0x03 14 00 00 00 00 06 01 030000 Read holding registers Porti gt 0x03 01 03 00 00 00 1E C5 C2 Read holding registers Port1 lt 0x03 01 03 3C 00 00 00 00 00 00 00 Read holding registers 192 168 33 34 1655 gt 0x03 14 00 00 00 00 SF 01 03 3C 00 Read holding registers 192 168 33 34 1655 lt 0x03 18 00 00 00 00 06 01 0300000 Read holding registers Porti lt 192 168 33 34 1655 gt 192 168 33 34 1655 lt Portl 2 Port1 lt 192 168 33 34 1655 gt 192 168 33 34 1655 lt Portl 2 Porti lt 192 168 33 34 1655 gt 192 168 33 34 1655 lt Port1 gt 0x03 01 03 3C 00 00 00 00 00 00 00 Read holding registers 0x03 18 00 00 00 00 3F 01 03 3C 00 Read holding registers 0x03 1C 00 00 00 00 06 01 030000 Read holding registers 0x03 01 03 00 00 00 1E C5 C2 Read holding registers 0x03 01 03 3C 00 00 00 00 00 00 00 Read holding registers 0x03 1C 00 00 00 00 3F01033C00 Read holding registers 0x03 1D 00 00 00 00 06 01 03 00 00 Read holding registers 0x03 01 03 00 00 00 1E C5 C2 Read holding registers 0x03 01 03 3C 00 00 0000 00 00 00 Read holding registers 0x03 1D 00 00 00 00 3F 01 03 3C 00 Read holding registers 0x03 1E 00 00 00 00 06 01 0300 000 Read
45. hoot Modbus communication problems by tracking items such as connection status and address translation errors 1 2 MGate MB3000 User s Manual Hardware Reference MB3270 MB32701 Package Checklist All models in the MGate MB3000 line are shipped with the following items Standard Accessories 1 MGate MB3000 Modbus gatewav Document amp software CD Quick Installation Guide Power adaptor MB3180 only Product warrantv statement Optional Accessories DK 35A DIN rail mounting kit 35 mm DR 4524 45W 2A DIN rail 24 VDC power supplv with universal 85 to 264 VAC input DR 75 24 75W 3 2A DIN rail 24 VDC power supplv with universal 85 to 264 VAC input DR 120 24 120W 5A DIN rail 24 VDC power supply with 88 to 132 VAC 176 to 264 VAC input bv switch NOTE Notifv vour sales representative if anv of the above items is missing or damaged Product Features Integration of Modbus TCP and Modbus RTU ASCH networks Up to 31 Modbus RTU ASCII slaves per serial port Up to 32 Modbus TCP connections with Modbus RTU ASCII masters Configuration over Ethernet with easy to use Windows utility 10 100M Fast Ethernet with automatic IP setting DHCP Software selectable RS 232 485 422 communication High speed serial interface supporting 921 6 Kbps Up to 16 Modbus TCP masters for Modbus RTU ASCT slaves Automatic slave ID routing on 2 and 4 port models ProCOM Virtual Serial Port for flexible Modbus to Modbus TCP communication 1 3 2 Ge
46. ical unit corresponds with the unit that you selected Y MGate Manager No Name MG MB31701_0 02 MG MB3270_32705 Broadcast Search Specify by IP Address ke w A Configuration Upgrade Firmware ProCOM Mapping Monitor lt MAC Address 00 90 E 54 41 00 90 E8 00 32 75 IP Address 192 168 35 115 192 168 35 116 MGate MB31701 MGate MB3270 Load Default 9 25 MGate MB3000 User s Manual Configuring the Modbus Gatewav Monitoring Modbus Activity For troubleshooting or management purposes vou can monitor the data passing through anv MGate MB3000 on the network Data events will be logged as thev pass through the gatewav Rather than simplv echoing the data MGate Manager presents the data in an intelligent easilv understood 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 Traffic Monitor MGate MB3270 192 168 35 115 Src amp Dst Slav Function Code Data Comment 192 168 33 34 1655 lt 0x03 18 00 00 00 00 06 01 0300000 Read holding registers Porti gt 0x03 01 03 00 00 00 1E C5 C2 Read holding registers Port1 lt 0x03 01 03 3C 00 00 00 00 00 00 00 Read holding registers 192 168 33 34 1655 gt 0x03 18 00 00 00 00 3F 01 03 3C 00 Read holding registers 192 168 33 34 1655 lt 0x03 19 00 00 00 00 06 01 0300 000 Read
47. iguration Y HGate Manager Model MAC Address IP Address MG MB3270_32705 MGate MB3270 00 90 E8 00 32 75 192 168 35 116 Locate Configuration Upgrade Firmware ProCOM Mapping Monitor L Language Export Import Load Default 9 8 MGate MB3000 User s Manual Configuring the Modbus Gatewav A ATTENTION If Search bv IP Address fails to locate the MGate MB3000 the IP address that vou entered might be incorrect Trv doing the search again and re entering the IP address carefullv Another possibility is that the MGate MB3000 is located on the same LAN as your PC but on a different subnet In this case you can modify your PC s IP address and or netmask so that it is on the same subnet as the MGate MB3000 After your PC and the MGate MB3000 are on the same subnet MGate Manager should be able to find the unit Modifving the Configuration Once your unit is displayed in MGate Manager select it by clicking on it The Configuration button will become available Click Configuration to open the configuration window Y HGate Manager Broadcast Search No MG MB3170L 0 MGate MB31701 Specify by IP Address 92 MG MB3270_32705 MGate MB3270 Locate Configuration U LS SC Upgrade Firmware ProCOM Mapping lt Load Default 9 9 MGate MB3000 User s Manual Configuring the Modbus Gatewav Configure Serial Port for RTU or ASCII Master or Slave The Mode tab is where each serial port s operation
48. ination and the offset value The offset value is used to convert the virtual ID to the actual ID Setting Value Notes This specifies the difference between the This specifies the range of IDs that will be routed to the selected set of slave devices numeric range from For example you can specify that IDs 1 to 254 between 8 and 24 be routed to the devices on Port 3 The ID 255 is reserved for the gateway itself Virtual Slaves ID Range virtual slave ID and the actual slave ID Ifa number between slave s virtual ID is 16 and the actual ID is 253 and 253 5 you would set the offset to 11 This offset is applied to the entire range 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 9 18 MGate MB3000 User s Manual Configuring the Modbus Gatewav Slave ID Map Example Suppose vou 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
49. l interfaces In some situations it may be necessary for the gateway to return an exception in response to a request from a Modbus TCP master This is enabled or disabled with the Modbus TCP Exception setting When enabled the unit can return two types of exception Exception Conditions l There is no response from the slave Mavbe the device is off line Timeout or the 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 9 19 MGate MB3000 User s Manual Configuring the Modbus Gatewav Slave Channel and 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 please 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 MB3000 the Response Time out field is used to configure how long the gateway will wait for a resp
50. le to connect a serial device to the unit Plug one end of the cable into the port on the unit s back panel and plug the other end of the cable into the device s serial port You may make your own customized serial cable to connect a serial device to the unit For the pin assignments of the unit s serial port please refer to Chapter 10 This information can then be used to construct your own serial cable If you are connecting a RS 485 multidrop network with multiple devices please note the following All devices that are connected to a single serial port must use the same protocol i e either Modbus RTU or Modbus ASCII Each master device must get its own port on the unit If you are connecting a network with both master and slave devices the master must be connected on a separate port from the slaves Furthermore the master will only be able to communicate to Modbus TCP slaves not to the ASCII or RTU slaves that are connected on a different serial port For serial port pin assignments please refer to the hardware reference chapter for your model 2 2 MGate MB3000 User s Manual Getting Started 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 correctiv so that the electrical signal is not corrupted For each serial port DI
51. nancnnoconoconocnnonnnonnnonn cnn non nan non nn cone cn neon nc on nc rociera nrnnnnnos 4 5 ere EE 4 6 Hardware Ms aber a d 5 1 P nel Layouten no enoet ii e isis 5 2 LED Indicators seo stilo tod rip ipods 5 2 DIMENSIONS EE 5 3 JUMPE S i a a aa nia 5 4 Pin ASSIPNMCNIS EE 5 5 DBO Mali tA 5 5 DIN Rail Wall Mounting ooooocconcconnnonnonnnonnconoconoconocnnoonnornnoonnrnn cra non roca canon nncn neon neon nc ios 5 6 Kee ifa tap EFA sous ps EEE sap binnen E EEE 5 7 Hardware MB3170 MB31701 sssnnnnnnnnzznnnnnnnnnnnnnenzznznnnnnnnnnnnemnnnnnnnnnz 6 1 Panel LOU EE 6 2 LEDO nos NEE da 6 2 DIMENSIONS nigra ei 6 3 MP da ee a ee id et e ode 6 4 Pin Sege oia aiii deprisa 6 5 O tee ace A AO 6 5 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Terminal Block RS 422 RS AND 6 5 Power Input Relay Output 6 6 DIN Rat Wall Mounting mm nnnnennnennnnnnnnnnnnnnnsnnnnnnnnnnnnnnnnannnznnnnnnzznnzznnzznn nn 6 6 Spe ifi atiotiss ss O 6 7 Hardware MB3270 MB32701 sssennnnnnenzznnnnnnnnnnnnnnnnzzznnnnnnnnnnnemnznnnnnnnnz 7 1 Panel La Ut rain 7 2 LED Indicators er Hua Rev e du das bue ees 7 2 RI EE 7 3 Lou A a ea 7 4 Pin Assisnments aci il 7 5 DBO Male iii a pe 7 5 Power Input Relay Output sssrin e ta e aI aR Enas 7 5 DIN Rail Wall Mounting ee nrs o an eE e aaa N S EE TE 7 6 SPECHICAHONS is kiser i pea e E RE Saeed ET E E oe 7 7 Typical Application Ss ea 8 1 Ethernet Masters with Multiple
52. net connection Off Ethernet cable is disconnected or has a short Orange Serial port is receiving data PI Tx Rx Green Serial port is transmitting data Off No SC is being transmitted or received through the serial port MGate MB3000 User s Manual Hardware MB3180 Dimensions 10 100M 12 48 VDC RESET MB3180 Modbus Ethernet Serial Gateway 80 mm 3 15 in 25 mm 0 98 in ready ew Ethemet 21 3 mm 0 8 in O rime MOXA Port 1 RS 232 422 485 43 3 mm 1 70 in 1 22 0 mm 0 87 in F 52 mm 2 05 in H 63 mm 2 48 in 75 2 mm 2 96 in 3 3 MGate MB3000 User s Manual Hardware MB3180 Jumpers D q Sek a OOO 0000 TAD To set the pull high low resistors to 150 KO leave jumpers JP3 and JP4 open not shorted This 1s the default setting To set the pull high low resistors to 1 KO short jumpers JP3 and JP4 with jumper caps A ATTENTION Do not use the 1 KO pull high low setting on the MGate MB3000 when using the RS 232 interface Doing so will degrade the RS 232 signals and reduce the effective communication distance 3 4 MGate MB3000 User s Manual Hardware MB3180 Pin Assignments DB9 Male The MGate MB3000 uses DB9 male serial ports to connect Modbus RTU or ASCII devices Each port supports three serial interfaces RS 2
53. ng supplied to the power input PWR2 Red Power is being supplied to the power input Steadv on Power is on and unit is booting up Red Blinking Indicates an IP conflict or DHCP or BOOTP server is not responding properly RDY Steady on Power is on and unit is functioning normally roen Blinking Unit is responding to software Locate function Off Power is off or power error condition exists Orange 10 Mbps Ethernet connection Ethernet Green 100 Mbps Ethernet connection Off Ethernet cable is disconnected or has a short Orange Serial port is receiving data PI Green Serial port is transmitting data Off No data is being transmitted or received through the serial port 6 2 MGate MB3000 User s Manual Hardware MB3170 MB31701 Dimensions 29 mm 1 14 in 14 5 mm 0 57 in 89 2 mm 3 51 in TIT 69 5 mm 2 74 in 124 5 mm 4 9 in 118 5 mm 4 67 in 20 6 mm 29 91 mm 0 81 in 1 18 in 90000 25 9 mm 35 mm 1 02 in 1 38 in 6 3 MGate MB3000 User s Manual Hardware MB3170 MB31701 Jumpers SW 1 The DIP switches are located beneath the DIP switch panel on the side of the unit To add a 120 Q termination resistor set switch 3 to ON set switch 3 to OFF the default setting to disable the termination resistor To set the pull high low resistors to 150 KO set switches 1 and 2 to OFF This is the de
54. no nono nnncnn cnn nenn naar cane cn nera recono 9 26 Open Traffic Monitor Window sse nnnesennnnnznnzznnzenzzznnnnnenznznnnznnzznnznnaz nanna 9 27 Filter Traffic Information mem nennnennnnnnnnnn ann nn mnn nr Erosa eik 9 28 Save Logito Pl i a A A e bb an a IB ste IA sa ee dd 9 29 Upgr ding Firm wate sisien i irradia 9 30 Pin Asslgnments sorna dis 10 1 DB9 Malin A oa 10 2 Terminal Block RS 422 RS ANA mem mnnsensnnnenzznnznnnzanzenmennnzennenenennennrosnsnnessnznnzzs 10 3 Power Input Relay Output nenn ern nooo no nn ea r eA onk nnn nanna mnn 10 3 Case Uds isis dt 11 1 Appendix A Appendix B Introducti oNu hg 11 2 Replace Serial Masters with Ethernet Master s Slave IDs are Configurable 11 2 Replace Serial Masters with Ethernet Master s Slave IDs are Fixed ss 11 3 Keep Serial Master and Add Ethernet Master s sssccescceesseceseeeenseceeneeeaeceeneecaeeeneeens 11 3 Integrate Modbus RTU ASCII and TCP at the Same Time sem mnnenennznenenzn 11 4 Modbus Overview E A 1 Introduction iii A Rimini BEIN IE A 1 Devices are Either Masters or Slaves sse ssseeensnnnnzannnnnnzzzznnzazzznnzzzzzznnazazzmnzanzzenazzzznnzzi A 1 Slaves are Identified by ID nee nn en ono ne rn neon E sse E EaI A 1 Communication is by Request and Response ennnnnenzn nono nn enza nanna A 2 Requests Need a Time Limit erni iei ar R A A E A A A 2 Modbus Ethernet vs Modbus Sea A 3 Integrate
55. of each screw 6 5 mm or less in diameter and the shaft should be 3 mm or less in diameter Make sure to leave about 2 mm of space between the head and the wall eee gr men Bee 8 TS 7 8 cm MGate MB3000 User s Manual Hardware MB3280 Specifications LAN Ethernet Protection Serial Interface Interface No of Ports Connector Tvpe Signals Serial Line Protection RS 485 Data Direction 10 100 Mbps RJ45 Auto MDI MDIX Built in 1 5 KV magnetic isolation RS 232 422 485 2 ports DB9 male RS 232 TxD RxD RTS CTS DTR DSR DCD GND RS 422 Tx Tx Rx Rx GND RS 485 2 wire Data Data GND RS 485 4 wire Tx Tx Rx Rx GND 15 KV ESD for all signals Patented ADDC Serial Communication Parameters Parity Data Bits Stop Bits Flow Control Transmission Speed Software Features Operation Mode Utilities Multi Masters and Multi Request Power Requirements Power Input Power Socket Power Consumption Environment Operating Temperature Storage Temperature Warranty Period None Even Odd Space Mark 7 8 1 2 RTS CTS XON XOFF 50 bps to 921 6 Kbps RTU Slave RTU Master ASCII Slave ASCII Master MGate Manager 16 simultaneous TCP masters 32 simultaneous requests for each TCP master 250 mA 12 VDC 90 mA 48 VDC Power jack and terminal block 250 mA max 0 to 55 C 32 to 13 1 F 5 to 95 RH 20 to 85 C 4 to 185 F 5 to 95 RH
56. onse causing communication problems With the MGate MB3000 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 that is on a different Modbus network a master would address the request to the appropriate virtual slave ID The MGate then routes that request as specified by the slave ID map 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 network this time addressed to the device s actual slave ID Virtual slave IDs must not conflict with each other or with other TCP slave IDs 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 With the slave ID map 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 whole system How Slave ID Map is Defined The slave ID map consists of entries channels that specify a range of virtual IDs the dest
57. onse from a Modbus ASCII or RTU slave This field is set independently for each serial port which is selected through the Slave Channel field Please refer to your device manufacturer s documentation to manually set the response time out The MGate MB3000 also provides automatic calibration of 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 for best performance Configuration Response eh Slaves Channel Response Time out Detected Mode Network Serial Slave ID Map Modbus Priority Control Accessible IP Miscellaneous Initial Delay 0 0 30000 ms Modbus TCP Exception B Disable O Enable Response Time out Slaves Channel Port 1 O Port 2 O TCP Procom Response Time out 1000 10 120000 ms Response Time out Detected Auto Detection Slaves Channel Virtual Slave ID 9 20 MGate MB3000 User s Manual Configuring the Modbus Gatewav ATTENTION Please note the following regarding automatic calibration of response timeouts When automaticallv detecting the response timeout the MGate will use the slave ID map to determine which ports and which IDs to search Make sure that vou have defined the slave ID map for your system before clicking Auto Detection The automatic calibration will take some time to complete We
58. pports three serial interfaces RS 232 RS 422 and RS 485 both 2 and 4 wire 1 5 Ee 6 9 5 RS 422 Pin RS 232 RS 485 4W RS 485 2W 1 DCD TxD 2 RxD TxD 3 TxD RxD Data 4 DTR RxD Data 5 GND GND GND 6 DSR 7 RTS 8 CTS MGate MB3000 User s Manual Hardware MB3480 DIN Rail Wall Mounting Mounting on a DIN rail Xou will first need to attach the mounting plates included to the unit Attach the DIN rail accessories to the mounting plates and latch the unit onto the DIN rail as shown The DIN rail kit is ordered separatelv l Mounting on the wall Xou will first need to attach the mounting plates to the unit Place four screws in the wall and slide the unit onto the screws as shown A 4mm el 0 16 9 cm 2 5 cm The head of each screw should be 6 mm or less in diameter and the shaft should be 3 mm or less in diameter Make sure to leave about 5 mm of space between the head and the wall 5 6 MGate MB3000 User s Manual Hardware MB3480 Specifications LAN Ethernet Protection Serial Interface Interface No of Ports Connector Tvpe Signals Serial Line Protection RS 485 Data Direction 10 100 Mbps RJ45 Auto MDI MDIX Built in 1 5 KV magnetic isolation RS 232 422 485 4 ports DB
59. r To set the pull high low resistors to 150 KO 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 KO set switches 1 and 2 on the port s assigned DIP switch to ON Switch 4 on the port s assigned DIP switch is reserved ATTENTION Do not use the 1 KO pull high low setting on the MGate MB3000 when using the RS 232 interface Doing so will degrade the RS 232 signals and reduce the effective communication distance 4 4 MGate MB3000 User s Manual Hardware MB3280 Pin Assignments DB9 Male The MGate MB3000 uses DB9 male serial ports to connect Modbus RTU or ASCII devices Each port supports three serial interfaces RS 232 RS 422 and RS 485 both 2 and 4 wire 1 5 desch 6 9 z RS 422 Pin RS 232 RS 485 4W RS 485 2W 1 DCD TxD 2 RxD TxD 3 TxD RxD Data 4 DTR RxD Data 5 GND GND GND 6 DSR 7 RTS 8 CTS DIN Rail Wall Mounting Mounting on a DIN rail Attach the DIN rail accessories and latch the unit onto the DIN rail as shown The DIN rail kit is ordered separately IA pwe en of e Y A gt LA La ES Mounting on the wall Place two screws in the wall and slide the unit onto the screws as shown The head
60. re 1 5 0 ol 6 9 A RS 422 Pin RS 232 RS 485 4W RS 485 2W 1 DCD TxD 2 RxD TxD 3 TxD RxD Data 4 DTR RxD Data 5 GND GND GND 6 DSR 7 RTS 8 CTS Power Input Relay Output ESS em 23 Zi a chy V2 V2 Se Vl VI Shielded DC Power DC Power Relay Relay DC Power DC Power Ground Input 1 Input 1 Output Output Input 2 Input 2 MGate MB3000 User s Manual Hardware MB3270 MB32701 DIN Rail Wall Mounting There are two sliders on the back of the unit for DIN rail and wall mounting Mounting on a DIN rail Pull out the bottom slider latch the unit onto the DIN rail and push the slider back in Mounting on the wall Pull out both the top and bottom sliders and align the screws accordingly kee 7 6 MGate MB3000 User s Manual Hardware MB3270 MB32701 Specifications LAN Ethernet Protection Serial Interface Interface No of Ports Connector Tvpe Signals Serial Line Protection RS 485 Data Direction 10 100 Mbps RJ45 Auto MDI MDIX Built in 1 5 KV magnetic isolation RS 232 422 485 2 ports DB9 male RS 232 TxD RxD RTS CTS DTR DSR DCD GND RS 422 Tx Tx Rx Rx GND RS 485 2 wire Data Data GND RS 485 4 wire Tx Tx Rx Rx GND 15 KV ESD for all signals Patented ADDCTM Serial Communication Parameters Parity
61. rnet Master s Slave IDs are Fixed Some legacv 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 MB3280 MB3270 or MB3480 can be used to assign virtual slave IDs For more information about virtual slave IDs please refer to Chapter 9 SCADA SCADA SCADA ia sf Virtual ID 1 2 3 S rial per Bam he Serial E Slave En Slave ay Slave Real ID 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 gd Master Serial ar Slave A MGate MB3000 User s Manual Case Studies An advanced multiport MGate model MB 3270 can be inserted into the serial system with the slaves connected to one serial port and the master to another serial port The advanced gateway allows Ethernet masters to communicate with the serial slaves and it also provides a serial redirector function that simultaneously allows the serial master to continue controlling the slaves Ethemet Mas Y e Ethernet Master 2 Master y Master in gd Master Ze Slave e 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
62. rotocol 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 MB3000 A Baudrate 9600 L Y Baudrate 9600 TCP Master or Baudrate 4800 ER Baudrate 4800 Serial Master with Serial Slaves over Internet K a Let Modbus serial devices communicate over the Internet Many Modbus devices communicate over RS 485 which limits the number of devices in a network to 32 and the transmission distance to 1 2 km With the MGate MB3000 Modbus gateway you can link all Modbus devices over an Ethernet network Up to 32 Modbus gateways can be installed in a single control network so each device can now be accessed from anywhere the TCP IP network can reach A Modbus RTU A Master device MB3000 Ethernet MB3000 MB3000 MB3000 RS 485 Ki g e A Slave devices Flow meter Loop controller PLC Drives Power measurement DCS Configuring the Modbus 9 Gateway We discuss the following topics in this chapter U Installing the Software LI Starting MGate Manager gt Change Language Setting U Connecting to the Unit gt Broadcast Search gt Spe
63. rs use a response timeout function to identify when a slave is nonresponsive 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 N A gt b cancelled after SEH f no response MGate MB3000 User s Manual Modbus Overview 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 MB3000 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 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
64. signals Patented ADDC Serial Communication Parameters Parity Data Bits Stop Bits Flow Control Transmission Speed Software Features Operation Mode Utilities Multi Masters and Multi Request Power Requirements Power Input Power Connector Power Consumption Environment Operating Temperature Storage Temperature Warranty Period None Even Odd Space Mark 7 8 1 2 RTS CTS XON XOFF 50 bps to 921 6 Kbps RTU Slave RTU Master ASCII Slave ASCII Master MGate Manager 16 simultaneous TCP masters 32 simultaneous requests for each TCP master 12 to 48 VDC Power jack 200 mA 12 VDC 60 mA 48 VDC 0 to 55 C 32 to 13 1 F 5 to 95 RH 20 to 85 C 4 to 185 F 5 to 95 RH 5 years 3 6 4 Hardware MB3280 This chapter provides hardware information for the MGate MB3280 The following topics are covered Panel Lavout LED Indicators Dimensions Jumpers Pin Assignments gt DBO Male DIN Rail Wall Mounting Specifications DOODODO DO DO MGate MB3000 User s Manual Hardware MB3280 Panel Lavout Rear Panel View Reset button RJ45 10 100M Ethernet port Power input O Top Panel View OCO v vi 10 100 RESET Eihernei Linas voc MB3280 DIN rail kit screw hole Wallmount screw hole Modbus Ethemet Serial Gateway Ready monat or O MOXA Port 1 Port2 R5 242 422 485 R5 292 422 465 Front Panel View Male DB9 serial port LED Indi
65. t were an additional serial port on the MGate MB3000 To enable this function ProCOM mapping must be completed as follows Locate the MGate MB 3000 with the search function and then select the MGate MB3000 device that you want to set ProCOM for and then click ProCOM Mapping to enter the mapping dialog box as illustrated by the following figures HGate Manager Broadcast Search No IP Address 01 MG MB31701 0 MGate MB31701 00 90 E8 32 54 41 192 168 35 115 Specify by IP Address 02 MG MB3270_32705 MGate MB3270 90 E8 00 32 75 192 168 35 116 Locate Configuration Upgrade Firmware A ProCoOM Mapping Gw Ta Language Load Default 9 11 MGate MB3000 User s Manual Configuring the Modbus Gatewav On the ProCOM mapping dialog box you can map up to four ProCOM functions for each Modbus gateway to your PC s COM ports The driver will generate virtaul COM ports on your PC to connect to the selected MGate MB3000s over the network ProCOM Mapping Remote IP Address 7168 35 116 Model MB3270 w Protocol MODBUS No Model Protocol IP Address ProCOM Mapping Remote IP Address 192 168 35 116 Model mB3270 Protocol M Protocol IP Address MB3270 MODBUS 192 168 35 116 Port 3 ProCOM MB3270 MODBUS 192 168 35 116 Port 4 ProCOM MB3270 MODBUS 192 168 35 116 Port 5 ProCOM MB3270 MODBUS 192 168 35 116 Port 6 ProCOM Ce SC This way when you send a Modbus request to ProCOM th
66. the publication Technical Support Contact Information www moxa com support Moxa Americas Moxa China Shanghai office Toll free 1 888 669 2872 Toll free 800 820 5036 Tel 1 714 528 6777 Tel 486 21 5258 9955 Fax 1 714 528 6778 Fax 86 10 6872 3958 Moxa Europe Moxa Asia Pacific Tel 449 89 3 70 03 99 0 Tel 4886 2 8919 1230 Fax 449 89 3 70 03 99 99 Fax 886 2 8919 1231 Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Table of Contents Introductio N i ninia aaron 1 1 OVERVIEW ii is 1 2 Package Checklist 1 3 Prod ct Features nn idad 1 3 Getting Started E 2 1 Co necting ON 2 2 Connecting Serial Devices aere een re eee 2 2 RS 485 Termination and Pull High Low Resistors senza 2 3 Connecting to a Host or the Network AA 2 3 Installing the SoftWare sses ioeie ornes se 582 85 SE 54 SIEG aa Fe ss vues Ir Ep soy DS sbie en 2 3 Mounting the Uni ti aoe EE 2 3 Hardware MB S160 unitaria ki ki ik ia daoia einai 3 1 A i nenne A An oh ja Boe 3 2 DER HEET 3 2 Dimensions a ei 3 3 RN Lou 3 4 Pin eege eegene A A AE Se ch 3 5 DB9 Male E 3 5 DIN Rail Wall Mounting nreo e an e E er aR aE N S oeiee 3 5 Specificato NS enter ET E stestieeoepto Sis 3 6 Hardware MBI2BO cit aka ata b a i G a e a ees 4 1 Panel Latina mans po O EAEAN E aei L na 4 2 LBB HE 4 2 Dimensions A A e it 4 3 AN Lu 4 4 PI ASSIM ala 4 5 IEN EE 4 5 DIN Rail Wall Mounting ooooocconcconnnononono
67. tting Started This chapter provides basic instructions for installing the MGate MB3000 The following topics are covered U Connecting Power U Connecting Serial Devices gt RS 485 Termination and Pull High Low Resistors U Connecting to a Host or the Network U Installing the Software U Mounting the Unit MGate MB3000 User s Manual Getting Started Connecting Power The unit can be powered using the AC adaptor or bv connecting a power source to the terminal block depending on the model The following instructions are for the AC adaptor 1 Oy SOP e Sr GID Plug the connector of the power adapter into the DC IN jack on the back of the unit Plug the power adapter into an electrical outlet Follow these instructions to connect a power source to the terminal block Loosen or remove the screws on the terminal block Connect the 12 48 VDC power line to the terminal block Tighten the connections using the screws on the terminal block Note that the unit does not have an on off switch It automaticallv turns on when it receives power The PWR LED on the top panel will glow to indicate that the unit is receiving power For power terminal block pin assignments please refer to the hardware reference chapter for vour model Connecting Serial Devices The unit s serial port s are located on the back panel There are two options for connecting serial devices depending on the serial interface You may use a DB9 to DB9 cab
68. vices for data collection and control they can rely on the MGate MB3000 Modbus gateway The MGate MB 3000 supports Modbus TCP with up to 16 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 f a Host Modbus TCP Jl PLC es Master devices Ethernet MB3000 RS 485 Modbus RTU Modbus ASCII Slave devices Flow meters Drives Loop controller Power measurement up to 31 devices Serial Masters with Multiple Ethernet Slaves Link a serial master device with Ethernet slave devices Manv HMI Human Machine Interface svstems use a serial interface to connect to a discrete DCS Data Control System However many DCSs are now Ethernet based and operate asa Modbus TCP slave device The MGate MB3000 Modbus gateway can link a serial based HMI to distributed DCSs over an Ethernet network Up to 32 Modbus TCP slave devices are supported by each MGate MB3000 Modbus RTU HMI A g Master devices MB3000 Ethernet Modbus TCP Slave devices up to 32 MGate MB3000 User s Manual Tvpical 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 p
Download Pdf Manuals
Related Search
Related Contents
Recherche en soins infirmiers - Mode d emploi 15MS2744 Q1 Sale Flyer_WEB_Layout 1 For bathtub, shower and tub-shower Pour baignoire prevention - CDG Loire Benutzerhandbuch eANV-Portal Handbook of troubleshooting plastics processes : a practical guide - MEDION USA Fluxient Bicycle Light User Manual Model: 3XU2 Fluxient electric Polti PGNA0001 Use and Care Manual Sink Pump System - Sta-Rite Copyright © All rights reserved.
Failed to retrieve file