Table of Contents

Advertisement

Quick Links

MB-GATEWAY
Hardware User Manual
Manual Number:
MB-GATEWAY-USER-M

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MB-GATEWAY and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for AutomationDirect MB-GATEWAY

  • Page 1 MB-GATEWAY Hardware User Manual Manual Number: MB-GATEWAY-USER-M...
  • Page 2 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.
  • Page 3 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...
  • Page 4 («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é.
  • Page 5 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. G Issue Date: 02/2020 Publication History Issue Date Description of Changes...
  • Page 6: Table Of Contents

    able of onTenTs 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 ......................
  • Page 7 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. G 02/20...
  • Page 8 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�...
  • Page 9 hapter hapter hapter eTTinG TarTed 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...
  • Page 10: Chapter 1: Getting Started

    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.
  • Page 11: Who Should Read This Manual

    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 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 12: Conventions Used

    Key Topics for Each Chapter The beginning of each chapter will list the key topics that can be found in that chapter. HAPTER Getting Started In This Chapter... General Information ..............1-2 Specifications ................1-4 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 13: Product Overview

    (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.
  • Page 14: What's In The Box

    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...
  • Page 15: Din Rail Mounting

    Chapter 1: Getting Started 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.
  • Page 16 hapter hapter hapter peCifiCaTions In this Chapter... Specifications .........................2-2 LED Indicators ........................2-3 Dip Switch Information ....................2-4 Dimensional Drawing ....................2-5...
  • Page 17: Chapter 2: Specifications

    5 to 95% RH (non-condensing) Environmental Air For use in Pollution Degree 2 Environment. No corrosive gases Vibration MIL STD 810C 514.2 Shock MIL STD 810C 516.2 Weight 0.2 lbs (0.09 kg) MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 18: Led Indicators

    • 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.
  • Page 19: Lk/A

    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. The RXD or RECEIVE DATA LED flashes to indicate that the MB-GATEWAY is receiving data through the serial port.
  • Page 20: Dip Switch Information

    1 Bit 2 Bits S7 reserved Reserved * Se ng S6 to on will, on power cycle, set the IP address, subnet mask and gateway address in the MB-GATEWAY to 0.0.0.0 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 21: Dimensional Drawing

    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 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 22 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...
  • Page 23: Chapter 3: Installation, Wiring And Configuration

    Security should always be carefully evaluated for each installation. Refer to “Appendix C: Security Considerations for Control Systems Networks” for more information. MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 24: Wiring Diagrams

    Chapter 3: Installation, Wiring and Configuration Wiring Diagrams The MB-GATEWAY module can be wired in either 4-wire or 2-wire mode. RS-422/RS-485 Gateway Slave 1 Slave 2 Last Slave * User Supplied 120 Termination (Gateway contains a Resistor 120 Termination Resistor...
  • Page 25: Mb-Gateway Configuration

    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.
  • Page 26: Netedit Configuration

    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.
  • Page 27: Function Codes Supported

    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.
  • Page 28 hapter hapter hapter arameTers 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 ..................
  • Page 29: Chapter 4: Parameters

    Chapter 4: Parameters 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.
  • Page 30: Gateway Modbus Id

    The Back button will browse back to the previous page viewed without saving any changes made on the current page. The Send button will Send any changes made on this page to the MB-GATEWAY, effectively saving those changes. The Reset button will undo any changes made on this page, back to the values that have been Sent to the MB-GATEWAY previously.
  • Page 31: Module Name And Module Description

    Chapter 4: Parameters Module Name and Module Description These fields are used only for reference and identification when managing several different MB-GATEWAY modules on a network. MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 32: Ip Setup Configuration Page

    The IP address, Subnet Mask and Default Gateway address can be configured on this page. You may lose communications with the MB-GATEWAY module if you configure an IP address and/or Subnet Mask that is not compatible with the subnet of your PC’s Network Interface Card. You may be required to change the subnet settings of your PC or use the NetEdit tool to regain communications in this situation.
  • Page 33: Serial Port Configuration Page

    Modbus RTU serial nodes connected to the MB-GATEWAY module. In some situations, such as a high amount of electrical noise, poor cabling, etc., it may be necessary to reduce the baud rate on the MB-GATEWAY module AND serial devices on the network.
  • Page 34: Set Up Slave Timeout / Retries Page

    The way that the timeout and retry field is utilized is: The MB-GATEWAY will send a request to the serial device, if there is no reply from the device within the Timeout value specified, the MB-GATEWAY will send another request and wait again.
  • Page 35: Gateway Device Status Page

    Chapter 4: Parameters Gateway Device Status Page The Gateway Device Status page contains statistical information about the MB-GATEWAY module that can be used to gauge the performance of the communications and to troubleshoot communications. MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 36: Automatic Reads

    Count: Indicates the number of Registers, Coils or Bits requested within the Modbus TCP request. Data: This field indicates the Data values written to the MB-GATEWAY module when a Write function has been sent from the Modbus TCP Client device.
  • Page 37: Last Modbus Rtu Request

    Status: Indicates the action taken by the MB-GATEWAY module on the Modbus RTU side. Waiting for Header = This indicates that the MB-GATEWAY module has sent a request and is waiting for the Reply. Timeout = If a request was sent to a Modbus RTU device and no reply is received, this message will appear.
  • Page 38: Firmware Updates

    MB-GATEWAY module by clicking on File-> Live Update. Once you have the firmware file to load into the MB-GATEWAY module, click on the Scan Network button at the top left to browse for the MB-GATEWAY module that is in the subnet of the PC.
  • Page 39 Chapter 4: Parameters Confirm that you wish to perform the upgrade by clicking on the “Yes” button. Once the process is complete, you will receive a dialog confirming success. 4-12 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 40 hapter hapter hapter uTomaTiC eaTure In this Chapter... Automatic Read Feature ....................5-2 Situation 1:������������������������������������������������������������������������������������������������������������������ 5-3 Situation 2:������������������������������������������������������������������������������������������������������������������ 5-6 Additional Optimization ....................5-8 Automatic Read Status Data ���������������������������������������������������������������������������������������� 5-9...
  • Page 41: Chapter 5: Automatic Read Feature

    Chapter 5: Automatic Read Feature Automatic Read Feature The Automatic Read Feature allows the MB-GATEWAY module to utilize some of the idle time that usually occurs between Modbus TCP requests from the Client device. Note that this feature only allows the reading of data from the serial devices and not writing to them.
  • Page 42: Situation 1

    “Unit ID” number that is sent within the Modbus TCP header that is typically used to target a Modbus RTU node that is on the serial side of the MB-GATEWAY. Therefore, the Node number that is assigned to the MB-GATEWAY module should be unique from any Modbus RTU nodes on the serial network.
  • Page 43 RTU slave device 1 Modbus Modbus Ethernet TCP Client RTU slave device device 5 Other devices Step 2: Request is then generated on the Serial side of the MB-GATEWAY. Memory Slave Number Gateway To Read Number Start Memory Address Elements...
  • Page 44 RTU slave device 1 Modbus Modbus Ethernet TCP Client RTU slave Reply with data device device 5 Other devices Step 4: Gateway generates TCP reply and sends back to Client device. MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 45: Situation 2

    Other devices Step 1: Before a request even comes in on the Ethernet side, the MB-GATEWAY is reading data from the serial slaves at the “Inter-packet TX Delay” rate and placing that data into its local cache. MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 46 Other devices Step 3: MB-GATEWAY immediately generates TCP reply and sends back to Client device from local cache without generating a new serial request. The response time for the TCP request will be significantly faster when the request is targeted at an address in the Automatic Read table.
  • Page 47: Additional Optimization

    Chapter 5: Automatic Read Feature Additional Optimization An additional method of optimization is used in the MB-GATEWAY. If a request is sent to the MB-GATEWAY from the Modbus TCP Client targeted at a Node number and starting address that is equivalent to an entry in the Automatic Read table, the MB-GATEWAY will treat the request as if it had been targeted at the MB-GATEWAY Modbus address and will respond from its local data cache since the data is the same.
  • Page 48: Automatic Read Status Data

    Another way that is very common and is seen often in AutomationDirect products is the use of the Modicon style addressing. This method employs a PLC style address that contains a Modbus memory type in the highest digit of the address followed by the offset from 1.
  • Page 49 If set, 16th auto read entry is valid and communicating. 4001 Error count for 1st auto read entry 4002 Error count for 2nd auto read entry 4016 Error count for 16th auto read entry 5-10 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 50 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�...
  • Page 51: Appendix A: Application Examples

    • Ethernet switch and cables to connect from the PC to MB-GATEWAY Step 1: Connect the MB-GATEWAY serial port to the DL06 secondary communications port. Using the short length of Belden 9842, connect the MB-GATEWAY to the DL06 Port 2 as shown: RS-422/RS-485...
  • Page 52: Step 2: Configure The Dl06 Plc Serial Port And Mb-Gateway Serial Port

    Appendix A: Application Examples Step 2: Configure the DL06 PLC serial port and MB-GATEWAY serial port. Connect to the DL06 PLC with DirectSoft. Go to the PLC pulldown and select Setup > Setup Secondary Comm. Port as shown: MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 53 PLC. Once this has been done, click on the icon on the upper right hand side with the arrow pointing to the PLC to save the settings in the PLC. MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 54 Appendix A: Application Examples In order to match the serial port settings of the DL06 to the MB-GATEWAY open up a web browser, such as Internet Explorer, and enter in the IP address of the MB-GATEWAY to access the main screen as shown: For instructions on connecting with a web browser see NetEdit Configuration section in Chapter 3.
  • Page 55 Click on the link to the right of “Serial Port Configuration” and set up the window to match the DL06 PLC port and then click on the Send button to save the settings: MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 56: Step 3: Connect To The Mb-Gateway Using The Modbus Poll Simulator Software

    Appendix A: Application Examples Step 3: Connect to the MB-GATEWAY using the Modbus Poll simulator software. Once the software has been obtained from www.modbustools.com and installed according to the directions provided from their website, open up the Modbus Poll software.
  • Page 57 Enter in 1 for the Slave ID. This matches the Unit ID in the protocol that will determine which Modbus Serial Slave will be targeted on the serial side of the MB-GATEWAY. Entering 1 here will match up to the Station Number configured above in DirectSoft for the DL06 PLC.
  • Page 58 Appendix A: Application Examples In the Connection Setup window, choose the Modbus TCP/IP connection type. Enter the IP address of your MB-GATEWAY module in the lower left hand corner. Match everything else as shown: Click on OK to connect to the MB-GATEWAY.
  • Page 59 V0 and change the display type to “Decimal” to match the Modbus Poll software: Change the value in data view for V0 to various values and watch the value change in Modbus Poll to match. A-10 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 60: Example 2

    Using Modbus Poll to MB-GATEWAY with CLICK Slave This example will illustrate how to use Modbus Poll, which is a PC based Modbus Master simulator tool, to connect through the MB-GATEWAY to a CLICK PLC via 2 wire RS-485. Items needed for this example: •...
  • Page 61: Step 2: Configure The Click Serial Port And Mb-Gateway Serial Port

    Appendix A: Application Examples Step 2: Configure the CLICK serial port and MB-GATEWAY serial port. Connect to the CLICK PLC with CLICK programming software. Go to the Setup pulldown and select Com Port Setup... as shown: A-12 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 62 Configure the port for 38400 baud rate, Odd parity, 1 Stop Bit and Node Address 1. Leave the other settings as shown below. Note the Node Address number configured here. Once the settings are configured, Click on the Ok button. A-13 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 63 Appendix A: Application Examples Next, transfer the project to the PLC for the Port 3 settings to take effect. Select the PLC pulldown menu and choose Write Project into PLC... A-14 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 64 Appendix A: Application Examples Choose Ok and follow the steps when prompted to transfer the project to the PLC. A-15 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 65 Appendix A: Application Examples Now go into the MB-GATEWAY configuration and match the serial port settings to the PLC Port 3 settings. Open up a web browser, such as Internet Explorer, and enter in the IP address of the MB-GATEWAY to access the main screen as shown.
  • Page 66 Click on the link to the right of “Serial Port Configuration” and set up the window to match the CLICK PLC port and then click on the Send button to save the settings: A-17 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 67: Step 3: Connect To The Mb-Gateway Using The Modbus Poll Simulator Software

    Appendix A: Application Examples Step 3: Connect to the MB-GATEWAY using the Modbus Poll simulator software. Once the software has been obtained from www.modbustools.com and installed according to the directions provided from their website, open up the Modbus Poll software.
  • Page 68 Appendix A: Application Examples Configure the Read/Write definition for a simple read of the register 400001, which equates to DS1 in the CLICK PLC as shown. A-19 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 69 Appendix A: Application Examples A-20 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 70 Enter in 1 for the Slave ID. This matches the Unit ID in the protocol that will determine which Modbus Serial Slave will be targeted on the serial side of the MB-GATEWAY. Entering 1 here will match up to the Node Address configured above in the CLICK programming software for Port 3.
  • Page 71 Appendix A: Application Examples In the Connection Setup window, choose the Modbus TCP/IP connection type. Enter the IP address of your MB-GATEWAY module in the lower left hand corner. Match everything else as shown: Click on OK to connect to the MB-GATEWAY.
  • Page 72 Data View window and enter in DS1 as shown. Change the value in data view for DS1 to various values and watch the value change in Modbus Poll to match. A-23 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 73: Example 3

    Step 2: Connect P3000 CPU (P3-550) to MB-GATEWAY via Ethernet Switch and Two Ethernet Cables. Configure the IP address of the P3 CPU and the MB-GATEWAY to be compatible subnets. Steps to configure the IP address of the P3-550 CPU areas follows: Click on Setup on the top menu bar and choose “Hardware Configuration”.
  • Page 74 Appendix A: Application Examples Double click on the image of the P3-550 in the center of the hardware configuration. A-25 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 75 Click on the “Ethernet Ports” tab and configure the IP address in the “Use the Following:” IP address field. Once the correct IP address and Subnet Mask is entered, click on the OK button and close the hardware configuration window. A-26 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 76 Transfer the project to the PAC in order to have the new settings take effect. To do this, select File from the pulldown menu and then Transfer Project >To PAC… A-27 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 77: Step 3: Configure The Mrx Instruction To Read Data From The Mb-Gateway

    Appendix A: Application Examples Step 3: Configure the MRX instruction to read data from the MB-GATEWAY. Double click on the instruction MRX Read to configure the MRX instruction as shown. IP Address: address of the GATEWAY. TCP Port Number: Leave at default 502.
  • Page 78: Example 4

    RJ12 pins will affect other drives if other pins are connected. RS-485 Cable MB-GATEWAY ZL-CDM-RJ12X4 10.11.0.10 6-Pin 6-Pin Cable end marked “Drive Side” RX– TX– GS Drive shield Node ID 3 A-29 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 79: Step 1: Set Up Peer To Peer Configuration

    Device 1 is the Automatic Reads table that resides in the MB-GATEWAY, so it is configured with the MB-GATEWAY IP address and the MB-GAEWAY Unit ID. Device 2 is the first drive. It is configured with the MB-GATEWAY IP address and the first drive Unit ID.
  • Page 80: Step 2: Set The Serial Port Configuration

    Appendix A: Application Examples Step 2: Set the Serial Port Configuration In the NetEdit Module List, select your MB-GATEWAY. Set the IP address and subnet mask as appropriate for your network. In our example, we use 10.11.0.233 and 255.255.255.0. Click Start Web Based Config... To set the Gateway Modbus ID as appropriate for your network.
  • Page 81: Step 4: Using Automatic Reads

    Appendix A: Application Examples Step 4: Using Automatic Reads In the MB-GATEWAY browser configuration utility, click the Automatic Reads link. Slave number 2 is the first drive and Slave number 3 is the second drive in our example. Configure the lines as appropriate.
  • Page 82: Step 5: Access The Automatic Read Data

    Appendix A: Application Examples Step 5: Access the Automatic Read Data The ECRX iBox is used since the data will be read by the ECOM100, rather than a serial connection A-33 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 83 Workspace = an internal, private register used by this iBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program. Slave ID = The MB-GATEWAY Modbus Gateway ID, 1, since we are reading the Automatic Read data stored in the MB-GATEWAY From Slave Element (Src) = the Gateway Memory Address identified on the MB-GATEWAY Setup Automatic Reads config page.
  • Page 84 ECOM100 PLC Success = a bit that will turn on once the request is completed successfully Error = a bit that will turn on if the instruction is not successfully completed A-35 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 85: Step 6: Read And Write From The Dl06

    To Read data from a drive instead of using of the Automatic Read feature of the MB-GATEWAY, and to Write data to the drive, the Slave ID in the ECRX and/or ECWX iBoxes will be the Drive ID. The From Slave Element and/or To Slave Element values will be...
  • Page 86 Appendix A: Application Examples A-37 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 87 Slave ID = The GS Drive Node ID, 2 or 3, depending on which drive we target From Master Element (Src) = the location of data in the Master PLC that will be written to the drive A-38 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 88 Success = a bit that will turn on once the instruction is completed successfully Error = a bit that will turn on if the instruction is not successfully completed A-39 MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 89: Appendix B: Modbus Error Codes

    ppendix ppendix ppendix odbus rror odes In this Appendix... Modbus Error Codes ..................... B-2...
  • Page 90 The slave attempted to read extended memory, but detected a parity error in the memory. The master can retry the request, but service may be required on the slave device. ERROR MB-GATEWAY-USER-M Hardware User Manual, 1st Ed. Rev. G 02/20...
  • Page 91: Security Considerations For Control Systems Networks

    ppendix ppendix ppendix ecurity eCuriTy onSiderationS onsideraTions ontrol onTrol yStemS ysTems etworkS eTWorks In this Appendix... Security Considerations for Control Systems Networks..........C-2...
  • Page 92 It is the user’s responsibility to protect such systems, just as you would protect your computer and business systems. AutomationDirect recommends using one or more of these resources in putting together a secure system: •...
  • Page 93 Automatic Read table, 5–6 Conventions Used, 1–4 Dimensional Drawing, 2–5 Dip Switch Information, 2–4 Firmware Updates, 4–11 Function Codes Supported, 3–6 Introduction, 1–2 MB-GATEWAY Configuration, 3–4 Modbus Error Codes, B–2 Mounting / Clearance Information, 1–6 DIN Rail Mounting, 1–7 Direct Mounting, 1–6...
  • Page 94: Index

    Technical Support, 1–3 Using Modbus Poll to MB-GATEWAY with CLICK Slave, 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 Using Modbus Poll to MB-GATEWAY with DL06 Slave, A–2...
  • Page 95 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 What’s in the Box, 1–6...

Table of Contents