Comtrol DeviceMaster UP – Modbus TCP Quick Start

Category
Networking
Type
Quick Start
Modbus
®
/TCP
Interface Configuration Quick Start
Trademark Notices
Comtrol, DeviceMaster, and PortVision are registered trademarks of Comtrol Corporation.
Concept is a trademark of Schneider Electric.
Modbus is a registered trademark of Schneider Electric.
PLC is a registered trademark of Allen-Bradley Company, Inc.
Ethernet is a registered trademark of Digital Equipment Corporation, Intel, and Xerox Corporation.
SIMATIC and Step7 are registered trademarks of Siemens AG.
Portions of SocketServer are copyrighted by GoAhead Software, Inc. Copyright © 2001. GoAhead Software,
Inc. All Rights Reserved.
Windows is a registered trademark of Microsoft Corporation in the United States and/or other countries.
Other product names mentioned herein may be trademarks and/or registered trademarks of their respective
owners.
Seventh Edition, July 15, 2013
Copyright © 2005-2013. Comtrol Corporation.
All Rights Reserved.
Comtrol Corporation makes no representations or warranties with regard to the contents of this document or
to the suitability of the Comtrol product for any particular purpose. Specifications subject to change without
notice. Some software or features may not be available at the time of publication. Contact your reseller for
current product information.
Document Number: 2000477 Rev G
DeviceMaster UP Modbus/TCP Quick Start: 2000477 Rev. G Table of Contents - iii
Table of Contents
Overview...................................................................................................................................5
Comtrol Modbus Solutions .......................................................................................................................... 5
Locating the Latest Software and Documentation ............................................................................... 6
Modbus/TCP Installation Overview .......................................................................................................... 7
Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters............................9
Prerequisites................................................................................................................................................... 9
Configuring Modbus/RTU Slaves............................................................................................................. 10
Configuring Modbus/ASCII Slaves .......................................................................................................... 12
Configuring Modbus/RTU Master............................................................................................................ 14
Configuring Modbus/ASCII Master ......................................................................................................... 16
Configuring Read-Only Raw/ASCII Devices ..................................................................19
Prerequisites................................................................................................................................................. 19
Read-Only Raw/ASCII Serial Devices ..................................................................................................... 19
Embedded Web Page Configuration ........................................................................................................ 20
Modbus Raw Data Addressing ................................................................................................................. 25
Received Message Format........................................................................................................................ 25
Read-Only Raw/ASCII Ethernet Devices ............................................................................................... 26
Embedded Web Page Configuration ........................................................................................................ 27
Modbus Addressing .................................................................................................................................. 33
Received Message Format........................................................................................................................ 33
Configuring Read/Write Raw/ASCII Devices.................................................................35
Prerequisites................................................................................................................................................. 35
Read/Write Raw/ASCII Serial Devices.................................................................................................... 36
Embedded Web Page Configuration ........................................................................................................ 37
Modbus Addressing .................................................................................................................................. 46
Receive and Transmit Message Formats ................................................................................................ 46
Read/Write Raw/ASCII Ethernet Devices .............................................................................................. 47
Embedded Web Page Configuration ........................................................................................................ 48
Modbus Addressing .................................................................................................................................. 58
Receive and Transmit Message Formats ................................................................................................ 58
Filtering/Data Extraction Configuration .......................................................................61
PLC Filtering/Data Extraction ................................................................................................................. 63
Application Filtering/Data Extraction ................................................................................................... 65
Application Socket Configuration....................................................................................67
Alias Device ID Functionality ...........................................................................................71
iv - Table of Contents DeviceMaster UP Modbus/TCP Quick Start: 2000477 Rev. G
Table of Contents
Troubleshooting and Technical Support........................................................................75
Troubleshooting Checklist ....................................................................................................................... 75
General Troubleshooting........................................................................................................................... 76
Daisy-Chaining DeviceMaster UP 2E/4-Port Units.............................................................................. 77
Technical Support ....................................................................................................................................... 78
DeviceMaster UP Modbus/TCP Quick Start: 2000477 Rev. G Overview - 5
Overview
This Quick Start is intended to help you quickly set-up serial or Ethernet devices. with the DeviceMaster UP.
You can use this document to locate software and installation documentation for the DeviceMaster UP to
quickly configure:
Interfaces to serial Modbus/RTU and Modbus/ASCII slaves and masters
Read-only devices such as barcode scanners and some RFID readers
Read/write devices such as printers and some weigh scales
Comtrol Modbus Solutions
If you ordered the Modbus part number for your DeviceMaster UP, Modbus/TCP is loaded on the
DeviceMaster UP by default. You may want to review our other Modbus solutions to make sure that the
feature rich Modbus/TCP application is what you want to use. Optionally, Modbus Router or Modbus Server
may by more effective for your particular environment.
The Comtrol web site provides information about the differences between the three Modbus solutions:
M
ODBUS/TCP
M
ODBUS SERVER
M
ODBUS ROUTER
In addition, the DeviceMaster UP product CD and ftp site also provide these documents for your reference.
The following links function if you are reading this document from the ftp site or CD.
Note: Optionally, open the CD and click Modbus. The main page (
up_modbus_family_main.htm) provides
links to these documents.
Modbus Controller to Controller Communication
Modbus Solution Examples
Providing Read-Only Modbus Protection
Resolving Modbus Device ID Conflicts
If Modbus Server or Modbus Router is a better solution, you can
DOWNLOAD the appropriate firmware and
corresponding documentation.
DeviceMaster UP Modbus/TCP Quick Start: 2000477 Rev. G Overview - 7
Overview
Modbus/TCP Installation Overview
The DeviceMaster UP follows these installation steps.
Note: The
BLUE CAPITALIZED links jump to external documents, which work while viewing from the ftp site or
from the CD.
1. C
ONNECT THE DEVICEMASTER UP to the network.
2. I
NSTALL PORTVISION DX from the CD or download and install the latest version.
3. C
ONFIGURE THE DEVICEMASTER UP network settings using PortVision DX.
4. Depending on the DeviceMaster UP model, do the following:
Models without Modbus/TCP loaded, you must install the software assembly (.msi) from the CD or
download and install the latest file, which contains the Modbus/TCP firmware and supporting files
required for Step 5.
Models with Modbus/TCP loaded on the DeviceMaster UP, you should check to see if a later version of
Modbus/TCP is available for installation. Check the Modbus/TCP version in PortVision DX against the
web site to see if a later version is available. Typically, you should download and install the latest .msi
file and upload the latest version, which may include updates or enhancements.
Note: Models that have Modbus/TCP loaded on the DeviceMaster UP are identified in PortVision DX and
the DeviceMaster UP is labeled accordingly.
5. I
F NECESSARY, UPLOAD the Modbus/TCP firmware into the DeviceMaster UP using PortVision DX.
6. Configure serial or Ethernet TCP/IP characteristics using the DeviceMaster UP embedded web page
(Server Configuration).
Modbus/RTU serial slave devices (Page 10
)
Modbus/ASCII serial slave devices (Page 12
)
Modbus/RTU serial master (Page 14
)
Modbus/ASCII serial master (Page 16
)
Read-only raw/ASCII serial devices (Page 19
)
Read-only raw/ASCII Ethernet devices (Page 26
)
Read/write raw/ASCII serial devices (Page 36
)
Read/write raw/ASCII Ethernet devices (Page 47
)
7. Optionally, the DeviceMaster UPModbus/TCP User Guide provides detailed information about each web
page.
8. You may want to reference the P
ROGRAMMING INTERFACE chapter in the DeviceMaster UP Modbus/TCP
User Guide.
9. Optionally, reference the
EXAMPLE PLC PROGRAMS in the DeviceMaster UP Modbus/TCP User Guide.
10. C
ONNECT any serial device or devices.
11. Verify any Ethernet TCP/IP devices are connected to the same subnet as the DeviceMaster UP.
6 - Overview DeviceMaster UP Modbus/TCP Quick Start: 2000477 Rev. G
Overview
Locating the Latest Software and Documentation
You can use the links in this table to check for updated software or documentation.
Software and Documentation FTP
PortVision DX
(Windows)
Use PortVision DX to manage Comtrol Ethernet-attached devices to:
Scan the network for attached devices
View networked devices in real-time
Access product-specific network settings configurations
Assign IP addresses and network settings to one or multiple
devices
Upload the latest firmware or Bootloader
Save and load configuration files
Access DeviceMaster UP configuration web pages
Access Telnet/SSH sessions
Remotely reboot devices
Download technical documentation
Enable event logging to assist in monitoring and troubleshooting
Create shortcuts to quickly access your favorite applications
Organize devices into folders and create multiple views
Enter notes about a folder or device
Modbus/TCP Firmware
This is the application that may or may not have been loaded on the
DeviceMaster UP depending on the model that was ordered.
You may need to use PortVision DX to load this firmware.
DeviceMaster UP Hardware
Installation and Configuration
Guide
This contains hardware installation, configuration information, and
connector information.
This includes using PortVision DX to configure the IP address and if
necessary, how to update the firmware.
Modbus/TCP Interface
Configuration Quick Start
This document with web interface configuration procedures.
Modbus/TCP User Guide
The User Guide contains detailed information about the Modbus/TCP
(application) firmware, which includes additional information about
the web configuration interface for Modbus/TCP.
It also discusses the example PLC programs that were installed on
your system and provides a Programming Interface chapter.
DeviceMaster UP Filtering and
Data Extraction Reference
Guide
This Guide discusses the data extraction and filtering processes in the
DeviceMaster UP are designed to off load as much work as possible
from the PLC and/or application and provide a very simple and easy to
use interface for standard RFID and barcode data.
This functionality and interface is designed to save dozens, possibly
hundreds of lines of ladder logic in a typical PLC program.
8 - Overview DeviceMaster UP Modbus/TCP Quick Start: 2000477 Rev. G
Overview
Modbus/TCP Quick Start: 2000477 Rev. G Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters - 9
Configuring Modbus/RTU and Modbus/ASCII Slaves
and Masters
For pure Modbus devices, the DeviceMaster UP supports:
Modbus/RTU serial slaves
Modbus ASCII serial slaves
Modbus/RTU serial masters
Modbus/ASCII serial masters
Modbus/TCP masters
Note: All masters can communicate to all slaves.
Prerequisites
Before you can configure the serial ports for this mode, make sure that you have done the following:
Installed the hardware
Installed PortVision DX
Configured the DeviceMaster UP IP address using PortVision DX
If necessary, uploaded the latest Modbus/TCP firmware using PortVision DX
Note: The DeviceMaster UP provides an Modbus/TCP interface, which may or may not have the Modbus/
TCP firmware loaded (depending on the model you purchased). Models that have Modbus/TCP loaded
on the DeviceMaster UP are identified in PortVision DX and the DeviceMaster UP is labeled
accordingly.
If you need to perform any of these procedures or locate the latest files, see Overview
on Page 5.
Modbus Master(s) to Modbus Slave(s)
10 - Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters Modbus/TCP Quick Start: 2000477 Rev. G
Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters
Configuring Modbus/RTU Slaves
Use the following procedure to configure a serial interface to Modbus/RTU slave(s).
1. Access the Server Configuration web page by entering the DeviceMaster UP IP address in your web
browser or by highlighting the DeviceMaster UP in PortVision DX and clicking Webpage.
Note: If the browser does not display the web page correctly, clear the browser history and refresh the
DeviceMaster UP web page.
2. Click the Serial Device Configuration link to open the Serial Device Configuration page.
3. Click Port N for the port you want to configure, where N is the port number.
4. If desired, provide a Serial Interface Name.
Modbus/TCP Quick Start: 2000477 Rev. G Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters - 11
Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters
5. Set up the Serial Configuration for your device.
6. Configure the serial port for Modbus/RTU-to-Slaves operation. Under General Protocol Settings:
a. Set Serial Port Protocol to Modbus/RTU-to-Slaves.
b. Enable Discard Rx Packets With Errors.
c. Under Modbus Slave and Raw-Data Device Settings, set the Device Response Timeout value or leave at
the default.
d. 2/4-port models only
: Under Modbus Slaves Only, enable Lost Device Search Enable if you want the
DeviceMaster UP to search for a lost Modbus slave device on other Modbus/RTU and/or Modbus/
ASCII slave ports that also have this option enabled.
7. Scroll to the bottom of the page, verify that Reset Port and Save in Flash are selected, and click Submit.
Note: If necessary, see Filtering/Data Extraction Configuration
on Page 61 or Application Socket
Configuration on Page 67 for additional configuration procedures.
12 - Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters Modbus/TCP Quick Start: 2000477 Rev. G
Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters
Configuring Modbus/ASCII Slaves
Use the following procedure to configure a serial interface to Modbus/ASCII slave(s).
1. Access the Server Configuration web page by entering the DeviceMaster UP IP address in your web
browser or by highlighting the DeviceMaster UP in PortVision DX and clicking Webpage.
Note: If the browser does not display the web page correctly, clear the browser history and refresh the
DeviceMaster UP web page.
2. Click the Serial Device Configuration option to open the Serial Device Configuration page.
3. Click Port N for the port you want to configure, where N is the port number.
4. If desired, provide a Serial Interface Name.
Modbus/TCP Quick Start: 2000477 Rev. G Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters - 13
Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters
5. Set up the Serial Configuration for your device.
6. Configure the serial port for Modbus/ASCII-to-Slaves operation. Under General Protocol Settings:
a. Set Serial Port Protocol to Modbus/ASCII-to-Slaves.
b. Enable Discard Rx Packets With Errors.
c. Under Modbus Slave and Raw-Data Device Settings, set the Device Response Timeout value or leave at
the default.
d. 2/4-port models only: Under Modbus Slaves Only, enable Lost Device Search Enable if you want the
DeviceMaster UP to search for a lost Modbus slave device on other Modbus/RTU and/or Modbus/
ASCII slave ports that also have this option enabled.
7. Scroll to the bottom of the page, verify that Reset Port and Save in Flash are selected, and click Submit.
Note: If necessary, see Filtering/Data Extraction Configuration
on Page 61 or Application Socket
Configuration on Page 67 for additional configuration procedures.
14 - Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters Modbus/TCP Quick Start: 2000477 Rev. G
Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters
Configuring Modbus/RTU Master
Use the following procedure to configure a serial interface to Modbus/RTU master.
1. Access the Server Configuration web page by entering the DeviceMaster UP IP address in your web
browser or by highlighting the DeviceMaster UP in PortVision DX and clicking Webpage.
Note: If the browser does not display the web page correctly, clear the browser history and refresh the
DeviceMaster UP web page.
2. Click the Serial Device Configuration option to open the Serial Device Configuration page.
3. Click Port N for the port you want to configure, where N is the port number.
4. If desired, provide a Serial Interface Name.
Modbus/TCP Quick Start: 2000477 Rev. G Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters - 15
Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters
5. Set up the Serial Configuration for your device.
6. Configure the serial port for Modbus/RTU-to-Master operation. Under General Protocol Settings:
a. Set Serial Port Protocol to Modbus/RTU-to-Master.
b. Enable Discard Rx Packets With Errors.
7. Scroll to the bottom of the page, verify that Reset Port and Save in Flash are selected, and click Submit.
Note: If necessary, see Filtering/Data Extraction Configuration
on Page 61 or Application Socket
Configuration on Page 67 for additional configuration procedures.
16 - Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters Modbus/TCP Quick Start: 2000477 Rev. G
Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters
Configuring Modbus/ASCII Master
Use the following procedure to configure a serial interface to Modbus/ASCII master.
1. Access the Server Configuration web page by entering the DeviceMaster UP IP address in your web
browser or by highlighting the DeviceMaster UP in PortVision DX and clicking Webpage.
Note: If the browser does not display the web page correctly, clear the browser history and refresh the
DeviceMaster UP web page.
2. Click the Serial Device Configuration option to open the Serial Device Configuration page.
3. Click Port N for the port you want to configure, where N is the port number.
4. If desired, provide a Serial Interface Name.
Modbus/TCP Quick Start: 2000477 Rev. G Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters - 17
Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters
5. Set up the Serial Configuration for your device.
6. Configure the serial port for Modbus/ASCII-to-Master operation. Under General Protocol Settings:
a. Set Serial Port Protocol to Modbus/ASCII-to-Master.
b. Enable Discard Rx Packets With Errors.
7. Scroll to the bottom of the page, verify that Reset Port and Save in Flash are selected, and click Submit.
Note: If necessary, see Filtering/Data Extraction Configuration
on Page 61 or Application Socket
Configuration on Page 67 for additional configuration procedures.
18 - Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters Modbus/TCP Quick Start: 2000477 Rev. G
Configuring Modbus/RTU and Modbus/ASCII Slaves and Masters
DeviceMaster UP Modbus/TCP Quick Start: 2000477 Rev. G Configuring Read-Only Raw/ASCII Devices - 19
Configuring Read-Only Raw/ASCII Devices
This chapter contains these subsections:
Prerequisites (below)
Read-Only Raw/ASCII Serial Devices (below)
Read-Only Raw/ASCII Ethernet Devices on Page 26
Prerequisites
Before you can configure the ports, make sure that you have done the following:
Installed the hardware
Installed PortVision DX
Configured the DeviceMaster UP IP address using PortVision DX
If necessary, uploaded the latest Modbus/TCP firmware using PortVision DX
Note: The DeviceMaster UP provides a Modbus/TCP interface, which may or may not have the Modbus/TCP
firmware loaded (depending on the model you purchased). Models that have Modbus/TCP loaded on
the DeviceMaster UP are identified in PortVision DX and the DeviceMaster UP is labeled accordingly.
If you need to perform any of these procedures or locate the latest files, see
Overview on Page 5.
Read-Only Raw/ASCII Serial Devices
Read-only raw/ASCII serial
devices use the Serial
Device Configuration page
to:
Allow connections
between a serial device,
such as a barcode
scanner or RFID
reader, to PLC(s) and/
or application(s).
Provide an optional
filtering mechanism for
string, RFID, and
barcode data.
The PLC and application
can both communicate to
the serial device, but they
cannot communicate
directly to each other.
Serial Read-Only Device Communications
20 - Configuring Read-Only Raw/ASCII Devices DeviceMaster UP Modbus/TCP Quick Start: 2000477 Rev. G
Configuring Read-Only Raw/ASCII Devices
Embedded Web Page Configuration
Use the following procedure to configure read-only raw/ASCII serial devices.
1. Access the Server Configuration web page by entering the DeviceMaster UP IP address in your web
browser or by highlighting the DeviceMaster UP in PortVision DX and clicking Webpage.
Note: If the browser does not display the web page correctly, clear the browser history and refresh the
DeviceMaster UP web page.
2. Click the Serial Device Configuration option to open the Serial Device Configuration page.
3. Click Port N for the port you want to configure, where N is the port number.
4. If desired, provide a Serial Interface Name.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78

Comtrol DeviceMaster UP – Modbus TCP Quick Start

Category
Networking
Type
Quick Start

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI