ABLELink MB5000 Series User Manual

Modbus gateway

Advertisement

Quick Links

®
ABLELink
Modbus Gateway
MB5000 Series
User's Manual
Version 1.1
Updated in March, 2010
TEL: 886-3-5508137
FAX: 886-3-5508131
http://www.atop.com.tw

Advertisement

Table of Contents
loading

Summary of Contents for ABLELink ABLELink MB5000 Series

  • Page 1 ® ABLELink Modbus Gateway MB5000 Series User’s Manual Version 1.1 Updated in March, 2010 TEL: 886-3-5508137 FAX: 886-3-5508131 http://www.atop.com.tw...
  • Page 2: Table Of Contents

    User manual Version 1.0 Modbus Gateway Table of Contents Table of Contents............................2 Introduction .............................. 4 Features ..............................5 Specifications ............................6 Hardware Diagram ............................ 7 Diagram..............................7 2-Port Hardware Diagram........................7 4-Port Hardware Diagram........................7 Pin Definitions ............................8 Power Pin Definitions .........................
  • Page 3 User manual Version 1.0 Modbus Gateway Configuration Examples......................... 29 Example 1: Serial Port to Slave Device ..................... 29 Port1 settings: ..........................29 Configure the port parameters: ..................... 29 Port1 “Serial Device Mode” setup ....................30 Port2 settings: ..........................31 Configure the port parameters: ..................... 31 Port2 “Serial Device Mode”...
  • Page 4: Introduction

    User manual Version 1.0 Modbus Gateway Introduction Modbus is an industry adopted communication protocol based on RTU, ASCII, and TCP protocols for various applications; these three protocols are commonly used by hardware equipments in the industry, such as DCS, PLC, HMI, power load measurement, various sensor and measuring instruments. The Modbus Gateway is capable of implementing the Modbus environment between different hardware interfaces, thereby streamlining the process of management and application.
  • Page 5: Features

    User manual Version 1.0 Modbus Gateway Features  Supports the four most commonly used hardware communication interfaces in the industry, RS232, RS485, RS422, and Ethernet.  Easy-to-use webpage setup for RS232, RS485, RS422.  Effortlessly convert between Modbus TCP, Modbus RTU, and Modbus ASCII. ...
  • Page 6: Specifications

    User manual Version 1.0 Modbus Gateway Specifications Specifications Model MB5302 (2-Port) MB5404 (4-Port) System RISC 150MHZ Processor with 32-bit 266MHz RISC Processor with MMU Flash 16M Bytes 32M Bytes 64M Bytes 128 M Bytes DDR EEPROM 2K Bytes 8K Bytes Watchdog Hardware &...
  • Page 7: Hardware Diagram

    User manual Version 1.0 Modbus Gateway Hardware Diagram Diagram 2-Port Hardware Diagram 4-Port Hardware Diagram...
  • Page 8: Pin Definitions

    User manual Version 1.0 Modbus Gateway Pin Definitions Power Pin Definitions 2-Port Power Pin Definitions (DC) DC 9V - DC 30V Ethernet Port Pin Definitions (RJ45) Signal...
  • Page 9: Serial Port Pin Definitions

    User manual Version 1.0 Modbus Gateway Serial Port Pin Definitions 2-Port and 4-Port Pin Definitions (DB9) RS-232 RS-422 RS-485 Signal Signal Signal TXDB (+) RXDB(+) DataB (+) RXDA (-) DataA (-) TXDA (-)
  • Page 10: Configuration And Management

    User manual Version 1.0 Modbus Gateway Configuration and Management Connecting to the Setup Page There are two methods of connecting to the Modbus Gateway Configuration and Management webpage: The first method is to use the included software tool (Devicevw.EXE) and directly select the IP address then Click the “Browser”...
  • Page 11: System Information

    User manual Version 1.0 Modbus Gateway System information The menu tree to the left side of the page contains the configuration and management options. The Modbus Gateway version is to the upper right corner and the system information is at the right hand side. Each field is briefly described as below: Station Name Name of this Modbus Gateway...
  • Page 12: Login

    User manual Version 1.0 Modbus Gateway Login If nothing is modified after connecting to the Modbus Gateway, the user does not have to be logged in. To make modifications to the Modbus Gateway, the user must first login beforehand or at the system prompt after modifications are made.
  • Page 13: Port Information

    User manual Version 1.0 Modbus Gateway Port information The Port Information menu can browse through and modify the settings of all ports, including [Port overview] and [Port] information. Port overview Port overview will list the current settings of all ports on Modbus Gateway, while some detailed port information will not be displayed here and is listed under the port setup details.
  • Page 14: Port

    User manual Version 1.0 Modbus Gateway Port [Port] will configure the basic parameters and connection information to the Modbus Gateway. There are two submenus [Parameter] and [Serial Device Mode] under the [Port] menu. Parameter Parameter contains the following basic parameters for the port: Hardware Mode, Baud Rate, Data Bits, Parity, Stop Bits, and Flow Control.
  • Page 15: Serial Device Mode

    User manual Version 1.0 Modbus Gateway Serial Device Mode Modbus devices are commonly labeled as Master and Slave and therefore, the Serial Device Mode of the Modbus Gateway is also labeled as such modes, Master and Slave. When the port is set to Master, then the Ethernet will have to be set as Slave;...
  • Page 16 User manual Version 1.0 Modbus Gateway connected to the port. For example, Port1 connected device uses the Modbus RTU communication protocol then “Data Mode” will be set to RTU; vise versa, if the connected device uses Modbus ASCII then “Data Mode” will be set to ASCII. Note: Modbus Gateway also supports TCP mode for the “Serial Device Mode”...
  • Page 17 User manual Version 1.0 Modbus Gateway ID routing-table: Master ID and Slave ID modes. Master Request ID 1-30 Master ID 11-20 to Slave ID 1-10 Master ID 1-10 to Slave ID 1-10 Master ID 21-30 to Slave ID 1-10 Slave serial ID 1-10 Slave serial ID 1-10 Slave serial ID 1-10 Master ID: The Master ID is a virtual ID and each field must not duplicate with another.
  • Page 18 User manual Version 1.0 Modbus Gateway (II) “Serial Device Mode” as “Master” Serial Port as “Master” Ethernet as “Slave” Figure 2. Configuration page for “Serial Device Mode” as “Master” This is similar to the slave configuration including three parts, (1) Port-mode setting, (2) Slave-setting list, and (3) Action area.
  • Page 19 User manual Version 1.0 Modbus Gateway “Slave IP”: IP address for connecting to remote slave device. “Slave TCP Port”: TCP port for connecting to remote slave device. “Data Mode”: Includes RTU, ASCII, and TCP modes. The “Data Mode” here configures the communication protocol for the slave device, and must be set to the communication protocol used by the remote Ethernet-slave.
  • Page 20: Miscellaneous

    User manual Version 1.0 Modbus Gateway Miscellaneous The miscellaneous menu includes the [Basic settings] and [Advanced settings] for the Modbus Gateway. Basic settings: Configure the “Modbus Gateway Station Name”, “Modbus Gateway System Time”, and “Username and Password” (Login to Modbus Gateway webpage). Advance settings: Enable and disable the communication log and configuration file of the Modbus Gateway.
  • Page 21: Advance Settings

    User manual Version 1.0 Modbus Gateway Advance settings There are two main functions in the advanced settings, (1) Enable and disable Modbus Gateway communication logs, (2) Maintenance of the configuration file. Log setting Enables and disables the Modbus Gateway communication logs. Enabling the communication log will increase resource consumption of the system, and therefore it is not recommended for units that are currently online.
  • Page 22 User manual Version 1.0 Modbus Gateway Import Setting: Click “Browse” and select the configuration file to recover the Modbus Gateway, then click Export Setting: Right click on “Export Settings (...)” and then select [Save target as] in IE. Enter the file name and then confirm to save the file.
  • Page 23: Network Settings

    User manual Version 1.0 Modbus Gateway Network Settings The Modbus Gateway features two network devices that can be configured. After carefully configuring the network settings, apply the changes or reboot to put into effect. Enter the LAN1 and LAN2 settings. If there are no Gateways on the same network as the Modbus Gateway, it is possible to use the current IP as the Gateway IP address.
  • Page 24: Log

    User manual Version 1.0 Modbus Gateway Lookup the system or communication logs. System log The system log will record the startup, shutdown, error, or warning messages during the operation, including both normal message and warn message. The connection records of the client and Modbus Gateway will be logged in the warn message category.
  • Page 25 User manual Version 1.0 Modbus Gateway Communication log has three sections, Serial, Ethernet, and Unidentifiable. Serial: Includes three fields, (1) Serial port number, (2) Ethernet IP, (3) Old data. These logs are the Read and Write data from the serial port with the IP hyperlink for the “Ethernet” field (e.g. 192.168.100.31(12), and because a single IP may have multiple connections, each connection will be identified with an ID in the brackets.
  • Page 26 User manual Version 1.0 Modbus Gateway Click on upper left “Refresh” to refresh the contents, click “Close” to close this log window. This example uses the Port1 and the communication log will be listed for Port01, the leading data is the time , followed with Write or Read...
  • Page 27: Warm Start

    User manual Version 1.0 Modbus Gateway Warm Start Warm Start is rebooting the Modbus Gateway without cutting off the power. The Reboot option or cutting off the power then re-powering should be used after modifying the network settings.
  • Page 28: Reboot

    User manual Version 1.0 Modbus Gateway Reboot Reboot the Modbus Gateway system and all modified settings will be applied after the reboot.
  • Page 29: Configuration Examples

    User manual Version 1.0 Modbus Gateway Configuration Examples Example 1: Serial Port to Slave Device Two serial ports connecting to different serial devices, where Port1 connects to 10 serial Modbus RTU devices with ID 1-10 using RS485 communication; and Port2 connects 10 serial Modbus ASCII devices with ID 1-10 using RS422 communication.
  • Page 30: Port1 "Serial Device Mode" Setup

    User manual Version 1.0 Modbus Gateway After the Parameter has been configured, select the “Serial Device Mode” function menu for Port1. Port1 “Serial Device Mode” setup Port1 is the Modbus RTU Slave device, therefore Serial Device Mode is set to Slave Data Mode is set to RTU Configure the Master device after the Slave device is configured.
  • Page 31: Port2 Settings

    User manual Version 1.0 Modbus Gateway Then we will configure the ID Routing between ID 1-10 of Port1 and ID 1-10 of Port2, where the Master ID will be used to identify the routing between Port1 and Port1. In this example, the Master ID1-10 is routed to Port1 and Master ID11-20 is routed to Port2.
  • Page 32: Port2 "Serial Device Mode" Setup

    User manual Version 1.0 Modbus Gateway After the Parameter has been configured, select the “Serial Device Mode” function menu for Port2. Port2 “Serial Device Mode” setup Port2 is the Modbus ASCII Slave device, therefore Serial Device Mode is set to Slave Data Mode is set to ASCII Configure the Master device after the Slave device is configured.
  • Page 33: Example 2: Serial Port To Master Device

    User manual Version 1.0 Modbus Gateway Then we will configure the ID Routing between ID 1-10 of Port1 and ID 1-10 of Port2, where the Master ID 1-10 will be routed to Port1 and Master ID 11-20 will be routed to Port2 as below: Enter Master ID 11-20 Enter Slave ID 1-10 Click...
  • Page 34: Port1 Settings

    User manual Version 1.0 Modbus Gateway Port1 settings: Configure the port parameters: Port1 uses RS485 and should be set in the Hardware Mode option. Click after settings are made but do not click Apply until Port2 has been configured. After the Parameter has been configured, select the “Serial Device Mode” function menu for Port1. Port1 “Serial Device Mode”...
  • Page 35: Port2 "Serial Device Mode" Setup

    User manual Version 1.0 Modbus Gateway (1) Configure Slave A: Set the IP address and TCP Port of Slave A, as well as ID range for Slave A. Enter the Slave A parameters, Salve IP 192.168.100.31, TCP Port 502, using TCP (communication protocol) as the Data Mode, and the slave device response time.
  • Page 36: Example 3: Modbus Gateway To Modbus Gateway Direct Link

    User manual Version 1.0 Modbus Gateway (2) Configure Slave B: Set the IP address and TCP Port of Slave B, as well as ID range for Slave B. Enter the Slave B parameters, Salve IP 192.168.100.32, TCP Port 502, using TCP (communication protocol) as the Data Mode, and the slave device response time.
  • Page 37 User manual Version 1.0 Modbus Gateway and 2.

Table of Contents