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
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
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
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
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
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
EtherNet/IP Application Setup
12 -Chapter 1. IntroductionDeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
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
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
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
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
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
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
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
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
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
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
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
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
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
Loading...
+ 136 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.