Table of Contents

Advertisement

Quick Links

842D DeviceNet
Encoder
Catalog Numbers:
842D-60131331BDA and
842D-60131331BXA Revision 4.001
User Manual

Advertisement

Table of Contents
loading

Summary of Contents for Rockwell Automation Allen-Bradley 842D

  • Page 1 842D DeviceNet Encoder Catalog Numbers: 842D-60131331BDA and 842D-60131331BXA Revision 4.001 User Manual...
  • Page 2 (to include intellectual property liability) for actual use based upon the examples shown in this publication. Rockwell Automation publication SGI-1.1, Safety Guidelines for the Application, Installation, and Maintenance of Solid-State Control (available from your local Rockwell Automation office), describes...
  • Page 3: Table Of Contents

    Contents of this Manual ............P-2 Related Publications .............P-2 Safety Precautions ............... P-3 Terms and Abbreviations ............P-3 Conventions Used in this Manual..........P-5 Rockwell Automation Support ..........P-5 Local Product Support ............P-5 Technical Product Support ............P-5 Chapter 1 Overview Chapter Objectives ............... 1-1 Overview of the Encoder............
  • Page 4 Chapter 4 Configuring the Encoder Using RSNetworx for DeviceNet Chapter Objectives ................4-1 What is RSNetWorx for DeviceNet? ..........4-1 Required Equipment and Software ........... 4-1 Going Online..................4-2 Installation of the EDS File ............... 4-4 Offline Integration into the Network ..........4-4 Accessing and Editing Parameters ...........
  • Page 5: Using This Manual

    The purpose of this manual. • Terms and abbreviations. • Conventions used in this manual. • Rockwell Automation support. Who Should Use this Use this manual if you are responsible for installing, wiring, programming, or troubleshooting control systems that use the 842D Manual? encoder.
  • Page 6: Contents Of This Manual

    Using this Manual Contents of this Manual This manual contains the following information: Chapter Title Contents Preface Using this Manual Describes the purpose, background and scope of this manual. Also provides information on safety precautions and technical support. Overview Provides an overview of the 842D Encoder. Installation Provides a procedure for installing the 842D encoder.
  • Page 7: Safety Precautions

    Using this Manual Safety Precautions Please read the following safety precautions carefully. ATTENTION: Only personnel familiar with DeviceNet products and associated machinery should plan or implement the installation, start-up, configuration, and subsequent maintenance of the DeviceNet absolute encoder. Failure to comply may result in personal injury and/or equipment damage.
  • Page 8 Using this Manual Abbreviation Full Name Definition Controller Area Network Physical layer definition ODVA Open DeviceNet Vendor Association User organization for DeviceNet. Identifier Electronic Data Sheet Scaling factor Measuring units per revolution / Single turn resolution Pos_calc calculated position value calculated current position value, after clearing with Offset, ScF, Preset Pos_num...
  • Page 9: Conventions Used In This Manual

    Sales and order support. • Product technical training. • Warranty support. • Support service agreements. Technical Product Support If you need to contact Rockwell Automation for technical assistance, please call your local Rockwell Automation representative. Refer to http://www.ab.com for updates and supporting documentation.
  • Page 10 Using this Manual Notes:...
  • Page 11: Overview

    Chapter Overview Chapter Objectives Chapter 1 provides an overview of your 842D DeviceNet absolute encoder. In this chapter, you will read about the following: • Function of the 842D encoder. • Features of the 842D encoder. • Steps for setting up the encoder. •...
  • Page 12: Overview Of Setting Up The Encoder

    Overview – Scaling function - Setting the single-turn resolution as well as the number of turns. The single-turn resolution is any whole number from 1 to 8192. The number of turns must be 1, 2, 4, 8, 16, 32, 64... up to 8192. –...
  • Page 13: Installation

    Chapter Installation Chapter Objectives Chapter 2 provides the information that you need to install the 842D DeviceNet encoder. In this chapter, you will read about the following: • Cable connections. • Installing the encoder. Installing a Bulletin 842D Selecting Cables DeviceNet Encoder To connect the encoder to the DeviceNet network, you must select an appropriate DeviceNet drop cable.
  • Page 14: Installing The Devicenet Encoder

    Installation It is also important to determine the limitations of the trunk and drop cables. Refer to the following table. Data Rates 125 Kbps 250 Kbps 500 Kbps Thick Trunk Line 500 m (1,640 ft) 250 m (820 ft) 100 m (328 ft) Thin Trunk Line 100 m (328 ft) 100 m (328 ft)
  • Page 15: Configuring The Devicenet Encoder Dip Switches

    Chapter Configuring the DeviceNet Encoder DIP Switches Chapter Objectives Chapter 3 provides information that you need to configure the encoder. In this chapter, you will read about the following: • Setting the node address. • Setting the transmission baud rate •...
  • Page 16: Setting The Node Address

    Configuring the DeviceNet Encoder DIP Switches Setting the Node Address The Node Address is set via the 6-pole DIP switch. The DIP switch settings are binary starting with switch number 1 = (2 ) and ending with switch number 6 (= 2 DIP-1 DIP-2 DIP-3...
  • Page 17: Diagnostic Led

    Configuring the DeviceNet Encoder DIP Switches Figure 3.2 Bus Termination Switches Bus Termination 1 and 2 OFF: not active 1 and 2 ON: active Note: Remote setting of the DIP switches via a Node Commissioning Tool is not supported at this time. Diagnostic LED Once the DIP switches have been properly set, the 842D may be connected to a DeviceNet network.
  • Page 18 Configuring the DeviceNet Encoder DIP Switches Notes:...
  • Page 19: Configuring The Encoder Using Rsnetworx For Devicenet

    Chapter Configuring the Encoder Using RSNetWorx for DeviceNet Chapter Objectives Chapter 4 provides information that you need to configure the encoder over the DeviceNet network. In this chapter, you will read about the following: • RSNetWorx for DeviceNet software and the equipment required to use it.
  • Page 20: Going Online

    Configuring the Encoder Using RSNetWorx for DeviceNet Going Online To use RSNetWorx for DeviceNet, you must first set up a driver in RSLinx. The driver provides a communications link between the computer and DeviceNet network. Then, you can view the devices on a DeviceNet network by going online.
  • Page 21 Configuring the Encoder Using RSNetWorx for DeviceNet 5. Type a name (if desired), and then click OK. The Configure Drivers dialog box reappears, and the new driver is in the Configured Drivers List Figure 4.4 Configure Drivers Dialog Box with a DeviceNet Driver 6.
  • Page 22: Installation Of The Eds File

    3. Click Finish to complete the process. Offline Integration into the After a new project is started select the 842D encoder under the Rockwell Automation Miscellaneous category in the hardware Network window. Double-click or drag and drop the 842D Multiturn Encoder into the network view.
  • Page 23: Accessing And Editing Parameters

    Configuring the Encoder Using RSNetWorx for DeviceNet To assign a name, description and node address, double-click on the encoder in the Graph view window. In the General tab of the Edit dialog box, enter the node address that has been set via the six pole DIP switch.
  • Page 24: Enhanced Device Configuration In Offline Mode

    Configuring the Encoder Using RSNetWorx for DeviceNet Enhanced Device Configuration in Offline Mode The Enhanced Device Configuration is started by double-clicking on the encoder symbol and clicking on the Parameter tab. In offline mode the parameters are preset to the default values in the EDS file. Figure 4.10 Device Parameters Page in the Edit Dialog Box Parameters are displayed in numerical order in the Parameter column.
  • Page 25: Enhanced Device Configuration In Online Mode

    Configuring the Encoder Using RSNetWorx for DeviceNet Enhanced Device Configuration in Online Mode The Enhanced Device Configuration is selected by double-clicking on the encoder symbol. In on-line mode the parameter values currently stored in the encoder are accessed. By clicking on the Apply or Download to Device buttons, the parameters can be saved to the encoder.
  • Page 26: Setting Parameters To Default Values

    Configuring the Encoder Using RSNetWorx for DeviceNet Setting Parameters to In order to reset the parameters to the factory default values, the service Reset (05 ) of the encoder object is used. This is done in the Default Values Class Instance Editor. Select the service Reset (05 ) of the object (encoder object), Instance 1, with the ‘Send the attribute ID’...
  • Page 27: Configuring A Scanner To Communicate With The Encoder

    Chapter Configuring a Scanner to Communicate with the Encoder Chapter Objectives Chapter 5 provides instructions for configuring a PLC or SLC scanner to communicate with the encoder. Required Equipment and Before configuring the scanner, your PC must be: Software • Running RSNetWorx for DeviceNet.
  • Page 28 Configuring a Scanner to Communicate with the Encoder • Highly efficient for both bandwidth and node processing • "Bound" connections • Data field contains data only • Meaning of data is predefined Input data specification of the 842D The 842D encoder is an Input Device. This means the encoder only produces (sends) data and does not consume any data from the master.
  • Page 29 Configuring a Scanner to Communicate with the Encoder For more detail see the Assembly object manufacturer specific functions in Appendix B. Polling mode The standard mode in the master-slave communication is the polling mode. In this mode the master contacts all bus participants cyclically. The output data are transmitted to the slaves and the input data are read from the slaves over the course of one scan.
  • Page 30: Example Devicenet Network

    Configuring a Scanner to Communicate with the Encoder Example DeviceNet Network This section provides the steps that are needed to configure a simple network that includes 1756-DNB/A scanner (Node 10) and an 842D DeviceNet encoder (Node 03). Setting Up the Scan List For the scanner to communicate with a product, the scanner must be configured and the product’s node number must be added to its scan list.
  • Page 31 Configuring a Scanner to Communicate with the Encoder Figure 5.2 Scanlist Page in the Device Edit Dialog Box 6. Select the Automap on Add box (a check mark will appear). 7. Under Available Devices, select the encoder, and then click > (Right Arrow) to add it to the scanlist.
  • Page 32 Configuring a Scanner to Communicate with the Encoder Figure 5.4 Edit I/O Parameters Dialog Box - COS 9. Select the type(s) of data exchange (Polled, Change of State, and/or Cyclic). In our example, we selected Change of State. 10. Type the number of bytes that will be required for your I/O in the Rx Size and Tx Size.
  • Page 33: Mapping The Product's Data In The Scanner

    Configuring a Scanner to Communicate with the Encoder Figure 5.5 Inhibit time 13. In the Edit I/O Parameters box, click OK. If you changed any settings, a Scanner Applet appears and asks if it is OK to unmap the I/O. Click Yes to continue. The Edit I/O Parameters dialog box closes and then the Scanner Module dialog box (Figure 5.3) reappears.
  • Page 34: Saving The Configuration

    Configuring a Scanner to Communicate with the Encoder Figure 5.7 Scanner Module Dialog Box, Input Page - Polled Figure 5.8 Scanner Module Dialog Box, Input Page - Strobed If you selected the Automap on Add box (Figure 5.2) in the Scanlist page (Figure 5.3) and did not change any settings, RSNetWorx has already mapped the I/O.
  • Page 35: Using Devicenet Explicit Messaging

    Chapter Using DeviceNet Explicit Messaging Chapter Objectives Chapter 6 provides information you need to monitor and configure the encoder using explicit messaging on DeviceNet. In this chapter, you will read about the following: • Required equipment. • Messaging guidelines for the 1747-SDN scanner. •...
  • Page 36 Using DeviceNet Explicit Messaging In this example a value is sent to the preset attribute in the encoder. The encoder stores the preset value sent in non-volatile memory. Storing the preset value applies the preset value to the encoder position value. The following program fragment sends an explicit message and confirms the message reception.
  • Page 37 Using DeviceNet Explicit Messaging Example Values One of the following tables of data is sent to and received from the 1747-SDN. Values shown are in hexadecimal (even the MAC ID). Table 1: Preset (set service) Example to position 00 00 00 00h (0 decimal) Offset N20:0 00 04...
  • Page 38 Using DeviceNet Explicit Messaging TXID: SERVICE REQ/RSP: This is a one-byte integer the range of 1 to 255. The scanner The DeviceNet service request and response: uses this value to track the transaction to completion, and 10 = Set Service Request returns the value with the response that matches the 0 = Set Service Response request.
  • Page 39: Explicit Messaging Prest Example For The 1756-Dnb

    Using DeviceNet Explicit Messaging Explicit Messaging Preset Example for the 1756-DNB The following is a code segment that will preset the value of the 842D encoder’s ‘Position Value’. This can be useful for automatic homing or automated error recovery. The following tags are used for the explicit messaging: •...
  • Page 40 Using DeviceNet Explicit Messaging Figure 6.3 Message Configuration The details where communication is addressed are also required. 'DNB' is the name of the DeviceNet module (1756-DNB) at a port from the (1756-L1) controller, '2', to communicate with encoder at 'MACID' where MACID is a variable SINT with the destination slave DeviceNet node address.
  • Page 41 Appendix Specifications and Dimensions 842D Specifications Electrical Code Format Natural Binary Code Direction CW or CCW (programmable) Electrical Interface DeviceNet Specification release 2.0 Operating Voltage 11-25V DC Power Consumption 1.8W (75mA @ 24V DC) Max # of Steps/Revolution 8192 Max # of Revolutions 8192 Position Forming Time 0.3msec...
  • Page 42 Specifications and Dimensions 842D Dimensions 9.98/9.99 18/20 (0.392/0.393) (0.71/0.79) ATTENTION: Rigidly 8.8/9.2 (0.34/0.37) coupling the encoder shaft to the machine shaft will (0.71) cause a failure in either the bearings of the encoder or the bearings of the machine shaft. ∅...
  • Page 43: Devicenet Objects

    Appendix DeviceNet Objects Appendix Objectives Appendix B defines the DeviceNet object classes, class services, and attributes that are supported by the DeviceNet encoder. This appendix assumes that you have experience in object programming. Object Classes The 842D DeviceNet encoder supports the following object classes: Class Object Page...
  • Page 44: Class Code 02Hex - Message Router

    DeviceNet Objects Class Code 02 — The Message Router Object provides a messaging connection point through which a client may address to any object class or instance Message Router residing in the physical devices. Class and Instance Attributes Not supported. Services Not supported.
  • Page 45: Class Code 04Hex - Assembly

    DeviceNet Objects Class Code 04 — The Assembly Object combines attributes from different objects into a single object. For a detailed view of the assembly data format, see Assembly page B-4. Class Attributes Attr. Attribute Access Data Type Description Revision UINT Revision = 002 Instance Attributes...
  • Page 46 DeviceNet Objects Assembly Data Format Instance Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Position value (Att. 12) Position value (Att. 12) Warning Alarm flag reserved flag (Att. 88) (Att. 85) Position value (Att.
  • Page 47: Class Code 05Hex - Connection

    DeviceNet Objects Class Code 05 — The Connection Class allocates and manages the internal resources associated with both I/O and Explicit Messaging Connections. The Connection specific instance generated by the Connection Class is referred to as a Connection Instance or a Connection Object. Important: An externally visible interface to the Connection Class across Explicit Messaging Connections exists.
  • Page 48 DeviceNet Objects Attr. Attribute Access Data type Description Produced Cnxn UINT Number of bytes in the produced connection path Path Length attribute Produced Cnxn ARRAY of Path information of the desired assembly instance Path UINT (Def. 1) Consumed Cnxn UINT Number of bytes in the consumed connection path Path Length attribute...
  • Page 49: Class Code 2Fhex - Encoder

    DeviceNet Objects Class Code 2F — Encoder The Encoder Object contains all encoder data. All input data, parameter data and status data are included here. Class Attributes Attr. Attribute Access Data Type Description Revision USINT Revision = 01 Max. Instance USINT Instance Attributes Attr.
  • Page 50 DeviceNet Objects Attr. ID Attribute Access Data type Description This is the value of the current velocity according to unit type in Velocity value DINT 'VELOCITY FORMAT' Value of minimum velocity limit according to unit type of Minimum Get/Set DINT 'VELOCITY FORMAT'.
  • Page 51 DeviceNet Objects Attr. ID Attribute Access Data type Description Malfunction could lead to incorrect position value. See Alarms WORD “Designation of Alarm Bits‘, page B-10. Any alarm will set the 'ALARM FLAG'. This flag indicates a device failure that requires user intervention. The 'ALARMS' indicate the specific failure.
  • Page 52: Designation Of Alarm Bits

    B-10 DeviceNet Objects Designation of Alarm Bits (see Attribute 83) Description Position error: 0=NO, 1=YES Diagnostic: 0=Diagnostic OK, 1=Diagnostic error 2...11 Reserved 12...15 Manufacturer specific (not used) Designation of Warning Bits (see Attribute 86) Description Frequency exceeded: 0=NO, 1=YES Light control reserve: 0=Not reached, 1=Error CPU watchdog: 0=OK, 1=Reset Operating time limit warning: 0=NO, 1=YES Reserved...
  • Page 53 Index Numerics Connection B-5 Conventions Used in this Manual P-5 842D COS 5-2 configuring to communicate with a Cyclic 5-2 scanner 5-1 default settings 3-1 function 1-1 installation 2-1 Daisy chain connections 2-1 setting up 1-2 Data exchange 5-6 specifications A-1 Default Values 4-7 1747-SDN Scanner 6-1 Designation of Alarm Bits B-10...
  • Page 54 M1-file 6-1 Request and Response messages 6-1 MAC ID 6-3 Reset service 4-5 Manual Restore service 4-5 audience P-1 Rockwell Automation Support P-5 contents P-2 RSNetworx 4-4 conventions P-5 RSNetWorx for DeviceNet 4-1 purpose P-1 creating an EDS file 4-4...
  • Page 55 Index I–3 Safety Precautions P-3 Save 4-7 Saving Parameter Values to EEPROM 4-7 Scan List 5-4 Scan rate 5-6 SCANport cables 2-1 Selecting Cables 2-1 Send Rate 5-6 SERVICE 6-3 Setting Parameters to Default Values 4-7 Setting Parameters to EEPROM Values 4-7 Setting the baud rate 3-2 Setting the Node Address 3-2 Setting Up the Encoder 1-2...
  • Page 56 I–4 Index Notes:...
  • Page 57 RSLinx, RSNetWorx, RSLogix5, RSLogix500 and RSLogix 5000 are trademarks of Rockwell Automation. PLC and PLC-5 are registered trademarks of Rockwell Automation. SLC and SLC-5/03 are registered trademarks of Rockwell Automation. DeviceNet is a trademark of the Open DeviceNet Vendor Association.
  • Page 58 Back Cover ZZZURFNZHOODXWRPDWLRQFRP BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB 3RZHU &RQWURO DQG ,QIRUPDWLRQ 6ROXWLRQV +HDGTXDUWHUV €r…vph†)ÃS‚pxryyà ˆ‡‚€h‡v‚à ! ÃT‚ˆ‡uÃTrp‚qÃT‡…rr‡ÃHvyhˆxrrÃXDÃ$"!#ÃVT ÃUry)à Ã# #"'!!ÃAh‘)à Ã# #"'!#### @ˆ…‚ƒrHvqqyrÃ@h†‡ s…vph)ÃS‚pxryyà ˆ‡‚€h‡v‚ÃW‚…†qhh7‚ˆyr‰h…qÃqˆÃT‚ˆ‰r…hvÃ"%à &Ã7…ˆ††ry†Ã7rytvˆ€ÃUry)Ã"!Ã!Ã%%"Ã%ÃAh‘)Ã"!Ã!Ã%%"Ã%# †vhÃQhpvsvp)ÃS‚pxryyà ˆ‡‚€h‡v‚ÃGr‰ryà #Ã8‚…rÃAÃ8’ir…ƒ‚…‡Ã"à Ã8’ir…ƒ‚…‡ÃS‚hqÃC‚tÃF‚tÃUry)Ã'$!Ã!''&Ã#&''ÃAh‘)Ã'$!Ã!$'à '#% Qˆiyvph‡v‚Ã'#!9VH 7@IQòÃEhˆh…’Ã!# 8‚ƒ’…vtu‡Ã‹Ã!#ÃS‚pxryyà ˆ‡‚€h‡v‚à yyÃ…vtu‡†Ã…r†r…‰rqÃQ…v‡rqÃvÃVT ...

Table of Contents