Comtrol, DeviceMaster, and PortVision are registered trademarks of Comtrol Corporation.
ControlLogix, PLC-5 and Rockwell Automation are registered trademarks of Rockwell Automation.
MicroLogix, RSLinx, RSLogix 5, RSLogix 500, RSLogix 5000 and SLC are trademarks of Rockwell
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
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.
2.1.2. PLC-5/SLC or MicroLogix .............................................................................................................. 13
2.1.3. What is EtherNet/IP? ..................................................................................................................... 14
2.2. Data Type Definitions ......................................................................................................................... 14
6.2. General Troubleshooting.................................................................................................................. 166
6.3. Technical Support .............................................................................................................................. 166
vi- Table of Contents DeviceMaster UP EtherNet/IP User Guide: 2000424 Rev. L
Page 7
Chapter 1. Introduction
This User Guide provides detailed information about the following topics:
•Programming Interface
•Embedded Configuration Pages
•Diagnostic and Statistics Pages
The DeviceMaster UP Hardware Installation and Configuration Guide
•Connecting the hardware and devices
•Programming the DeviceMaster UP IP address,
•Uploading EtherNet/IP firmware
The EtherNet/IP Interface Configuration Quick Start provides embedded web page configuration procedures
if you have Read-only or read/write devices, which provides procedures for your devices.
See Locating
tools.
the Latest Software and Documents on Page 10 to locate the latest firmware, documentation, and
1.1. Audience
on Page 13
on Page 65
on Page 87
provides the following information:
The primary audience of this document is the person responsible for installing the DeviceMaster UP and
programming the PLC. This guide assumes you are familiar with the following topics:
•Windows operating system
•EtherNet/IP
•Allen-Bradley ControlLogix family, PLC-5, SLC or MicroLogix PLCs
•RSLogix 5000, RSLogix 500 or RSLogix 5 programs
1.2. Product Overview
Your particular DeviceMaster UP model may or may not have the EtherNet/IP firmware loaded (depending
on the model you purchased).
Note: Models that have EtherNet/IP loaded on the DeviceMaster UP are identified in PortVision DX and the
DeviceMaster UP is labeled accordingly.
This document describes how to configure the DeviceMaster UP for the EtherNet/IP protocol after basic
DeviceMaster UP installation and configuration procedures.
You can configure and manage the DeviceMaster UP through one of the following methods:
•Embedded web page interface
•EtherNet/IP Interface Profile objects
- Receive mode ensures data received by the PLC is not overwritten before it can be processed.
-Disabling of non-filtered receive queue ensures the PLC only receives the latest received serial/
Ethernet device data.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. IChapter 1. Introduction - 7
Page 8
EtherNet/IP Firmware
Traditional EtherNet/IP System Architecture (Firmware V2.x)
Comtrol EtherNet/IP System Architecture (V3.x)
1.3. EtherNet/IP Firmware
The following subsections provides information for existing users who may or may not want to update
systems with the enhanced EtherNet/IP firmware V3.x.
For new users, the following subsections provide EtherNet/IP system architecture information.
1.3.1. Traditional EtherNet/IP System Architecture (Firmware V2.x)
EtherNet/IP firmware V2.x provided a
traditional EtherNet/IP interface to
devices through a raw/ASCII serial
interface as illustrated.
1.3.2. Enhanced EtherNet/IP System Architecture (Firmware 3.x)
Using the Ethernet TCP/IP firmware
V3.x doubles the capacity of the
DeviceMaster UP by providing a raw/
ASCII interface to both serial and
Ethernet TCP/IP devices.
For example:
•The DeviceMaster UP 1-port
provides EtherNet/IP support for
one serial device and one Ethernet
device for a total of two devices.
•The DeviceMaster UP 2-port
provides EtherNet/IP support for
two serial devices and two
Ethernet devices for a total of four
devices.
•The DeviceMaster UP 4-port
provides EtherNet/IP support for four serial devices and four Ethernet devices for a total of eight devices.
EtherNet/IP firmware 3.x provides an application interface for both serial and Ethernet devices. You can
connect any application, such as a configuration, database, or control application, via the application socket
port to the serial and/or Ethernet devices while the device(s) are attached to the PLC via EtherNet/IP.
8 -Chapter 1. IntroductionDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 9
Filtering and Data Extraction Functionality (Patent Pending)
EtherNet/IP Filtering Functionality (V3.x)
1.3.3. Filtering and Data Extraction Functionality (Patent Pending)
EtherNet/IP firmware 3.x provides the
following filtering and data extraction
functionality:
•Filtering
-String Filtering of up to 128
bytes of raw/ASCII data to both
the PLC and/or application.
-RFID filtering of EPCglobal
formatted RFID tag data to
both the PLC and/or
application.
-Barcode filtering of all UPC/
EAN formatted barcodes data
to both the PLC and/or
application.
•Data extraction
-RFID data extraction extracts all parameters, such as company code, product code, and serial
numbers, from any or all of the 43 EPCglobal tag formats. It then transfers the data to the PLC and/
or application in a consistent and simple format.
-Barcode data extraction extracts the company, product, and numbering codes from UPC/EAN
formatted barcodes. It then transfers the data to the PLC and/or application in a consistent and
simple format.
•Environment specific support
-Support for multiple RFID reader tag formats.
-RFID antenna grouping.
-Aging of filtered string/RFID/barcode entries.
-Discarding of unrecognized RFID and barcode messages.
If you are running firmware V2.x, you may want to review the following list additional features provided in
firmware V3.x.
•Improved PLC interfaces
-Increased PLC interface bandwidth provides improved performance and lower latencies when
interfacing to higher bandwidth serial and Ethernet devices such as RFID readers.
-Transfer of large received serial device packets up to 1518 bytes.
-Transfer of large received Ethernet device packets up to 2048 bytes.
-Throttling of received data to the PLC in the Write-to-Tag/File receive mode ensures data received by
the PLC is not overwritten before it can be processed.
-Disabling of non-filtered receive queue ensures the PLC only receives the latest received serial/
Ethernet device data.
•New embedded web pages
-PLC Interface Diagnostics page, which provides statistics and error messages to monitor and help
diagnose PLC interface problems.
-Serial/Ethernet Device Communication Statistics page, which is a comprehensive statistics page for
all serial and Ethernet device interfaces. Includes packet, byte, and error counts to the PLC(s) and
Application(s) as well as comprehensive filtering statistics.
-Ethernet Device Interface Configuration page, which provides a user interface to the Ethernet device
interface configuration.
For detailed information about filtering and data extraction, see the DeviceMaster UP Filtering and Data
Extraction Reference Guide.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. IChapter 1. Introduction - 9
Page 10
Locating the Latest Software and Documents
1.4. Locating the Latest Software and Documents
You can use the links in this table to check for updated software or documentation.
Software and DocumentationFTP
Use PortVision DX to manage Comtrol Ethernet-attached devices to:
•Assign IP addresses and network settings to one or multiple
devices
•Upload the latest firmware or Bootloader
PortVision DX
(Windows)
EtherNet/IP Firmware
DeviceMaster UP Hardware
Installation and Configuration
Guide
•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
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.
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.
EtherNet/IP Interface
Configuration Quick Start
This document with web interface configuration procedures.
The User Guide contains detailed information about the EtherNet/IP
(application) firmware, which includes additional information about
EtherNet/IP User Guide
the web configuration interface for EtherNet/IP.
It also discusses the example PLC programs that were installed on
your system and provides a Programming Interface chapter.
This Guide discusses the data extraction and filtering processes in the
DeviceMaster UP are designed to off load as much work as possible
DeviceMaster UP Filtering and
Data Extraction Reference
from the PLC and/or application and provide a very simple and easy to
use interface for standard RFID and barcode data.
Guide
This functionality and interface is designed to save dozens, possibly
hundreds of lines of ladder logic in a typical PLC program.
10 -Chapter 1. IntroductionDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 11
EtherNet/IP Application Setup
1.5. EtherNet/IP Application Setup
Before you can configure the EtherNet/IP firmware on the DeviceMaster UP, you must have previously
performed the following steps:
•Install the hardware
•Install PortVision DX
•If necessary, upload the EtherNet/IP firmware using PortVision DX
Note: Models that have EtherNet/IP loaded on the DeviceMaster UP are identified in PortVision DX and
the DeviceMaster UP is labeled accordingly.
•Configure the DeviceMaster UP IP address using PortVision DX
Note: If necessary, refer to the DeviceMaster UP Hardware Installation and Configuration Guide
above procedures.
Use the following steps to complete the DeviceMaster UP configuration for EtherNet/IP.
1. Select the appropriate programming procedure for the following interfaces:
InterfacesProgramming Procedure
•Program the PLC. See the instructions in ControlLogix PLC
Programming Example Instructions on Page 103.
ControlLogix
PLC
•(Optional) Access the DeviceMaster UP Server Configuration page to
configure the serial/socket port settings, if you did not configure the
serial/socket port setting in the PLC program. See the DeviceMaster UP
Interface Configuration Guide for procedures and reference Embedded
Configuration Pages on Page 65, if necessary.
•Program the SLC or MicroLogix PLC, see the instructions in SLC or
MicroLogix PLC Programming Example Instructions on Page 116.
SLC or
MicroLogix PLC
•Access the DeviceMaster UP Server Configuration page to configure the
serial/socket port settings. See the DeviceMaster UP Interface
Configuration Guide for procedures and reference Embedded
Configuration Pages on Page 65, if necessary.
•Program the PLC-5 PLC, see the instructions in PLC-5 PLC
Programming Example Instructions on Page 143.
PLC-5 PLC
•Access the DeviceMaster UP Server Configuration page to configure the
serial/socket port settings. See the DeviceMaster UP Interface
Configuration Guide for procedures and reference Embedded
Configuration Pages on Page 65, if necessary.
2. Connect your serial device or devices and make sure all Ethernet devices are attached to the same
Ethernet subnet. If necessary, refer to the DeviceMaster UP Hardware Installation and Configuration
Guide.
for the
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. IChapter 1. Introduction - 11
Page 12
EtherNet/IP Application Setup
12 -Chapter 1. IntroductionDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 13
Chapter 2. Programming Interface
2.1. Overview
The DeviceMaster UP provides an EtherNet/IP interface to:
•Transmit and receive raw/ASCII serial and socket (Ethernet device) data
•Filtering of the data
•Extraction of RFID and barcode parameters
•A connection to an optional application via a TCP/IP socket
The DeviceMaster UP provides EtherNet/IP connectivity to the entire ControlLogix family of PLCs as well as
the SLC, PLC-5, and MicroLogix PLCs.
2.1.1. ControlLogix Family
The DeviceMaster UP supports ControlLogix PLCs. You can configure DeviceMaster UP through the PLC
program or the DeviceMaster UP Server Configuration web page. The DeviceMaster UP interface for the
ControlLogix PLC is described in 2.3.
The EtherNet/IP Quick Start
read/write devices such as printers.
5.3.
ControlLogix PLC Programming Example Instructions on Page 103 provides descriptions of the RSLogix
5000 PLC program examples intended to aid the PLC programmer.
You can also use the Server Configuration page on the DeviceMaster UP when you do not want to use the PLC
programming interface to configure the DeviceMaster UP. Chapter 3.
65 describes the web pages on the DeviceMaster UP and provides instructions for configuring the serial/
socket port settings
describes the quick start for read-only devices such as barcode scanners and
EtherNet/IP Interface Profile (ControlLogix) on Page 14.
Embedded Configuration Pages on Page
2.1.2. PLC-5/SLC or MicroLogix
The DeviceMaster UP supports PLC-5, SLC and MicroLogix PLCs. You must configure the DeviceMaster UP
through the web pages on the DeviceMaster UP. The DeviceMaster UP interface for the PLC-5/SLC or
MicroLogix PLC is described in 2.4.
The EtherNet/IP Quick Start
read/write devices such as printers.
•SLC or MicroLogix PLC and want more information than provided in the EtherNet/IP Quick Start, see
.5.4.
SLC or MicroLogix PLC Programming Example Instructions on Page 116, which contains
descriptions of the RSLogix 500 PLC program examples intended to aid the PLC programmer.
•PLC-5 PLC and want more information than provided in the EtherNet/IP Quick Start, see 5.5.
Programming Example Instructions on Page 143, which contains descriptions of the RSLogix 5 PLC
program examples intended to aid the PLC programmer.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. IChapter 2. Programming Interface - 13
describes the quick start for read-only devices such as barcode scanners and
PLC-5/SLC and MicroLogix Interfaces on Page 56.
PLC-5 PLC
Page 14
What is EtherNet/IP?
2.1.3. What is EtherNet/IP?
EtherNet/IP is an industrial application layer protocol for industrial automation applications. The IP stands
for ‘Industrial Protocol’. Built on the standard TCP/IP protocols, it uses long established Ethernet hardware
and software to define an application layer protocol for configuring access and controlling industrial
automation devices. EtherNet/IP classifies Ethernet nodes as predefined device types with specific behaviors.
The EtherNet/IP application layer protocol is based on the Common Industrial Protocol (CIP) layer. Building
on these protocols, EtherNet/IP provides a seamless integrated system from the Industrial floor to the
enterprise network.
2.3.1. Serial Port Configuration Object Definition (70 Hex)
The Serial Port Configuration vendor specific object defines the protocol by which:
•A PLC can communicate with a serial port device through a DeviceMaster UP over EtherNet/IP.
•An optional application can communicate with a serial device through the DeviceMaster UP over an
Ethernet TCP/IP socket port.
•The optional serial data filtering and data extraction functions can be implemented.
Note: The instance number corresponds to the associated serial port number on the DeviceMaster UP. (Port
numbers are numbered from one to N.)
You can disregard this object definition if you configure the DeviceMaster UP using the Server Configuration
web page. See Chapter 3.
the embedded web page.
Embedded Configuration Pages on Page 65 to configure the DeviceMaster UP using
14 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 15
Class Attributes
2.3.1.1. Class Attributes
Attribute IDNameData TypeData Value(s)Access Rule
1RevisionUINT1Get
2Max InstanceUINTNumber of ports on the DeviceMaster UP Get
3Num InstancesUINTNumber of ports on the DeviceMaster UPGet
2.3.1.2. Instance Attributes
Note: Get returns the last command sent.
Attribute IDName
1
(Default=0)
2
(Default=0)
3
(Default=9600)
Serial Port Device TypeUDINT0=Raw Data DeviceSet/Get
Serial Port CommandsDWORD
Baud RateUDINT
4
(Default=0
Interface ModeUSINT
RS-232)
5
(Default=0
ParityUSINT
None)
6
(Default=8)
7
(Default=1)
Data BitsUSINT
Stop BitsUSINTValid Values: 1 or 2Set/Get
8
(Default=0
Flow ControlUSINT
None)
9
(Default=0
DTR ControlUSINT
Off)
Data
Type
Data Value(s)
1=Reset Serial Port
2=Save in Flash
4=Clear Sequence Counters
8=Clear Statistics Counters
This attribute indicates the Serial Port Device Type. Raw Data device is the only
currently supported option.
DeviceMaster UP supports the following commands:
•Reset serial port - This option resets the serial port hardware and statistics
counters. You must reset the DeviceMaster UP after modifying any of the serial
port configuration options, including: baud rate, interface mode, parity, data bits,
stop bits, flow control, or DTR control. It does not clear the sequence counters.
•Save in Flash - This option saves the port configuration in flash memory. These
settings are restored when you reboot the DeviceMaster UP.
•Clear sequence counters - This option clears the Receive Produced and Consumed
Sequence counters for the selected port.
•Clear statistics counters - This option clears the statistics counters for the selected
port.
These are standard serial port settings.
Attribute 10 - PLC Transmit STX Append Value - You can set this attribute to append
an STX (start of transmission) byte sequence which is configurable as 1 or 2-bytes to
the beginning of the serial packet before it is sent.
The length indicates the number of STX bytes. The valid values for length are:
•0 (zero) - Setting this attribute to zero disables this function.
•1 (one STX byte) - Inserts one STX byte before the data.
•2 (two STX bytes) - Inserts two STX bytes before the data.
•Value1 - Specifies the transmit character associated with the first STX byte. (Only
if the length is not zero.) You can specify a value between 0 and 255.
•Value2 - Specifies the transmit character associated with the second STX byte.
(Only if length is two bytes.) You can specify a value between 0 and 255.
You can set this attribute to append an STX (start of transmission) byte sequence
which is configurable as 1 or 2-bytes to the beginning of the serial packet before it is
sent.
The length indicates the number of STX bytes. The valid values for length are:
•0 (zero) - Setting this attribute to zero disables this function.
•1 (one STX byte) - Inserts one STX byte before the data.
•2 (two STX bytes) - Inserts two STX bytes before the data.
•Value1 - Specifies the transmit character associated with the first STX byte. (Only
if the length is not zero.) You can specify a value between 0 and 255.
•Value2 - Specifies the transmit character associated with the second STX byte.
(Only if length is two bytes.) You can specify a value between 0 and 255.
20 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 21
Instance Attribute Definitions
Attribute
Attribute 11
PLC Transmit ETX
Append Value
Attribute 13
Receive STX Detect
Value
Attribute 14
Receive ETX Detect
Value
Attribute 15
Receive Timeout
Between Packets
Description
You can set this attribute to append an ETX (end of transmission) byte sequence
which is configurable as 1 or 2 -bytes to the end of the serial packet before it is sent.
The length indicates the number of ETX bytes. The valid values for length are:
•0 (zero) - Setting this attribute to zero disables this function.
•1 (one ETX byte) - Inserts one ETX byte at the end of the data.
•2 (two ETX bytes) - Inserts two ETX bytes at the end of the data.
•Value - Specifies the transmit character associated with the first ETX byte. (Only if
the length is not zero.) You can specify a value between 0 and 255.
•Value2 - Specifies the transmit character associated with the second ETX byte.
(Only if length is 2-bytes.) You can specify a value between 0 and 255.
This attribute detects an STX (start of transmission) byte sequence which is
configurable as 1 or 2-bytes when it receives a serial packet.
The length indicates the number of STX bytes. The valid values for length are:
•0 (zero) - Setting this attribute to zero disables this function. When disabled, the
DeviceMaster UP accepts the first byte received after the last ETX byte(s) as the
start of the next data packet.
•1 (one STX byte) - Scans serial data for one STX byte. If the DeviceMaster UP finds
an STX byte it collects the data. If the first byte is not the STX byte, the
DeviceMaster UP discards the byte. The DeviceMaster UP continues to discard
the bytes until the DeviceMaster UP finds an STX byte.
•2 (two STX bytes) - Scans serial data for two STX bytes. If the DeviceMaster UP
finds two STX bytes it collects the data. If the first two bytes are not the STX
bytes, the DeviceMaster UP discards the bytes. Bytes continue to be discarded
until the DeviceMaster UP finds two STX bytes.
•Value1 - Specifies the character that represents the first STX byte. DeviceMaster
UP looks for this character in the first STX byte. (Only if the length is not zero.)
You can specify a value between 0 and 255.
•Value2 - Specifies the character that represents the second STX byte.
DeviceMaster UP looks for this character in the first STX byte. (Only if length is
two bytes.) You can specify a value between 0 and 255.
This attribute detects an ETX (end of transmission) byte sequence which is
configurable as 1 or 2 bytes marking the end of the serial packet.
The length indicates the number of ETX bytes. The valid values for length are:
•0 (zero) - Setting this attribute to zero disables this function. When disabled, the
DeviceMaster UP uses the Receive Timeout Between Packets (attribute 15) to
indicate the end of data packet.
•1 (one ETX byte) - Scans serial data for one ETX byte. When the DeviceMaster UP
finds an ETX byte it identifies the data as a serial packet.
•2 (two ETX bytes) - Scans serial data for two ETX bytes. When the DeviceMaster
UP finds two ETX bytes it identifies the data as a serial packet.
•Value1
- Specifies the character to scan for in the first ETX byte. (Only if the length
is not zero.) You can specify a value between 0 and 255.
•Value2 - Specifies the character to scan for in the second ETX byte. (Only if length
is 2-bytes.) You can specify a value between 0 and 255.
This attributes specifies:
•How long DeviceMaster UP waits (in milliseconds) if the Receive ETX length is
not zero (0) and it does not receive an ETX byte sequence.
•The time to wait (in milliseconds) between serial packets if the Receive ETX
Detect length is set to zero (0).
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 21
Page 22
Instance Attribute Definitions
Attribute
Attribute 16
Serial Port Transfer
Options
Description
This attribute specifies special serial port transfer options. The following options are
supported:
•01 Hexadecimal (Bit 0) - DeviceMaster UP strips received STX/ETX characters from
received packets before sending the packet to the PLC.
•02 Hexadecimal (Bit 1) - DeviceMaster UP discards received packets with errors.
•04 Hexadecimal (Bit 2) - (PLC-5/SLC only) DeviceMaster UP receives Most
Significant (MS) byte of 16-bit integer first. The default is transmit Least
Significant (LS) byte first.
08 Hexadecimal (Bit 3) - (PLC-5/SLC only) DeviceMaster UP transmit Most
significant (MS) byte of 16-bit integer first. The default is transmit Least
Significant (LS) byte first.
•10 Hexadecimal (Bit 4) - Enable Transmit Sequence Number Checking.
-DeviceMaster UP rejects messages with duplicate sequence numbers (that is,
the same sequence number as the previous transmit data message) and
increments the Duplicate Transmit Sequence Error Count.
-DeviceMaster UP transmits messages with unexpected transmit sequence
numbers (that is, sequence numbers that are not the same as or are not equal
to the previous sequence number plus one) and increments the Unexpected Transmit Sequence Error Count.
•20 Hexadecimal (Bit 5) - Disable Queuing of Non-Filtered Rx messages to PLC. If
filtering is disabled, only the last message received is sent to the PLC.
•40 Hexadecimal (Bit 6) - DeviceMaster UP strips received STX/ETX characters from
received packets before sending the packet to the application.
•80 Hexadecimal (Bit 7) - Drop oversized received data packets.
This attribute specifies the Ethernet data transfer method used by the DeviceMaster
UP. There are three methods that DeviceMaster UP can use to transfer data received
from a serial device to the PLC. These methods are:
•Off - The DeviceMaster UP does not allow any data to be sent to the PLC.
•Unsolicited - Write-to-Tag receive method - DeviceMaster UP writes the received
serial data directly into tag(s) on the PLC.
The following diagram shows the Write-to-Tag receive data flow:
Attribute 17
Receive
(DeviceMaster UP to
PLC) Ethernet Data
Transfer Method
The following restrictions apply to this method:
•The Receive Data T ag Name (Attribute 24) must have the same name as the tag
defined on the PLC. (For more information, see Attribute 24 on Page 24.)
•The tag on the PLC must be of type SINT and must be large enough to contain
the sequence number, length, and data field associated with the received data
structure. (For more information, see 2.3.2.
Serial Port Data Transfer Object
Definition (71 Hex) on Page 29.)
•An incremented sequence number indicates new data.
•The PLC program must scan and consume new data faster than the data can
be received on the serial port to ensure that no data is lost.
22 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 23
Instance Attribute Definitions
Attribute
Attribute 17
(Continued)
Receive
(DeviceMaster UP to
PLC) Ethernet Data
Transfer Method
Description
•Unsolicited - Write-to-Tag-Synced receive method - DeviceMaster UP writes the
serial data into tag(s) on the PLC and provides a mechanism to synchronize the
data flow between the PLC and DeviceMaster UP.
In this method, DeviceMaster UP does not write the serial packet to the tag on the
PLC until the PLC updates the consumed sequence number (Serial Port Data Transfer object Attribute 4) to match the produced data sequence number. Then
the DeviceMaster UP writes the data into the tag data location on the PLC in the
same way as the Unsolicited - Write-to-Tag receive method. For more information,
see the description of Attribute 4 in 2.3.2.
Serial Port Data Transfer Object
Definition (71 Hex) on Page 29. The following diagram shows the Write-to-Tag-
Synced receive data flow:
The following restrictions apply to this method:
•The Receive Data Area Tag Name (Attribute 24) must have the same name as the
tag defined on the PLC.
•The tag on the PLC must be an SINT type and large enough to contain the
sequence number, length, and data field associated with the received data
structure. (For more information, see the 2.3.2.
Serial Port Data Transfer
Object Definition (71 Hex) on Page 29.)
•An incremented sequence number indicates new data.
•The DeviceMaster UP does not write new data to the tag on the PLC until the
consumed sequence number has been incremented to match the last produced
sequence number.
•While the DeviceMaster UP queues received serial port data, the PLC program
must consume the new data faster than the data can be received on the serial
port to ensure the receive buffers on the DeviceMaster UP do not overflow. (For
example: If the serial port can receive two serial packets per second, then the
consumption rate must be at least one packet every 500 microsecond.)
•Polling receive method - The PLC requests data on a periodic basis.
In this method, DeviceMaster UP returns the serial data in the response to the
data request message. The PLC requests data by accessing the Serial Port Data Transfer Object Attribute 2. For more information, see the description of Attribute
2 in 2.3.2.
Serial Port Data Transfer Object Definition (71 Hex) on Page 29.
The following diagram shows the polling receive data flow:
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 23
Page 24
Instance Attribute Definitions
Application Socket Interface
Attribute
Attribute 17
(Continued)
Receive
(DeviceMaster UP to
PLC) Ethernet Data
Transfer Method
Attribute 19
Maximum Receive
Data Packet Size
Attribute 20
Maximum PLC
Update Rate
Attribute 22
PLC Controller Slot
Number
Attribute 23
PLC IP Address
Attribute 24
Receive
(DeviceMaster UP to
PLC) Produced Data
Tag Name
Attribute 25
Application Socket
Enable
Attribute 26
Application Listen
Enable
Description
The following restrictions apply to the Polling receive method:
•The data tag to receive the data on the PLC must be large enough to contain
the sequence number, length, and data field associated with the received data
structure. (For more information, see the 2.3.2.
Serial Port Data Transfer
Object Definition (71 Hex) on Page 29.)
•An incremented sequence number indicates new data.
•The same data may be returned more than once. However, the same data
packet also returns the same sequence number.
•A length of zero (0) indicates no data.
•While the DeviceMaster UP queues received serial port data, the PLC program
must poll for new data faster than the data can be received on the serial port to
ensure the receive queues on the DeviceMaster UP do not overflow. (For
example: If the serial port can receive two packets per second, then the polling
rate must be at least once every 500 microseconds.)
Specifies the maximum acceptable size of a received serial packet. The maximum
received serial packet size is 1518 bytes while operating in Write-to-Tag/File or Write-to-Tag-File-Synced receive modes.
The maximum rate (or minimum time interval) in milliseconds, that messages are
sent to the PLC tag in the Write-To-Tag receive method. This attribute configures the
DeviceMaster UP to space the messages to the PLC to prevent overrunning of data
before the PLC can process it.
This attribute specifies the slot number on the PLC where the controller resides. The
slot numbers typically start at zero (0) for the first slot.
Note: The Polling method does not use this attribute.
This attribute specifies the IP address in hexadecimal format for the PLC EtherNet/IP
card. For example, an IP address of 10.1.2.100 is 0A010264 in hexadecimal.
Note: The Polling method does not use this attribute.
This attributes specifies the PLC tag name. It indicates where to write received data
while operating in the Unsolicited - Write-to-Tag or Unsolicited - Write-to-Tag-Synced receive method.
The maximum length for the tag name is 40 characters.
This setting enables/
disables the
Application Socket
Interface. Enabling
this function allows an
application to be
connected to the serial
port. If both the PLC
and application are
connected to the serial
port, both can
transmit to and
receive data from the
serial port. However,
the PLC and
application cannot communicate directly to each other.
Enabling this setting allows the application to connect to the DeviceMaster UP via an
Ethernet TCP/IP socket.
•0 = Disables listening - The DeviceMaster UP does not accept connection
attempts.
•1 = Enables listening - The DeviceMaster UP accepts connection attempts from
the application socket port.
24 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 25
Instance Attribute Definitions
Attribute
Attribute 27
Application Connect
Mode
Attribute 28
Application
Disconnect Mode
Attribute 29
Application Listen
Socket Port
Attribute 30
Application
Connection Socket
Port
Attribute 31
Application
Connection IP
Address
Attribute 32
Application Idle
Timeout
Attribute 33
To PLC Filter/Data
Extraction Mode
Description
This setting controls if and how the DeviceMaster UP attempts to connect to the
application at the application connection IP address and application connection socket
port.
•0 = Never - The DeviceMaster UP does not attempt to connect to the application.
•1 = Connect Always - The DeviceMaster UP attempts connecting to the
application socket port until a connection is made.
•2 = Connect On Data - The DeviceMaster UP does not attempt to connect to the
application socket port until there is data to send to the application. Once data is
received from the serial device, the DeviceMaster UP attempts connecting to the
application until a connection is made.
This setting controls if and how the DeviceMaster UP disconnects from an application.
•0 = Never - The DeviceMaster UP does not disconnect from the application socket
port.
•1 = Disconnect On Idle - The DeviceMaster UP disconnects when there has been
no transmit or received data between the serial device and application socket port
for a specified Idle period (Attribute 32: Application Connection IP Address).
This is the socket port number on the DeviceMaster UP the application connects to if
Application Listen Enable is enabled.
This is the application socket port number the DeviceMaster UP connects to if the
Application Connect Mode is set to either Connect Always or Connect On Data.
This is the application IP address in hexadecimal format that the DeviceMaster UP
connects to if the Application Connect Mode is set to either Connect Always or Connect On Data. For example, an IP address of 10.1.2.100 is 0A010264 in hexadecimal.
The idle timeout period in milliseconds that is used if the Application Disconnect Mode
is set to Disconnect On Idle.
The filter/data extraction mode to be employed on data to be sent to the PLC.
•0 = Off
•1 = String (128 char max) - Raw/ASCII data is filtered up to 128 characters (or
bytes) in length.
•2 = RFID (EPCglobal formats) - RFID data in any of the EPCglobal formats is
filtered, the associated parameters is extracted, and the extracted data and RFID
tag is sent to the PLC in a specified format.
•3 = Barcode (UPC/EAN formats) - Barcode data in specified UPC/EAN formats is
filtered, the associated parameters is extracted, and the extracted data and
barcode is sent to the PLC in a specified format. See the barcode format
definitions in Attribute 41 on Page 28.
See the DeviceMaster UP Filtering and Data Extraction Reference Guide
(Page 10) for
further details.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 25
Page 26
Instance Attribute Definitions
Attribute
Attribute 34
To Application Filter/
Data Extraction
Mode
Attribute 35
Discard
Unrecognized Data
Mode
Attribute 36
RFID Antenna
Grouping
Description
The filter/data extraction mode to be employed on data to be sent to the application.
•0 = Off
•1 = String (128 char max) - Raw/ASCII data is filtered up to 128 characters (or
bytes) in length.
•2 = RFID (EPCglobal formats) - RFID data in any of the EPCglobal formats is
filtered, the associated parameters is extracted, and the extracted data and RFID
tag is sent to the application in a specified format.
•3 = Barcode (UPC/EAN formats) - Barcode data in specified UPC/EAN formats is
filtered, the associated parameters is extracted, and the extracted data and
barcode is sent to the application in a specified format. See the barcode format
definitions in Attribute 41 on Page 28.
The application filter mode can be set independently of the PLC filtering mode. The
only exceptions are:
•If the PLC filter mode is set to RFID, the application filter mode cannot be set to
Barcode.
•If the PLC filter mode is set to Barcode, the application filter mode cannot be set to
RFID.
See the DeviceMaster UP Filtering and Data Extraction Reference Guide
(Page 10) for
further details.
This attribute controls what to do with unrecognized RFID or barcode data.
•0 = Off - Send unrecognized data to the PLC and/or application.
•1 = Discard unrecognized data to the PLC. Allow sending of unrecognized data to
the application.
•2 = Discard unrecognized data to the application. Allow sending of unrecognized
data to the PLC.
•3 = Discard unrecognized data to both the PLC and application.
This attribute is applicable only to RFID filtering and only if the Antenna filtering
option is enabled. It allows the DeviceMaster UP to filter RFID tags based on Antenna
groupings. The possible groupings are:
Setting
Group 1Group 2Group 3Group N
Antennas
AntennasAntennasAntennas
None1234
Groups of Twos1,23,45,6Etc.
Groups of Threes1,2,34,5,67,8,9Etc.
Groups of Fours1,2,3,45,6,7,89,10,11,12Etc.
First Two Only1,234N+1
First Three Only1,2,345N+2
26 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 27
Instance Attribute Definitions
Attribute
Attribute 37
To PLC Filtering
Options
Attribute 38
To Application
Filtering Options
Attribute 39
Filter Age Time
Attribute 40
RFID Reader
Interface Type
Description
This attribute defines the RFID filtering criteria to the PLC. If an option is enabled, it
is used to decide when an RFID tag can be filtered or sent to the PLC.
•01 Hex = Encoding/Numbering - Include the Encoding/Numbering code in the
filtering criteria, which is part of the RFID tag or barcode data.
•02 Hex = Filter Value - Include the Filter Value in the filtering criteria, which is part
of the RFID tag data.
•04 Hex = Antenna - Include the Antenna number in the filtering criteria. This is
data from the RFID reader and not from the RFID tag.
•08 Hex = Company - Include the Company code in the filtering criteria, which is
part of the RFID tag or barcode data.
•10 Hex = Product/Location - Include the Product/Location code in the filtering
criteria, which is part of the RFID tag or barcode data.
•20 Hex = Serial Number - Include the Serial Number in the filtering criteria, which
is part of the RFID tag data.
See the DeviceMaster UP Filtering and Data Extraction Reference Guide
(Page 10) for
further details.
This attribute defines the RFID filtering criteria to the application. If an option is
enabled, it is used to decide when an RFID tag can be filtered or sent to the
application.
•01 Hex = Encoding/Numbering - Include the Encoding/Numbering code in the
filtering criteria, which is part of the RFID tag or barcode data.
•02 Hex = Filter Value - Include the Filter Value in the filtering criteria, which is part
of the RFID tag data.
•04 Hex = Antenna - Include the Antenna number in the filtering criteria. This is
data from the RFID reader and not from the RFID tag.
•08 Hex = Company - Include the Company code in the filtering criteria, which is
part of the RFID tag or barcode data.
•10 Hex = Product/Location - Include the Product/Location code in the filtering
criteria, which is part of the RFID tag or barcode data.
•20 Hex = Serial Number - Include the Serial Number in the filtering criteria, which
is part of the RFID tag data.
See the DeviceMaster UP Filtering and Data Extraction Reference Guide
(Page 10) for
further details.
This attribute defines the time a filter string, RFID tag, or barcode continues to be
filtered after the last time it was received. If an entry is received before the Filter Age Time has passed, the entry is filtered and the data is not be sent to the PLC and/or
application. However, if the Filter Age Time has passed, it passes filtering and be sent
to the PLC and/or application.
This attribute defines the expected RFID data format. Each format is unique and
pertains to the RFID reader manufacturer. If a RFID reader is to be used and it
provides a similar format to the ones listed below, it can also be used.
•0=Unspecified
•10 (Decimal) = Alien (Text Mode)
•11 (Decimal) = Alien (Terse Mode)
•20 (Decimal) = Intermec (Hex ASCII Mode)
See the DeviceMaster UP Filtering and Data Extraction Reference Guide
(Page 10) for
further details.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 27
Page 28
Instance Attribute Definitions
Attribute
Attribute 41
Barcode Formats
Attribute 42
Application Transmit
STX Append Value
Attribute 43
Application Transmit
ETX Append Value
Description
This attribute defines barcode format to be used for both standard and eight digit
UPC labels. The term standard refers to UPC-A, EAN-13, JAN, and EAN-14 barcodes
which all have ten company/product digits.
The standard and eight digit formats are selected independently and each operates
independently. Barcode filtering/data extraction does not function if no format is
selected.
See the DeviceMaster UP Filtering and Data Extraction Reference Guide (Page 10) for
further details.
You can set this attribute to append an STX (start of transmission) byte sequence
which is configurable as 1 or 2-bytes to the beginning of the serial packet before it is
sent.
The length indicates the number of STX bytes. The valid values for length are:
•0 (zero) - Setting this attribute to zero disables this function.
•1 (one STX byte) - Inserts one STX byte before the data.
•2 (two STX bytes) - Inserts two STX bytes before the data.
•Value1 - Specifies the transmit character associated with the first STX byte. (Only
if the length is not zero.) You can specify a value between 0 and 255.
•Value2 - Specifies the transmit character associated with the second STX byte.
(Only if length is two bytes.) You can specify a value between 0 and 255.
You can set this attribute to append an ETX (end of transmission) byte sequence
which is configurable as 1 or 2 -bytes to the end of the serial packet before it is sent.
The length indicates the number of ETX bytes. The valid values for length are:
•0 (zero) - Setting this attribute to zero disables this function.
•1 (one ETX byte) - Inserts one ETX byte at the end of the data.
•2 (two ETX bytes) - Inserts two ETX bytes at the end of the data.
•Value - Specifies the transmit character associated with the first ETX byte. (Only if
the length is not zero.) You can specify a value between 0 and 255.
•Value2 - Specifies the transmit character associated with the second ETX byte.
(Only if length is 2-bytes.) You can specify a value between 0 and 255.
28 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 29
Serial Port Data Transfer Object Definition (71 Hex)
2.3.2. Serial Port Data Transfer Object Definition (71 Hex)
The Serial Port Data Transfer vendor specific object defines the attributes by which the PLC can transfer data
to and from a serial port device through a DeviceMaster UP over EtherNet/IP.
Note: There is one instance of this object per serial port. The instance number corresponds to the associated
serial port number on the DeviceMaster UP. (Port numbers are numbered from one to N.)
2.3.2.1. Class Attributes
Attribute IDNameData TypeData Value(s)Access Rule
1RevisionUINT1Get
2Max InstanceUINTNumber of ports on the DeviceMaster UPGet
3Num InstancesUINTNumber of ports on the DeviceMaster UPGet
2.3.2.2. Instance Attributes
Attribute IDNameData TypeData Value(s)Access Rule
Transmit (PLC to DeviceMaster UP) message data.
Structure of:
1
Produced data sequence number
Data length
Data array
UINT
UINT
Array of USINT
Receive (DeviceMaster UP to PLC) message data
Structure of:
2
Produced data sequence number
Data length
Data array
UINT
UINT
Array of USINT
Receive (DeviceMaster UP to PLC) produced data sequence number
3
Normally sent to the PLC from the
DeviceMaster UP in data transfer.
UINT0-65535 (FFFF hex)Set/Get
Receive (DeviceMaster UP to PLC) consumed sequence number
4
Normally updated by the PLC in the
Write-to-Tag-Synced receive method.
UINT0-65535 (FFFF hex)Set/Get
Transmit (PLC to DeviceMaster UP) produced data sequence number
5
Normally sent to the DeviceMaster
UP from the PLC in data transfer.
UINT0-65535 (FFFF hex)Set/Get
* For the Polling receive method only. The maximum sized serial port message in the Write-to-Tag and
Write-to-Tag-Synced receive method is 1518 bytes.
0-65535 (FFFF hex)
1-440
0-255
0-65535 (FFFF hex)
0-440*
0-255
Set/Get
Get
2.3.2.3. Common Services
Service CodeImplemented in ClassImplemented in InstanceService Name
0E HexYesYesGet_Attribute_Single
10 HexNoYesSet_Attribute_Single
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 29
Page 30
Instance Attribute Definitions
2.3.2.4. Instance Attribute Definitions
Attribute
Attribute 1
Transmit (PLC to
DeviceMaster UP)
Message Data
Attribute 2
Receive
(DeviceMaster UP to
PLC) Message Data
Attribute 3
Receive
(DeviceMaster UP to
PLC) Produced Data
Sequence Number
Attribute 4
Receive
(DeviceMaster UP to
PLC) Consumed
Data Sequence
Number
Attribute 5
Transmit (PLC to
DeviceMaster UP)
Produced Data
Sequence Number
Description
This attribute transmits data out of a serial port on the DeviceMaster UP.
•In most cases, incrementing the sequence number is optional. However, it is
required if you enable the Transmit Sequence Number Checking option. (For more
information, see Attribute 16 - Serial Port Transfer Options on Page 22.)
•The length must be at least one and a maximum of 440-bytes.
•A Get returns the last successfully transmitted data message.
This attribute provides the receive data while operating in the Polling communication
method.
•DeviceMaster UP increments the sequence number for each new serial port
packet received.
•A length of zero indicates no data was received on the specified serial port.
•Two or more Gets may return the same data packet, but the messages will also
have the same sequence number.
•Serial packets up to 1518 bytes may be received while operating in the Write-To-Tag or Write-To-Tag-Syncedreceive methods. For serial packets over 440 bytes, the
DeviceMaster UP places the data into a sequence of tags. These tags must meet
the following criteria:
-All must be of type SINTs.
-The entire sequence must be large enough to contain the maximum sized
receive packet plus four SINTS for the sequence number and length
parameters.
-All tags except the last of the sequence must be 444 SINTs in size.
-The tags must have the same base name and numbered in sequence. The first
tag is not be numbered (i.e. Com1_RxData), the second tag has a 2 appended
(i.e. Com1_RxData2), the third has a 3 appended (i.e. Com1_RxData3) and so on.
-The sequence number and total length is placed in the first tag and the first
tag is the last tag updated. Therefore, once the sequence number is updated,
the entire serial packet has been received and the PLC can process the data.
Use this attribute to get and set the Produced Data Sequence number. This is the
same Produced Data Sequence number sent to the PLC in all the receive communication methods.
Use this attribute to get and set the Consumed Data Sequence number. You can only
specify this attribute when you are using the Unsolicited - Write-to-Tag-Synced receive
method under Attribute 17 in the Serial Port Configuration object definition. When
used, the PLC increments this attribute to indicate the data received has been
consumed and it is now ready for another serial data packet. For more information,
see the description of Unsolicited -Write-to-Tag-Synced in Attribute 17 on Page 22.
Use this attribute to get and set the Transmit Produced Data Sequence number. This
is the same Produced Data Sequence number sent to the DeviceMaster UP in the
Transmit Message data.
30 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 31
Serial Port Statistics Object Definition (72 Hex)
2.3.3. Serial Port Statistics Object Definition (72 Hex)
The Serial Port Statistics object defines the statistics gathered by the DeviceMaster UP on a serial port basis.
Note: There is one instance of this object per serial port. The instance number corresponds to the associated
serial port number on the DeviceMaster UP. (Port numbers are numbered from one to N.)
2.3.3.1. Class Attributes
Attribute IDNameData TypeData Value(s)Access Rule
1RevisionUINT1Get
2Max InstanceUINTNumber of ports on the DeviceMaster UPGet
3Num InstancesUINTNumber of ports on the DeviceMaster UPGet
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 31
Page 32
Instance Attribute Definitions
2.3.3.4. Instance Attribute Definitions
Attribute
Attribute 1
Receive Byte Count
Attribute 2
Attribute 3
Transmit Byte Count
Attribute 4
Transmit Packet
Count
Attribute 5
Dropped Packet to
PLC Count
Attribute 6
Parity Error Count
Attribute 7
Framing Error Count
Attribute 8
Overrun Error Count
Attribute 9
Received Consumed
Sequence Error Count
Attribute 10
Duplicate Transmit
Sequence Number
Error Count
Description
This attribute counts the number of bytes received over the serial port.
Receive Packet Count: This attribute counts the packets received over the serial
port.
This attribute counts the number of bytes sent out the serial port.
This attribute counts the number of packets sent out the serial port.
This attribute counts the number of received serial packets intended for the PLC
dropped due to:
•No STX byte(s) found
•No ETX byte(s) found
•Time-outs
•Too large of packet
•Receive buffer queue overflows
This attribute counts the number of received serial packets dropped due to
parity errors.
This attribute counts the number of received serial packets dropped due to
framing errors.
This attribute counts the number of received serial packets dropped due to
overrun error incidents.
This attribute counts the number of received consumed sequence number errors.
The DeviceMaster UP only increments this number when all of the following
statements are true:
•You selected the Unsolicited - Write-to-Tag-Synced method of receive
communication.
•DeviceMaster UP receives a serial packet.
•The Consumed Sequence number is out of sync. (It is not equal to the Produced Sequence number or equal to the Produced Sequence number
minus one.)
This attribute counts the number of Duplicate Transmit Sequence Number
errors. The DeviceMaster UP only increments this number when the following
statements are true:
•You enabled the Transmit Sequence Number Checking configuration option.
(See Attribute 16 - Serial Port Transfer Options on Page 22 for additional
information.)
•DeviceMaster UP receives a transmit message with a sequence number
equal to the previous sequence number. (The DeviceMaster UP expects this
sequence number to be incremented by one from the sequence number in the
previous transmit message.)
32 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 33
Socket Port Configuration Object Definition (73 Hex)
Attribute
Description
This attribute counts the number of Unexpected Transmit Sequence Number
errors. The DeviceMaster UP increments this number when the following
statements are true:
Attribute 11
Unexpected Transmit
Sequence Number
Error Count
•You enabled the Transmit Sequence Number Checking configuration option.
(See Attribute 16 - Serial Port Transfer Options on Page 22 for additional
information.)
•DeviceMaster UP receives a transmit message with a sequence number that
is not equal to either the previous transmit sequence number or the previous
transmit sequence number plus one. (The DeviceMaster UP expects this
sequence number to be incremented by one with each new transmit
message.)
This attribute counts the number of received serial packets intended for the
application dropped due to:
Attribute 12
Dropped Packet to
Application Count
•No STX byte(s) found
•No ETX byte(s) found
•Time-outs
•Too large of packet
•Receive buffer queue overflows
2.3.4. Socket Port Configuration Object Definition (73 Hex)
The Socket Port Configuration vendor specific object defines the protocol by which:
•A PLC can communicate with an Ethernet TCP/IP device through a DeviceMaster UP over Ethernet/IP.
•An optional application can communicate with the Ethernet device through the DeviceMaster UP over an
Ethernet TCP/IP socket port.
•The optional data filtering and data extraction functions can be implemented.
Note: The instance number corresponds to the associated socket port number on the DeviceMaster UP. (Socket
port numbers can be numbered form 1 to N.)
You can disregard this object definition if you configure the DeviceMaster UP using the embedded Server
Configuration web page. Use Chapter 3.
DeviceMaster UP using the embedded web pages.
Embedded Configuration Pages on Page 65to configure the
2.3.4.1. Class Attributes
Attribute IDNameData TypeData Value(s)Access Rule
1RevisionUINT1Get
2Max InstanceUINTNumber of ports on the DeviceMaster UPGet
3Num InstancesUINTNumber of ports on the DeviceMaster UPGet
2.3.4.2. Instance Attributes
Note: Get returns the last command sent.
Attribute
ID
Name
Data
Type
Data Value(s)
Access
Rule
1Socket Port DeviceUDINT0=Raw/ASCII Data DeviceSet/Get
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 33
Page 34
Instance Attributes
Attribute
ID
Name
Data
Type
Data Value(s)
1=Reset Socket Port
2Socket Port CommandsDWORD
2=Save in Flash
4=Clear Sequence Counters
8=Clear Statistics Counters
3Device Socket EnableUSINT
4Device Listen EnableUSINT
0=Disabled
1=Enabled
0=Disabled
1=Enabled
5Device Listen Socket Port UINT0-65535Set/Get
0=Never
6Device Connect ModeUSINT
1=Connect Always
2=Connect On Data
7Device Disconnect ModeUSINT
8
9
Device Connect Socket
Port
Device Connect IP
Address
10Device Idle Timeout
11
(Default=0)
Receive Timeout Between
Packets (if no ETX or time
to wait for ETX value)
UINT0-65535Set/Get
UDINT
UDINT
(msec)
UINT
(msec)
0=Never
1=Disconnect On Idle
00000000 Hex to FFFFFFFF Hex
(Mask=255.255.255.255)
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 39
Page 40
Instance Attribute Definitions
Device Socket Interface
2.3.4.4. Instance Attribute Definitions
Attribute
Attribute 1
Socket Port Device
Type
Attribute 2
Socket Port Commands
Attribute 3
Device Socket Enable
Description
This attribute indicates the socket port device type. Raw/ASCII Data Device is the
only currently supported option for EtherNet/IP.
DeviceMaster UP supports the following commands:
•Reset socket port - This option resets the device socket port, application socket
port, and the statistics counters. Generally this is not required when changing
socket port settings because the DeviceMaster UP detects the changes and, if
necessary, automatically reset the socket connection(s).
•Save in Flash - This option saves the socket port configuration in flash memory.
These settings are restored when you reboot the DeviceMaster UP.
•Clear sequence counters - This option clears the Receive Produced, Receive
Consumed, and Transmit Produced sequence counters for the selected socket
port.
•Clear statistics counters - This option clears the statistics counters for the
selected socket port.
This attribute enables/disables the Device Socket Interface. Enabling this function
allows an Ethernet device to be connected to the DeviceMaster UP via an Ethernet
TCP/IP socket.
Attribute 4
Device Listen Enable
Attribute 5
Device Listen Socket
Port
Attribute 6
Device Connect Mode
Attribute 7
Device Disconnect
Mode
Enabling this setting allows the device to connect to the DeviceMaster UP via an
Ethernet TCP/IP socket.
•0 = Disables listening - The DeviceMaster UP does not accept connection
attempts.
•1 = Enables listening - The DeviceMaster UP does accept connection attempts
from the specified socket.
This is the socket port number on the DeviceMaster UP the device connects to if
Device Listen Enable is enabled.
This setting controls if and how the DeviceMaster UP attempts to connect to the
device at the specified IP Address and socket.
•0 = Never - The DeviceMaster UP does not attempt to connect to the device.
•1 = Connect Always - Attempts to connect to the device until a connection is
made.
•2 = Connect On Data - The DeviceMaster UP does not attempt to connect to the
device until there is data to send to the device from either the PLC or
application. Once data is received for the socket device, the DeviceMaster UP
attempts to connect to the device until a connection is made.
This setting controls if and how the DeviceMaster UP disconnects from a socket
device.
•0 = Never - The DeviceMaster UP does not disconnect from the device.
•1 = Disconnect On Idle - The DeviceMaster UP disconnects when there has been
no transmit or received data between the socket device and PLC and/or
application for a specified Idle period. (Please see Attribute 10.)
40 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 41
Instance Attribute Definitions
Attribute
Attribute 8
Device Connection
Socket Port
Attribute 9
Device Connection IP
Address
Attribute 10
Device Idle Timeout
Attribute 11
Receive Timeout
Between Packets
Attribute 12
PLC IP Address
Attribute 13
Receive (DeviceMaster
UP to PLC) Ethernet
Data Transfer Method
Attribute 14
PLC Controller Slot
Number
Attribute 15
Socket Port Data
Transfer Options
Attribute 16
Maximum PLC Update
Rate
Attribute 17
Maximum Receive
Data Packet Size
Description (Continued)
This is the device socket port number the DeviceMaster UP connects to if the Device
Connect Mode is set to either Connect Always or Connect On Data.
This is the device IP address the DeviceMaster UP connects to if the Device Connect
Mode is set to either Connect Always or Connect On Data. The IP address is in
hexadecimal format. For example, an IP address of 10.1.2.100 is 0A010264 in
hexadecimal.
The idle timeout period in milliseconds that is used if the Device Disconnect Mode is
set to Disconnect On Idle.
This attributes specifies:
•How long DeviceMaster UP waits (in milliseconds) if the Receive ETX length is
not zero (0) and it does not receive an ETX byte sequence.
•The time to wait (in milliseconds) between Ethernet packets if the Receive ETX
Detect length is set to zero (0).
This attribute specifies the IP address in hexadecimal format for the PLC EtherNet/
IP card. For example, an IP address of 10.1.2.100 is 0A010264 in hexadecimal.
Note: The Polling method does not use this attribute.
This attribute specifies Ethernet data transfer method used by the DeviceMaster
UP for the specified socket port. Refer to Attribute 17 of the Serial Port Configuration Object for a detailed explanation of these methods.
This attribute specifies the slot number on the PLC where the controller resides.
The slot numbers typically start at zero (0) for the first slot.
Note: This is generally zero for CompactLogix PLCs. The Polling method does not
use this attribute.
This attribute specifies the socket port transfer options. The following options are
supported:
•01 Hexadecimal (Bit 0) = (PLC-5/SLC only) Receive Most Significant (MS) byte of
16 bit integer first. The default is transmit least significant (LS) byte first.
•02 Hexadecimal (Bit 1) = (PLC-5/SLC only) Transmit Most Significant (MS) byte
of 16 bit integer first. The default is transmit least significant (LS) byte first.
•04 Hexadecimal (Bit 2) = Tx Sequence Number Checking
-DeviceMaster UP rejects messages with duplicate sequence numbers, (that
is, the same sequence number as the previous transmit data message), and
increments the Duplicate Transmit Sequence Error Count.
-DeviceMaster UP transmits messages with unexpected transmit sequence
numbers, (that is, sequence numbers that are not the same as or are not
equal to the previous sequence number plus one) increments the
Unexpected Transmit Sequence Error Count.
•08 Hexadecimal (Bit 3) = Disable Queuing of Non-Filtered Rx Messages to the
PLC. If filtering is disabled, only the last message received is sent to the PLC.
•10 Hexadecimal (Bit 4) = Drop oversized received data packets.
The maximum rate (or minimum time interval) in milliseconds, that messages are
sent to the PLC tag in the Write-To-Tag receive method. This attribute configures
the DeviceMaster UP to space the messages to the PLC to prevent overrunning of
data before the PLC can process it.
Specifies the maximum acceptable size of a received Ethernet packet. The
maximum received Ethernet packet size is 2048 bytes while operating in Write-to-
Tag/File or Write-to-Tag-File-Synced receive modes.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. IChapter 2. Programming Interface - 41
Page 42
Instance Attribute Definitions
Application Socket Interface
Attribute
Attribute 18
Receive (DeviceMaster
UP to PLC) Data Tag
Name
Attribute 19
Application Socket
Enable
Attribute 20
Application Listen
Enable
Attribute 21
Application Connect
Mode
Attribute 22
Application Disconnect
Mode
Attribute 23
Application Listen
Socket Port
Attribute 24
Application
Connection Socket Port
Attribute 25
Application
Connection IP Address
Attribute 26
Application Idle
Timeout
Description (Continued)
This attribute specifies the PLC tag name. It indicates where to write received data
while operating in the Write-to-Tag or Write-to-Tag-Synced receive method.
Note: This attribute is not used in the Polling method.
This attribute enables/
disables the Application
Socket Interface.
Enabling this function
allows an application to
be connected to the
device socket port. If both
the PLC and application
are connected to the
device socket port, both
can transmit to and
receive data from the
device socket port.
However, the PLC and application cannot communicate directly to each other.
Enabling this setting allows the application to connect to the DeviceMaster UP via
an Ethernet TCP/IP socket.
•0 = Disables listening - The DeviceMaster UP does not accept connection
attempts.
•1 = Enables listening - The DeviceMaster UP accepts connection attempts from
the specified socket.
This setting controls if and how the DeviceMaster UP attempts to connect to the
application at the specified IP address and socket.
•0 = Never - The DeviceMaster UP does not attempt to connect to the
application.
•1 = Connect Always - Attempts to connect to the application until a connection
is made.
•2 = Connect On Data - The DeviceMaster UP does not attempt to connect to the
application until there is data to send to the application. Once data is received
from the socket device, the DeviceMaster UP attempts to connect to the
application until a connection is made.
This setting controls if and how the DeviceMaster UP disconnects from an
application.
•0 = Never - The DeviceMaster UP does not disconnect from the application.
•1 = Disconnect On Idle - The DeviceMaster UP disconnects when there has been
no transmit or received data between the socket device and application for a
specified Idle period. (See Attribute 32
.)
This is the socket port number on the DeviceMaster UP the application connects to
if Application Listen Enable is enabled.
This is the application socket port number the DeviceMaster UP connects to if the
Application Connect Mode is set to either Connect Always or Connect On Data.
This is the application IP address the DeviceMaster UP connects to if the
Application Connect Mode is set to either Connect Always or Connect On Data.
The idle timeout period in milliseconds that is used if the Application Disconnect Mode is set to Disconnect On Idle.
42 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 43
Instance Attribute Definitions
Attribute
Attribute 27
To PLC Filter/Data
Extraction Mode
Attribute 28
To Application Filter/
Data Extraction Mode
Attribute 29
Discard Unrecognized
Data Mode
Attribute 30
RFID Antenna
Grouping
Description (Continued)
The filter/data extraction mode to be employed on data to be sent to the PLC.
•0 = Off
•1 = String (128 char max) - Raw/ASCII data is filtered up to 128 characters (or
bytes) in length.
•2 = RFID (EPCglobal formats) - RFID data in any of the EPCglobal formats is
filtered, the associated parameters is extracted, and the extracted data and
RFID tag is sent to the PLC in a specified format.
•3 = Barcode (UPC/EAN formats) - Barcode data in specified UPC/EAN formats
is filtered, the associated parameters is extracted, and the extracted data and
barcode is sent to the PLC in a specified format. See the barcode format
definitions in Attribute 41 on Page 28.
See the DeviceMaster UP Filtering and Data Extraction Reference Guide
(Page 10)
for further details.
The filter/data extraction mode to be employed on data to be sent to the application.
•0 = Off
•1 = String (128 char max) - Raw/ASCII data is filtered up to 128 characters (or
bytes) in length.
•2 = RFID (EPCglobal formats) - RFID data in any of the EPCglobal formats is
filtered, the associated parameters is extracted, and the extracted data and
RFID tag is sent to the application in a specified format.
•3 = Barcode (UPC/EAN formats) - Barcode data in specified UPC/EAN formats
is filtered, the associated parameters is extracted, and the extracted data and
barcode is sent to the application in a specified format.See the barcode format
definitions in Attribute 41 on Page 28.
The application filter mode can be set independently of the PLC filtering mode. The
only exceptions are:
•If the PLC filter mode is set to RFID, the application filter mode cannot be set to
Barcode.
•If the PLC filter mode is set to Barcode, the application filter mode cannot be set
to RFID.
See the DeviceMaster UP Filtering and Data Extraction Reference Guide
(Page 10)
for further details.
This attribute controls what to do with unrecognized RFID or barcode data.
•0 = Off - Send unrecognized data to the PLC and/or application.
•1 = Discard unrecognized data to the PLC. Allow sending of unrecognized data
to the application.
•2 = Discard unrecognized data to the application. Allow sending of unrecognized
data to the PLC.
•3 = Discard unrecognized data to both the PLC and application.
This attribute is applicable only to RFID filtering and only if the Antenna filtering
option is enabled. It allows the DeviceMaster UP to filter RFID tags based on
Antenna groupings. The possible groupings are:
Setting
Group 1Group 2Group 3Group N
Antennas
AntennasAntennasAntennas
None1234
Groups of Twos1,23,45,6Etc.
Groups of Threes1,2,34,5,67,8,9Etc.
Groups of Fours1,2,3,45,6,7,89,10,11,12Etc.
First Two Only1,234N+1
First Three Only1,2,345N+2
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 43
Page 44
Instance Attribute Definitions
Attribute
Attribute 31
To PLC Filtering
Options
Attribute 32
To Application
Filtering Options
Attribute 33
Filter Age Time
Attribute 34
RFID Reader Interface
Type
Description (Continued)
This attribute defines the RFID filtering criteria to the PLC. If an option is enabled,
it is used to decide when an RFID tag can be filtered or sent to the PLC.
•01 Hex = Encoding/Numbering - Include the Encoding/Numbering code in the
filtering criteria, which is part of the RFID tag or barcode data.
•02 Hex = Filter Value - Include the Filter Value in the filtering criteria, which is
part of the RFID tag data.
•04 Hex = Antenna - Include the Antenna number in the filtering criteria. This is
data from the RFID reader and not from the RFID tag.
•08 Hex = Company - Include the Company code in the filtering criteria, which is
part of the RFID tag or barcode data.
•10 Hex = Product/Location - Include the Product/Location code in the filtering
criteria, which is part of the RFID tag or barcode data.
•20 Hex = Serial Number - Include the Serial Number in the filtering criteria,
which is part of the RFID tag data.
See the DeviceMaster UP Filtering and Data Extraction Reference Guide
(Page 10)
for further details.
This attribute defines the RFID filtering criteria to the application. If an option is
enabled, it is used to decide when an RFID tag can be filtered or sent to the
application.
•01 Hex = Encoding/Numbering - Include the Encoding/Numbering code in the
filtering criteria, which is part of the RFID tag or barcode data.
•02 Hex = Filter Value - Include the Filter Value in the filtering criteria, which is
part of the RFID tag data.
•04 Hex = Antenna - Include the Antenna number in the filtering criteria. This is
data from the RFID reader and not from the RFID tag.
•08 Hex = Company - Include the Company code in the filtering criteria, which is
part of the RFID tag or barcode data.
•10 Hex = Product/Location - Include the Product/Location code in the filtering
criteria, which is part of the RFID tag or barcode data.
•20 Hex = Serial Number - Include the Serial Number in the filtering criteria,
which is part of the RFID tag data.
See the DeviceMaster UP Filtering and Data Extraction Reference Guide
(Page 10)
for further details.
This attribute defines the time a filter string, RFID tag, or barcode continues to be
filtered after the last time it was received. If an entry is received before the Filter Age Time has passed, the entry is filtered and the data is not sent to the PLC and/or
application. However, if the Filter Age Time has passed, it passes filtering and be
sent to the PLC and/or application.
This attribute defines the expected RFID data format. Each format is unique and
pertains to the RFID reader manufacturer. If a RFID reader is to be used and it
provides a similar format to the ones listed below, it can also be used.
•0=Unspecified
•10 (Decimal) = Alien (Text Mode)
•11 (Decimal) = Alien (Terse Mode)
•20 (Decimal) = Intermec (Hex ASCII Mode)
See the DeviceMaster UP Filtering and Data Extraction Reference Guide
(Page 10)
for further details.
44 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 45
Instance Attribute Definitions
Attribute
Attribute 35
Barcode Formats
Attribute 36
PLC Transmit STX
Append Value
Attribute 37
PLC Transmit ETX
Append Value
Description (Continued)
This attribute defines barcode format to be used for both standard and eight digit
UPC labels. The term standard refers to UPC-A, EAN-13, JAN, and EAN-14
barcodes which all have ten company/product digits.
The standard and eight digit formats are selected independently and each operates
independently. It is important to note that the barcode filtering/data extraction does
not function if no format is selected.
See the DeviceMaster UP Filtering and Data Extraction Reference Guide (Page 10)
for further details.
You can set this attribute to append an STX (start of transmission) byte sequence
which is configurable as 1 or 2-bytes to the beginning of the Ethernet packet before
it is sent. The length indicates the number of STX bytes. The valid values for length
are:
•0 (zero) - Setting this attribute to zero disables this function.
•1 (one STX byte) - Inserts one STX byte before the data.
•2 (two STX bytes) - Inserts two STX bytes before the data.
•Value1 - Specifies the transmit character associated with the first STX byte.
(Only if the length is not zero.) You can specify a value between 0 and 255.
•Value2 - Specifies the transmit character associated with the second STX byte.
(Only if length is two bytes.) You can specify a value between 0 and 255.
You can set this attribute to append an ETX (end of transmission) byte sequence
which is configurable as 1 or 2-bytes to the end of the Ethernet packet before it is
sent. The length indicates the number of ETX bytes.
The valid values for length are:
•0 (zero) - Setting this attribute to zero disables this function.
•1 (one ETX byte) - Inserts one ETX byte at the end of the data.
•2 (two ETX bytes) - Inserts two ETX bytes at the end of the data.
•Value - Specifies the transmit character associated with the first ETX byte.
(Only if the length is not zero.) You can specify a value between 0 and 255.
•Value2 - Specifies the transmit character associated with the second ETX byte.
(Only if length is 2-bytes.) You can specify a value between 0 and 255.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 45
Page 46
Instance Attribute Definitions
Attribute
Attribute 38
Receive STX Detect
Value
Attribute 39
Receive ETX Detect
Value
Attribute 40
Application Transmit
STX Append Value
Description (Continued)
This attribute detects an STX (start of transmission) byte sequence which is
configurable as 1 or 2-bytes when it receives a Ethernet packet. The length
indicates the number of STX bytes. The valid values for length are:
•0 (zero) - Setting this attribute to zero disables this function. When disabled, the
DeviceMaster UP accepts the first byte received after the last ETX byte(s) as
the start of the next data packet.
•1 (one STX byte) - Scans Ethernet data for one STX byte. If the DeviceMaster UP
finds an STX byte it collects the data. If the first byte is not the STX byte, the
DeviceMaster UP discards the byte. The DeviceMaster UP continues to discard
the bytes until the DeviceMaster UP finds an STX byte.
•2 (two STX bytes) - Scans Ethernet data for two STX bytes. If the DeviceMaster
UP finds two STX bytes it collects the data. If the first two bytes are not the
STX bytes, the DeviceMaster UP discards the bytes. Bytes continue to be
discarded until the DeviceMaster UP finds two STX bytes.
•Value1 - Specifies the character that represents the first STX byte.
DeviceMaster UP looks for this character in the first STX byte. (Only if the
length is not zero.) You can specify a value between 0 and 255.
•Value2 - Specifies the character that represents the second STX byte.
DeviceMaster UP looks for this character in the first STX byte. (Only if length is
two bytes.) You can specify a value between 0 and 255.
This attribute detects an ETX (end of transmission) byte sequence which is
configurable as 1 or 2 bytes marking the end of the Ethernet packet. The length
indicates the number of ETX bytes. The valid values for length are:
•0 (zero) - Setting this attribute to zero disables this function. When disabled, the
DeviceMaster UP uses the Receive Timeout Between Packets (attribute 11) to
indicate the end of data packet.
•1 (one ETX byte) - Scans Ethernet data for one ETX byte. When the
DeviceMaster UP finds an ETX byte it identifies the data as a Ethernet packet.
•2 (two ETX bytes) - Scans Ethernet data for two ETX bytes. When the
DeviceMaster UP finds two ETX bytes it identifies the data as a Ethernet
packet.
•Value1 - Specifies the character to scan for in the first ETX byte. (Only if the
length is not zero.) You can specify a value between 0 and 255.
•Value2 - Specifies the character to scan for in the second ETX byte. (Only if
length is 2-bytes.) You can specify a value between 0 and 255.
You can set this attribute to append an STX (start of transmission) byte sequence
which is configurable as 1 or 2-bytes to the beginning of the Ethernet packet before
it is sent. The length indicates the number of STX bytes. The valid values for length
are:
•0 (zero) - Setting this attribute to zero disables this function.
•Value2 - Specifies the transmit character associated with the second STX byte.
(Only if length is two bytes.) You can specify a value between 0 and 255.
46 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 47
Instance Attribute Definitions
Attribute
Attribute 41
Application Transmit
ETX Append Value
Description (Continued)
You can set this attribute to append an ETX (end of transmission) byte sequence
which is configurable as 1 or 2-bytes to the end of the Ethernet packet before it is
sent. The length indicates the number of ETX bytes. The valid values for length are:
•Value2 - Specifies the transmit character associated with the second ETX byte.
(Only if length is 2-bytes.) You can specify a value between 0 and 255.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 47
Page 48
Socket Port Data Transfer Definition Object (74 Hex)
2.3.5. Socket Port Data Transfer Definition Object (74 Hex)
The Socket Port Data Transfer vendor specific object defines the attributes by which the PLC can transfer
data to and from an Ethernet device, via a socket port through a DeviceMaster UP over EtherNet/IP.
Note: There is one instance of this object per socket port. The instance number corresponds to the associated
2.3.5.1. Class Attributes
2.3.5.2. Instance Attributes
socket port number on the DeviceMaster UP. (Port numbers are numbered from one to N.)
Attribute IDNameData TypeData Value(s)Access Rule
1RevisionUINT1Get
2Max InstanceUINTNumber of ports on the DeviceMaster UPGet
3Num InstancesUINTNumber of ports on the DeviceMaster UPGet
Attribute IDNameData TypeData Value(s)Access Rule
Transmit (PLC to DeviceMaster UP) message data
Structure of:
1
Produced data sequence number
Data length
Data array
UINT
UINT
Array of USINT
0-65535 (FFFF hex
1-440
0-255
Set/Get
Receive (DeviceMaster UP to PLC) message data
Structure of:
2
Produced data sequence number
Data length
Data array
UINT
UINT
Array of USINT
0-65535 (FFFF hex)
0-440*
0-255
Get
Receive (DeviceMaster UP to PLC) produced data sequence number
3
Normally sent to the PLC from the
DeviceMaster UP in data transfer.
UINT0-65535 (FFFF hex)Set/Get
Receive (DeviceMaster UP to PLC) consumed sequence number
4
Normally updated by the PLC in the
Write-to-Tag-Synced receive method.
UINT0-65535 (FFFF hex)Set/Get
Transmit (PLC to DeviceMaster UP) produced data sequence number
5
* For the Polling receive method only. The maximum sized socket port message in the Write-to-Tag and
Normally sent to the DeviceMaster
UP from the PLC in data transfer.
UINT0-65535 (FFFF hex)Set/Get
Write-to-Tag-Synced receive method is 2048 bytes.
2.3.5.3. Common Services
Service CodeImplemented in ClassImplemented in InstanceService Name
0E HexYesYesGet_Attribute_Single
10 HexNoYesSet_Attribute_Single
48 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 49
2.3.5.4. Instance Attribute Definitions
AttributeDescription
This attribute transmits data out of a socket port on the DeviceMaster UP.
Attribute 1
Transmit (PLC to
DeviceMaster UP)
Message Data
In most cases, incrementing the sequence number is optional. However, it is
required if you enable the Transmit Sequence Number Checking option. (For
more information, see Attribute 16 - Serial Port Transfer Options on Page 22.)
The length must be at least one and a maximum of 440-bytes.
A Get returns the last successfully transmitted data message.
This attribute provides the receive data while operating in the Polling communication method.
•DeviceMaster UP increments the sequence number for each new socket port
packet received.
•A length of zero indicates no data was received on the specified socket port.
•Two or more Gets may return the same data packet, but the messages will
also have the same sequence number.
•Socket packets up to 2048 bytes may be received while operating in the
Write-To-Tag or Write-To-Tag-Syncedreceive methods. For socket packets
over 440 bytes, the DeviceMaster UP places the data into a sequence of tags.
Attribute 2
Receive (DeviceMaster
UP to PLC) Message Data
These tags must meet the following criteria:
-All must be of type SINTs.
-The entire sequence must be large enough to contain the maximum sized
receive packet plus four SINTS for the sequence number and length
parameters.
-All tags except the last of the sequence must be 444 SINTs in size.
-The tags must have the same base name and numbered in sequence. The
first tag is not numbered (i.e. Com1_RxData), the second tag has a 2
appended (i.e. Com1_RxData2), the third has a 3 appended (i.e. Com1_RxData3) and so on.
-The sequence number and total length is placed in the first tag and the
first tag is the last tag updated. Therefore, once the sequence number is
updated, the entire socket packet has been received and the PLC can
process the data.
Attribute 3
Receive (DeviceMaster
UP to PLC) Produced
Data Sequence Number
Use this attribute to get and set the Produced Data Sequence number. This is the
same Produced Data Sequence number sent to the PLC in all the receive communication methods.
Use this attribute to get and set the Consumed Data Sequence number. You can
Attribute 4
Receive (DeviceMaster
UP to PLC) Consumed
Data Sequence Number
only specify this attribute when you are using the Unsolicited - Write-to-Tag-Synced receive method under Attribute 17 in the Serial Port Configuration object
definition. When used, the PLC increments this attribute to indicate the data
received has been consumed and it is now ready for another socket data packet.
For more information, see the description of Unsolicited -Write-to-Tag-Synced in
Attribute 17 on Page 22.
Attribute 5
Transmit (PLC to
DeviceMaster UP)
Produced Data Sequence
Use this attribute to get and set the Transmit Produced Data Sequence number.
This is the same Produced Data Sequence number sent to the DeviceMaster UP
in the Transmit Message data.
Number
Instance Attribute Definitions
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 49
Page 50
Informational Objects
2.3.6. Informational Objects
The following object definitions are included for informational purposes only. While some software packages
such as RSLinx make use of these objects, few PLC programmers will have a need to directly access them.
2.3.6.1. Identity Object (01 Hex, 1 instance)
The Identity Object provides identification of and general information about the DeviceMaster UP.
Length of string: DeviceMaster UP
xP (where x is 1 or 4 depending on
the model)
Get
Get
2.3.6.1.3. Status Word
Please refer to Pages 5-8 in Volume 1 of the CIP Common Specification.
2.3.6.1.4. Common Services
Service CodeImplemented in ClassImplemented in InstanceService Name
01 hexNoYesGet_Attribute_All
05 hexNoYesReset
0E hexYesYesGet_Attribute_Single
50 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 51
Message Router Object (02 Hex)
2.3.6.2. Message Router Object (02 Hex)
The Message Router Object provides a messaging connection point through which a client may address a
service to any object or instance residing in the physical device.
2.3.6.2.1. Class Attributes
Attribute IDNameData TypeData Value(s)Access Rule
1RevisionUINT1Get
2.3.6.2.2. Instance Attributes
Attribute
ID
NameData TypeData Value(s)
Access
Rule
Object List
1
Structure of:
Number
Classes
UINT
Array of UINT
Number of supported class codes
List of supported class codes
Get
2Max ConnectionsUINT128Get
2.3.6.2.3. Common Services
Service Code Implemented in Class Implemented in InstanceService Name
01 HexNoYesGet_Attribute_All (Class only)
0E HexYesYes
Get_Attribute_Single
(Instance only)
2.3.6.3. Connection Manager Object (06 Hex)
The Connection Manager Object provides services for connection and connection-less communications.
This object has no supported attributes.
2.3.6.3.1. Instance Object Specific Services
DeviceMaster UP supports the following instance object specific services:
Service CodeService NameService Description
4E HexForward_CloseCloses a connection.
52 HexUnconnected_ SendUnconnected Send Service.
54 HexForward_OpenOpens a connection.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 51
Page 52
Port Object (F4 Hex - 1 instance)
2.3.6.4. Port Object (F4 Hex - 1 instance)
The Port Object enumerates the CIP ports on the DeviceMaster UP.
Service CodeImplemented in ClassImplemented in InstanceService Name
01 HexYesYesGet_Attribute_All
0E HexYesYesGet_Attribute_Single
2.3.6.7. PCCC Object (67 Hex)
The PCCC object provides the ability to encapsulates, and then transmit and receive PCCC messages between
devices on an EtherNet/IP network. This is the primary interface for the PLC-5 and SLC PLCs.
2.3.6.7.1. Class Attributes
Not supported.
2.3.6.7.2. Instance Attributes
Not supported.
2.3.6.7.3. Instances
Supports Instance 1.
54 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 55
PCCC Object (67 Hex)
2.3.6.7.4. Common Services
Service CodeImplemented in ClassImplemented in InstanceService Name
4B HexNoYesExecute_PCCC
2.3.6.7.5. Message Structure for Execute PCCC
Request Message NameData TypeDescription
LengthUSINTLength of requestor ID
VendorUINTVendor number of requestor
Serial NumberUDINTASA serial number of requestor
CMDUSINTCommand byte
STS USINT0
TNSWUINTTransport word
FNCUSINTFunction code
PCCC_paramsArray of USINTCMD/FMC specific parameters
Response
Message Name
Data TypeDescription
LengthUSINTLength of requestor ID
VendorUINTVendor number of requestor
Serial NumberUDINTASA serial number of requestor
CMDUSINTCommand byte
STS USINTStatus byte
TNSWUINTTransport word - Same value as request.
EXT_STSUSINTExtended status (if error)
PCCC_paramsArray of USINT CMD/FMC specific result data
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 55
Page 56
PLC-5/SLC and MicroLogix Interfaces
2.4. PLC-5/SLC and MicroLogix Interfaces
EtherNet/IP firmware versions 2.01 or later supports EtherNet/IP connections to the PLC-5 and SLC PLCs.
As of EtherNet/IP version 3.02, the PLC-5 and SLC interface supports:
•Polling, Write-to-File, and Write-to-File-Synced receive communication methods.
•PCCC based messages transferred by means of the PCCC object, including:
•Configuration of the DeviceMaster UP only through the embedded web page. There is no DeviceMaster
UP configuration available through the PLC-5 and SLC PLCs. See the following topics for more
information:
-5.4.
-5.5.
•Receive, transmit and statistics data.
•Standard PLC-5/SLC file naming conventions.
•Ethernet device interface via Ethernet TCP/IP sockets.
•Application interface via Ethernet TCP/IP sockets.
•Filtering and data extraction:
-String filtering of up to 128 bytes.
-RFID - EPCglobal tag data filtering and data extraction.
-Barcode - UPC/EAN barcode data filtering and data extraction.
-Independent filtering criteria to the PLC and application.
•Serial data packet transfers up to 1518 bytes and socket packet data transfers up to 2048 bytes in the
Write-to-File and Write-to-File-Synced receive methods.
•Controlled message rate to the PLC when operating in the Write-to-File receive method. This is
accomplished by setting the Maximum PLC Update Rate.
The primary differences between the PLC-5/SLC interface and the ControlLogix interfaces are:
•Since the PLC-5 and SLC PLCs operate on a file memory system, the PLC-5/SLC interface provides
Write-to-File and Write-to-File-Synced communication methods. They operate in a very similar manner to
the Write-to-Tag and Write-to-Tag-Synced methods available for the ControlLogix family of PLCs.
•Polling is performed through the PLC-5/SLC specific messages instead of accessing the Serial Port Data
Transfer object.
•When configuring the DeviceMaster UP to operate in Write-to-File or Write-to-File-Synced, enter the file
name starting with a $ (i.e. $N10:0) for SLC and PLC-5, and with a # (i.e. #N10:0) for MicroLogix.
•The maximum serial and socket port packet sizes in polling mode are smaller due to PCCC message size
limitations.
•The configuration options cannot be set through SLC or PLC-5 messages.
Note: While ControlLogix PLCs support the SLC and PLC-5 messages, using those messages on ControlLogix
SLC or MicroLogix PLC Programming Example Instructions on Page 116
PLC-5 PLC Programming Example Instructions on Page 143
PLCs is not recommended due to data size and performance considerations. For ease of programming,
Comtrol recommends the Write-to-File receive method used with the Maximum PLC Update Rate option
56 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 57
Requirements
2.4.1. Requirements
Your PLC-5/SLC must support:
•MultipHop
•ControlLogix devices
•EtherNet/IP
The following tables list PLCs that support EtherNet/IP and the required firmware version for each PLC.
Note: Older versions of the PLC firmware may or may not provide EtherNet/IP functionality. You must verify
that an older version of the PLC firmware provides EtherNet/IP functionality before you can use it with
DeviceMaster UP. If you need to update your PLC firmware, contact your Rockwell distributor.
2.4.1.1. SLC 5/05
ModelsCatalog NumbersRequired Firmware Version for EtherNet/IP
Note: There are no statistics available for the Ethernet socket ports.
Statistics
58 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 59
Receive Data Message
2.4.3. Receive Data Message
The Receive Data message format is similar to the format used in the Serial Port Data Transfer Object.
However, the data is in 16-bit integer format instead of byte format. The 16-bit integer format is required
when connecting to PLC-5 and SLC PLCs.
The following table displays the format of the Receive Data message.
NameData TypeData Value(s)Access Rule
Receive (DeviceMaster UP to PLC) message data
Structure of:
Produced data sequence
number
Data length (in bytes)
UINT
UINT
0-65535 (FFFF hex)
Read only
0-222 (SLC) 0-248 (PLC-5)*
Array of UINT
0-65535
Data array
Receive messages have the following characteristics:
•It returns all data in UINTs.
•The data length field indicates the number of valid bytes contained in the message.
•The message received from the PLC determines the actual length of the message returned to the PLC.
(This is often greater than the length of the actual Receive Data Message.)
•All unused bytes in a message returned to the PLC are filled with zeroes.
•The default order of the bytes is Least Significant Byte First. However, you can select the (PLC-5/SLC) Rx MS Byte First option in the web page to return bytes by Most Significant Byte First. For more
information, see (PLC-5/SLC) Rx MS Byte First under 3.3.3.
Serial Packet Identification on Page 69.
•The DeviceMaster UP supports serial packets of up 1518 bytes and socket packets up to 2048 bytes in the
Write-To-File and Write-to-File-Synced receive methods.
•For large received data packets:
-The data is automatically placed in sequential files.
-The files must be 256 integers in size with the exception of the last file. The last file may be shorter
than 256 integers as long as the total length of all files in the sequence is sufficient to hold the largest
receive packet, plus two integers for the sequence number and length parameters.
-All data has been transferred to the PLC when the sequence number is updated.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 59
Page 60
Transmit Data Message
2.4.4. Transmit Data Message
The Transmit Data message format is similar to the format used in the Serial Port Data Transfer Object.
However, the data is in 16-bit integer format instead of byte format. The 16-bit integer format is required
when connecting to PLC-5 and SLC PLCs.
The following table displays the format of the Transmit Data message.
NameData TypeData Value(s)Access Rule
Transmit (PLC to DeviceMaster UP) message data
Structure of:
Produced data sequence number
Data length (in bytes)
Data array
Transmit messages have the following characteristics:
•It transfers all data in UINTs.
•The data length field indicates the number of valid bytes contained in the message.
•The actual length of a message received from the PLC may contain extra, unused data.
•It ignores all unused bytes in a message.
•The default order of the bytes is Least Significant Byte First. However, you can select the (PLC-5/SLC) Tx MS Byte First option in the web page to transmit bytes by Most Significant Byte First. For more
information, see (PLC-5/SLC) Tx MS Byte First under 3.3.3.
•A Get returns the last successfully transmitted serial/socket packet.
UINT
UINT
Array of UINT
0-65535 (FFFF hex)
1-202 (
SLC) 1-222 (PLC-5)
0-65535
Serial Packet Identification on Page 69.
Read/Write
60 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 61
Sequence Number Messages
2.4.5. Sequence Number Messages
PLC-5/SLC typed read and typed write messages can read and modify both receive and transmit produced
data sequence numbers. These are the same sequence numbers returned to the PLC in the Receive Data Message and sent to the DeviceMaster UP in the Transmit Data message. Access to these sequence numbers
are provided primarily for initialization purposes at the start of the PLC program when you may want to
initialize the sequence numbers on the PLC, DeviceMaster UP or both.
PLC-5/SLC typed read and write messages can also read and modify the consumed receive sequence
number(s). The consumed receive sequence number(s) are used in the Write-to-File-Synced communication
method.
2.4.6. Retrieve Statistics Message
The data returned from the Retrieve Statistics message is identical to the data returned for the Serial Port
Statistics Object. The Retrieve Statistics message formats the data into 32-bit integers and returns data in an
array of s just like all data sent to a PLC-5 or SLC PLC. The first contains the least significant word and the
second contains the most significant word.
The following table displays the format of the Retrieve Statistics message.
IndexNameData TypeData Value(s)Access Rule
1Receive Byte CountUDINT0=defaultRead only
2Receive Packet CountUDINT0=defaultRead only
3Transmit Byte CountUDINT0=defaultRead only
4Transmit Packet CountUDINT0=defaultRead only
5Dropped Packet to PLC CountUDINT0=defaultRead only
6Parity Error CountUDINT0=defaultRead only
7Framing Error CountUDINT0=defaultRead only
8Overrun Error CountUDINT0=defaultRead only
9
10
11
12Dropped Packet to Application CountUDINT0=defaultGet
The Retrieve Statistics messages have the following characteristics.
Received Consumed Sequence Error
Count
Duplicate Transmit Sequence Number
errors
Unexpected Transmit Sequence
Number errors
UDINT0=defaultRead only
UDINT0=defaultRead only
UDINT0=defaultRead only
Retrieve Statistics Message Description
Receive Byte CountThis attribute counts the number of bytes received on the serial port.
Receive Packet CountThis attribute counts the number of packets received on the serial port.
Transmit Byte CountThis attribute counts the number of bytes transmitted on the serial port.
Transmit Packet CountThis attribute counts the number of packets transmitted on the serial port.
This attribute counts the number of dropped receive packets on the serial
port intended for the PLC due to:
•No STX byte(s) found
Dropped Packet to PLC Count
•No ETX byte(s) found
•Time-outs
•Too large of packet
•Receive buffer queue overflows
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 61
This attribute counts the number of packets with parity errors received on
the serial port.
This attribute counts the number of packets with framing errors received
on the serial port.
This attribute counts the number of packets with overrun type errors
received on the serial port.
This attribute counts the number of received consumed sequence number
errors. The DeviceMaster UP only increments this number when all of the
following statements are true:
•You selected the Unsolicited - Write-to-Tag-Synced method of receive
communication.
•DeviceMaster UP receives a serial packet.
•The Consumed Sequence number is out of sync. (It is not equal to the
Produced Sequence number or equal to the Produced Sequence number
minus one.)
This attribute counts the number of Duplicate Transmit Sequence Number
errors. The DeviceMaster UP increments this number when the following
statements are true:
•You enabled the Transmit Sequence Number Checking configuration
option. See Transmit Sequence Number Checking under 3.6.1.
Ethernet/IP Settings on Page 75 for additional information.
•DeviceMaster UP receives a transmit message with a sequence number
equal to the previous sequence number. (The DeviceMaster UP expects
this sequence number to be incremented by one from the sequence
number in the previous transmit message.)
This attribute counts the number of Unexpected Transmit Sequence
Number errors.The DeviceMaster UP increments this number when the
following statements are true.
•You enabled the Transmit Sequence Number Checking configuration
option. See Transmit Sequence Number Checking under 3.6.1.
Ethernet/IP Settings.
•DeviceMaster UP receives a transmit message with a sequence number
that is not equal to either the previous sequence number or the previous
sequence number plus one. (The DeviceMaster UP increments this
sequence number by one with each new transmit message.)
This attribute counts the number of dropped receive packets on the serial
port intended for the application due to:
•No STX byte(s) found
•No ETX byte(s) found
•Time-outs
•Too large of packet
•Receive buffer queue overflows
62 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 63
Receive Communication Methods
Unsolicited - Write to File Receive Data Flow
Unsolicited - Write to File Synced Receive Data Flow
2.4.7. Receive Communication Methods
There are three methods of transferring received data to the PLC from the DeviceMaster UP.
2.4.7.1. Unsolicited - Write to File Receive Method
Note: This is the recommended receive method.
When a serial/socket packet is received on
the DeviceMaster UP, the data packet is
immediately written to a file data location
on the PLC. The following diagram shows
the data flow.
The following restrictions apply to this
method:
•The Receive Data File Name must be the
same file name and offset defined to
receive data on the PLC.
•The file on the PLC must be of integer type and must be of sufficient size to contain the sequence number,
length, and data field associated with the maximum sized received data structure. See 2.4.3.
Message on Page 59 for more information.
•New data is indicated with an incremented sequence number.
•The PLC program must be able to process the new data faster than the data can be received. To
accomplish this, set the Maximum PLC Update Rate to an interval time that allows your PLC to process
the data. The default of 40 milliseconds may or may not need to be increased for your PLC application.
Receive Data
2.4.7.2. Unsolicited - Write to File Synced Receive Method
This method provides a syncing option to allow the PLC to control the data flow by indicating when it is ready
for the next serial data packet.
In this method, the serial/socket packet is not
written into the file on the PLC until the
consumed receive sequence number has been
updated by the PLC to match the produced
receive data sequence number. Then the data
is written into the file data location on the
PLC in the same way as the Write-to-File
method.
The following restrictions apply to this
method:
•The Receive Data File Name must be the
same file name and offset defined to receive data on the PLC.
•The file on the PLC must be of integer type and must be of sufficient size to contain the sequence number,
length, and data field associated with the maximum sized received data structure. See 2.4.3.
Receive Data
Message on Page 59 for more information.
•New data is indicated with an incremented sequence number.
•New data is not written to the file on the PLC until the consumed receive sequence number has been
incremented to match the last produced receive sequence number.
•While the DeviceMaster UP queues received serial/socket port data, the PLC program must consume the
new data faster than the data can be received on the serial port to ensure the receive buffers on the
DeviceMaster UP do not overflow. (Example: If two packets can be received per second on the serial port,
then the consumption rate would need to be at least one packet every 500 msec.)
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 2. Programming Interface - 63
Page 64
Polling Receive Method
Polling Receive Data Flow
2.4.7.3. Polling Receive Method
This method provides the polling method that allows the PLC to request data on a periodic basis.
In this method, the serial/socket data is
returned in the response to the data request
message.
The following restrictions apply to this
method:
•The file on the PLC must be of integer
type and must be of sufficient size to
contain the sequence number, length,
and data field associated with the
maximum sized received data structure.
See 2.4.3.
Receive Data Message on Page
59 for more information.
•New data is indicated with an incremented sequence number.
•The same data may be returned more than once. However, the same data packet also returns the same
sequence number.
•No data is indicated with a length of zero.
•While the DeviceMaster UP queues received serial port data, the PLC program must poll for new data
faster than the data can be received on the serial port to ensure the receive queues on the DeviceMaster
UP do not overflow. (Example: If two packets can be received per second on the serial port, then the
polling rate would need to be at least once every 500 msec.)
64 - Chapter 2. Programming InterfaceDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 65
Chapter 3. Embedded Configuration Pages
This chapter provides detailed information about the embedded web pages for serial and Ethernet device
configuration. Ethernet devices are configured via an Ethernet TCP/IP socket connection. The latest
EtherNet/IP firmware must be installed before you can configure network or serial/socket port
characteristics. For firmware installation and setup information, see the DeviceMaster UP Hardware
Installation and Configuration Guide or the PortVision DX help system.
Use the EtherNet/IP
use this chapter as a reference if you need information about specific fields. The Interface Configuration Quick Start is intended to provide you with a way to quickly configure.devices such as barcode scanners, RFID
readers, and printers. In addition, there is also a section that discusses configuring read/write devices such as
some printers and weigh scales.
Note: ControlLogix PLC environments can optionally change the serial/socket port settings through the
ControlLogix PLC using the Serial Port Configuration (2.3.1.
Definition (70 Hex) on Page 14) or Socket Port Configuration (2.3.4. Socket Port Configuration Object
Definition (73 Hex) on Page 33) objects.
3.1. Overview
The following overview shows how to access the DeviceMaster UP Server Configuration embedded web page
and configure serial and Ethernet device interfaces.
If you have not configured the network information into the DeviceMaster UP during initial setup, you must
configure the network information before configuring serial/socket port characteristics. See the DeviceMaster
UPHardware Installation and Configuration Guide or the PortVision DX help system for help configuring
the network settings.
1. From PortVision DX, highlight the DeviceMaster UP that you want to configure and select Webpage.
Note: Optionally, enter the IP address of the device in the Address box of your web browse.
2. Select the appropriate procedure for
your environment.
Serial Device
a. Click Serial Device Configuration.
b. Click the appropriate port link to
access the Edit Serial Port Configuration page for that port.
c.Change the serial port configuration
properties (Page 67) as required for
your site.
Ethernet Device
a. Click Ethernet Device Configuration.
b. Click the appropriate socket to
access the Edit Socket Port Configuration page for that port.
c.Change the socket port
configuration properties (Page 71) as
required for your site.
3. Select Submit to commit the changes and repeat for each port.
Interface Configuration Quick Start to locate configuration procedures for your site and
Serial Port Configuration Object
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 3. Embedded Configuration Pages- 65
Page 66
Embedded Web Pages Overview
4. Use the appropriate procedure for your environment to complete the DeviceMaster UP installation.
•ControlLogix PLC: 5.3.
ControlLogix PLC Programming Example Instructions on Page 103 describes
how to use RSLogix 5000 to configure and run the DeviceMaster UP.
•SLC or MicroLogix PLC: 5.4.
SLC or MicroLogix PLC Programming Example Instructions on Page
116 describes how to use RSLogix 500 to configure and run the DeviceMaster UP.
•PLC-5 PLC: 5.5.
PLC-5 PLC Programming Example Instructions on Page 143 describes how to use
RSLogix 5 to configure and run the DeviceMaster UP.
3.2. Embedded Web Pages Overview
The embedded web pages are the easiest way to configure serial and Ethernet device port settings for a
DeviceMaster UP.
Access the main DeviceMaster UP web page (Server Configuration) from PortVision DX or enter the IP
address of the DeviceMaster UP in the Address box of your web browser.
The Server Configuration page displays the software version and current network configuration for the
DeviceMaster UP. In addition, the Server Configuration page links to the configuration, statistics, and
diagnostics pages, which are discussed in the table below.
Server Configuration Page
SoftwareEtherNet/IP firmware version currently running on the DeviceMaster UP.
Serial NumberDeviceMaster UP serial number.
IP ConfigType of IP configuration currently in use (static or DHCP).
IP Address, IP
Netmask, and IP
IP address, netmask, and gateway configured in the DeviceMaster UP.
Gateway
Serial Device
Configuration
Opens the Serial Device Configuration page (3.3.
Page 67), which provides an overview of the serial device interface settings and access
to the Edit Serial Port Configuration page for serial port configuration on the selected
Serial Device Configuration Page on
port.
66 - Chapter 3. Embedded Configuration PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 67
Server Configuration Page (Continued)
Serial Device Configuration Page
Ethernet Device
Configuration
Communication
Statistics
Display Serial Logs
Display Ethernet
Device Logs
PLC Interface
Diagnostics
Configure Network
Configure Security
Reboot
Opens the Ethernet Device Configuration page (3.4.
Page on Page 71), which provides an overview of the Ethernet device interface settings
and access to the Edit Socket Port Configuration page for Ethernet device
configuration on the selected socket port.
Opens the Communication Statistics page (4.1.
88), which contains the serial and Ethernet device interface statistics.
Opens the Serial Interface Logs page (Page 94), which provides access to the receive
and transmit serial logs.
Opens the Ethernet Device Interface Logs page (Page 95), which provides access to the
receive and transmit logs.
Opens the PLC Interface Diagnostics page (4.4.
96), which contains the statistics and error reporting for the EtherNet/IP PLC
interface.
Opens the Configure Network page (3.7.
82), which can be used to modify DeviceMaster UP network configuration after initial
configuration using PortVision DX.
Opens the Edit Security Configuration page (3.8.
Page 83), which provides security configuration functionality for the DeviceMaster
UP.
Reboots the DeviceMaster UP.
Note: The Reboot option also provides an option to reset the ports to factory defaults.
Edit Network Configuration Page on Page
Ethernet Device Configuration
Communication Statistics on Page
PLC Interface Diagnostics on Page
Edit Security Configuration Page on
3.3. Serial Device Configuration Page
The Serial Device Configuration page provides:
•Links to other pages
•Access to the Edit Serial Port Configuration
page for each port (Port #)
•An overview of serial device configuration
settings for each port displays the current
settings
To change these settings for a port, click the
corresponding Port # link, which opens the Edit
Serial Port Configuration page. See 3.3.1.
Serial Port Configuration Page on Page 67 to
locate information for each setting area.
3.3.1. Edit Serial Port Configuration Page
Use the Edit Serial PortConfiguration page to change a serial port’s configuration parameters.
To access the Edit Serial Port Configuration page, select the appropriate port number link (for example, Port
1) on the Serial Device Configuration page.
The next two subsections discuss the Serial Port and Serial Packet ID Settings areas on this page. The
remainder of the page is discussed in the following subsections, which are located under the 3.6. Common Configuration Areas (Serial or Ethernet Device) section:
•3.6.1.
•3.6.2.
Ethernet/IP Settings on Page 75
Filtering/Data Extraction Configuration on Page 77
Edit
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 3. Embedded Configuration Pages- 67
Page 68
Serial Configuration
•3.6.3. Application TCP Connection Configuration on Page 80
•3.6.4.
Saving Port Options on Page 81
3.3.2. Serial Configuration
Use the Serial Configuration area of the Edit Serial
Port Configuration page to configure serial port
characteristics for the device that you plan on
connecting to the port.
Serial Configuration
Mode
Baud
Select the communications mode for the serial device that you are connecting to the
port. The available modes are RS-232, RS-422, and RS-485.
Select a baud rate from the list. The baud rate that you select determines how fast
information is transferred through a port.
Select a method for error checking.
•None - When the parity is set to none, there is no parity bit, and DeviceMaster
UP does not perform parity checking.
Parity
•Odd - Indicates that the sum of all the 1-bits in the byte plus the parity bit
must be odd. When the total is odd, the parity bit is set to zero, when it is even,
the parity bit is set to one.
•Even - When the sum of all the 1-bits is even, the parity bit must be set to zero;
when it is odd, the parity bit must be set to one.
Data BitsSelect the number of bits that make up the data. Choose from 5, 6, 7 or 8-bits.
Stop BitsSelect the number of bits to mark the end of data transmission.
Specifies the ability to start and stop the flow of data without the loss of bytes.
Select a method for controlling the flow of data from the following list:
•None - Indicates flow control is not in affect.
•RTS/CTS - Request To Send (RTS) tells the receiving device that the sending
Flow
device has data that is ready to send and Clear To Send (CTS) indicates the
device is ready to accept data.
•XON/XOFF - When selected, applies the standard method of controlling data
flow between two modems.
•Half Duplex - Transmits data in half-duplex mode.
Select the state of Data Terminal Ready (DTR).
•on - Enables DTR.
DTR
•off - Disables DTR.
•WhenEnabled - Select this option when enabling the serial port through the
PLC.
68 - Chapter 3. Embedded Configuration PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 69
Serial Packet Identification
Serial Configuration (Continued)
Specifies the following information, once the start of a packet is received:
Rx Timeout
Between
Packets
•How long the DeviceMaster UP should wait (in milliseconds) before timing-out,
if the ETX Rx Detect length is one byte or two bytes and the ETX byte(s) are not
received.
•The time to wait in milliseconds between serial packets if the ETX Rx Detect
length is set to none.
3.3.3. Serial Packet Identification
Use the Serial Packet Identification area of the Edit Serial Configuration page to configure the raw data
serial port packet identification (ID) settings for a serial port.
For more information on serial packet ID settings, see 2.3.1.
Hex) on Page 14.
Serial Port Packet Identification
When enabled, the DeviceMaster UP detects an STX (start of transmission) byte
sequence which is configured as one byte or two bytes when it receives a serial packet.
The length indicates the number of STX bytes, valid values for length are:
•none - Disables this function and the DeviceMaster UP accepts the first byte received
after the last ETX byte(s) as the start of the next data packet.
•one byte - Scans serial data for one STX byte and when the DeviceMaster UP finds
an STX byte it collects the data. If the first byte is not the STX byte, it discards the
STX (Start of
Transmission)
Rx Detect
byte. The DeviceMaster UP continues to discard the bytes until it finds an STX byte.
•two bytes - Scans serial data for two STX bytes and when the DeviceMaster UP finds
two STX bytes it collects the data. If the STX bytes cannot be found, it discards the
bytes. The DeviceMaster UP continues to discard the bytes until it finds the two STX
bytes.
Byte 1 - Specifies the character that represents the first STX byte. The DeviceMaster UP
looks for this character in the first STX byte, if the length is one byte or two bytes. You can
specify a value between 0 and 255 in decimal format.
Byte 2 - Specifies the character that represents the second STX byte. The DeviceMaster
UP looks for this character in the second STX byte, only if the length is two bytes. You
can specify a value between 0 and 255 in decimal format.
Serial Port Configuration Object Definition (70
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 3. Embedded Configuration Pages- 69
Page 70
Serial Packet Identification
Serial Port Packet Identification (Continued)
When enabled, the DeviceMaster UP detects an ETX (end of transmission) byte
sequence that is configured as one byte or two bytes marking the end of the serial packet.
The length indicates the number of ETX bytes, valid values for length are:
•none - Disables this function and the DeviceMaster UP uses the Rx Timeout Between
Packets to indicate the end of data packet.
ETX (End of
Transmission)
Rx Detect
•one byte - Scans serial data for one ETX byte and when the DeviceMaster UP finds
the ETX byte, it identifies the data as a serial packet.
•two bytes - Scans serial data for two ETX bytes and when the DeviceMaster UP finds
the ETX bytes, it identifies the data as a serial packet.
Byte 1 - Specifies the character to scan for in the first ETX byte, if the length is one byte
or two bytes. You can specify a value between 0 and 255 in decimal format.
Byte 2 - Specifies the character to scan for in the second ETX byte, if the length is two
bytes. You can specify a value between 0 and 255 in decimal format.
Discard Rx Pkts
with Errors
By default, this box is checked and the DeviceMaster UP discards serial packets with
errors. Clear the check box when you need to receive a serial packet with errors to
troubleshoot an issue.
PLC Specific Settings and Application Specific Settings
When enabled, the DeviceMaster UP appends an STX (start of transmission) byte
sequence which is configured as one byte or two bytes to the beginning of the serial packet
before it is sent.
The length indicates the number of STX bytes, values for length are:
•none - Disables this function.
STX Tx Append
•one byte - Inserts one STX byte before the data.
•two bytes - Inserts two STX bytes before the data.
Byte 1 - Specifies the transmit character associated with the first STX byte, if the length
is one byte or two bytes. You can specify a value between 0 and 255 in decimal format.
Byte 2 - Specifies the transmit character associated with the second STX byte, if the
length is two bytes. You can specify a value between 0 and 255 in decimal format.
When enabled, the DeviceMaster UP appends an ETX (end of transmission) byte
sequence which is configured as one byte or two bytes to the end of the serial packet
before it is sent.
The length indicates the number of ETX bytes, valid values for length are:
•none - Disables this function.
ETX Tx Append
•one byte - Inserts one ETX byte at the end of the data.
•
two bytes - Inserts two ETX bytes at the end of the data.
Byte 1 - Specifies the transmit character associated with the first ETX byte, if the length
is set to one byte or two bytes. You can specify a value between 0 and 255 in decimal
format.
Byte 2 - Specifies the transmit character associated with the second ETX byte, if the
length is two bytes. You can specify a value between 0 and 255 in decimal format.
When you select this check box, the DeviceMaster UP strips STX/ETX characters from
received serial packets. Clear the check box when you do not want the DeviceMaster UP
to strip STX/ETX characters from received serial packets.
Strip Rx STX/
ETX
Serial Packets sent from the PLC or application to the DeviceMaster UP (over Ethernet),
and then sent out the serial port, are not checked for STX/ETX.
No STX/ETX character stripping occurs in these serial packets, and framing/parity/
overrun error checking does not apply.
70 - Chapter 3. Embedded Configuration PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 71
3.4. Ethernet Device Configuration Page
The Ethernet Device Configuration page
provides:
•Links to other pages
•Access to the Edit Socket Port
Configuration page for each port (Socket #)
•An overview of Ethernet device
configuration settings
The overview area for each port displays the
current settings.
To change these settings for a port, select the
corresponding Socket # link, which opens the
Edit Socket Port Configuration page. See 3.3.1.
Edit Serial Port Configuration Page on Page 67
to locate information for each setting area.
3.5. Edit Socket Port Configuration Page
Ethernet Device Configuration Page
This section discusses the following:
•3.5.1.
•3.5.2. Socket Packet ID Settings on Page 73
Device TCP Connection Configuration
3.5.1. Device TCP Connection Configuration
Access to the Edit Socket Port Configuration page is provided by selecting the corresponding socket number
on the Ethernet Device Configuration page (for example, Socket 1).
The remainder of this subsection discusses
the Device TCP Connection Configuration
area on this page.
The other areas of this page are discussed in
the following subsections, which are located
under the 3.6. Common Configuration Areas (Serial or Ethernet Device) section:
•3.6.1.
•3.6.2.
•3.6.3.
•3.6.4.
Ethernet/IP Settings on Page 75
Filtering/Data Extraction
Configuration on Page 77
Application TCP Connection
Configuration on Page 80
Saving Port Options on Page 81
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 3. Embedded Configuration Pages- 71
Page 72
Device TCP Connection Configuration
Device Socket Interface
The following table provides information about configuring the Device TCP Connection Configuration area.
Device TCP Connection Configuration
This setting enables/disables the Device Ethernet Device. Enabling this function
allows an Ethernet TCP/IP device to be connected to a PLC and/or application. If
both the PLC and application are connected to the device, both can transmit to and
receive data from the device socket port. However, the PLC and application cannot
communicate directly to each other.
Enable
Enabling this setting allows the device to connect to the DeviceMaster UP via an
Ethernet TCP/IP socket.
Listen
•Not selected - Disables listening; the DeviceMaster UP does not accept
connection attempts.
•Selected - Enables listening; the DeviceMaster UP accepts connection attempts
from the specified Listen Port.
Listen Port
This is the socket port number on the DeviceMaster UP the application connects to
if the Device Listen Enable is selected.
This setting specifies if and how the DeviceMaster UP attempts to connect to the
device at the specified Connect IP Address and Connect Port.
•Never - The DeviceMaster UP does not attempt to connect to the device.
Connect To Mode
•Connect-Always - The DeviceMaster UP attempts to connect to the device until a
connection is made.
•Connect-On-Data - The DeviceMaster UP does not attempt to connect to the
device until there is data to send to the device. Once data is received for the
device, the DeviceMaster UP attempts to connect to the device until a
connection is made.
Connect Port
Connect IP Address
The device socket port number the DeviceMaster UP connects to if the Device Connect To Mode is set to either Connect-Always or Connect-On-Data.
The device IP address the DeviceMaster UP connects to if the Device Connect To Mode is set to either Connect-Always or Connect-On-Data.
This setting specifies if and how the DeviceMaster UP disconnects from the device.
•Never - The DeviceMaster UP does not disconnect from the device.
Disconnect Mode
•Idle - The DeviceMaster UP disconnects when there has been no transmit or
received data between the device and PLC/application for a specified Idle Timer
period.
Idle Timer
The idle timeout period in milliseconds that is used if the Device Disconnect Mode is
set to Idle.
72 - Chapter 3. Embedded Configuration PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 73
Socket Packet ID Settings
3.5.2. Socket Packet ID Settings
This subsection discusses the Socket Packet ID Settings area of the Ethernet Device Configuration page.
Socket Packet ID Settings
Specifies the following information, once the start of a packet is received:
Rx Timeout
Between
Packets
STX (Start of
Transmission)
Rx Detect
•How long the DeviceMaster UP should wait (in milliseconds) before timing-out, if the
ETX Rx Detect length is one byte or two bytes and the ETX byte(s) are not received.
•The time to wait in milliseconds between Ethernet packets if the ETX Rx Detect
length is set to none.
When enabled, the DeviceMaster UP detects an STX (start of transmission) byte sequence
which is configured as one byte or two bytes when it receives an Ethernet packet. The
length indicates the number of STX bytes, valid values for length are:
•none - Disables this function and the DeviceMaster UP accepts the first byte received
after the last ETX byte(s) as the start of the next Ethernet packet.
•one byte - Scans Ethernet data for one STX byte and when the DeviceMaster UP finds
an STX byte it collects the data. If the first byte is not the STX byte, it discards the
byte. The DeviceMaster UP continues to discard the bytes until it finds an STX byte.
•two bytes - Scans Ethernet data for two STX bytes and when the DeviceMaster UP
finds two STX bytes it collects the data. If the STX bytes cannot be found, it discards
the bytes. The DeviceMaster UP continues to discard the bytes until it finds the two
STX bytes.
Byte 1 - Specifies the character that represents the first STX byte. The DeviceMaster UP
looks for this character in the first STX byte, if the length is one byte or two bytes. You can
specify a value between 0 and 255 in decimal format.
Byte 2 - Specifies the character that represents the second STX byte. The DeviceMaster UP
looks for this character in the second STX byte, only if the length is two bytes. You can
specify a value between 0 and 255 in decimal format.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 3. Embedded Configuration Pages- 73
Page 74
Socket Packet ID Settings
Socket Packet ID Settings (Continued)
When enabled, the DeviceMaster UP detects an ETX (end of transmission) byte sequence
that is configured as one byte or two bytes marking the end of the Ethernet packet. The
length indicates the number of ETX bytes, valid values for length are:
•none - Disables this function and the DeviceMaster UP uses the Rx Timeout Between
Packets to indicate the end of data packet.
ETX (End of
Transmission)
Rx Detect
•one byte - Scans Ethernet data for one ETX byte and when the DeviceMaster UP finds
the ETX byte, it identifies the data as an Ethernet packet.
•two bytes - Scans Ethernet data for two ETX bytes and when the DeviceMaster UP
finds the ETX bytes, it identifies the data as an Ethernet packet.
Byte 1 - Specifies the character to scan for in the first ETX byte, if the length is one byte
or two bytes. You can specify a value between 0 and 255 in decimal format.
Byte 2 - Specifies the character to scan for in the second ETX byte, if the length is two
bytes. You can specify a value between 0 and 255 in decimal format.
PLC Specific Settings and Application Specific Settings
When enabled, the DeviceMaster UP appends an STX (start of transmission) byte
sequence which is configured as one byte or two bytes to the beginning of the Ethernet
packet before it is sent. The length indicates the number of STX bytes, values for length
are:
•none - Disables this function.
STX Tx Append
•one byte - Inserts one STX byte before the data.
•two bytes - Inserts two STX bytes before the data.
Byte 1 - Specifies the transmit character associated with the first STX byte, if the length is
one byte or two bytes. You can specify a value between 0 and 255 in decimal format.
Byte 2 - Specifies the transmit character associated with the second STX byte, if the length
is two bytes. You can specify a value between 0 and 255 in decimal format.
When enabled, the DeviceMaster UP appends an ETX (end of transmission) byte sequence
which is configured as one byte or two bytes to the end of the Ethernet packet before it is
sent. The length indicates the number of ETX bytes, valid values for length are:
•none - Disables this function.
ETX Tx Append
•one byte - Inserts one ETX byte at the end of the data.
•two bytes - Inserts two ETX bytes at the end of the data.
Byte 1 - Specifies the transmit character associated with the first ETX byte, if the length is
set to one byte or two bytes. You can specify a value between 0 and 255 in decimal format.
Byte 2 - Specifies the transmit character associated with the second ETX byte, if the length
is two bytes. You can specify a value between 0 and 255 in decimal format.
When you select this check box, the DeviceMaster UP strips STX/ETX characters from
received Ethernet packets. Clear the check box when you do not want the DeviceMaster
Strip Rx STX/
ETX
UP to strip STX/ETX characters from received Ethernet packets.
Packets sent from the PLC to the DeviceMaster UP (over Ethernet), and then sent out the
Ethernet port, are not checked for STX/ETX. No STX/ETX character stripping occurs in
these Ethernet packets.
74 - Chapter 3. Embedded Configuration PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 75
Common Configuration Areas (Serial or Ethernet Device)
3.6. Common Configuration Areas (Serial or Ethernet Device)
The Edit Serial Port Configuration and Edit Socket Port Configuration pages have the following areas in
common. This section discusses the following:
•3.6.1.
•3.6.2.
•3.6.3.
3.6.1. Ethernet/IP Settings
Use this area to set up the EtherNet/IP settings for a serial or socket port using the appropriate Edit Port
Configuration page.
Ethernet/IP Settings on Page 75
Filtering/Data Extraction Configuration on Page 77
Application TCP Connection Configuration on Page 80
For more information on EtherNet/IP settings, see 2.3.1.
on Page 14.
Ethernet/IP Settings (Serial or Socket Port)
Specifies the Ethernet data transfer method used by the DeviceMaster UP. There are
three methods that the DeviceMaster UP can use to transfer data received from a
serial or Ethernet device to the PLC. These methods are:
•Write-to-Tag/File - The DeviceMaster UP writes the serial data directly into a tag
or file on the PLC. However, it should only be used if the PLC can scan and
Rx (To PLC)
Ethernet Transfer
Method
PLC IP Address
PLC Controller Slot
Number
(ControlLogix
Family)
consume the serial data faster than the serial device can produce it.
•Write-to-Tag/File-Synced - The DeviceMaster UP writes the serial data into a tag
or file on the PLC and provides a mechanism to synchronize the data flow between
the PLC and the DeviceMaster UP. Use this method when you want to ensure that
the tag or file is not overwritten before the PLC can consume the data.
•Polling - The PLC requests data on a periodic basis. It provides the ability to
control the received data flow. However, it does require periodic data requests and
the request rate must be fast enough to ensure that the serial port receive queues
on the DeviceMaster UP do not overflow.
Specifies the IP address for the PLC EtherNet/IP card.
Note: The Polling method does not use this attribute.
Specifies the slot number on the PLC where the controller resides. The slot numbers
typically start at zero for the first slot. This is only required for the ControlLogix
family of PLCs.
Note: The Polling method does not use this attribute.
Serial Port Configuration Object Definition (70 Hex)
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 3. Embedded Configuration Pages- 75
Page 76
Ethernet/IP Settings
Ethernet/IP Settings (Serial or Socket Port)
Maximum PLC
Update Rate (WriteTo-Tag/File)
Maximum Rx Data
Packet Size
Oversize Rx Packet
Handling
Rx (To PLC)
Produced Data Tag/
File Name
Tx Sequence
Number Checking
Disable NonFiltered TO PLC Rx
Queue
(PLC-5/SLC) Rx MS
Byte First
(PLC-5/SLC) Tx MS
Byte First
The maximum rate (or minimum time interval) in milliseconds, that messages is sent
to the PLC tag in the Write-To-Tag/File receive method. This setting configures the
DeviceMaster UP to space the messages to the PLC in order to prevent overrunning of
data before the PLC can process it.
Specifies the maximum acceptable size of a received serial or Ethernet packet. Default
is 1518 bytes in the Edit Serial Port Configuration page and 2048 bytes in the Edit Socket Port Configuration page.
Specifies how to process oversized received packets.
Truncate – truncate the packet to the Maximum Rx Data Packet Size.
Drop – drop the packet.
Default = Truncate
Specifies the PLC tag or file name. It indicates where to write received data while
operating in the Write-to-Tag/File or Write-to-Tag/File-Synced receive method. This
column supports a name containing up to 40 characters.
Note: The Polling method does not use this attribute.
The maximum length for this tag name is 40 characters. File names for the PLC-5/
SLC PLCs must begin with a $ (i.e. $N10:0).File names for MicroLogix PLCs must
begin with a # (i.e. #10:0).
When you select this check box, the DeviceMaster UP checks the transmit sequence
number and performs the following tasks:
•Transmit messages with the expected sequence number (last sequence number
plus one).
•Rejects messages with duplicate sequence numbers (that is, the same sequence
number as the previous transmit data message) and increments the Duplicate Transmit Sequence Error Count.
•Transmits messages with unexpected transmit sequence numbers (that is,
sequence numbers that are not the same as or are not equal to the previous
sequence number plus one) and increments the Unexpected Transmit Sequence Error Count.
This check box is clear by default. Clear the check box when you do not want
DeviceMaster UP to check the transmit sequence number.
If filtering is disabled, only the last message received is sent to the PLC.
This box is clear by default.
When you select this check box, the DeviceMaster UP receives the Most Significant
(MS) byte of a 16-bit integer first. This check box is clear by default. Clear the check
box when you need to receive the Least Significant (LS) byte of a 16-bit integer first.
When you select this check box, DeviceMaster UP transmits the Most Significant (MS)
byte of a 16-bit integer first. This check box is clear by default. Clear the check box
when you need to transmit the Least Significant (LS) byte of a 16-bit integer first.
76 - Chapter 3. Embedded Configuration PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 77
Filtering/Data Extraction Configuration
3.6.2. Filtering/Data Extraction Configuration
Use this area to configure filtering or data extraction settings for a serial or socket port using the appropriate
Edit Port Configuration page.
Filtering/Data Extraction Configuration (Serial or Socket Port)
To PLC Filter Mode
To PLC Filtering Options
(RFID Only)
To PLC Filtering Options
(RFID/Barcode)
Defines the filter/data extraction mode to be employed on data to be sent to
the PLC.
•Off
•String (128 char max) - Raw/ASCII data is filtered up to 128 characters (or
bytes) in length.
•RFID (EPCglobal formats) - RFID data in any of the EPCglobal formats is
filtered, the associated parameters are extracted, and the extracted data
and RFID tag are sent to the PLC in a specified format.
•Barcode (UPC/EAN formats) - Barcode data in specified UPC/EAN formats
is filtered, the associated parameters are extracted, and the extracted
data and barcode are sent to the PLC in a specified format. See the
barcode format definitions
in Attribute 41 on Page 28.
Defines the RFID filtering criteria to the PLC. If an option is enabled, it is
used to decide when an RFID tag can be filtered or sent to the PLC.
•Antenna - Include the antenna number in the filtering criteria. This is
data from the RFID reader and not from the RFID tag itself.
•Filter Value - Include the filter value in the filtering criteria, which is part
of the RFID tag data.
•Serial Number - Include the serial number in the filtering criteria, which
is part of the RFID tag data.
Defines the RFID filtering criteria and the barcode filtering criteria to the
application. If an option is enabled, it is used to decide when a valid RFID tag
or barcode can be filtered or sent to the PLC.
•Company - Include the company code in the filtering criteria, which is
part of the RFID tag or barcode data.
•Product/Location - Include the product/location code in the filtering
criteria, which is part of the RFID tag or barcode data.
•Encoding/Numbering - Include the encoding/numbering code in the
filtering criteria, which is part of the RFID tag or barcode data.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 3. Embedded Configuration Pages- 77
Page 78
Filtering/Data Extraction Configuration
Filtering/Data Extraction Configuration (Serial or Socket Port) (Continued)
The filter/data extraction mode to be employed on data to be sent to the
application.
•Off
•String (128 char max) - Raw/ASCII data is filtered up to 128 characters (or
•RFID (EPCglobal formats) - RFID data in any of the EPCglobal formats
To Application Filter Mode
•Barcode (UPC/EAN formats) - Barcode data in specified UPC/EAN formats
Note: The application filter mode can be set independently of the PLC
Defines the RFID filtering criteria to the application. If an option is enabled,
it is used to decide when an RFID tag can be filtered or sent to the PLC.
•Antenna - Include the antenna number in the filtering criteria. This is
To Application Filtering
Options (RFID Only)
•Filter Value - Include the filter value in the filtering criteria, which is part
•Serial Number - Include the serial number in the filtering criteria, which
Defines the barcode filtering criteria and part of the RFID filtering criteria to
the application. If an option is enabled, it is used to decide when a valid RFID
tag or barcode can be filtered or sent to the application.
To Application Filtering
Options (RFID/Barcode)
•Company - Include the company code in the filtering criteria, which is
•Product/Location - Include the product/location code in the filtering
•Encoding/Numbering - Include the encoding/numbering code in the
This setting is applicable only to RFID filtering and only if the antenna
filtering option is enabled. It allows the DeviceMaster UP to filter RFID tags
based on antenna groupings. The possible groupings are:
Setting
RFID Antenna Grouping
None1234
Groups of Twos1,23,45,6Etc.
Groups of Threes1,2,34,5,67,8,9Etc.
Groups of Fours1,2,3,45,6,7,89,10,11,12Etc.
First Two Only1,234N+1
First Three Only1,2,345N+2
bytes) in length.
are filtered, the associated parameters are extracted, and the extracted
data and RFID tag are sent to the application in a specified format.
is filtered, the associated parameters are extracted, and the extracted
data and barcode are sent to the application in a specified format. See the
barcode format definitions
in Attribute 41 on Page 28.
filtering mode. The only exceptions are:
•If the PLC filter mode is set to RFID, the application filter mode cannot
be set to Barcode.
•If the PLC filter mode is set to Barcode, the application filter mode
cannot be set to RFID.
data from the RFID reader and not part of the RFID tag.
of the RFID tag data.
is part of the RFID tag data.
part of the RFID tag or barcode data.
criteria, which is part of the RFID tag or barcode data.
filtering criteria, which is part of the RFID tag or barcode data.
Group 1Group 2Group 3Group N
Antennas
AntennasAntennasAntennas
78 - Chapter 3. Embedded Configuration PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 79
Filtering/Data Extraction Configuration (Serial or Socket Port) (Continued)
RFID Reader Interface Type
Barcode Formats:
UPC/EAN Standard 12-14
Digit
UPD/EAN Eight Digit
Filter Age Time (Time
filtered after last read)
Discard Unrecognized Data
Mode (RFID/Barcode)
Filtering/Data Extraction Configuration
Defines the expected RFID data format to be used while operating in the
RFID filtering mode. Each Reader Interface Type is unique and pertains to
the RFID reader manufacturer. If a different RFID reader is to be used and it
provides a similar format to any of the RFID readers listed below, it can also
be used in the RFID filtering mode.
•Unspecified - The DeviceMaster UP assumes a HEX ASCII format and
attempts to locate the antenna number.
•Alien (Text Mode) - Specifies the Alien RFID reader Text Mode.
•Alien (Terse Mode) - Specifies the Alien RFID reader Terse Mode.
•Intermec (Hex ASCII Mode) - Specifies the Intermec reader returning data
in the Hex ASCII Mode.
See the DeviceMaster UP Filtering and Data Extraction Reference Guide
for
further details.
Defines barcode format to be used for both standard and eight digit UPC
labels. The term standard refers to UPC-A, EAN-13, JAN, and EAN-14
barcodes which all have ten company/product digits.
The standard and eight digit formats are selected independently and each
operates independently. Barcode filtering/data extraction does not function if
no format is selected.
See the DeviceMaster UP Filtering and Data Extraction Reference Guide for
further details.
Defines the time a filter string, RFID tag, or barcode continues to be filtered
after the last time it was received.
If an entry is received before the Filter Age Time has passed, the entry is
filtered and the data is not sent to the PLC and/or application. However, if the
Filter Age Time has passed, it passes filtering and be sent to the PLC and/or
application.
Specifies what to do with unrecognized RFID or barcode data.
•Off - Sends unrecognized data to the PLC and/or application.
•To-PLC - Discards unrecognized data to the PLC. Allows sending of
unrecognized data to the application.
•To-Application - Discards unrecognized data to the application. Allows
sending of unrecognized data to the PLC.
•To-PLC/Application - Discards unrecognized data to both the PLC and
application.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 3. Embedded Configuration Pages- 79
Page 80
Application TCP Connection Configuration
Application Socket Interface
3.6.3. Application TCP Connection Configuration
Use this area to configure application TCP connection settings for a serial or socket port using the
appropriate Edit Port Configuration page.
Application TCP Connection Configuration (Serial or Socket Port)
Enables/disables the
Application Socket
Interface. Enabling this
function allows an
application to be
connected to the device
serial/socket port.
Enable
Listen
Listen Port
Connect To Mode
Connect Port
Connect IP Address
If both the PLC and
application are connected
to the device serial/socket
port, both can transmit to
and receive data from the
serial/socket port.
However, the PLC and
application cannot communicate directly to each other.
Enabling this setting allows the application to connect to the DeviceMaster UP via an
Ethernet TCP/IP socket.
•Not selected - Disables listening and the DeviceMaster UP does not accept
connection attempts.
•Selected - Enables listening and the DeviceMaster UP accepts connection attempts
from the specified Listen Port.
The socket port number on the DeviceMaster UP the application connects to if the
Application Listen Enable is selected.
Specifies if and how the DeviceMaster UP attempts to connect to the application at the
specified Connect IP Address and Connect Port.
•Never - The DeviceMaster UP does not attempt to connect to the application.
•Connect-Always - The DeviceMaster UP attempts to connect to the application until
a connection is made.
•Connect-On-Data – The DeviceMaster UP does not attempt to connect to the
application until there is data to send to the application. Once data is received from
the serial/socket device, the DeviceMaster UP attempts to connect to the
application until a connection is made.
The application socket port number the DeviceMaster UP connects to if the Application Connect To Mode is set to either Connect-Always or Connect-On-Data.
The application IP address the DeviceMaster UP connects to if the Application Connect To Mode is set to either Connect-Always or Connect-On-Data.
80 - Chapter 3. Embedded Configuration PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 81
Saving Port Options
Application TCP Connection Configuration (Serial or Socket Port) (Continued)
Controls if and how the DeviceMaster UP disconnects from an application.
•Never – The DeviceMaster UP does not disconnect from the application.
Disconnect Mode
•Idle - The DeviceMaster UP disconnects when there has been no transmit or
received data between the serial/socket device and application for a specified Idle Timer period.
Idle Timer
The idle timeout period in milliseconds that is used if the application Disconnect Mode is
set to Idle.
3.6.4. Saving Port Options
After configuring the serial/socket and protocol characteristics for the port, scroll to the bottom of the Edit
Serial Port Configuration or Edit Socket Port Configuration page to save the changes.
The following options are available.
Saving Port Options
Reset Statistics Selecting this check box, clears the statistics counters for this port when you select Submit.
When you select this check box, the DeviceMaster UP resets the serial port hardware and
statistics counters for this port when you click Submit.
Reset Port
You must reset the port after modifying the serial port configuration options, including:
baud rate, interface mode, parity, data bits, stop bits, flow control, or DTR control.
Any socket port connections to a device or application is also reset.
When you select this check box, the DeviceMaster UP saves changes to port configuration
Save in Flash
settings in flash memory. These settings are restored when you reboot the DeviceMaster
UP.
Undo ChangesRestores modified port settings to current values.
Submit
Saves changes to port in RAM. If Save in Flash was not selected when you clicked Submit,
the changes revert to the original settings when you reboot the DeviceMaster UP.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 3. Embedded Configuration Pages- 81
Page 82
Edit Network Configuration Page
3.7. Edit Network Configuration Page
You can use the Edit Network Configuration page to change the DeviceMaster UP network configuration after
using PortVision DX for initial network configuration.
Use the following procedure to change the network configuration.
1. Select the IP configuration type (DHCP or Static).
2. If you select Static, enter a valid IP address, subnet mask, and IP gateway for your network. The network
information is programmed into the DeviceMaster UP after applying the changes and rebooting the
device. If necessary, see your network administrator for a valid IP address.
Note: The DeviceMaster UP family default IP address is 192.168.250.250, default subnet mask is
255.255.0.0, and the default IP gateway is 192.168.250.1.
3. Select Save or Undo Changes to close the page.
4. If you selected Save, select Reboot to program the network information into the DeviceMaster UP or
Continue if you want to reboot later.
Note: Changed network settings do not take affect until the DeviceMaster UP is rebooted.
82 - Chapter 3. Embedded Configuration PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 83
Edit Security Configuration Page
3.8. Edit Security Configuration Page
You can use the Edit Security Configuration page to configure security on the DeviceMaster UP.
Enable Secure Data
Mode
(Default = Disabled)
Enable Telnet/ssh
(Default = Enabled)
Enable SNMP
(Default = Disabled)
RSA Key pair used by
SSL and SSH servers
Edit Security Configuration Page
If Secure Data Mode is enabled, TCP connections that carry data to/from the
serial ports are encrypted using SSL or TLS security protocols. This includes
the following:
•TCP connections to the per-serial-port TCP ports (default is 8000, 8001,
8002, ...) are encrypted using SSL/TLS.
•TCP connections to TCP port 4606 on which the DeviceMaster UP
implements the Comtrol proprietary protocol are encrypted using SSL/TLS.
•In addition to encrypting the data streams, it is possible to configure the
DeviceMaster UP so that only authorized client applications can connect
using SSL/TLS.
See 3.8.1.
Client Authentication on Page 84 for more information.
This option enables or disables the telnet security feature after you click Save
and the DeviceMaster UP has been rebooted.
This option enables or disables the SNMP security feature after you click Save
and the DeviceMaster UP has been rebooted.
This is a private/public key pair that is used for two purposes:
•It is used by some cipher suites to encrypt the SSL/TLS handshaking
messages. Possession of the private portion of this key pair allows an
eavesdropper to both decrypt traffic on SSL/TLS connections that use RSA
encryption during handshaking.
•It is used to sign the Server RSA Certificate in order to verify that the
DeviceMaster UP is authorized to use the server RSA identity certificate.
Note: Possession of the private portion of this key pair allows somebody to pose
as the DeviceMaster UP.
If the Server RSA Key is to be replaced, a corresponding RSA identity
certificate must also be generated and uploaded or clients are not able to verify
the identity certificate.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 3. Embedded Configuration Pages- 83
Page 84
Client Authentication
RSA Server Certificate
used by SSL servers
DH Key pair used by
SSL servers
Client Authentication
Certificate used by SSL
servers
Edit Security Configuration Page
This is the RSA identity certificate that the DeviceMaster UP uses during SSL/
TLS handshaking to identify itself. It is used most frequently by SSL server
code in the DeviceMaster UP when clients open connections to the
DeviceMaster's secure web server or other secure TCP ports. If a DeviceMaster
UP serial port configuration is set up to open (as a client) a TCP connection to
another server device, the DeviceMaster UP also uses this certificate to identify
itself as an SSL client if requested by the server.
In order to function properly, this certificate must be signed using the Server
RSA Key. This means that the server RSA certificate and server RSA key must
be replaced as a pair.
This is a private/public key pair that is used by some cipher suites to encrypt
the SSL/TLS handshaking messages.
Note: Possession of the private portion of the key pair allows an eavesdropper to
decrypt traffic on SSL/TLS connections that use DH encryption during
handshaking.
If configured with a CA certificate, the DeviceMaster UP requires all SSL/TLS
clients to present an RSA identity certificate that has been signed by the
configured CA certificate. As shipped, the DeviceMaster UP is not configured
with a CA certificate and all SSL/TLS clients are allowed.
See 3.8.1.
Client Authentication on Page 84 for more detailed information.
3.8.1. Client Authentication
If desired, controlled access to SSL/TLS protected features can be configured by uploading a client
authentication certificate to the DeviceMaster UP. By default, the DeviceMaster UP is shipped without a CA
(Certificate Authority) and therefore allows connections from any SSL/TLS client.
If a CA certificate is uploaded, the DeviceMaster UP only allows SSL/TLS connections from client
applications that provide to the DeviceMaster UP an identity certificate that has been signed by the CA
certificate that was uploaded to the DeviceMaster UP.
This uploaded CA certificate that is used to validate a client's identity is sometimes referred to as a trusted root certificate, a trusted authority certificate, or a trusted CA certificate. This CA certificate might be that of a
trusted commercial certificate authority or it may be a privately generated certificate that an organization
creates internally to provide a mechanism to control access to resources that are protected by the SSL/TLS
protocols.
To control access to the DeviceMaster UP’s SSL/TLS protected resources you should create your own custom
CA certificate and then configure authorized client applications with identity certificates signed by the
custom CA certificate.
84 - Chapter 3. Embedded Configuration PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 85
Configuring Security
3.8.2. Configuring Security
Use the following procedure to configure DeviceMaster UP security.
Note: All DeviceMaster UP units are shipped from the factory with identical configurations. They all have the
identical, self-signed, Comtrol Server RSA Certificates, Server RSA Keys, Server DH Keys, and no
Client Authentication Certificates.
For maximum data and access security, you should configure all DeviceMaster units with custom
certificates and keys.
1. If necessary, 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.
2. If desired, enable Secure Config Mode.
3. Click Set for the appropriate key or
certificate option in the Keys and Certificate Management area to configure security keys
and certificates.
4. Click Browse to locate the key or certificate
file, highlight the file, and click Open.
5. Click Upload when you return to the Key and Certificate Management area.
Note: The key or certificate notation
changes from factory or none to User
when the DeviceMaster UP is secure.
6. Click Save so that you can access the
Configuration Updated page, click the
Reboot button.
Note: Changes do not take effect until the DeviceMaster UP is rebooted.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I Chapter 3. Embedded Configuration Pages- 85
Page 86
Configuring Security
86 - Chapter 3. Embedded Configuration PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 87
Chapter 4. Diagnostic and Statistics Pages
You can access the following diagnostic and statistics pages from the Server Configuration (main) page and
related configuration and diagnostics or statistics pages.
This section discusses the following pages:
•4.1.
•4.2.
•4.3.
•4.4.
Communication Statistics on Page 88
Display Serial Logs on Page 94
Display Ethernet Device Logs on Page 95
PLC Interface Diagnostics on Page 96
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. IChapter 4. Diagnostic and Statistics Pages - 87
Page 88
Communication Statistics
4.1. Communication Statistics
The top portion of this page provides links to other pages. The displayed counters are the same as those
specified in 2.3.3.
definitions of the fields.
Serial Port Statistics Object Definition (72 Hex) on Page 31. Refer to the following table for
Note: The refresh rate on this page is set to 20 seconds. To stop the page refresh, select Refresh in your browser.
To restart refreshing the page display; exit and return to this page.
Serial Device Interfaces Statistics
Yes/NoToggles to display or not to display serial statistics.
Reset StatisticsClears the serial port statistics, which sets the value to 0 for all ports.
TX Byte Count Displays the number of bytes sent out of the serial port.
TX Pkt CountDisplays the number of serial packets sent out of the serial port.
RX Byte CountDisplays the number of bytes received over the serial port.
RX Pkt CountDisplays the number of packets received over the serial port.
Parity Error Count Displays the number of received serial packets dropped due to parity errors.
Framing Error
Count
Overrun Error
Count
Displays the number of received serial packets dropped due to framing errors.
Displays the number of received serial packets dropped due to overrun error incidents.
88 - Chapter 4. Diagnostic and Statistics PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 89
To PLC Dropped
Packet Count
To PLC Truncated
Tx Unexpected
Seq Errors
Rx Con Seq Errors
Count
Tx Duplicate Seq
Errors
Communication Statistics
Serial Device Interfaces Statistics (Continued)
Displays the number of received serial packets intended for the PLC dropped:
•No STX byte(s) found
•No ETX byte(s) found
•Time-outs
•Packet to large
•Receive buffer queue overflows
Displays the number of received packets that were truncated before being sent to the
PLC.
Displays the number of Unexpected Transmit Sequence Number errors. The
DeviceMaster UP increments this number when the following statements are true:
•You enabled the Transmit Sequence Number Checking configuration option. (See Attribute 16 - Serial Port Transfer Options on Page 22 for additional information.)
•DeviceMaster UP receives a transmit message with a sequence number that is not
equal to either the previous transmit sequence number or the previous transmit
sequence number plus one. (The DeviceMaster UP expects this sequence number to
be incremented by one with each new transmit message.)
Displays the number of received consumed sequenced number errors. The DeviceMaster
UP only increments this number when all of the following statements are true:
•You selected the Write-to-Tag-Sync method of receive communication.
•DeviceMaster UP receives a serial packet.
•The Consumed Sequence number is out of sync. (It is not equal to the Produced Sequence number or equal to the Produced Sequence number minus one.)
Displays the number of Duplicate Transmit Sequence Number errors. The DeviceMaster
UP increments this number when the following statements are true:
•You enabled the Transmit Sequence Number Checking configuration option. (See Attribute 16 - Serial Port Transfer Options on Page 22 for additional information.)
•DeviceMaster UP receives a transmit message with a sequence number equal to the
previous sequence number. (The DeviceMaster UP expects this sequence number to
be incremented by one from the sequence number in the previous transmit message.)
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. IChapter 4. Diagnostic and Statistics Pages - 89
Page 90
Communication Statistics
Filtering Statistics (Serial)
Valid Data Items Sent To
PLC Interface
Valid Data Items Filtered
From PLC
Invalid Data Items
Discarded From PLC
Valid Data Items Sent To
App Interface
Valid Data Items Filtered
From App
Invalid Data Items
Discarded From Application
RFID Tags With Unknown
Formats
Displays the number of valid string, RFID, or barcode data sent to the PLC.
Applies when filtering is enabled.
Displays the number of valid string, RFID, or barcode data filtered from (not
sent) to the PLC. Applies when filtering is enabled.
Displays the number of invalid RFID or barcode data not sent to the PLC.
Applies when RFID or barcode filtering is enabled.
Displays the number of valid string, RFID, or barcode data sent to the
application. Applies when filtering is enabled.
Displays the number of valid string, RFID, or barcode data filtered from (not
sent) to the application. Applies when filtering is enabled.
Displays the number of invalid RFID or barcode data not sent to the PLC.
Applies when RFID or barcode filtering is enabled.
Data received that was in the general form of 64 or 96 bit RFID tags, but was
not in any of the EPCglobal formats. Applies only when RFID filtering is
enabled.
Application Connection Statistics (Serial)
TX Byte CountDisplays the number of bytes sent out the application socket port.
TX Pkt CountDisplays the number of packets sent out the application socket port.
Displays the number of received serial or Ethernet device packets
intended for the application dropped:
•No STX byte(s) found
To Application Dropped Packet
Count
•No ETX byte(s) found
•Time-outs
•Packet to large
•Receive buffer queue overflows
•Application connection is offline
RX Byte CountDisplays the number of bytes received over the application socket port.
90 - Chapter 4. Diagnostic and Statistics PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
RX Pkt CountDisplays the number of packets received over the application socket port.
To Device Dropped Packet
Count
Displays the number of dropped packets that were intended for the device.
Ethernet Device Interface Statistics
Yes/NoToggles to display or not to display socket statistics.
Reset StatisticsClears the socket port statistics, which sets the value to 0 for all ports.
TX Byte CountDisplays the number of bytes sent out the device socket port.
TX Pkt CountDisplays the number of packets sent out the device socket port.
RX Byte CountDisplays the number of bytes received over the device socket port.
RX Pkt CountDisplays the number of packets received over the device socket port.
To PLC Dropped Packet
Count
To PLC Truncated Packet
Count
Rx Con Seq Error Count
Displays the number of dropped packets that were intended for the PLC.
Displays the number of received packets that were truncated before being
sent to the PLC.
Same as the serial port statistics, except the packet was received over a
socket port (Page 89).
Tx Duplicate Seq ErrorsSame as the serial port statistics (Page 89).
Tx Unexpected Seq
Errors
Same as the serial port statistics (Page 89).
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. IChapter 4. Diagnostic and Statistics Pages - 91
Displays the number of valid string, RFID, or barcode data sent to the PLC.
Applies when filtering is enabled.
Displays the number of valid string, RFID, or barcode data filtered from (not
sent) to the PLC. Applies when filtering is enabled.
Displays the number of invalid RFID or barcode data not sent to the PLC.
Applies when RFID or barcode filtering is enabled.
Displays the number of valid string, RFID, or barcode data sent to the
application. Applies when filtering is enabled.
Displays the number of valid string, RFID, or barcode data filtered from (not
sent) to the application. Applies when filtering is enabled.
Displays the number of invalid RFID or barcode data not sent to the PLC.
Applies when RFID or barcode filtering is enabled.
Data received that was in the general form of 64 or 96 bit RFID tags, but was
not in any of the EPCglobal formats. Applies only when RFID filtering is
enabled.
92 - Chapter 4. Diagnostic and Statistics PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
TX Byte CountDisplays the number of bytes sent out the application socket port.
TX Pkt CountDisplays the number of packets sent out the application socket port.
Displays the number of received serial or Ethernet device packets intended
for the application dropped:
•No STX byte(s) found
To Application
Dropped Packet Count
•No ETX byte(s) found
•Time-outs
•Packet to large
•Receive buffer queue overflows
•Application connection is offline
RX Byte CountDisplays the number of bytes received over the application socket port.
RX Pkt CountDisplays the number of packets received over the application socket port.
To Device Dropped
Packet Count
Displays the number of dropped packets that were intended for the device.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. IChapter 4. Diagnostic and Statistics Pages - 93
Page 94
Display Serial Logs
4.2. Display Serial Logs
The Serial Interface Logs page provides a log of received and transmitted serial port messages. Up to 128
bytes per message and up to 128 messages are logged. It is intended to help with debugging serial
connectivity problems, determining the proper start and end of transmission bytes, and diagnosing device
problems.
The format is as follows:
Pkt(n): ddd:hh:mm:ss.mmm Rx/Tx:<data packet>
Where:
ddd – days since last system restart
hh – hours since last system restart
mm – minutes since last system restart
ss – seconds since last system restart
mmm – milliseconds since last system restart
<data packet> - Data packet received.
•For Modbus slave data, all data bytes shown in hex (xxh) format.
•For Raw/ASCIIdata
-ASCII characters displayed as characters
-Non-ASCII displayed in hex (xxh) format
94 - Chapter 4. Diagnostic and Statistics PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 95
Display Ethernet Device Logs
4.3. Display Ethernet Device Logs
The Ethernet Device InterfaceLogs page is accessed using the Display Ethernet Device Logs option, which
provides a log of received and transmitted Ethernet device messages. Up to 128 bytes per message and up to
128 messages are logged. It is intended to help with debugging Ethernet connectivity problems, determining
the proper start and end of transmission bytes, and diagnosing device problems.
The format is as follows:
Pkt(n)
: ddd:hh:mm:ss.mmm Rx/Tx:<data packet>
Where:
ddd – days since last system restart
hh – hours since last system restart
mm – minutes since last system restart
SS – seconds since last system restart
mmm – milliseconds since last system restart
<data packet> - Data packet received.
•ASCII characters displayed as characters
•Non-ASCII displayed in hex (xxh) format
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. IChapter 4. Diagnostic and Statistics Pages - 95
Page 96
PLC Interface Diagnostics
4.4. PLC Interface Diagnostics
The PLC Interface Diagnostics page provides detailed
statistics and error reporting for the EtherNet/IP PLC
interface. It is intended to help with debugging PLC
programs, monitoring the PLC interface, and solving
configuration problems.
PLC Interface Diagnostics
Messages/
Responses
Received
From PLC
Broadcasts
Received
From PLC
Messages/
Responses
Sent To PLC
Request
Messages
From PLC
Bad
Responses To
Msgs Sent To
PLC
Invalid
Network Path
Errors
No Response
From PLC
Errors
Pending
Request Limit
Errors
Displays the number of messages and
responses received from the PLC(s).
Displays the number of broadcast
messages received from the PLC(s).
Displays the number of messages and
responses sent to the PLC(s).
Displays the number of request messages
received from the PLC(s).
Displays the number of bad responses
from messages sent to the PLC(s). Bad
responses are typically returned for such
errors as:
•Incorrect tag or file names
•incorrect tag or file data types
•incorrect tag or file data sizes
•PLC is overloaded and cannot handle
the amount of Ethernet traffic
•PLC malfunction
Displays the number of network path
errors on messages sent to the PLC(s).
These are typically caused by incorrect IP
address settings.
Displays the number of no responses
from messages sent to the PLC(s). No
responses are typically returned for such
errors as:
•Incorrect IP address
•Incorrect PLC configuration
•PLC malfunction
•PLC is overloaded and cannot handle
the amount of Ethernet traffic
Displays the number of pending request
limit errors. These errors occur when the
PLC is sending a continuous stream of
messages to the DeviceMaster UP faster
than the DeviceMaster UP can process
them.
(Continued)
96 - Chapter 4. Diagnostic and Statistics PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 97
PLC Interface Diagnostics (cont.)
PLC Interface Diagnostics
Unexpected Event
Errors
Unsupported CIP
Request Instance Errors
Unsupported CIP
Request Service Errors
Unsupported CIP
Request Class Errors
Unsupported CIP
Request Attribute
Errors
Improper Configuration
Errors
Invalid Message Data
Errors
Displays the number of unexpected event errors. Unexpected event errors
occur when the DeviceMaster UP receives an unexpected message from the
PLC such as an unexpected response or unknown message.
Displays the number of unsupported CIP request instance errors. These
errors occur when a message with an invalid instance is sent to the
DeviceMaster UP.
Displays the number of unsupported CIP request instance errors. These
errors occur when a message with an invalid service is sent to the
DeviceMaster UP.
Displays the number of unsupported CIP request instance errors. These
errors occur when a message with an invalid class is sent to the
DeviceMaster UP.
Displays the number of unsupported CIP request instance errors. These
errors occur when a message with an invalid attribute is sent to the
DeviceMaster UP.
Displays the number of improper configuration errors. These errors occur
when the DeviceMaster UP receives a message that cannot be performed
due to an invalid configuration.
Displays the number of invalid message data errors. These errors occur
when the DeviceMaster UP receives a message that cannot be performed
due to invalid data.
Displays the number of system resource errors. These errors indicate a
system error on the DeviceMaster UP such as an inoperable serial port or a
System Resource Errors
full transmit queue. These errors typically occur when the PLC(s) are
sending data to the DeviceMaster UP faster than the DeviceMaster UP can
process it.
Oversized Received
Data Packet Errors
Writes to Offline
Ethernet Device on
Socket N
Displays the number of received Ethernet data packets that were larger
than the configured maximum receive data packet.
Displays the number of write attempts by a PLC to the Ethernet device
when the device was offline.
First Error DescriptionText description of the first error that occurred.
Last Error DescriptionText description of the last or most recent error that occurred.
DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. IChapter 4. Diagnostic and Statistics Pages - 97
Page 98
PLC Interface Diagnostics
98 - Chapter 4. Diagnostic and Statistics PagesDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Page 99
Chapter 5. Programming the PLC
This chapter provides information to help you configure PLC programs for the DeviceMaster UP. It includes
instructions for modifying the PLC program examples included with the DeviceMaster UP. The PLC program
examples are designed to work with the ControlLogix line of PLCs, PLC-5s or SLCs.
5.1. Programming Guidelines
Choose the receive communication method that best suits your implementation. The following communication
methods are available.
•For ControlLogix PLCs: The receive data tags must be large enough to handle the largest packet that can
be received from your serial/socket device.
-For Polling receive method: Including the sequence number and length parameters, the DeviceMaster
UP can return a received data message up to 444 bytes.
-For Write-to-Tag and Write-to-Tag-Synced receive methods: If the data is larger than the maximum of
440 bytes (up to 1518 serial bytes and 2048 socket bytes), the DeviceMaster UP sends the data to a
series of tags.
See 2.3.2.
Transfer Definition Object (74 Hex) on Page 48 for more information.
•For PLC-5/SLC PLCs: The receive data file area must be large enough to handle the largest packet that
can be received from your serial/socket device.
-For Polling receive method: Including the sequence number and length parameters, the DeviceMaster
-For Write-to-File and Write-to-File-Synced receive methods: If the data size is large (up to 1518 serial
See 2.4.3.
•Only one PLC generated EtherNet/IP message may be active at any one time in a PLC program.
Serial Port Data Transfer Object Definition (71 Hex) on Page 29 and 2.3.5. Socket Port Data
UP can return a received data message up to approximately 224 bytes.
bytes and 2048 socket bytes), the DeviceMaster UP sends the data to a series of files in sequential
order.
Receive Data Message on Page 59 for details.
DeviceMaster UP writes the serial/socket data directly into a tag or file on the
PLC. Use this method along with the Maximum PLC Update Rate configuration
setting to ensure the PLC can scan and consume serial/socket data faster than
the DeviceMaster UP can send it
DeviceMaster UP writes the serial/socket data into a tag or file on the PLC and
provides a mechanism to synchronize the data flow between the PLC and
DeviceMaster UP. Use this method when you want to ensure that the tag or file is
not overwritten before the PLC can consume the data.
The PLC requests data on a periodic basis. It provides the ability to control the
received data flow. However, it does require periodic data requests and the
request rate must be fast enough to ensure that the serial/socket port receive
queues on the DeviceMaster UP do not overflow.
Description
DeviceMaster UP EtherNet/IP User Guide: 2000424 Rev. LChapter 5. Programming the PLC - 99
Page 100
PLC Algorithms
5.2. PLC Algorithms
This section displays the following PLC algorithms: