background image

3. Setup and Connections 

 

 

 

 

          

 

 

31 

 

 

Figure 37. Serial Port Screen 

c.

 

Description - sets the description for this serial port. Maximum length is 32 
symbols. Allowed characters are symbols from 'A' to 'Z', from 'a' to 'z', numbers 
from '0' to '9' and the space. 

d.

 

Mode – Controls the physical communications mode for the. The Mode can be 
RS-232, RS-422 (4-Wire), RS-485 (2-Wire), or RS-485 (4-Wire).  

e.

 

Baud Rate – Controls the communications speed of the serial port. The Baud Rate 
can be 75, 150, 300, 600, 1200, 2400, 4800, 7200, 9600, 14.4k, 19.2k, 14.4k, 
28.8k, 38.4k, 57.6k, 115.2k, or 230.4k.  

f.

 

Stop Bits – Controls the number of bits to end a character. Choices are 1 or 2. 

g.

 

Parity – Controls the error checking mode. Choices are Odd, Even, Mark, or 
Space.  

h.

 

Save settings by clicking the “Save” button. 

13.

 

Port X Modbus 

a.

 

To access this screen, click the “Next” button or click the “Port X Modbus” Link 
on the left side of the screen. X = The Serial Port Number (1 - 4).  

b.

 

This screen allows you to change the Modbus settings for the port.  

Summary of Contents for MESR424

Page 1: ...1 V Vl li in nx x M ME ES SR R4 42 24 4 4 4 P Po or rt t I In nd du us st tr ri ia al l M Mo od db bu us s G Ga at te ew wa ay y ...

Page 2: ...alway Ireland Phone 353 91 792444 Fax 353 91 792445 Website www bb europe com Revision Two October 2013 2012 B B Electronics Mfg Co Inc No part of this publication may be reproduced or transmitted in any form or by any means electronic or mechanical including photography recording or any information storage and retrieval system without written consent Information in this manual is subject to chang...

Page 3: ...3 Modbus Gateway Setup and Connections 15 Connecting the Power Supply 15 Connecting MESR424 Modbus Gateways to Modbus networks 15 Connecting the MESR424 16 Connecting MESR424 Modbus Gateways to a Network 17 Network Connection 10BaseT 100BaseTX 17 Fiber optic Connection 17 MESR424 Modbus Gateway Configuration Connections 18 Installing Modbus Configuration Manager Software 18 Configuring the MESR424...

Page 4: ...and Serial Slaves 49 Serial Ethernet Masters Serial Ethernet Slaves 53 Serial Masters IP Slaves 55 Serial Masters IP Slaves 58 Serial Masters IP Slaves 59 7 Modbus Help 60 Modbus ASCII RTU Basics 60 Hints and Tips 61 8 Appendices 62 Appendix A Default Gateway Settings 63 Appendix B Product Specifications 64 General Specifications 65 Controls Indicators and Connector Specifications 66 Serial Interf...

Page 5: ... ro od du uc ct ti io on n Thank you for purchasing an MESR424 Modbus Gateway This product has been manufactured to the highest standards of quality and performance to ensure your complete satisfaction Figure 1 MESR424 Modbus Gateways ...

Page 6: ...n external power supply sold separately is required MESR424 Modbus Gateways have an additional Ethernet port which functions much like an Ethernet Switch MESR424 Modbus Gateway Model Numbering MESR424 Modbus Gateways are a growing family of products Models are available with DB9 or Terminal Block connections Network connection options include 10BaseT 100BaseTX copper or several different fiber opt...

Page 7: ...on Auto MDI MDIX LAN and WAN Communications TCP Client or Server operation configurable Firmware Upload for future revisions upgrades Software Support Windows XP 32 64 bit 2003 Server 32 64 bit Vista 32 64 bit 2008 Server 32 64 bit Windows 7 32 64 bit Configuration of Ethernet and serial port settings using Vlinx Manager software Vlinx Manager Configuration Software Vlinx Manager configuration sof...

Page 8: ... and a recessed Mode Reset switch Package Checklist MESR424 Modbus Gateways are shipped with the following items included MESR424 Modbus Gateway Module Quick Start Guide CD with User Manual Quick Start Guide and configuration software MESR424 Modbus Gateway Enclosures and Mounting All MESR424 Modbus Gateway models are built into similar enclosures Modules are DIN rail and panel mountable Figure 2 ...

Page 9: ...affic on the Ethernet link The Ethernet Speed E1 or E2 LED is OFF if the connection is 10BaseT and ON if the Ethernet connections is 100BaseT E1 is used for all models to connect to the network E2 is a pass through Ethernet connector Ready LED The Ready LED green blinks if the system is operating correctly once per second in normal operating conditions or three times per second in reset configurat...

Page 10: ... or received on the serial port Figure 4 Serial Port LEDs Mode Reset Switch A recessed momentary Mode Reset switch is located next to the power ports To activate the switch insert a small plastic tool through the hole in the enclosure and press lightly Figure 5 Mode Reset Switch The Mode Reset switch can be used to Initiate a Hardware Reset Enter Console Mode Reload factory defaults ...

Page 11: ...ted to a standard Ethernet network drop using a straight through RJ45 male Ethernet cable Figure 6 Ethernet Connectors E2 is pass through connection on model shown Fiber Optic Connectors MESR424 Modbus Gateway models using fiber optic network connections use either SC or ST connectors depending on the specific model Figure 7 SC and ST Fiber Optic Cable Connectors ...

Page 12: ...l Number Ethernet Port 1 Ethernet Port 2 Serial Ports MESR424D 10 100 RJ45 10 100 RJ45 RS 232 422 485 DB9 male MESR424D MT 10 100 RJ45 Multi mode ST RS 232 422 485 DB9 male MESR424D SC 10 100 RJ45 Single mode SC RS 232 422 485 DB9 male MESR424T 10 100 RJ45 10 100 RJ45 RS 232 422 485 Terminal Block MESR424T MT 10 100 RJ45 Multi mode ST RS 232 422 485 Terminal Block MESR424T SC 10 100 RJ45 Single mo...

Page 13: ...ay be supplied by terminal block or a barrel jack Figure 10 Power Connection NOTE the terminal block must be used for Class 1 Division 2 applications the barrel jack cannot be used for these applications See page 66 for further information ...

Page 14: ...Mounting Hardware MESR424 Modbus Gateway modules can be panel or DIN rail mounted Mounting hardware is included with each module Figure 11 Mounting clips Figure 12 Mounting clips Figure 13 Panel mount bracket options ...

Page 15: ...rmation Connecting MESR424 Modbus Gateways to Modbus networks MESR424 Modbus Gateways can be configured to connect to Modbus networks using RS 232 RS 422 RS 485 2 wire and RS 485 4 wire RS 232 connections support eight signal lines plus Signal Ground Signals are single ended and referenced to Ground Default communications parameters are 9600 8 N 1 and no flow control implemented RS 422 connections...

Page 16: ...on terminal blocks If you select RS 232 mode when you configure the MESR424 Modbus Gateway you must connect the Modbus serial network to the MESR424 Modbus Gateway via a serial cable The MESR424 Modbus Gateway is a DTE If the Modbus network is a DTE use a null modem cross over cable If the Modbus network is a DCE use a straight through cable DTE and DCT ports are complementary the Output signals o...

Page 17: ...nnection RJ45 connector a standard network cable is connected from the Modbus gateway to a network drop PCs configuring and or communicating with the Modbus gateway are also connected to the network Fiber optic Connection When connecting a MESR424 Modbus Gateway equipped with a fiber optic interface to a fiber optic link the appropriate fiber optic cable must be connected between the Modbus gatewa...

Page 18: ... the CD into your CD ROM drive The software should automatically begin the installation process If AUTO RUN is disabled on your computer open the CD drive and double click on the executable file Choose i386 MESR32 exe for 32 bit Windows or amd64 MESR64 exe for 64 bit Windows a The following screen will be displayed on your computer Figure 17 Modbus Gateway Manager Installation Welcome Screen b Cli...

Page 19: ...User Information Screen d Click Next The Destination Folder Screen will be displayed on your computer The default directory is C Program Files B B Electronics Vlinx Vlinx Modbus Gateway Manager If desired you can select another location by pressing the Browse button Figure 20 Destination Folder Screen e Click Next The Ready to Install Application Screen will be displayed on your computer You can s...

Page 20: ...3 Setup and Connections 20 Figure 21 Ready to Install Application Screen f Click Next The software will begin installing Figure 22 Software Installing Screen ...

Page 21: ...on screen will be displayed containing contact information and release notes Click Next Figure 23 Information Screen h Click Next The Installation Complete screen will be displayed on your computer Click Finish to finish the installation i Figure 24 Installation Complete Screen ...

Page 22: ...ion Manager MESR424 Modbus Gateways can be configured over the network Modbus Configuration manager software running on a PC To open Modbus Configuration Manager 1 From the Desktop click Start Programs B B Electronics Vlinx Vlinx Modbus Gateway Manager An alternate method is to double click the shortcut installed on the desktop 2 Figure 25 Opening Vlinx Modbus Gateway Manager Figure 26 Vlinx Modbu...

Page 23: ...iscover any Modbus Gateways on the network The configuration manager screen will be displayed on your computer All available devices will be listed on the top portion of this screen If you know the IP address you may select The Device is located at this IP address and input the address in the box provided 5 Figure 28 Configuration Manager Screen 6 All Modbus Gateways on the network will be display...

Page 24: ...b This area is used to skip directly to the specific configuration screen you need to access An alternate method of accessing the configuration screens is to use the Next button in area C c This area contains dialog boxes specific the configuration screen 1 Note Any configuration changes you make need to be saved using the Save button d This area contains helpful information about the configuratio...

Page 25: ...gn a unique name to the gateway This allows you to easily identify a particular gateway when multiple devices are used on the same network To change the name type a new name in the The Name of this Modbus Gateway is box The name must be a valid hostname as defined by RFC 952 and RFC 1123 Allowed characters are A to Z a to z 0 to 9 and The symbol cannot be the first or last character The name canno...

Page 26: ...d Connections 26 Figure 31 Changing The Password c Type your new password in the Type the new password box Verify the password by typing it again in the box provided To save the new password click the Save button ...

Page 27: ...ed but the DHCP server is not found the Modbus Gateway will automatically configure IP address 1169 254 255 255 with a subnet mask 255 255 0 0 c To configure your Modbus Gateway without using a DHCP Server uncheck the I want DHCP to setup the network box You will need to know the IP Address Subnet Mask and Default Gateway IP Address field contains static internet protocol address of the Modbus Gat...

Page 28: ...field contains default route to remote networks Figure 33 Network Settings Screen DHCP not Selected d More information about assigning an IP address without using a DHCP Server is contained in the section Configuring the MESR424 Serial Server on Networks without a DHCP Server e Save changes by Clicking the Save button 11 Modbus TCP Settings a To access this screen click the Next Button or click on...

Page 29: ...1 to 65535 3 Save settings by clicking the Save button b TCP Server Settings 1 Listen on Port identifies TCP port to be used by the Modbus Gateway in TCP server mode Valid value range is from 1 to 65535 2 Limit the number of connections to pull down box allows you to control the number of simultaneous TCP clients that can be connected Choices are 1 through 16 3 Connection Filter Mode controls whic...

Page 30: ...imited to 4 IP address ranges c Save settings by clicking the Save button Figure 36 TCP Connection Filter Allow Specific Range of IP Addresses to Connect 12 PORT x Serial Settings a To access this screen click the Next button or click the Port X Serial link on the left side of the screen X The Serial Port number 1 4 b This screen allows you to change the serial port settings ...

Page 31: ...he communications speed of the serial port The Baud Rate can be 75 150 300 600 1200 2400 4800 7200 9600 14 4k 19 2k 14 4k 28 8k 38 4k 57 6k 115 2k or 230 4k f Stop Bits Controls the number of bits to end a character Choices are 1 or 2 g Parity Controls the error checking mode Choices are Odd Even Mark or Space h Save settings by clicking the Save button 13 Port X Modbus a To access this screen cli...

Page 32: ...enable When the Modbus slave device does not respond before the timeout has been reached or has a bad response check sum does not match the 0Bh exception code is transmitted to the Master that initiated the Modbus message g Enable Serial Message Buffering If this option is selected the gateway will buffer up to 32 messages request per port If this option is unselected the gateway will respond with...

Page 33: ...D Remap Screen c The first box in line is the start of the remap range on the serial port you want to remap Valid value range is from 1 to 247 d The second box in line is the last serial port of that range Valid value range is from 1 to 247 e The third box in line is the starting ID of a range to remap to Valid value range is from 1 to 247 f The fourth box in line is auto filled in based on the ra...

Page 34: ...ge is from 1 to 247 e The third box in line is a port or IP address which has slave devices attached f The fourth box in line is an IP address of the slave device if IP address is chosen in the third box g Save settings by clicking the Save button 16 Modbus Priority a To access this screen click the Next button or click the Modbus Priority link on the left side of the screen b This screen allows y...

Page 35: ...riority can be based on the originating IP address the Modbus ID the Modbus function code or any combination of the three Up to five different priorities can be set d IP Address Used to set a static Internet protocol address for the Modbus Gateway e Modbus ID Valid range is from 1 to 247 f Function Code Valid range is from 1 to 99 Save settings by clicking the Save button ...

Page 36: ...b configuration interface 1 On a PC connected to the network open a web browser Figure 42 Open Web Browser 2 In the browser s address bar type the IP address of the Modbus gateway Figure 43 Type IP Address Note Your Modbus gateway comes from the factory pre configured to receive an IP address assignment from a DHCP server If a DHCP Server is not available on your network it will default to 169 254...

Page 37: ...24 Modbus Gateway on Networks without a DHCP Server Your MESR424 Modbus Gateway comes from the factory set up to receive an IP assignment from a DHCP Server If there is not a DHCP server on your network the Modbus Gateway will default to IP address 169 254 102 39 If this address does not work with your PC there are two methods to manually configure the network information 1 Method 1 Change your PC...

Page 38: ...e the parameters to the following IP Address 169 254 102 1 Subnet Mask 255 255 0 0 Default Gateway 169 254 102 100 c Use the Vlinx Modbus Manager Software to search for discover and configure the Modbus Gateway 2 Method 2 Change the Modbus Gateway s network settings to match your PC using Console Mode ...

Page 39: ...l be OFF and the PORT 1 LED will be ON e Open the Vlinx Modbus Manager Software and select Serial Port as the method to connect to the Modbus Gateway f After logging in click on Network g Un check the box next to I Want DHCP to setup the Network h Re configure the Modbus Gateway s network settings to something within the range of your PC s network settings For example PC Network Settings IP Addres...

Page 40: ...able Figure 45 Console Mode Setup To configure the Modbus gateway it must be put into Console Mode using the Mode Reset switch To enter Console Mode press and hold the Mode Reset switch for between two and ten seconds The LED indicators respond as follows 1 The Ready LED blinks three times per second while the button is being pressed 2 To configure the Modbus gateway open the Vlinx Modbus Manager ...

Page 41: ...ou do know you may specify the COM port by selecting The device is connected to this serial port under Serial Port Options and using the pull down menu to choose the COM port Figure 47 Serial Port Selection 4 The remaining screens are identical to those shown in configuring your gateway using a network connection To exit Console Mode press and hold the Mode Reset switch for two seconds ...

Page 42: ... gateway is configured as a TCP server The socket program running on the PC establishes a communication connection with the Modbus gateway The data is sent directly to and from the serial port on the server To set up a Direct IP Mode connection 1 Connect the Modbus gateway to the network and a Modbus network as described in previous sections 2 Configure the Modbus gateway with the appropriate netw...

Page 43: ... LED is On and the Ready LED is Off 3 The LEDs go back to their normal states when the device resumes normal operation Reloading Factory Defaults To reload Factory Defaults press and hold the Mode Reset switch for more than 10 seconds The LED indicators respond as follows 1 The Ready LED blinks three times per second while the button is being pressed 2 The Modbus gateway reloads all factory defaul...

Page 44: ...ocess 1 Click the Upgrade button to open the Firmware Upgrade dialog box Figure 49 Firmware Upgrade Dialog Box The name of the currently selected Modbus gateway appears in the top drop down list Other Modbus gateways that have already been discovered can be selected from the drop down list if desired The current firmware version of the selected Modbus gateway is shown in the text below the Modbus ...

Page 45: ...rom a file 1 Click the Browse button to open an Open File dialog box 2 Browse to the drive and folder containing the firmware file 3 Select and download the file to the local firmware folder Uploading the Firmware to the Modbus Gateway To upgrade the firmware 1 In the Modbus Gateway Selection drop down list select the Modbus gateway to be upgraded 2 In the Firmware Description drop down list selec...

Page 46: ... computer The Computer Information box displays information about the type of network connections the IP addresses Subnet Masks and Default Gateways in use Figure 50 Diagnostics Dialog Box Testing a Modbus Gateway Connection To run diagnostics on a Modbus gateway 1 Click the Diagnostics icon The Diagnostics dialog box appears 2 In the drop down box select the specific Modbus gateway you want to ch...

Page 47: ...6 Diagnostics VlinxMESR9xx Modbus Gateway 47 Information about the progress of the pinging process is displayed in the Test Progress box Figure 51 Testing a Modbus Gateway Connection ...

Page 48: ... and data transfer through the Modbus Gateway To start monitoring select a Modbus Gateway and press the Start button The Auto Scroll check box enables and disables automatic scrolling of the displayed text The Clear button clears the displayed text Press the Stop button to stop monitoring Press the Save button to save the information to a file ...

Page 49: ...ate for their specific needs The following scenarios are examples only and many others are possible Contact B B Electronics technical support for information on other applications Ethernet Master and Serial Slaves Your Modbus gateway can be used to integrate serial slave devices on a Modbus TCP network This allows TCP Masters to control serial slave devices The example below is using a gateway wit...

Page 50: ... link on the left side of the screen Figure 53 Serial Port 1 Setup 7 Configure Serial Port 1 In this case it is RS 232 19 2 kbps 8 data bits 1 stop bit and even parity Save the settings 8 Access Port 1 Modbus by clicking the link on the left side of the screen Figure 54 Port 1 Modbus ...

Page 51: ...tion 10 Configure Port 2 Serial and Modbus is the same fashion 11 Access Modbus ID Remapping for each port and configure as necessary Figure 55 Port x Modbus Slave ID Remapping 12 Access Modbus ID Routing Configure as necessary In this example Slave ID 200 is mapped to serial port 1 Slave ID 1 through 5 and 205 are mapped to serial port 2 Figure 56 Modbus ID Routing ...

Page 52: ...6 Application Examples 52 13 Access Modbus Priority and configure as necessary Figure 57 Modbus Priority ...

Page 53: ...iple master devices onto serial and Ethernet Networks Figure 58 Serial Ethernet Masters Serial Ethernet Slaves 1 In this example Serial Port 1 has an RTU Master attached Configure the serial port settings as appropriate for the device Access the Port 1 Modbus screen and configure it the port for Modbus Master and RTU ...

Page 54: ...4 Figure 59 Port 1 Modbus 2 Configure the Modbus Slave ID routing In this case Modbus Slaves 1 through 5 and 205 are on Serial Port 2 Modbus Slaves 150 and 151 through 160 have IP assignments Figure 60 Modbus Slave ID Routing ...

Page 55: ...s can be used to control IP Slaves Figure 61 Serial Masters IP Slaves 1 In this example and ASCII Master is connected to Serial Port 1 and an RTU Master is connected to Serial Port 2 Configure the serial ports as appropriate for these devices Figure 62 Port 1 Serial ...

Page 56: ...ion Examples 56 Figure 63 Port 2 Serial 2 Access the Modbus screen for each port and configure as appropriate In this case Port 1 has an ASCII Master and Port 2 has an RTU Master attached Figure 64 Port 1 Modbus ...

Page 57: ...6 Application Examples 57 Figure 65 Port 2 Modbus 3 Setup the Slave ID Routing to associate IP addresses with the appropriate Slave ID Figure 66 Modbus Slave ID Routing ...

Page 58: ...6 Application Examples 58 Serial Masters IP Slaves Serial Masters can be used to control IP Slaves Figure 67 Identical Hard Coded Slaves ...

Page 59: ...6 Application Examples 59 Serial Masters IP Slaves Serial Masters can be used to control IP Slaves Figure 68 Identical Production Lines ...

Page 60: ... Modbus masters using a polling query response format The master can send broadcast messages using a slave address of 0 which all slaves accept but do not reply to More commonly the master polls individual slaves sequentially In each poll it sends a message containing a device address followed by a function code any data that maybe required and an error check field The addressed slave responds wit...

Page 61: ...network must terminate with a resistor While this was true of early serial network configurations it s typically the wrong answer call our technical support and verify if you re an exception at 815 433 5100 option 3 A sometimes difficult problem is difference in grounding voltage between various network locations Stray voltage from lightning or other sources may also find its way onto the network ...

Page 62: ...62 8 8 A Ap pp pe en nd di ic ce es s This section includes the following Appendices Appendix A Default Gateway Settings Appendix B Product Specifications Appendix C Dimensional Diagrams Appendix D Connector Pinouts ...

Page 63: ... DHCP will configure If a DHCP Server is not available the unit will default to 169 254 102 39 Net Mask 255 255 0 0 Gateway 169 254 1 1 MAC Address Fixed see bottom label Port 1 2 3 4 Serial port mode RS 485 Baud Rate 9600 Data bits 8 Parity None Stop bits 1 Flow Control None Protocol TCP Serial timeout 0 seconds Inter character timer 0 ms TCP port 502 Max connection 1 ...

Page 64: ...64 Appendix B Product Specifications This section includes the following specifications General Specifications Controls Indicators and Connector Specifications Serial Interface Specifications Network Specifications ...

Page 65: ... via an Ethernet connection Using a standard web browser such as Internet Explorer or Firefox Software Vlinx Modbus Manager for Modbus gateway configuration Windows XP 32 64 bit 2003 Server 32 64 bit Vista 32 64 bit 2008 Server 32 64 bit Windows 7 32 64 bit Environment Operating Temperature 40 to 80 C 40 to 176 F Storage Temperature 40 to 85 C 40 to 185 F Operating Humidity 10 to 95 non condensing...

Page 66: ...tor Specifications Switches Mode Reset button Hold in for 0 to 2 seconds for hardware reset Hold in for 2 to 10 seconds for Console Mode Reset Do a hardware reset or recycle power to exit Console Mode Hold in for more than 10 seconds to reset to factory defaults Indicators Serial LED one per port Color Green Blink Data traffic Link LED Color Green On 100BaseTX Off 10BaseT Blink Data traffic Ready ...

Page 67: ...4 wire TXDA TXDB RXDA RXDB GND RS 485 lines 2 wire Data Data GND RS 485 lines 4 wire TXDA TXDB RXDA RXDB GND Baud Rates 75 150 300 600 1200 2400 4800 7200 9600 14 4k 19 2k 28 8k 38 4k 57 6k 115 2k 230 4k Data Bits 7 8 Parity None even odd mark space Stop bits 1 2 RS 422 485 biasing Auto 1 K ohm pullups and pulldowns RS 485 data control Auto control via MCU ...

Page 68: ...E 802 3 auto detecting auto MDI MDX 10BaseT 100BaseTX and 100BaseFX Protocols Supported TCP IPv4 ARP HTTP 1 0 ICMP PING DHCP BOOTP IP Mode Static DHCP or Auto IP TCP User definable Connection Modes Server Client Search Serial direct COM and Ethernet auto search or specific IP Firmware Upgrade Via serial Ethernet or auto web search Timeouts Modbus Message 1 to 65535 ms default set at 2 000 ms TX De...

Page 69: ...8 Appendices 69 Appendix C Dimensional Diagrams Figure 69 Dimensional Diagram ...

Page 70: ...10 Glossary Appendix D Connector Pinouts DB9 Serial Port Pinouts DB9 M Pin Direction RS 232 1 Input DCD 2 Input RXD 3 Output TXD 4 Output DTR 5 GND 6 Input DSR 7 Output RTS 8 Input CTS 9 No Connection ...

Page 71: ... CTS Input RDA D RD Input RDB E GND GND GND In the RS 422 mode TX lines are outputs and RX lines are inputs Connect the Modbus gateway TXB line to the RXB line of the Modbus network and the Modbus gateway TXA to the RXA of the Modbus network Ground is signal ground and provides a common mode reference for the RS 422 Receiver and Transmitters ...

Reviews: