AutomationDirect MB-GATEWAY User Manual

MB-GATEWAY
Hardware User Manual
Manual Number: MB-GATEWAY-USER-M
~ WARNING ~
Thank you for purchasing automation equipment from Automationdirect.com®, doing business as, AutomationDirect. We want your new automation equipment to operate safely. Anyone who installs or
To minimize the risk of potential safety problems, you should follow all applicable local and national codes that regulate the installation and operation of your equipment. These codes vary from area to area and usually change with time. It is your responsibility to determine which codes should be followed, and to verify that the equipment, installation, and operation is in compliance with the latest revision of these codes.
At a minimum, you should follow all applicable sections of the National Fire Code, National Electrical Code, and the codes of the National Electrical Manufacturer’s Association (NEMA). There may be local regulatory or government offices that can also help determine which codes and standards are necessary for safe installation and operation.
Equipment damage or serious injury to personnel can result from the failure to follow all applicable codes and standards. We do not guarantee the products described in this publication are suitable for your particular application, nor do we assume any responsibility for your product design, installation, or operation.
Our products are not fault-tolerant and are not designed, manufactured or intended for use or resale as on-line control equipment in hazardous environments requiring fail-safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines, or weapons systems, in which the failure of the product could lead directly to death, personal injury, or severe physical or environmental damage (“High Risk Activities”). AutomationDirect specifically disclaims any expressed or implied warranty of fitness for High Risk Activities.
For additional warranty and safety information, see the Terms and Conditions section of our catalog. If you have any questions concerning the installation or operation of this equipment, or if you need additional information, please call us at 770-844-4200.
This publication is based on information that was available at the time it was printed. At AutomationDirect we constantly strive to improve our products and services, so we reserve the right to make changes to the products and/or publications at any time without notice and without any obligation. This publication may also discuss features that may not be available in certain revisions of the product.
Trademarks
This publication may contain references to products produced and/or offered by other companies. The product and company names may be trademarked and are the sole property of their respective owners. AutomationDirect disclaims any proprietary interest in the marks and names of others.
Copyright 2011-2020, Automationdirect.com® Incorporated
No part of this manual shall be copied, reproduced, or transmitted in any way without the prior, written consent of Automationdirect.com® Incorporated. AutomationDirect retains the exclusive rights to all information included in this document.
All Rights Reserved
~ ADVERTENCIA ~
Gracias por comprar equipo de automatización de Automationdirect.com®. Deseamos que su nuevo equipo de automatización opere de manera segura. Cualquier persona que instale o use este equipo debe leer esta publicación (y cualquier otra publicación pertinente) antes de instalar u operar el equipo.
Para reducir al mínimo el riesgo debido a problemas de seguridad, debe seguir todos los códigos de seguridad locales o nacionales aplicables que regulan la instalación y operación de su equipo. Estos códigos varian de área en área y usualmente cambian con el tiempo. Es su responsabilidad determinar cuales códigos deben ser seguidos y verificar que el equipo, instalación y operación estén en cumplimiento con la revisión mas reciente de estos códigos.
Como mínimo, debe seguir las secciones aplicables del Código Nacional de Incendio, Código Nacional Eléctrico, y los códigos de (NEMA) la Asociación Nacional de Fabricantes Eléctricos de USA. Puede haber oficinas de normas locales o del gobierno que pueden ayudar a determinar cuales códigos y normas son necesarios para una instalación y operación segura.
Si no se siguen todos los códigos y normas aplicables, puede resultar en daños al equipo o lesiones serias a personas. No garantizamos los productos descritos en esta publicación para ser adecuados para su aplicación en particular, ni asumimos ninguna responsabilidad por el diseño de su producto, la instalación u operación.
Nuestros productos no son tolerantes a fallas y no han sido diseñados, fabricados o intencionados para uso o reventa como equipo de control en línea en ambientes peligrosos que requieren una ejecución sin fallas, tales como operación en instalaciones nucleares, sistemas de navegación aérea, o de comunicación, control de tráfico aéreo, máquinas de soporte de vida o sistemas de armamentos en las cuales la falla del producto puede resultar directamente en muerte, heridas personales, o daños físicos o ambientales severos (“Actividades de Alto Riesgo”). Automationdirect.com específicamente rechaza cualquier garantía ya sea expresada o implicada para actividades de alto riesgo.
Para información adicional acerca de garantía e información de seguridad, vea la sección de Términos y Condiciones de nuestro catálogo. Si tiene alguna pregunta sobre instalación u operación de este equipo, o si necesita información adicional, por favor llámenos al número 770-844-4200 en Estados Unidos. Esta publicación está basada en la información disponible al momento de impresión. En Automationdirect. com nos esforzamos constantemente para mejorar nuestros productos y servicios, así que nos reservamos el derecho de hacer cambios al producto y/o a las publicaciones en cualquier momento sin notificación y sin ninguna obligación. Esta publicación también puede discutir características que no estén disponibles en ciertas revisiones del producto.
Marcas Registradas
Esta publicación puede contener referencias a productos producidos y/u ofrecidos por otras compañías. Los nombres de las compañías y productos pueden tener marcas registradas y son propiedad única de sus respectivos dueños. Automationdirect.com, renuncia cualquier interés propietario en las marcas y nombres de otros.
PROPIEDAD LITERARIA 2011-2020, AUTOMATIONDIRECT.COM® INCORPORATED
No se permite copiar, reproducir, o transmitir de ninguna forma ninguna parte de este manual sin previo consentimiento por escrito de Automationdirect.com® Incorprated. Automationdirect.com retiene los derechos exclusivos a toda la información incluida en este documento. Los usuarios de este equipo pueden copiar este documento solamente para instalar, configurar y mantener el equipo correspondiente. También las instituciones de enseñanza pueden usar este manual para propósitos educativos.
Todos los derechos reservados
~ AVERTISSEMENT ~
Nous vous remercions d’avoir acheté l’équipement d’automatisation de Automationdirect.com®, en faisant des affaires comme, AutomationDirect. Nous tenons à ce que votre nouvel équipement d’automatisation fonctionne en toute sécurité. Toute personne qui installe ou utilise cet équipement doit lire la présente publication (et toutes les autres publications pertinentes) avant de l’installer ou de l’utiliser.
Afin de réduire au minimum le risque d’éventuels problèmes de sécurité, vous devez respecter tous les codes locaux et nationaux applicables régissant l’installation et le fonctionnement de votre équipement. Ces codes diffèrent d’une région à l’autre et, habituellement, évoluent au fil du temps. Il vous incombe de déterminer les codes à respecter et de vous assurer que l’équipement, l’installation et le fonctionnement sont conformes aux exigences de la version la plus récente de ces codes.
Vous devez, à tout le moins, respecter toutes les sections applicables du Code national de prévention des incendies, du Code national de l’électricité et des codes de la National Electrical Manufacturer’s Association (NEMA). Des organismes de réglementation ou des services gouvernementaux locaux peuvent également vous aider à déterminer les codes ainsi que les normes à respecter pour assurer une installation et un fonctionnement sûrs.
L’omission de respecter la totalité des codes et des normes applicables peut entraîner des dommages à l’équipement ou causer de graves blessures au personnel. Nous ne garantissons pas que les produits décrits dans cette publication conviennent à votre application particulière et nous n’assumons aucune responsabilité à l’égard de la conception, de l’installation ou du fonctionnement de votre produit.
Nos produits ne sont pas insensibles aux défaillances et ne sont ni conçus ni fabriqués pour l’utilisation ou la revente en tant qu’équipement de commande en ligne dans des environnements dangereux nécessitant une sécurité absolue, par exemple, l’exploitation d’installations nucléaires, les systèmes de navigation aérienne ou de communication, le contrôle de la circulation aérienne, les équipements de survie ou les systèmes d’armes, pour lesquels la défaillance du produit peut provoquer la mort, des blessures corporelles ou de graves dommages matériels ou environnementaux («activités à risque élevé»). La société AutomationDirect nie toute garantie expresse ou implicite d’aptitude à l’emploi en ce qui a trait aux activités à risque élevé.
Pour des renseignements additionnels touchant la garantie et la sécurité, veuillez consulter la section Modalités et conditions de notre documentation. Si vous avez des questions au sujet de l’installation ou du fonctionnement de cet équipement, ou encore si vous avez besoin de renseignements supplémentaires, n’hésitez pas à nous téléphoner au 770-844-4200.
Cette publication s’appuie sur l’information qui était disponible au moment de l’impression. À la société AutomationDirect, nous nous efforçons constamment d’améliorer nos produits et services. C’est pourquoi nous nous réservons le droit d’apporter des modifications aux produits ou aux publications en tout temps, sans préavis ni quelque obligation que ce soit. La présente publication peut aussi porter sur des caractéristiques susceptibles de ne pas être offertes dans certaines versions révisées du produit.
Marques de commerce
La présente publication peut contenir des références à des produits fabriqués ou offerts par d’autres entreprises. Les
désignations des produits et des entreprises peuvent être des marques de commerce et appartiennent exclusivement à leurs propriétaires respectifs. AutomationDirect nie tout intérêt dans les autres marques et désignations.
Copyright 2011-2020, Automationdirect.com® Incorporated
Nulle partie de ce manuel ne doit être copiée, reproduite ou transmise de quelque façon que ce soit sans le consentement préalable écrit de la société Automationdirect.com® Incorporated. AutomationDirect conserve les droits exclusifs à l’égard de tous les renseignements contenus dans le présent document.
Tous droits réservés
MB-GATEWAY
HARDWARE USER MANUAL
Please include the Manual Number and the Manual Issue, both shown below, when communicating with Technical Support regarding this publication.
Manual Number: MB-GATEWAY-USER-M
Issue: 1st Edition Rev. H
Issue Date: 02/2021
Publication History
Issue Date Description of Changes
1st Edition 06/11 Original issue
Rev. A 01/12 Added Example 4 to Appendix Rev. B 07/12 Added IP address reset note. Rev. C 10/13
Rev. D 02/16 Revised product photo
Rev E 09/17 Several minor revisions
Rev F 10/18 Minor revision to Appendix A, Application Examples Rev G 02/20 Added Appendix C, Security Considerations for Control Systems Networks Rev H 02/21 Added failsafe receiver to feature list
Added Autodetection notes. Added TCP to RTU diagrams.
Table of ConTenTs
Chapter 1: Getting Started
Introduction .................................................................................................................. 1-2
Overview of this Publication ���������������������������������������������������������������������������������������� 1-2 Who Should Read This Manual ������������������������������������������������������������������������������������1-3 Technical Support �������������������������������������������������������������������������������������������������������1-3
Conventions Used ......................................................................................................... 1-4
Key Topics for Each Chapter ��������������������������������������������������������������������������������������1-4
Product Overview ......................................................................................................... 1-5
What’s in the Box ......................................................................................................... 1-6
Mounting / Clearance Information ..............................................................................1-6
Direct Mounting����������������������������������������������������������������������������������������������������������1-6 DIN Rail Mounting ������������������������������������������������������������������������������������������������������ 1-7
Agency Approvals ......................................................................................................... 1-7
Chapter 2: Specifications
Specifications ................................................................................................................ 2-2
LED Indicators ............................................................................................................... 2-3
STA �����������������������������������������������������������������������������������������������������������������������������2-3 SPD ����������������������������������������������������������������������������������������������������������������������������� 2-3 TXD�����������������������������������������������������������������������������������������������������������������������������2-3 ERR ������������������������������������������������������������������������������������������������������������������������������2-3 LK/A ���������������������������������������������������������������������������������������������������������������������������� 2-4 RXD�����������������������������������������������������������������������������������������������������������������������������2-4
Dip Switch Information ................................................................................................ 2-5
Dimensional Drawing ................................................................................................... 2-6
Inches [mm] ���������������������������������������������������������������������������������������������������������������� 2-6
Table of Contents
Chapter 3: Installation, Wiring and Configuration
Safety Guidelines ........................................................................................................ 3-2
Plan for Safety ����������������������������������������������������������������������������������������������������������� 3-2 Security Considerations ��������������������������������������������������������������������������������������������� 3-2
Wiring Diagrams ......................................................................................................... 3-3
MB-GATEWAY Configuration ..................................................................................... 3-4
NetEdit Configuration ����������������������������������������������������������������������������������������������� 3-5 Function Codes Supported ���������������������������������������������������������������������������������������� 3-6 Log Modbus/TCP and/or RTU requests to SMTPViewer ��������������������������������������������� 3-6
Chapter 4: Parameters
Home Page ................................................................................................................. 4-2
Gateway Modbus ID ................................................................................................... 4-3
Module Name and Module Description .................................................................... 4-4
IP Setup Configuration Page ...................................................................................... 4-5
Serial Port Configuration Page .................................................................................. 4-6
Set Up Slave Timeout / Retries Page ......................................................................... 4-7
Gateway Device Status Page ...................................................................................... 4-8
1 Automatic Reads ��������������������������������������������������������������������������������������������������� 4-9 2 Last Modbus TCP Request ������������������������������������������������������������������������������������ 4-9 3 Last Modbus RTU Request ���������������������������������������������������������������������������������� 4-10 4 Status Information ���������������������������������������������������������������������������������������������� 4-10
Setup Automatic Read Page ������������������������������������������������������������������������������������ 4-10
Firmware Updates .................................................................................................... 4-11
Chapter 5: Automatic Read Feature
Automatic Read Feature ............................................................................................. 5-2
Situation 1:���������������������������������������������������������������������������������������������������������������� 5-3 Situation 2:���������������������������������������������������������������������������������������������������������������� 5-6
Additional Optimization ............................................................................................. 5-8
Automatic Read Status Data �������������������������������������������������������������������������������������� 5-9
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
ii
Table of Contents
Appendix A: Application Examples
Example 1:
Using Modbus Poll to MB-GATEWAY with DL06 Slave ............................................. A-2
Items needed for this example: ��������������������������������������������������������������������������������� A-2 Step 1: Connect the MB-GATEWAY serial port to the DL06 secondary communications
port� �������������������������������������������������������������������������������������������������������������� A-2 Step 2: Configure the DL06 PLC serial port and MB-GATEWAY serial port� ��������������� A-3 Step 3: Connect to the MB-GATEWAY using the Modbus Poll simulator software� ���� A-7
Example 2:
Using Modbus Poll to MB-GATEWAY with CLICK Slave ......................................... A-11
Items needed for this example: ������������������������������������������������������������������������������� A-11 Step 1: Connect the MB-GATEWAY serial port to Port 3 of the CLICK PLC� ������������� A-11 Step 2: Configure the CLICK serial port and MB-GATEWAY serial port� ������������������� A-12 Step 3: Connect to the MB-GATEWAY using the Modbus Poll simulator software� �� A-18
Example 3:
Using P3000 as Master (Client) to MB-GATEWAY with CLICK Slave. .................... A-24
Step 1: Connect CLICK to the MB-GATEWAY as shown in example 2� �������������������� A-24 Step 2: Connect P3000 CPU (P3-550) to MB-GATEWAY via Ethernet Switch and Two
Ethernet Cables� ������������������������������������������������������������������������������������������ A-24 Step 3: Configure the MRX instruction to read data from the MB-GATEWAY� ��������� A-28
Example 4: DirectLogic 06 (H0-ECOM100) as Master (Client) to
MB-GATEWAY with Mulitple GS Drives as Slaves. .................................................. A-29
Step 1: Set up Peer to Peer Configuration ��������������������������������������������������������������� A-30 Step 2: Set the Serial Port Configuration ����������������������������������������������������������������� A-31 Step 3: Set the Communication Parameters ������������������������������������������������������������ A-31 Step 4: Using Automatic Reads �������������������������������������������������������������������������������� A-32 Step 5: Access the Automatic Read Data ����������������������������������������������������������������� A-33 Step 6: Read and Write from the DL06 ������������������������������������������������������������������� A-36
Appendix B: Modbus Error Codes
Modbus Error Codes ................................................................................................... B-2
Appendix C: Security Considerations for Control Systems Networks
Security Considerations for Control Systems Networks............................................ C-2
Index
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
iii
Chapter
Chapter
Chapter
GeTTinG sTarTed
1
1
1
In this Chapter...
Introduction ...................................................................................................................1-2
Overview of this Publication �����������������������������������������������������������������������������������������1-2 Who Should Read This Manual �������������������������������������������������������������������������������������1-3 Technical Support ��������������������������������������������������������������������������������������������������������1-3
Conventions Used ..........................................................................................................1-4
Key Topics for Each Chapter ���������������������������������������������������������������������������������������1-4
Product Overview ..........................................................................................................1-5
What’s in the Box ..........................................................................................................1-6
Mounting / Clearance Information ...............................................................................1-6
Direct Mounting�����������������������������������������������������������������������������������������������������������1-6 DIN Rail Mounting �������������������������������������������������������������������������������������������������������1-7
Agency Approvals ..........................................................................................................1-7

Introduction

MB-GATEWAY
devices
TCPRTU
Modbus Response
Chapter 1: Getting Started

Overview of this Publication

Modbus is one of the most popular communication protocols in the automation industry because it supports both traditional RS-232/422/485 devices and newly developed industrial Ethernet devices. Many industrial devices, such as PLCs, HMIs, instruments and meters use Modbus as their standard communication protocol. However, the Modbus protocols running over serial and Ethernet are so different that a communication gateway is needed as a bridge for integrating devices from these two networks. The MB-GATEWAY is a Modbus TCP (Ethernet) to Modbus RTU (Serial) Gateway which provides the necessary bridge to connect Modbus RTU (Serial) products to Ethernet LANs.
The Modbus TCP side of the Gateway functions as a TCP Server (slave) while the Modbus RTU side functions as a serial Client (master). The serial side physical interface is RS-422/485 2 or 4 wire so up to 128 Modbus RTU devices can be accessed by a Modbus TCP Client device (up to 12 simultaneous connections). The actual number of Modbus RTU slaves will depend on their individual transceiver loads.
Gateway Modbus
Address = 255
Serial
RS-485
Modbus
TCP Client
device
Ethernet
Modbus
RTU slave
device 1
Modbus
RTU slave
device 5
1
2
3
4
5
6
7
8
9
10
11
Other
Modbus Query
Client
The MB-GATEWAY User Manual describes the installation, configuration, and methods of operation of the MB-GATEWAY Module.
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
MB-GATEWAY
Server
Modbus Query
Modbus Response
Master
Slave
1-2
12
13
14
A
B
C
D
Chapter 1: Getting Started

Who Should Read This Manual

This manual contains important information for those who will install, maintain, and/or operate The MB-GATEWAY Module.
1

Technical Support

We strive to make our manuals the best in the industry. We rely on your feedback to let us know if we are reaching our goal. If you cannot find the solution to your particular application, or, if for any reason you need technical assistance, please call us at:
770–844–4200
Our technical support group will work with you to answer your questions. They are available Monday through Friday from 9:00 A.M. to 6:00 P.M. Eastern Time. We also encourage you to visit our web site where you can find technical and non-technical information about our products and our company.
http://www.automationdirect.com
2
3
4
5
6
7
8
9
10
11
12
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
13
14
A
B
C
D
1-3

Conventions Used

Chapter 1: Getting Started
1
When you see the “notepad” icon in the left-hand margin, the paragraph to its immediate right will be a special note. The word NOTE: in boldface will mark the beginning of the text.
When you see the “exclamation mark” icon in the left-hand margin, the paragraph to its immediate right will be a warning. This information could prevent injury, loss of property, or even death (in extreme cases). The word WARNING: in boldface will mark the beginning of the text.

Key Topics for Each Chapter

The beginning of each chapter will list the key topics that can be found in that chapter.
Getting Started
CHAPTER
1
In This Chapter...
General Information
.................................................................1-2
...........................................................................1-4Specifications
2
3
4
5
6
7
8
9
10
11
12
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
13
14
A
B
C
D
1-4

Product Overview

Chapter 1: Getting Started
1
2
3
4
5
6
7
8
AutomationDirect’s MB-GATEWAY is a single port Modbus Gateway module that converts Modbus TCP to Modbus RTU. It supports up to 12 simultaneous Modbus TCP Client (master) Ethernet connections, and up to 128 RTU Server (slave) Serial connections. MB-GATEWAY requires 10VDC to 36VDC from an external power supply. Each module has one RJ45 10/100 Mbps Ethernet port and one RS-422/485 2 or 4 wire Serial Port. It supports NetEdit (Ver 3.8 and later) or Web Browser based configuration tools.
Key features include:
• Automatic Read Function
• RJ45 10/100 Mbps Ethernet Port
• RS-422/485 2 or 4 wire Serial Port
• True failsafe receiver while maintaining EIA/TIA-485 compatibility
• Supports NetEdit and Web Browser configuration tools
• Autodetects Ethernet cable types (MDI/MDX)
• 35mm DIN rail mount
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
1-5
9
10
11
12
13
14
A
B
C
D

What’s in the Box

Chapter 1: Getting Started
1
2
MB-GATEWAY

Mounting / Clearance Information

There are two options for mounting the MB-GATEWAY module.

Direct Mounting

The MB-GATEWAY module can be mounted in either a low-profile orientation or a slim­mount orientation using screw holes on the provided mounting adapter. Screws are not provided
DIN Rail Mounting
Adapter
Baud Rate
2 1 0 - Switch 0 0 0 = SW cfg 0 0 1 = 4800 0 1 0 = 9600 0 1 1 = 14400 1 0 0 = 19200 1 0 1 = 38400 1 1 0 = 57600 1 1 1 = 115200
Parity
4 3 - Switch 0 0 = None 0 1 = Odd 1 0 = Even 1 1 = Resvd
Stop Bits
5 - Switch 0 = 1 Bit 1 = 2 Bits
6 - Reset IP Cfg 7 - Reserved
3
4
5
6
7
8
9
10
11
12
13
14
A
B
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
C
D
1-6
Chapter 1: Getting Started
C
US

DIN Rail Mounting

The MB-GATEWAY module can be snapped onto a standard 35 mm x 7.5 mm height DIN rail (Standard: CENELEC EN50022). They can be mounted either vertically or horizontally. Refer to the mechanical drawings that follow for proper mounting.
DIN rail mounting steps:
1. Hook bottom back of unit over the DIN rail.
2. Push top back onto the DIN rail until it snaps into place.
DIN rail removal steps:
A. Pull up on tab at the top of the mounting adapter with a screwdriver. B. Rotate the bottom of the unit away from the DIN rail. C. Pull unit down and away from DIN rail.
1
2
3
4
5
Mounting
2

Agency Approvals

Name UL/CUL UL508 CE
MB-GATEWAY E185989 E185989 Yes
B
Baud Rate
2 1 0 - Switch 0 0 0 = SW cfg 0 0 1 = 4800 0 1 0 = 9600 0 1 1 = 14400 1 0 0 = 19200 1 0 1 = 38400 1 1 0 = 57600 1 1 1 = 115200
Parity
4 3 - Switch 0 0 = None 0 1 = Odd 1 0 = Even 1 1 = Resvd
Stop Bits
5 - Switch 0 = 1 Bit 1 = 2 Bits
6 - Reset IP Cfg 7 - Reserved
UL/CUL/CE Certification Numbers
U
R
1
L
Removal
Baud Rate
2 1 0 - Switch 0 0 0 = SW cfg 0 0 1 = 4800 0 1 0 = 9600 0 1 1 = 14400 1 0 0 = 19200 1 0 1 = 38400 1 1 0 = 57600 1 1 1 = 115200
Parity
4 3 - Switch 0 0 = None 0 1 = Odd 1 0 = Even 1 1 = Resvd
Stop Bits
5 - Switch 0 = 1 Bit 1 = 2 Bits
6 - Reset IP Cfg 7 - Reserved
C
A
6
7
8
9
10
11
12
13
14
A
B
C
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
D
1-7
Chapter
Chapter
Chapter
speCifiCaTions
2
2
2
In this Chapter...
Specifications .................................................................................................................2-2
LED Indicators ................................................................................................................2-3
Dip Switch Information .................................................................................................2-4
Dimensional Drawing ....................................................................................................2-5

Specifications

Chapter 2: Specifications
Port RJ-45
Speed 10/100 Mbps
Ethernet
Interface
Serial
Interface
Power Consumption
Wire Range
Wire Strip Length
Screw Torque
Operating Temperature Range
Storage Temperature Range
Humidity
Environmental Air
Vibration
Weight
Protection Built-in 1.5 KV magnetic isolation
Protocol Supported Modbus TCP/IP Server (Slave)
Clients (Masters)
Supported Cable Type Autodetects Ethernet cable types (MDI/MDX)
Port 6-position terminal strip (Phoenix #1863194) provided
Supported Signal Lines
Supported Baud Rates
Parity Odd, Even, None
Data Bits 8
Stop Bits 1, 2
Protocol Supported Modbus RTU Client (Master)
Servers (Slaves)
Supported
Termination
Shock
Specifications
12 simultaneous Modbus TCP connections
RS-422 (5-wire) Signals: TX+, TX-, RX-, RX+, GND
RS-485 (3-wire) Signals: Data+, Data -, GND
300*, 600*, 1200*, 2400, 4800, 9600,
14.4k, 19.2k, 38.4k, 57.6k, 115.2k
* Cannot be set with DIP switches.
Must be set via web browser configuration.
128
Permanently installed 120ΩΩ resistor between
3-position terminal strip (Phoenix #1863165) provided
16 - 28 AWG Solid or Stranded Conductor (1.5 mm
For use in Pollution Degree 2 Environment. No corrosive gases
Data+ and Data -
Use Class 2 power supply
Use conductors rated 60/75 °C
0.24 - 0.27 in (6 - 7 mm)
0 to 60 °C (32 to 140 °F)
-20 to 70 °C (-4 to 158 °F)
5 to 95% RH (non-condensing)
2W
1.7 lb-in (0.2 Nm)
MIL STD 810C 514.2
MIL STD 810C 516.2
0.2 lbs (0.09 kg)
2
)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
D
2-2

LED Indicators

Chapter 2: Specifications
1
2
3
4
5
STA
The STA or STATUS LED is steady ON when the MB-GATEWAY has passed power-up diagnostics and is ready for use.
SPD
The SPD or SPEED LED is used to represent the Ethernet speed. The LED will be ON when the Ethernet speed is 100Mbps and OFF when the speed is 10Mbps.
TXD
The TXD or TRANSMIT DATA LED flashes to indicate that the MB-GATEWAY is sending data through the serial port.
ERR
If the MB-GATEWAY’s ERR (ERROR) indicator is:
• ON - a critical error has occurred. The error may be in the card itself, or the result of a network problem. The ERROR indication can be caused by a faulty ground, an electrical spike or other types of electrical disturbances. Cycle power to the system to attempt clearing the error.
• Flashing once per second - a firmware update is in progress.
• Flashing randomly - a Modbus/RTU error. This could be a timeout or an actual error response. Check the Gateway Device Status page on the MB-GATEWAY configuration web page to see the quantity of Request Errors and the description of the Last Request Error.
A CRC error for an Automatic Reads table entry will flash the ERRor LED and set the Last Request Error to: MODBUS_ERROR_MEMORY_PARITY_ERROR.
For a direct request from a Modbus TCP server, a Modbus RTU parity error will return the error MODBUS_ERROR_MEMORY_PARITY_ERROR to the Modbus TCP server.
6
7
8
9
10
11
12
13
14
A
B
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
C
D
2-3
Chapter 2: Specifications

LK/A

The LK/A or LINK GOOD/ACTIVITY LED flashes to indicate that the card sees data traveling on the Ethernet network. If any network device is sending or receiving data, the LK/A LED will be flashing. During heavy communication loads, this indicator will be steady ON. If the LED is OFF, then a problem with the Ethernet connection has been detected.
RXD
The RXD or RECEIVE DATA LED flashes to indicate that the MB-GATEWAY is receiving data through the serial port.
1
2
3
4
5
6
7
8
9
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
10
11
12
13
14
A
B
C
D
2-4

Dip Switch Information

01
12
and gateway address in the MB-GATEWAY to 0.0.0.0
Chapter 2: Specifications
S7S6S5S4S3S2S1
OFF
ON
OFF
S6S5S4S3S2S1S0
GND RXD+ RXD­TXD­TXD+ GND
+V
+ INPUT
10-36 VDC
COM
Chasis
S7 S6 S5 S4 S3 S2 S1 S0 Switch seng
1
Rese rved
* Seng S6 to on will, on power cycle, set the IP address, subnet mask
S7
ON
MB-GATEWAY
MODBUS TCP/IP to MODBUS RTU
000Soware Config
001 4800
010 9600
011 14400
100 19200
101 38400
110 57600
111 115200
00 None
01 Odd
10 Even
11 Reserved
S0
Baud Rate
2 1 0 - Switch 0 0 0 = SW cfg 0 0 1 = 4800 0 1 0 = 9600 0 1 1 = 14400 1 0 0 = 19200 1 0 1 = 38400 1 1 0 = 57600 1 1 1 = 115200
Parity
4 3 - Switch 0 0 = None 0 1 = Odd 1 0 = Even 1 1 = Resvd
Stop Bits
5 - Switch 0 = 1 Bit 1 = 2 Bits
6 - Reset IP Cfg 7 - Reserved
Bit
Bits
*
S7 reserved
Baud Rate Parity
Bits
IP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
Stop
B
Reset
C
D
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
2-5

Dimensional Drawing

Chapter 2: Specifications

Inches [mm]

Baud Rate
2 1 0 - Switch 0 0 0 = SW cfg 0 0 1 = 4800 0 1 0 = 9600 0 1 1 = 14400 1 0 0 = 19200 1 0 1 = 38400 1 1 0 = 57600 1 1 1 = 115200
Parity
4 3 - Switch 0 0 = None 0 1 = Odd 1 0 = Even 1 1 = Resvd
Stop Bits
5 - Switch 0 = 1 Bit 1 = 2 Bits
6 - Reset IP Cfg 7 - Reserved
1
2
3
4
5
6
7
8
9
10
11
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
12
13
14
A
B
C
D
2-6
Chapter
Chapter
Chapter
insTallaTion, WirinG
and ConfiGuraTion
3
3
2
In this Chapter...
Safety Guidelines ...........................................................................................................3-2
Plan for Safety ��������������������������������������������������������������������������������������������������������������3-2 Security Considerations ������������������������������������������������������������������������������������������������3-2
Wiring Diagrams ............................................................................................................3-3
MB-GATEWAY Configuration ........................................................................................3-4
NetEdit Configuration ��������������������������������������������������������������������������������������������������3-5 Function Codes Supported �������������������������������������������������������������������������������������������3-6 Log Modbus/TCP and/or RTU requests to SMTPViewer ������������������������������������������������3-6

Safety Guidelines

Chapter 3: Installation, Wiring and Configuration
Warning: Providing a safe operating environment for personnel and equipment is your responsibility and should be your primary goal during system planning and installation. Automation systems can fail and may result in situations that can cause serious injury to personnel or damage to equipment. Do not rely on the automation system alone to provide a safe operating environment. You should use external electromechanical devices, such as relays or limit switches, that are independent of the PLC application to provide protection for any part of the system that may cause personal injury or damage. Every automation application is different, so there may be special requirements for your particular application. Make sure you follow all national, state, and local government requirements for the proper installation and use of your equipment.

Plan for Safety

The best way to provide a safe operating environment is to make personnel and equipment safety part of the planning process. You should examine every aspect of the system to determine which areas are critical to operator or machine safety. If you are not familiar with control system installation practices, or your company does not have established installation guidelines, you should obtain additional information from the following sources.
• NEMA — The National Electrical Manufacturers Association, located in Washington, D.C. publishes many different documents that discuss standards for industrial control systems. You can order these publications directly from NEMA. Some of these include:
ICS 1, General Standards for Industrial Control and Systems
ICS 3, Industrial Systems
ICS 6, Enclosures for Industrial Control Systems
• NEC — The National Electrical Code provides regulations concerning the installation and use of various types of electrical equipment. Copies of the NEC Handbook can often be obtained from your local electrical equipment distributor or your local library.
• Local and State Agencies — many local governments and state governments have additional requirements above and beyond those described in the NEC Handbook. Check with your local Electrical Inspector or Fire Marshall office for information.

Security Considerations

When implementing any method of remote access to your equipment, you need to consider the security exposure in order to minimize the risks to your processes and your equipment. Security should always be carefully evaluated for each installation. Refer to “Appendix C: Security Considerations for Control Systems Networks” for more information.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
B
C
D
3-2

Wiring Diagrams

The MB-GATEWAY module can be wired in either 4-wire or 2-wire mode.
Chapter 3: Installation, Wiring and Configuration
1
Gateway Slave 1Slave 2Last Slave
GND
RX+
RX­TX­TX+
Internally Connected
GND
(Gateway contains a
120Ω Termination Resistor
between RX+ and RX-)
Recommended Cable - AutomationDirect L19773 shielded cable or equivalent
GND
TX+ TX-
RX-
RX+
GND
TX+
TX­RX­RX+
GND
TX+
TX-
RX-
*
RX+
* User Supplied
120Ω Termination
Resistor
RS-485
Gateway Slave 1Slave 2Last Slave
GND
RS-422/RS-485
RX+
RX-
TX-
TX+
Internally Connected
GND
(Gateway contains a
120Ω Termination Resistor
between RX+ and RX-)
Recommended Cable - AutomationDirect L19954 shielded cable or equivalent
D+
D-
GND
D+
D-
GND
D+
*
D-
GND
* User Supplied
120Ω Termination
Resistor
2
3
4
5
6
7
8
9
10
11
12
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
13
14
A
B
C
D
3-3

MB-GATEWAY Configuration

The MB-GATEWAY supports 128 Modbus RTU nodes on the serial side. The RS-485 specification supports up to 32 devices before a repeater device is required. Proper cabling and termination is required. For RS-485 4-wire installations , a cable with the proper shielding and impedance should be used such as a Belden model 9843. For RS-485 2 wire installations, a cable such as the Belden model 9842 should be used. A 120 ohm resistor should be used for termination on each end of the network as shown in the previous wiring diagrams. The GATEWAY module has a termination resistor pre-installed so only one resistor needs to be added to the opposite end of the network away from the Gateway module.
The MB-GATEWAY module supports up to 12 simultaneous Modbus TCP connections. The MB-GATEWAY’s TCP listening port is the standard Modbus TCP port 502 (not configurable).
One of the major features of the MB-GATEWAY module is the “Automatic Read” function. This feature utilizes the ‘idle’ time of the module while it is waiting for Ethernet requests. The Automatic Read function can be configured to poll specific Modbus data points of the serial nodes and place that data into a local ‘data buffer’. If a Modbus Ethernet request comes in for one of those data points, the MB-GATEWAY module will immediately respond with the data from local buffer and thereby respond much faster than it would if it had to generate a new serial request. See Chapter 5 for more information.
The factory IP setting of the MB-GATEWAY module is to retrieve an IP address via DHCP. In order to see what IP address has been assigned and/or to change that setting the NetEdit software tool will be required to discover and configure the MB-GATEWAY TCP/ IP settings. NetEdit is a free tool that is accessible at AutomationDirect’s website or HOST engineering’s website (http://www.hosteng.com/SW-Products/SP_Demo_Utilites.htm#NetEdit3).
Chapter 3: Installation, Wiring and Configuration
1
2
3
4
5
6
7
8
9
10
NOTE: NetEdit version 3.8 or later is required to support MB-GATEWAY
MB-GATEWAY Configuration continued on the next page
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
11
12
13
14
A
B
C
D
3-4
Chapter 3: Installation, Wiring and Configuration

NetEdit Configuration

Using NetEdit is very simple. Once the software has been installed, follow the steps below to configure the settings of your MB-GATEWAY module.
• Start the software. It will scan automatically when you start it but if your MB-GATEWAY is inaccessible at the point of starting the software, you can press the “Scan Network” button at the top to make it scan again once the MB-GATEWAY has become accessible.
1
2
NOTE: If you are unable to see the MB-GATEWAY...
1) If your PC has more than one NIC (Network Interface Card), e.g. a wireless and a wired, then you may need to either disable the NIC(s) you are not using, or re-prioritize them such that the NIC you are using is top priority.
2) Verify the Network Interface on your PC is functioning properly
3) Verify all connections between the PC and the MB-GATEWAY are properly made
4) Disable your firewall or open TCP port 28787 to allow NetEdit.
5) NetEdit version 3.8 or later is required to support MB-GATEWAY.
• In the Main window, double click on the MB-GATEWAY module that you want to configure.
3
4
5
6
7
8
9
10
11
12
13
• Select “Use the following IP settings”.
• Type in the settings that are compatible with your network and press the OK button and the MB-GATEWAY module’s IP settings are now configured.
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
14
A
B
C
D
3-5
Chapter 3: Installation, Wiring and Configuration
After the MB-GATEWAY module’s IP settings have been configured to be compatible with the subnet of your PC, you can open Internet Explorer (or the Web browser of your choice) and continue the configuration for your application. You can also right click on the MB-GATEWAY in the main NetEdit window and choose “Start Web based config…” to start your default Web browser with the correct IP address pre-configured for you.

Function Codes Supported

The function codes supported by the MB-GATEWAY differ based upon whether the target from the Modbus Client is the MB-GATEWAY directly by utilizing the Gateway Modbus ID and the Automatic Read function or direct access to a Modbus serial slave by specifying the Unit ID of the Modbus Slave node itself.
1
2
3
4
Target = MB-GATEWAY Module (using Gateway Modbus ID and Automatic Read Function):
• Function Code 1 (Read Coils 0xxxxx)
• Function Code 2 (Read Input Bits 1xxxxx)
• Function Code 3 (Read Holding Registers 4xxxxx)
• Function Code 4 (Read Input Registers 3xxxxx)
• Function Code 8 (Read Diagnostics <Read Query Data Function>)
Target = MB-GATEWAY Modbus Slave Node (using Unit ID of Slave Node):
• Any function code supported by the Modbus Slave device

Log Modbus/TCP and/or RTU requests to SMTPViewer

Available in firmware 1.0.679 and later Using the SMTPViewer (download from HostEng.com and install it in the \HAPTools
folder), you can see the TCP and RTU requests that are being processed by the MB-GATEWAY. This logging feature will only send packets to the PC that requested the logging; therefore it is not using broadcast packets, and each Gateway can only log data to 1 PC at a time.
To use logging, connect to MB_GATEWAY with SMTPViewer (UDP only; port 0x7272) and issue the following command:
‘Log [req] [rsp] [rtu] [tcp] [dev #] [raw]’ req = Log requestsrsp = Log responsesrtu = Log RTU transactionstcp = Log TCP
transactionsraw = Show raw bytes instead of decoding transactionsdev # = Ex ‘dev 1’ would show only transactions for device 1
For example, to see all Modbus/RTU transactions (requests and responses) to/from device 1 in a decoded form, the command is:‘Log rtu req rsp dev 1’
The command ‘log’ by itself defaults to ‘log req rsp rtu tcp’ which will show all requests and responses for all devices in a decoded form. All forms of the log command toggle from on to off, so you can issue the same command again to turn logging off.
5
6
7
8
9
10
11
12
13
14
A
B
C
D
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
3-6
Chapter
Chapter
Chapter
parameTers
4
4
4
In this Chapter...
Home Page ...................................................................................................................4-2
Gateway Modbus ID ..................................................................................................... 4-3
Module Name and Module Description ......................................................................4-4
IP Setup Configuration Page ........................................................................................4-5
Serial Port Configuration Page ....................................................................................4-6
Set Up Slave Timeout / Retries Page ........................................................................... 4-7
Gateway Device Status Page ........................................................................................ 4-8
1 Automatic Reads ����������������������������������������������������������������������������������������������������� 4-9 2 Last Modbus TCP Request ��������������������������������������������������������������������������������������4-9 3 Last Modbus RTU Request ������������������������������������������������������������������������������������4-10 4 Status Information ������������������������������������������������������������������������������������������������ 4-10
Setup Automatic Read Page ��������������������������������������������������������������������������������������4-10
Firmware Updates ......................................................................................................4-11

Home Page

The configuration of the MB-GATEWAY is accessed through a web browser at the well­known HTTP port 80 (not configurable). The image below shows the home page that will be displayed when the web server of the MB-GATEWAY module is accessed. From this page, all of the different setup screens can be accessed.
Chapter 4: Parameters
1
2
3
4
5
6
7
8
9
MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. H 02/21
10
11
12
13
14
A
B
C
D
4-2
Loading...
+ 66 hidden pages