EtherNet®/IP Interface Configuration Quick Start
Trademark Notices 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 Automation. PLC is a registered trademark of Allen-Bradley Company, Inc. Ethernet is a registered trademark of Digital Equipment Corporation, Intel, and Xerox Corporation.
Table of Contents Overview...................................................................................................................................5 Installation Overview ................................................................................................................................... 5 Locating the Latest Software and Documentation ............................................................................... 6 Data Type Definitions..............................................
Table of Contents 4 - Table of Contents DeviceMaster UP EtherNet/IP Quick Start: 2000478 Rev.
Overview This Quick Start is intended to help you quickly set-up serial or Ethernet devices. with the DeviceMaster UP and EtherNet/IP, for example: • Read-only devices such as barcode scanners and some RFID readers • Read/write devices such as printers and some weigh scales Installation Overview Use the following steps to install the DeviceMaster UP. 1. CONNECT THE DEVICEMASTER UP to the network. 2. INSTALL PORTVISION DX from the CD or download and install the latest version. 3.
Overview Locating the Latest Software and Documentation You can use the links in this table to check for updated software or documentation.
Overview Data Type Definitions The following data type definitions apply in this Interface Configuration Guide. Data Type USINT UINT UDINT BYTE Definition Unsigned short integer (8-bit) Unsigned integer (16-bit) Unsigned double integer (32-bit) Bit string (8-bit) DeviceMaster UP EtherNet/IP Quick Start: 2000478 Rev.
Overview 8 - Overview DeviceMaster UP EtherNet/IP Quick Start: 2000478 Rev.
Configuring Read-Only Serial Devices Prerequisites Before you can configure the serial ports for read-only serial devices, make sure that you have done the following: • Installed the hardware • Installed PortVision DX • Configured the DeviceMaster UP IP address using PortVision DX • Uploaded the EtherNet/IP firmware (V3.x or higher) using PortVision DX If you need to perform any of these procedures or locate the latest files, see Installation Overview on Page 5.
Configuring Read-Only Serial Devices 3. Click the appropriate Port N link to open the Edit Serial Port Configuration page. 4. Set up the Serial Configuration for the device that you plan on attaching to this port. 5. Set up the Serial Packet Identification. a. Set STX (Start of transmission) Rx Detect in decimal format. b. Set ETX (End of transmission) Rx Detect in decimal format. c.
Configuring Read-Only Serial Devices 6. Set up the Ethernet/IP Settings. a. Set Rx (To PLC) Ethernet Transfer Mode to Write-to-Tag/ File. b. Set PLC IP Address in xxx.xxx.xxx.xxx format. c. If ControlLogix, set the PLC Controller Slot Number. This varies from zero to (max slot number –1), but must always be zero for CompactLogix. For example, if the PLC has seven slots, the slot number range would be zero to six. (This field is ignored for SLC/ PLC-5 PLCs.) d.
Configuring Read-Only Serial Devices The format of data sent to ControlLogix family PLCs: Name Data Type Receive (DeviceMaster to PLC message data. Structure of: UINT Produced data sequence UINT Data length (in bytes) Array of USINT Data array Data Value(s) 0-65535 (FFFF Hex) 0-1024 0-255 For large received data packets over 440 bytes in size: • Data larger than 440 SINTs require a series of tags of 444 SINT in size.
Configuring Read-Only Ethernet TCP/IP Devices Prerequisites Before you can configure the serial ports for read-only Ethernet TCP/IP devices, make sure that you have done the following: • Installed the hardware • Installed PortVision DX • Configured the DeviceMaster UP IP address using PortVision DX • Uploaded the EtherNet/IP firmware (V3.x or higher) using PortVision DX If you need to perform any of these procedures or locate the latest files, see Installation Overview on Page 5.
Configuring Read-Only Ethernet TCP/IP Devices 3. Click the appropriate Socket N link to open Edit Socket Port Configuration page. 4. Under Device TCP Connection Configuration, select Enable and configure the port for your environment. • • • If your Ethernet TCP/IP device requires another device to connect to it, configure the socket port on the DeviceMaster UP to Connect mode. - Do not enable the Listen option. - Set Connect To Mode to ConnectAlways.
Configuring Read-Only Ethernet TCP/IP Devices - Set the Connect IP Address to the IP address of your Ethernet device. - Set Disconnect Mode to Never. - Optionally configure your Ethernet device to connect to the DeviceMaster UP at the DeviceMaster UP IP address and Listen Port. 5. Set up the socket packet identification. a. Set the Rx Timeout Between Packets. Set to zero to stream data with the Rx STX/ETX Detect settings set to none. For normal settings, typical values are 10 to 50 ms. b.
Configuring Read-Only Ethernet TCP/IP Devices g. Set the Rx (To PLC) Produced Tag Name for the appropriate environment. ControlLogix family PLCs: Set this field to the name of the tag where you want the data placed. The tag must be an array of SINTs (bytes) large enough to hold the maximum sized data plus four bytes for the sequence number and length fields. The maximum size is 444 SINTs. SLC or PLC-5 PLCs: • Set the Rx (To PLC) Produced Tag Name to the File number where you want the data placed.
Configuring Read-Only Ethernet TCP/IP Devices The format of data sent to SLC/PLC-5 PLCs: Name Receive (DeviceMaster to PLC) message data. Structure of: Produced data sequence Data length (in bytes) Data array Data Type UINT UINT Array of UINT Data Value(s) 0-65535 (FFFF Hex) 0-2048 0-65535 For large received data packets: • The data will automatically be placed in sequential files. • The files must be 256 integers in size with the exception of the last file.
Configuring Read-Only Ethernet TCP/IP Devices 18 - Configuring Read-Only Ethernet TCP/IP Devices DeviceMaster UP EtherNet/IP Quick Start: 2000478 Rev.
Configuring Read/Write Devices Prerequisites Before you can configure the serial ports for read-only Ethernet TCP/IP devices, make sure that you have done the following: • Installed the hardware • Installed PortVision DX and configured the DeviceMaster UP IP address using PortVision DX • Uploaded the EtherNet/IP firmware (V3.x or higher) using PortVision DX If you need to perform any of these procedures or locate the latest files, see Installation Overview on Page 5.
Configuring Read/Write Devices 3. If any embedded web page settings have changed, verify Reset Port and Save in Flash are selected and click Submit. 4. Optionally, save the settings in a configuration file using PortVision DX, which saves the network settings and the protocol settings. You can use configuration files to upload the settings to multiple DeviceMaster UPs or for restoration purposes. a.
Configuring Read/Write Devices 6. Add the transmit message to your PLC program. It may help to reference rung 3 of loopbackExampleTagWrite.L5K. 7. Open the transmit message. 8. On the Configuration Controller pane: • Set Message Type to CIP Generic. • Set Service Type to Set Attribute Single. • Set Class to: • - Serial ports: Set to 71 Hex. - Socket ports: Set to 74 Hex. Set Instance to the serial or socket number. • Set Attribute to 1.
Configuring Read/Write Devices Configuring SLC/PLC-5/MicroLogix PLCs 1. Create a Data File to send the transmit data. It will have the form of: • Integer - Produced Sequence Number • Integer - Length of data field in bytes. • Integer[] - Data field array large enough to hold all data to transmit (two bytes or characters per integer). 2. Open the TX Data file. 3. Set the second integer to the length of data to transmit in bytes. 4. Input the data to transmit starting at the third integer.
Configuring Read/Write Devices 9. Open the Setup screen and in the General pane, under This Controller: a. Set Data Table Address to that of the TX Data File in your PLC program. (i.e. N11:0) b. Set Size in Elements to be at least large enough to contain the entire TX Data message. That will include the sequence number, length, and data integers. The DeviceMaster UP will only send the number of bytes specified in the second message integer and will ignore any extra data. c.
Configuring Read/Write Devices 24 - Configuring Read/Write Devices DeviceMaster UP EtherNet/IP Quick Start: 2000478 Rev.
Filtering/Data Extraction Configuration Select your filtering mode(s): • Use String filtering if: - • Use RFID filtering if: - • Received data can be no greater than 128 bytes in length. Received data is not in EPCglobal or barcode UPC/EAN formats or you do not want the DeviceMaster UP to extract the RFID tag or barcode parameters. You want to filter and eliminate duplicate received messages.
Filtering/Data Extraction Configuration 4. Set the RFID Reader Interface Type to that of your RFID Reader configuration. If your RFID Reader is not listed, refer to the DeviceMaster UP Filtering and Data Extraction Reference Guide for the supported RFID reader interfaces. If your RFID reader format matches one of the listed formats, then set the RFID Reader Interface Type to that format. 5. Set the Filter Age Time to how long after the last read you want an entry to be filtered. 6.
Filtering/Data Extraction Configuration To PLC Barcode Data Format: When the PLC interface is operating in barcode filtering mode, all data sent to the PLC will be in the following format: Field Produced data sequence number Length Company Code Product Code Numbering Code Barcode Data Length Barcode Data Size Description UINT Values = 0-65535 (FFFF Hex) UINT Values = 12-140 UDINT UDINT UINT Sequence number that is incremented with each new message. Company Code. Product Code.
Filtering/Data Extraction Configuration Application Filtering/Data Extraction Access the Filtering/Data Extraction Configuration section corresponding to the desired serial or socket port: 1. Set To Application Filter Mode to the desired mode. 2. For String (128 char max): set the Filter Age Time to how long after the last read you want an entry to be filtered. 3.
Filtering/Data Extraction Configuration Barcode (UPC/EAN Formats) 1. Set any or all of the To Application Filter Options (RFID/Barcode) filtering options. Note: You must select at least one for the filtering/data extraction to function.) 2. If you are using standard twelve to fourteen digit UPC/EAN barcodes, set the Barcode UPC/EAN 12-14 Digit Format to match that of your barcodes. The Company-5/Product-5 is the most popular format. 3.
Filtering/Data Extraction Configuration 30 - Filtering/Data Extraction Configuration DeviceMaster UP EtherNet/IP Quick Start: 2000478 Rev.
Application Socket Configuration Access the Application TCP Connection Configuration section corresponding to the desired serial or socket port: 1. Select Enable. 2. If your Ethernet TCP/IP application requires another device to connect to it, configure the socket port on the DeviceMaster UP to Connect mode: a. Make sure that the Listen option is not selected. b. Set Connect To Mode to ConnectAlways. c. Set the Connect Port to the socket port number of your Ethernet application. d.
DeviceMaster UP EtherNet/IP Quick Start: 2000478 Rev.
Troubleshooting and Technical Support This section contains troubleshooting information for your DeviceMaster UP. You should review the following subsections before calling Technical Support because they will request that you perform many of the procedures or verifications before they will be able to help you diagnose a problem.
Troubleshooting and Technical Support General Troubleshooting This table illustrates some general troubleshooting tips. Note: Make sure that you have reviewed the Troubleshooting Checklist on Page 33. General Condition Explanation/Action Indicates that boot program has not downloaded to the unit. 1. Reboot the system. PWR or Status LED flashing 2. Make sure that you have downloaded the most current firmware for your protocol: ftp://ftp.comtrol.com/html/up_main.htm.
Troubleshooting and Technical Support Daisy-Chaining DeviceMaster UP 2E/4-Port Units The DeviceMaster UP 2E/4-port models with external power supplies follow the IEEE specifications for standard Ethernet topologies. When using the UP and DOWN ports, the DeviceMaster UP 2E/4 is classified as a switch. When using the UP port only, it is a simple end node device.
Troubleshooting and Technical Support Technical Support It contains troubleshooting procedures that you should perform before contacting Technical Support since they will request that you perform, some or all of the procedures before they will be able to help you diagnose your problem. If you need technical support, use one of the following methods. Comtrol Contact Information Downloads ftp://ftp.comtrol.com/html/up_ethernet_ip_main.htm Web site http://www.comtrol.com Phone 763.957.