Lantronix XPress-DR-IAP APS: Modbus Protocol User Guide

Lantronix XPress-DR-IAP Manual

Lantronix XPress-DR-IAP manual content summary:

  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 1
    Modbus Protocol User Guide Part Number 900-271 Revision I June 2013
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 2
    and platform information. Added content for xDirect and xPico. Updated security settings available on IAP. Added content for Micro125. For the latest revision of this product document, please check our online documentation at www.lantronix.com/support/documentation. If you use a previous version
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 3
    3: Configuring Modbus 9 Network Protocols 9 Packing Algorithm 9 IP Address 9 Configuration Methods 9 IAP Device Server's IP Address 10 Using the Setup Mode Screen 10 Basic Commands (D/S/Q 11 Default Serial Parameters (B,D,P,S 13 Modem Control Settings 13 Modbus Protocol User Guide 3
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 4
    5: WiPort and WiBox Implementation 21 6: XPort Implementation 24 7: xPico Implementation 25 8: Micro125 Implementation 27 9: Factory Defaults with Reset Pin/Default Pin 28 Modbus Protocol User Guide 4
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 5
    xDirect Factory Defaults 28 Micro125 Factory Defaults 28 10: Troubleshooting and Technical Support 29 How fast can I poll 29 I cannot get a slave response 30 Only Slave ID #1 can be polled 31 Every 2nd poll seems to fail 31 Technical Support 9-1. Baud Rate 29 Modbus Protocol User Guide 5
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 6
    1: Introduction This protocol manual is for use with Lantronix Industrial Automation Protocol (IAP) Device Servers, such as the XPress DR-IAP, UDS1100-IAP, and xDirect-IAP. In addition to our IAP Device Servers, the Modbus protocol is supported on various embedded products including versions of the
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 7
    the original Modbus/RTU. You can find the specification for both online at www.telemecanique.com. The IAP Device Server allows users to integrate new and existing Modbus/RTU and Modbus/ASCII serial devices with newer values (Read) or accept new data values (Write). Modbus Protocol User Guide 7
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 8
    the Lantronix IAP Device to device D. However, the IAP Device Server makes device D appear /TCP and IAP Device Server magic still appliesall IAP Device Server manages and coordinates the shared access. In fact, the IAP RTU master device. Yet the IAP Device Server makes device C line. The IAP Device Server
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 9
    Configuring Modbus Network Protocols The IAP Device Server uses TCP/IP protocols for network communication. The supported standards are ARP, UDP, the unit over the network. See the product user guide for your IAP Device Server. The IAP Device Server configuration is stored in nonvolatile memory and
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 10
    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 the default values, type D on the command line and press Enter. Modbus Protocol User Guide 10
  • Lantronix XPress-DR-IAP | 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 exits configuration mode. This option triggers a reset. Modbus Protocol User Guide 11
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 12
    administrator. Please refer to the IAP User Guide for your Device Server for more details about IP addresses. If the IAP Device Server is set to an , where each 8-bit data byte is converted to 2 ASCII characters. Since the IAP Device Server converts both to and from Modbus/TCP fully, you can mix any
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 13
    IAP only. The UDS-10-IAP and CoBox-FL IAP also support baud rates 57,600 and 115,200. The UDS-10-IAP supports 1 and the IAP Device Server output is is variable. After the IAP Device Server asserts the RTS IAP Device Server to ignore the RTS/CTS response from the modem. Answering Y causes the IAP
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 14
    IAP Device Server sees the modem IAP IAP IAP Device Server problems because it requires the Unit ID for the Modbus/RTU "Slave Address." To support these older applications, the IAP which case the IAP Device Server always IAP Device Server, a true Modbus broadcast is only supported problems IAP IAP
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 15
    will buffer them. The IAP Device Server will fetch No causes the IAP Device Server to allow problems. Setting this to 2/Yes causes the IAP worse. The IAP Device Server IAP Device Server to the Modbus slave. When the slave's response enters the serial port of the IAP port of the IAP Device Server, and
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 16
    change: Since serial Modbus uses 8-bit slave addresses and a TCP/IP network requires 32-bit IP addresses, the IAP Device Server uses this table to map an 8-bit address into an IP/Unit ID combination. The 8-bit address A Modbus addr from (102) Modbus addr to (102) 255 Modbus Protocol User Guide 16
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 17
    select function Close Idle TCP sockets after (3-60 sec, 0=leave open) Unlike earlier versions of the Lantronix Modbus firmware that tried to hold 8 sockets open forever, this version only holds sockets open as required. parameters. 7.Security Settings: SNMP Enabled Modbus Protocol User Guide 17
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 18
    Port 77FE will prevent users from accessing the setup menu from the network. Below are the security features supported in Modbus IAP. SNMP We can enable or disable SNMP. By default it is enabled. Disable SNMP (N) ? users from accessing the setup menu from the network. Modbus Protocol User Guide 18
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 19
    the GPIO control interface. Disable Port 77F0h (N) ? __ Note: XPress-DR, xDirect, UDS1100 and Micro125 will not support this security feature. Default Security Settings All the security features are enabled by default except Setting No public No No No No No No Modbus Protocol User Guide 19
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 20
    . 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 for more advanced features, see the DeviceInstaller Online Help. The User Guide for the Device Server explains two
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 21
    serial data under the Serial & Mode Settings menu option. Note: Channel 1 on WiBox only supports RS-232 while Channel 2 supports RS-232 and RS-422/RS-485 2/4-wire modes. Use serial connector (1=CH1 2=CH2) ) should be the default for all unused or unassigned pins. Modbus Protocol User Guide 21
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 22
    .......... Disabled Port 77F0h Enabled The menu option for WLAN Settings has been added to configure the WiFi parameters of the WiPort/WiBox. Modbus Protocol User Guide 22
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 23
    addressing are directed to the serial port. Local slave address for GPIO (0 to disable, or 1..255) (0) ? 3 Starting offset (0x/1x0001..9999) (1) 100 Modbus Protocol User Guide 23
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 24
    ) 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 on the Wait for CTS option under the CP1 function menu for RTS Output to automatically select the CTS Input function for CP3
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 25
    under the Serial & Mode Settings menu option. Note: Channel 1 on xPico supports RS-232 and RS-422/RS-485 2/4-wire modes while Channel 2 only supports RS-232. Use serial connector (1=CH1 2=CH2) (1) ? The menu option are then asked if the pin is inverted (active low). Modbus Protocol User Guide 25
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 26
    Web Server Enabled Enhanced Password .......... Disabled Port 77F0h Enabled D)efault settings, S)ave, Q)uit without save Select Command or parameter set (1..7) to change: Modbus Protocol User Guide 26
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 27
    is similar to the Modbus implementation on other platforms such as the xPico-IAP and xDirect-IAP. The Micro125 product does not support configurable pins, so they are not applicable in the Setup Menu. The without save Select Command or parameter set (1..7) to change: Modbus Protocol User Guide 27
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 28
    for 3 to 5 seconds. Device server will load the factory default configuration and reboot again. xDirect Factory Defaults To restore the factory default configuration, press and hold the reset pin for more than load the factory default configuration and reboot again. Modbus Protocol User Guide 28
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 29
    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 Protocol User Guide 29
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 30
    10: Troubleshooting and Technical Support b. Delay to issue and get the poll onto the Ethernet. c. Delay for the poll to cross Ethernet and arrive error-free at the IAP Device Server device (may include retries and contention). d. Delay for IAP Device Server to process and queue Modbus/RTU poll. e.
  • Lantronix XPress-DR-IAP | 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 XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 32
    Troubleshooting and Technical Support problem "IAP Device Server returns IAP Device Server is doing its job! 9. The IAP but the IAP Device Server can /Client" problem. However, the IAP Device this problem if with an IAP Device Server IAP Device Server firmware. This will either help or make Modbus Protocol User
  • Lantronix XPress-DR-IAP | APS: Modbus Protocol User Guide - Page 33
    than the IAP Device Server can process and building the TCP buffer queue up in the first place. Technical Support If you lantronix.com or [email protected] Firmware downloads, FAQs, and the most up-to-date documentation are available at www.lantronix.com/support. When you report a problem
  • 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