Lantronix XPort APS: Modbus Protocol User Guide

Lantronix XPort Manual

Lantronix XPort manual content summary:

  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 1
    Modbus Protocol User Guide Part Number 900-271 Revision I June 2013
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 2
    Fax: 949-450-3995 Technical Support Online: www.lantronix.com/support Sales Offices For a current list of our domestic and international sales offices, go to the Lantronix web site at www.lantronix.com/about/contact Disclaimer The information in this guide may change without notice. The manufacturer
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 3
    9 IAP Device Server's IP Address 10 Using the Setup Mode Screen 10 Basic Commands (D/S/Q 11 Default Settings (D 11 Save (S 11 Quit Without Saving (Q 11 Network/IP Settings 12 IP Address 12 Set Gateway IP Address (Y/N 12 Set Netmask (N for default 12 Telnet Configuration Password 12 Serial
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 4
    17 Slave IP Address 17 Security Settings 17 SNMP 18 SNMP community 18 Telnet Setup 18 TFTP Download 18 Port 77FEh 18 Web Server 19 Enable Enhanced Password 19 Port 77F0 (Hex 19 Default Security Settings 19 4: Monitor Mode and Firmware 20 5: WiPort and WiBox Implementation 21 6: XPort
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 5
    to fail 31 Technical Support 33 Figures Figure 2-1. Extended Modbus System Example 7 Figure 3-1. Setup (Configuration) Mode Screen 11 Figure 3-2. Unit ID to IP Address Lookup Table 16 Figure 3-3. Unit ID to Address Lookup Table Example 16 Tables Table 3-1. Default Security Settings 19 Table
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 6
    the XPort, WiPort, xPico, and Micro/Micro125. The default protocol in new IAP Device Servers is the Standard Tunneling protocol, a serial protocol used to connect thousands of intelligent devices to the Ethernet. The user guide for your IAP Device Server provides detailed information for installing
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 7
    IAP Device Server allows users to integrate new and existing Modbus/RTU and Modbus/ASCII serial devices with newer TCP/IP network-based devices. The running entire automated assembly lines. The slave devices are not called "slaves" because they work all the time; they are called slaves because as
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 8
    C can poll traditional Modbus/RTU slave devices D, G, and H as if they were directly multi-dropped on an attached RS485 line. The IAP Device Server transparently bridges traditional Modbus/RTU devices across any TCP/IP network. This means users can start implementing for Modbus/TCP long before
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 9
    3: Configuring Modbus Network Protocols The IAP Device Server uses TCP/IP protocols for network communication. The supported standards are ARP, UDP, TCP, ICMP, Telnet, TFTP, DHCP, and SNMP. For transparent connections, TCP/IP (binary stream) or Telnet protocols are used. Firmware upgrades can be
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 10
    the Setup Mode Screen 1. From the DeviceInstaller configuration utility, click the Telnet button to open a Telnet connection to the IAP Device Server. The IAP Device Server's Ethernet hardware address (or HW MAC) displays. Lantronix Inc. - Modbus Bridge MAC address 00204A8EEA49 Software version
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 11
    Basic Commands (D/S/Q) Figure 3-1. Setup (Configuration) Mode Screen shows the main IAP Device Server configuration menu. The IAP Device Server offers three basic options. Default Settings (D) Entering D resets all parameters to the factory default as shown above. Only the IP address does not change
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 12
    the IAP Device Server to automatically use the standard netmask appropriate for the IP address entered. Users who want a non-standard netmask need to enter the new subnet mask in the traditional form, for example, 255.255.248.000. Telnet Configuration Password The Telnet configuration password can
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 13
    baud rates 57,600 and 115,200. The UDS-10-IAP supports only 1 stop bit. If you try to set an unsupported combination of settings, a warning displays. Note: Regardless of these settings, IAP Device Server configuration is always done on CH1 with RS232 and a setting of 9600,8,N, 1. Modem Control
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 14
    at a single IP address. Unfortunately, some first generation software drivers assumed a single slave at each IP and always set the Unit ID field to 0. This causes the IAP Device Server problems because it requires the Unit ID for the Modbus/RTU "Slave Address." To support these older applications
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 15
    one at a time and answer each in turn. See 4: Monitor Mode and Firmware for more information. Setting this to 1/No causes the IAP Device Server to allow this queuing or pipeline behavior. This is the safest default setting - only change this to disable if you are having problems. Setting this to
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 16
    -> IP Address Table Close Idle Sockets 10sec Redundant Entry Retry . . . . Feature Disabled 7) Security Settings: SNMP Enabled SNMP Community Name . . . . .. public Telnet Setup Enabled TFTP Download Enabled Port 77FEh Enabled Web Server Enabled Web Setup Enabled Enhanced Password Disabled
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 17
    last/4th octet of the IP to 1-254 causes all slave polls in this group to be sent to the same IP. 255 is not accepted as the last/4th IP octet. Security Settings Select 7 to configure the Device Server's security setting parameters. 7.Security Settings: SNMP Enabled Modbus Protocol User Guide 17
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 18
    3: Configuring Modbus SNMP Community Name ........ public Telnet Setup Enabled TFTP Download Enabled Port 77FEh Enabled Web Server Enabled Web Setup Enabled Enhanced Password .......... Disabled Port 77F0h Enabled CAUTION: Disabling both Telnet Setup and Port 77FE will prevent users from
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 19
    . Table 3-1. Default Security Settings Security Feature Disable SNMP SNMP community name Disable Telnet setup Disable TFTP Firmware Update Disable Port 77FEh Disable Web Server Enable Enhanced Password Disable Port 77F0h Default Setting No public No No No No No No Modbus Protocol User Guide 19
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 20
    free utility program provided by Lantronix that discovers, configures, upgrades, and manages Lantronix Device Servers. It can be downloaded from the Lantronix website at www.lantronix.com/support/downloads. For instructions on using DeviceInstaller to configure the IP address and related settings or
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 21
    .  RS485 2-Wire and 4-Wire are outputs made active when configuring RS422/485 2-Wire or 4Wire operation respectively.  Defaults is an input read at startup that tells the firmware to reset configuration to factory defaults. After assigning the applicable function by pressing Enter, you are then
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 22
    Settings: SNMP Enabled SNMP Community Name ........ public Telnet Setup Enabled TFTP Download Enabled Port 77FEh Enabled Web Server Enabled Web Setup Enabled Enhanced Password .......... Disabled Port 77F0h Enabled The menu option for WLAN Settings has been added to configure the
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 23
    Protocol Settings on WiPort. The Modbus slave address and starting offset parameters are used to direct Read Coil Status, Read Input Status, to the WiPort's GPIO. Other commands or unmatched addressing are directed to the serial port. Local slave address for GPIO (0 to disable, or 1..255) (0)
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 24
    This output is configurable for active high (default) or active low. CP3 Function (1=Unused, 2=Diagnostic LED Output, 3=CTS Input) The Diagnostic LED Output function for CP3 is an active low output for controlling the device server's Diagnostic LED (LED3 in the XPort Integration Guide). Select (Y)es
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 25
    firmware uses for sending and receiving Modbus/RTU or Modbus/ASCII serial data under the Serial & Mode Settings menu option. Note: Channel 1 on xPico supports transactions happening in the device server.  RS485 Select is an output made active when configuring the serial channel for User Guide 25
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 26
    Char, Message Timeout ...... 00050msec, 05000msec 7) Security Settings: SNMP Enabled SNMP Community Name ........ public Telnet Setup Enabled TFTP Download Enabled Port 77FEh Enabled Web Server Enabled Enhanced Password .......... Disabled Port 77F0h Enabled D)efault settings, S)ave
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 27
    : SNMP Enabled SNMP Community Name ........ public Telnet Setup Enabled TFTP Download Enabled Port 77FEh Enabled Web Server Enabled Enhanced Password .......... Disabled D)efault settings, S)ave, Q)uit without save Select Command or parameter set (1..7) to change: Modbus Protocol User Guide
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 28
    factory default configuration. If the user presses the reset button for 0-2 seconds then the unit simply reboots. Note: With factory default configuration, IP address, Gateway and Netmask are set to 0.0.0.0. Micro125 Factory Defaults To restore the factory default configuration of the device server
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 29
    10: Troubleshooting and Technical Support Using the IAP Device Server firmware is normally easy. However, if a problem occurs, it is difficult to troubleshoot without an in-depth knowledge of Modbus and the system dynamics of polling. Some general guidelines for troubleshooting:  Start polling
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 30
    Device Server TCP/IP network device. Oddly enough, the simpler the device, the faster it tends to reply. Some controllers only allocate fixed time device.  The IAP Device Server firmware only expects Modbus/TCP from the network. Some applications just pack Modbus/RTU raw in TCP - this is not supported
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 31
    10: Troubleshooting and Technical Support Only Slave ID #1 can be polled Your application is setting the Modbus/TCP Unit ID field to 0. This causes the IAP Device Server firmware to automatically map this to 1. Every 2nd poll seems to fail Most likely you are using RS485, but regardless, your device
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 32
    polling each of the five 1.25 sec is the only promised safe rate.  If you are only polling a single slave (or poll one slave at a time), then you can try the "Disable Pipeline" option in the IAP Device Server firmware. This will either help or make Modbus Protocol User Guide 32
  • Lantronix XPort | APS: Modbus Protocol User Guide - Page 33
    .com Firmware downloads, FAQs, and the most up-to-date documentation are available at www.lantronix.com/support. When you report a problem, please provide the following information:  Your name, and your company name, address, and phone number  Lantronix model number and serial number  Software
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33

Part Number 900-271
Revision I
June 2013
Modbus Protocol
User Guide