Catalog Numbers:
842D-60131331BDA and
842D-60131331BXA Revision 4.001
User Manual
Important User InformationBecause of the variety of uses for the products described in this
publication, those responsible for the application and use of this
control equipment must satisfy themselves that all necessary steps
have been taken to assure that each application and use meets all
performance and safety requirements, including any applicable laws,
regulations, codes and standards.
The illustrations, charts, sample programs and layout examples
shown in this guide are intended solely for purposes of example.
Since there are many variables and requirements associated with any
particular installation, Rockwell Automation does not assume
responsibility or liability (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
some important differences between solid-state equipment and
electromechanical devices that should be taken into consideration
when applying products such as those described in this publication.
Reproduction of the contents of this copyrighted publication, in
whole or in part, without written permission of Rockwell
Automation, is prohibited.
Throughout this manual we use notes to make you aware of safety
considerations:
ATTENTION: Identifies information about practices
or circumstances that can lead to personal injury or
!
Attention statements help you to:
•Identify a hazard.
•Avoid the hazard.
•Recognize the consequences.
Important: Identifies information that is critical for successful
application and understanding of the product.
Class Code 01hex — Identity Object................................................B-1
Class Code 02hex — Message Router.............................................B-2
Class Code 03hex — DeviceNet ......................................................B-2
Class Code 04hex — Assembly .......................................................B-3
Class Code 05hex — Connection.....................................................B-4
Class Code 2Fhex — Encoder .........................................................B-7
Designation of Alarm Bits ...............................................................B-10
Designation of Warning Bits ...........................................................B-10
Designation of Cam Bits .................................................................B-10
Preface
Using this Manual
ObjectivesRead this preface to become familiar with the organization of the
manual. In this preface, you will read about the following:
•Who should use this manual.
TM
absolute rotary shaft
Who Should Use this
Manual?
•An overview of the 842D DeviceNet
encoder.
•The purpose of this manual.
•Terms and abbreviations.
•Conventions used in this manual.
•Rockwell Automation support.
Use this manual if you are responsible for installing, wiring,
programming, or troubleshooting control systems that use the 842D
encoder.
This manual is intended for qualified service personnel responsible
for setting up and servicing the 842D encoder. You must have
previous experience with and a basic understanding of electrical
terminology, programming procedures, networking, required
equipment and software, and safety precautions.
Purpose of this ManualThis manual is a learning and reference guide for the 842D encoder. It
describes the procedures needed to install, configure, and
troubleshoot the encoder.
P-2Using this Manual
Contents of this Manual
This manual contains the following information:
ChapterTitleContents
PrefaceUsing this ManualDescribes the purpose, background and scope of this manual. Also provides
information on safety precautions and technical support.
1OverviewProvides an overview of the 842D Encoder.
2InstallationProvides a procedure for installing the 842D encoder.
3Configuring the DeviceNet
Encoder DIP Switches
4Configuring the Encoder
Using RSNetWorx for
DeviceNet
5Configuring a Scanner to
Communicate with the
Encoder
6Using DeviceNet Explicit
Messaging
ASpecifications and
Dimensions
BDeviceNet ObjectsDefines the DeviceNet object classes, class services, and attributes that are
Describes the setting of node address, bus termination, baud rate and
PRESET function.
Provides information that you need to configure the encoder (online and
offline) over the DeviceNet networ
Provides instructions for configuring a PLC or SLC scanner to communicate
with the encoder.
Includes information you need to monitor and configure the encoder using
explicit messaging on DeviceNet. Features an example of explicit messaging.
Provides the specifications and physical dimensions of the 842D encoder.
supported by the DeviceNet encoder.
k.
Related Publications
TitlePublication Number
RSNetWorx for DeviceNet Getting Results
Manual
9398-DNETGR
1747-SDN DeviceNet Scanner Configuration
Manual
1747-SDN DeviceNet Scanner Module Manual1747-5.8
DeviceNet Media, Sensors and Distributed I/O1485-CG001A-EN-P
DeviceNet Cable System Planning and
Installation Manual
RSLogix 5 Getting Results Guide9399-RL53GR
RSLogix 500 Getting Results Guide9399-RL50GR
RSLogix 5000 Getting Results Guide9399-RLD300GR
1747-6.5.2
DN-6.7.2
Using this ManualP-3
Safety PrecautionsPlease 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.
ATTENTION: Remove all power before installing the
DeviceNet absolute encoder. Failure to disconnect
power may result in death or serious injury. Verify all
power is removed before installing the DeviceNet
absolute encoder.
ATTENTION: Hazard of equipment damage exists. If
explicit messages are programmed to frequently write
parameter data to the 842D EEPROM, the EEPROM can
exceed its life cycle and cause the product to
malfunction. Do not create a program that frequently
uses explicit messages to write parameter data to a
product. (See EEPROM Life specification on page A-1.)
Terms and AbbreviationsFor a complete listing of Allen-Bradley terminology, refer to the
DeviceNetAn open network that provides probabilistic I/O control
through a managed bit-wise non-destructive multiplexing
scheme.
842D
DeviceNet
Encoder
RSNetWorx
for
DeviceNet
An Allen-Bradley encoder that communicates directly with the
DeviceNet network without requiring additional adapters. In
this manual, the terms “encoder” and “842D” are also used
when referring to the 842D DeviceNet Encoder.
A Rockwell Software application that can be used to set up
DeviceNet networks and configure connected devices.
RSNetWorx for DeviceNet (version 3.00.00) and RSLinx
(version 2.20.02) were used for examples in the manual.
Different versions may differ in appearance and procedures.
P-4Using this Manual
AbbreviationFull NameDefinition
CANController Area NetworkPhysical layer definition
ODVAOpen DeviceNet Vendor AssociationUser organization for DeviceNet.
IDIdentifier
EDSElectronic Data Sheet
ScFScaling factor Measuring units per revolution / Single turn
resolution
Pos_calccalculated position valuecalculated current position value, after clearing
with Offset, ScF, Preset
Pos_numnumerical position value numerical (physical) position value before
clearing with Offset, ScF, Preset
Data Types
BOOLBooleanBit
BYTEBit String1 Byte (8 Bit)
WORDBit String2 Byte (16 Bit)
USINTUnsigned Short IntegerInt (1 Byte) - (0...255)
UINTUnsigned IntegerInt (2 Byte) - (0...65,535)
UDINTUnsigned Double Integer
Int (4 Byte) - (0...+2
32
-1)
SINTSigned Short IntegerInt (1 Byte) - (-128...+127)
The following conventions are used throughout this manual:
•Bulleted lists provide information, not procedural steps.
•Numbered lists provide sequential steps or hierarchical
information.
•Italic type is used for chapter names and for parameter names.
•Bold type is used for names of menus, menu options, screens, and
dialog boxes.
Important: This type of paragraph contains tips or notes that have
been added to call attention to useful information.
Rockwell Automation offers support services worldwide, with more
than 75 sales/support offices, more than 500 authorized distributors,
and more than 250 authorized systems integrators located throughout
the United States alone. In addition, Rockwell Automation
representatives are in every major country in the world.
Local Product Support
Contact your local Rockwell Automation representative for:
•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.
P-6Using this Manual
Notes:
Chapter 1
Overview
Chapter ObjectivesChapter 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.
•Required tools and equipment.
Overview of the EncoderThe 842D absolute multi-turn encoder provides a total resolution of
26 bits. The single-turn position value is transmitted with 13 bits. The
number of multi-turn revolutions is 13 bits. Revolutions are counted
by the use of a gear mechanism. The bus interface is located in the
encoder and is configured as a DeviceNet slave according to
DeviceNet specification, release 2.0.
Features of the EncoderThe DeviceNet network is an open, global industry-standard
communication network designed to provide an interface through a
single cable from a programmable controller directly to “smart”
devices such as sensors, push buttons, motor starters, operator
interfaces and drives.
The 842D DeviceNet encoder connects directly to the a DeviceNet
network without the need for additional adapters. Features of the
842D include:
•26-bit absolute multi-turn operation (8192 steps per revolution x
8192 revolutions) without batteries
•Supports Polling, Cyclic, Change of State (COS) and Bit Strobed
I/O messaging
•Transmission rate up to 500 kBaud.
•Programmable functions
–Electronic alignment (PRESET or Number-SET). Electronic
alignment may be carried out via DeviceNet or via a pushbutton in the bus connector of the 842D.
–Clockwise or Counterclockwise (CW/CCW) counting
direction
1-2Overview
–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.
–Up to eight programmable cams
–Velocity Warning Flags
•Status information is available via the Network Status LED on
the back of the encoder.
•Velocity Feedback (Steps per second, RPM, or RPS)
•Diagnostic and Position Error Alarms
•Node address, Baud rate, and bus termination resistance are
selected via DIP switches under the removable cover on the back
of the encoder.
Overview of Setting Up the
Encoder
To set up the 842D DeviceNet encoder, you must perform the
following tasks:
1. Install the encoder. Refer to Chapter 2, Installation.
2. Set the encoder’s node address, transmission rate and bus
termination. Refer to Chapter 3, Configuring the DeviceNet
Encoder DIP Switches.
3. Configure the encoder’s parameters. Refer to Chapter 4,
Configuring the Encoder Using RSNetWorx for DeviceNet.
4. Configure a scanner (either PLC or SLC) to communicate with
the encoder. Refer to Chapter 5, Configuring a Scanner to Communicate with the Encoder.
Chapter 2
Installation
Chapter ObjectivesChapter 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
DeviceNet Encoder
Selecting Cables
To connect the encoder to the DeviceNet network, you must select an
appropriate DeviceNet drop cable. A drop line connects a node, such
as an encoder, to the DeviceNet trunk cable. Use the following
information to select appropriate cables for each connection.
Bulletin 842D DeviceNet encoders are available with a single 5-pin
micro quick disconnect or two 5-pin quick disconnects (one male and
one female) for ‘daisy chain’ connections.
Catalog NumberElectrical Connection
842D-60131331BDAOne 5-pin male micro QD
842D-60131331BXATwo 5-pin micro QDs (one male & one female)
Pin configurations are per the DeviceNet specification as follows:
Figure 2.1DeviceNet Micro Connections
Female Micro
Male Micro
3
5
21
4
1
4
3
5
2
1DrainBare
2V+Red
3V-Black
4CAN_HWhite
5CAN_LBlue
Refer to the table below for recommended drop cables. .
LengthRight Angle Micro Male to Straight Micro Female
1m1485R-P1R5-F5
2m1485R-P2R5-F5
3m1485R-P3R5-F5
4m1485R-P4R5-F5
5m1485R-P5R5-F5
6m1485R-P6R5-F5
2-2Installation
It is also important to determine the limitations of the trunk and drop
cables. Refer to the following table.
Data Rates125 Kbps250 Kbps500 Kbps
Thick Trunk Line500 m (1,640 ft)250 m (820 ft)100 m (328 ft)
Thin Trunk Line100 m (328 ft)100 m (328 ft)100 m (328 ft)
Maximum Drop Length6 m (20 ft)6 m (20 ft)6 m (20 ft)
Cumulative Drop Budget156 m (512 ft)78 m (256 ft)39 m (128 ft)
For more information on DeviceNet cables and cable systems, refer to
the DeviceNet Cable System Planning and Installation Manual,
Publication DN-6.7.2.
Installing the DeviceNet Encoder
The following instructions explain how to physically install your
DeviceNet encoder.
1. Be sure to select the proper size flexible coupling clamp to mate
to the encoder shaft, e.g., 845-FC-*-*. See the Encoder
Accessories section in the Allen-Bradley Sensors catalog.
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.
2. Use the dimension drawings to determine the encoder mounting
hole locations. See Appendix A.
3. Slide the flexible coupling onto the shaft, but do not
tighten the
set screws.
4. Mount the encoder and tighten with three size M4 mounting
screws (not supplied).
5. Center the flexible coupling and tighten the set screws.
6. Rotate the machine slowly and verify that the flexible coupling is
not deforming beyond specifications.
Chapter 3
Configuring the DeviceNet Encoder
DIP Switches
Chapter ObjectivesChapter 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
•Activating bus termination.
•Diagnostic LED
•The Preset function.
Setting up the 842D
DeviceNet Encoder
Specific features of the 842D must be configured by means of
hardware settings. (Remote setting of the DIP switches via a Node
Commissioning Tool is not supported at this time.) These features are
Node Address, Baud Rate and the DeviceNet bus termination. In
addition, the encoder can be set to a fixed position value (PRESET
function) by actuating a push-button. In order to execute this
function, the large PG plug on the rear of the encoder has to be
removed. Inside, three DIP switches and a micro push-button become
visible.
Figure 3.1Encoder DIP Switches
Preset Position
Button
Baud Rate
Node Address
(MAC-ID)
Bus Termination
3-2Configuring 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
with switch number 6 (= 2
DIP-1DIP-2DIP-3DIP-4DIP-5DIP-6
0
2
0000000
1000001
.....................
11111163
0 = DIP switch is OFF
1 = DIP switch is ON
Setting the baud rate
The 3-pole DIP switch allows for setting the transmission baud rate.
DIP-1DIP-2DIP-3Baud rate
0
) and ending
5
).
1
2
2
2
3
2
4
2
2
Address
5
00X125 kBaud
10X250 kBaud
01X500 kBaud
11X125 kBaud
X = don't care
0 = DIP switch is OFF
1 = DIP switch is ON
Bus termination
The recommended method for connecting DeviceNet products is to
run a “trunk line” with 120-ohm resistors connected at each end.
DeviceNet products are then connected as “drops” along the length of
the trunk line. In this configuration, the internal termination resistor
of the 842D should not be used and the bus termination DIP switches
should be in the OFF position.
When 842D encoders are connected in a “daisy chain” configuration,
the internal termination resistor may be used on the end positions only. In this configuration, only 842D(s) at either end of the network
should have their bus termination 2-pole DIP switches placed in the
ON position. Further details on termination resistors can be found in
publication DN-6.7.2 DeviceNet Cable System Planning and
Installation Manual.
ATTENTION: If you do not use terminating resistors
as described here and in publication DN-6.7.2, the
!
DeviceNet system will not operate properly.
Configuring the DeviceNet Encoder DIP Switches3-3
Figure 3.2Bus Termination Switches
ON
2
1
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. LED functions are as follows:
LEDStatus
OffNot connected, not on line
Green BlinkingActive but not allocated by master
Green SteadyActive and allocated by master
Red BlinkingMinor fault and/or connection interrupt
Red SteadyCritical communication fault
Preset function
The 842D ‘POSITION VALUE’ is set to zero when the PRESET
function is executed (by Reset Position Button or DeviceNet). This
predefined value is stored in the EEPROM. The factory default
PRESET value is zero.
ATTENTION: The PRESET function results in a
change of position reading. This can cause unexpected
!
The PRESET function is not intended for use in dynamic parameter
setting operations but as an electronic adjustment function during
commissioning, in order to allocate a specific value to the mechanical
rotary position of the 842D.
motion which could result in personal injury and damage
to the product or equipment. During PRESET, steps
should be taken to ensure the shaft is stationary and will
remain so.
If the PRESET value is set by DeviceNet, the value must be within
the total working range currently configured (steps per revolution and
number of revolutions).
The Reset Position Button should only be operated when the encoder
is powered and the green LED is blinking or steady.
3-4Configuring the DeviceNet Encoder DIP Switches
Notes:
Chapter 4
Configuring the Encoder Using
RSNetWorx for DeviceNet
Chapter ObjectivesChapter 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.
•Going online.
•Installing the Electronic Data Sheet (EDS) file.
•Online and offline configuration of the 842D encoder.
•Accessing, editing and saving encoder parameters.
What is RSNetWorx for
DeviceNet?
Required Equipment and
Software
RSNetWorx for DeviceNet is a Rockwell Software application that
can be used to set up DeviceNet networks and configure connected
devices. RSNetWorx for DeviceNet (version 3.00.00) and RSLinx
(version 2.20.02) were used for examples in the manual. Different
versions may differ in appearance and procedures.
RSNetWorx supports online and offline commissioning of a
DeviceNet system.
During offline commissioning, the bus network is configured and
parameters for the bus participants are set without an established
connection to the bus network. Thereafter the bus connection is made
and the user data are transferred to the master as well as to the bus
participants.
In the online commissioning the bus structure and the parameters of
the participants are configured using an established bus connection.
After installing or mounting the encoder, you can use RSNetWorx for
DeviceNet to configure or edit the encoder’s parameters.
Before configuring the encoder and editing its parameters, your PC
must be:
•Running RSNetWorx for DeviceNet. Refer to
http://www.software.rockwell.com for more information on this
product.
•Connected to and communicating with the DeviceNet network
using a DeviceNet interface such as a 1784-PCD card or a
1770-KFD adapter.
4-2Configuring the Encoder Using RSNetWorx for DeviceNet
Going OnlineTo 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. A device may appear as an
unrecognized device if RSNetWorx for DeviceNet does not have an
EDS file for it.
1. Start RSLinx, and select Communications > Configure Drivers
to display the Configure Drivers dialog box.
Figure 4.1Configure Drivers Dialog Box
2. In the Available Driver Types box, select DeviceNet Drivers,
and then click Add New. The DeviceNet Driver Selection dialog
box appears.
Figure 4.2DeviceNet Driver Selection Dialog Box
3. In the Available DeviceNet Drivers list, select the adapter
connected to your computer, and then click Select. A Driver
Configuration dialog box appears.
4. Configure the driver for your computer and network settings, and
then click OK. The Configure Drivers dialog box reports the
progress of the configuration. The Add New RSLinx Driver
dialog box appears.
Figure 4.3Add New RSLinx Driver Dialog Box
Configuring the Encoder Using RSNetWorx for DeviceNet4-3
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.4Configure Drivers Dialog Box with a DeviceNet
Driver
6. Click Close to close the dialog box. Leave RSLinx running.
7. Start RSNetWorx for DeviceNet, and then select Network >
Online. If the Browse for Network dialog box appears, RSLinx
has drivers for multiple networks. Select your DeviceNet
network, and click OK. A message appears.
8. Click OK to go online. The devices in the network appear in the
Configuration view.
Figure 4.6Online in RSNetWorx for DeviceNet
4-4Configuring the Encoder Using RSNetWorx for DeviceNet
Installation of the EDS FileThe Electronic Data Sheet, or EDS file, must be installed with
RSNetWorx. The EDS file may be downloaded from our website at
http//www.ab.com/networks/eds/
by RA Miscellaneous and then press the Search button. By selecting
the 842D encoder, you can begin downloading the 842D EDS file.
1. Go to Tools - EDS Wizard and click Next to start the process.
Figure 4.7EDS Wizard
. Simply select DeviceNet followed
Offline Integration into the
Network
2. Follow the prompts to install the 842D EDS file.
3. Click Finish to complete the process.
After a new project is started select the 842D encoder under the
Rockwell Automation Miscellaneous category in the hardware
window. Double-click or drag and drop the 842D Multiturn Encoder
into the network view.
Figure 4.8RSNetworx Graph View
Configuring the Encoder Using RSNetWorx for DeviceNet4-5
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.
Figure 4.9General Tab in the Edit Dialog Box
Accessing and Editing
Parameters
In order to modify the parameter values of the encoder on DeviceNet,
RSNetWorx offers two configuration modes:
•Class Instance Editor
•Enhanced Device Configuration
The Enhanced Device Configuration is a more comfortable way to
read and modify encoder parameters. This mode can be used online
and offline (file access only). In the Enhanced Device Configuration
mode the parameters can be stored to a file (*.dnt) for later transfer to
the device.
In order to protect parameter values against loss due to a power
failure they can be stored in the encoder EEPROM with the
"Save" service. The "Reset" service sets all parameters to default
values. The "Restore" service sets all parameters to the values
stored in the EEPROM--see page 4-7.
The Save, Reset, and Restore services can only be executed in the
Class Instance Editor.
4-6Configuring 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.10Device Parameters Page in the Edit Dialog Box
Parameters are displayed in numerical order in the Parameter column.
You can either scroll through the list or select a specific group of
parameters in the Groups box (for example, DeviceNet Module).
Figure 4.11Device Parameters Arranged by Groups
Parameters labeled with a padlock represent encoder status
information and are ‘read-only’. All other data can be modified; in the
Current Value column, double-click a value to edit it.
After all parameters are set they can be stored using the File - Save
command.
Configuring the Encoder Using RSNetWorx for DeviceNet4-7
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. The updated encoder values
are stored in the encoder RAM and are valid immediately. Saving the
new values to the EEPROM is done with a separate command.
Saving Parameter Values to
EEPROM
Restoring Parameters to
EEPROM Values
Saving the parameter values to the EEPROM is performed in the
Class Instance Editor.
To access the Class Instance Editor, select the device in the graph
window and click on Class Instance Editor in the Device menu. Select
the service Save (16
with the ‘Send the attribute ID’ box unchecked.
Finish by clicking on the Execute button.
Figure 4.12Class Instance Editor
In order to set the parameters to the EEPROM values, the service
Restore (15
) of the encoder object is used.
hex
) of Class 2F
hex
(encoder object), Instance 1,
hex
This is done in the Class Instance Editor . Select the service Restore
) of the object 2F
(15
hex
‘Send the attribute ID’ box unchecked. Finish by clicking on the
Execute button..
ATTENTION: The Restore function results in a
change of position reading. This can cause unexpected
!
motion which could result in personal injury and damage
to the product or equipment. During Resore, steps should
be taken to ensure the shaft is stationary and will remain
so.
(encoder object), Instance 1, with the
hex
4-8Configuring the Encoder Using RSNetWorx for DeviceNet
Setting Parameters to
Default Values
In order to reset the parameters to the factory default values, the
service Reset (05
Class Instance Editor. Select the service Reset (05
2F
(encoder object), Instance 1, with the ‘Send the attribute ID’
hex
) of the encoder object is used. This is done in the
hex
) of the object
hex
box unchecked. Finish by clicking on the Execute button.
Chapter5
Configuring a Scanner to
Communicate with the Encoder
Chapter ObjectivesChapter 5 provides instructions for configuring a PLC or SLC scanner
to communicate with the encoder.
Required Equipment and
Software
Operating Modes of the
Encoder
Before configuring the scanner, your PC must be:
•Running RSNetWorx for DeviceNet. Refer to
http://www.software.rockwell.com for more information.
•Connected to and communicating with the DeviceNet network
using a DeviceNet interface such as a 1784-PCD card or a
1770-KFD adapter.
There are two fundamentally different DeviceNet protocols:
•Explicit messaging
•I/O messaging
Explicit messaging
Explicit messaging is used for modifying the device configurations,
reading diagnostic values, program upload / download, etc.
Characteristics of explicit messaging:
•Very flexible
•Less efficient because each device must interpret and generate a
response
•"Unbound" connections ("Hit and Run")
•Contents of the data field:
–Protocol information
–Instructions for service to be performed
–Internal address to which the service is to be applied
I/O messaging
I/O messaging is used for fast or time-critical data transfer. All of the
8 data bytes of the CAN telegram can be used for data transmission.
Characteristics of I/O messaging:
•Less flexible
5-2Configuring 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.
The 842D supports the following I/O operating modes (message
connections):
•Polling
•Change of State (COS) / Cyclic
•Bit Strobed mode
All these modes can be adjusted simultaneously with different
assembly instances. To use a particular Assembly, there are installed 3
special attributes "assembly number" (Input Ass_xx) in the
manufacturer section of the encoder object. These attributes have to
be configured with the number (1...n) of the corresponding assembly
instance, containing the different data components. By default this
number is set to 1 ("Position Value").
Each of the 3 different I/O message connections is assigned its own
attribute.
The table below shows how the different data components are used:
Data ComponentAssembly
Position Value1, 2, 3, 4
Velocity Value3Strobe, Poll50 ms
Flag (Alarm,
Warning)
Cam State4
2
Supported
modes
COS, Strobe,
Poll
COS, Strobe,
Poll
COS, Strobe,
Poll
Update cycle
time
0.3 ms
0.3 ms
0.3 ms
Update cycle time is the time required for the encoder to calculate a
new value for one of the listed data components. For example, the
encoder is able to send new position values in intervals of approx.
0.3ms.
Note: For all the different I/O messages applied, the number of the
configured assembly instance determines the data components to be
sent as an input data.
Configuring a Scanner to Communicate with the Encoder5-3
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.
Because the 842D is an Input Device, output data from the master is
ignored. The Poll Command is used to trigger the transmission of
return input data in the response message.
COS mode / Cyclic mode
In Change of State (COS) mode, the encoder sends input data if the
value of one of the data components changes or at the Heartbeat Rate
(See Figure 5.4, Edit I/O Parameters Dialog Box - COS).
In addition, a Cycle Time is used to trigger the transmission of the
input data. This is done after the internal Cycle Time period has
elapsed, no matter if the value of one of the data components has
changed.
Additionally, a time delay (inhibit time) in the range of 1 msec. to
65,535 msec. can be configured to reduce the bus load.
When getting a trigger only from the "cam state" or "Flag" data
components by using Instance 2 or 4 in a COS connection, you should
set the value of "COS / Hyst." (attr. 11) to "0" (zero) to avoid a trigger
from the data component "position value" (see Appendix B).
In Cyclic mode the encoder only sends input data after the internal
Cycle Time period has elapsed.
Bit Strobed mode
The Bit_Strobe Command sends one bit of output data
to each Slave
whose node address appears in the Master's scan list.
Because the 842D encoder is an Input Device, the output data bit is
ignored. The Bit Strobe Command is only used to trigger a
transmission of return input data in the response message.
5-4Configuring a Scanner to Communicate with the Encoder
Example DeviceNet NetworkThis 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 ListFor 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.
1. Go online with RSNetWorx for DeviceNet. Refer to the “Going
Online” section in Chapter 4.
2. Select Network > Single Browse Path. The devices on the
network are displayed in the configuration view.
Figure 5.1Configuration View (Graph)
3. Right-click the DeviceNet scanner (node 10 in Figure 5.1) and
select Properties. The Scanner Module dialog box appears.
Important: If your scanner is an unrecognized device, you must
create an EDS file for it and then configure it. Click Help or refer to
your scanner documentation if you need more information. Configure
the scanner using the General and Module tabs.
4. Click the Scanlist tab. A message box prompts you to upload.
5. Click Upload. Data is uploaded from the scanner, and then the
Scanlist page appears.
Configuring a Scanner to Communicate with the Encoder5-5
Figure 5.2Scanlist 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.
Figure 5.3Scanlist Page in the Scanner Module Dialog Box
8. Under Scanlist, select the encoder, and then click Edit I/O
Parameters. The Edit I/O Parameters dialog box appears.
5-6Configuring a Scanner to Communicate with the Encoder
Figure 5.4Edit 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. See Assembly Data Format, page B-4, for
data sizes.
11. Set the scan rate:
Data
Exchange
PolledPolled Rate
Change of
State
CyclicSend Rate
Rate to set
Heartbeat
Rate
Click Help for more information.
12. When using COS in high speed and/or high resolution
applications, it may be necessary to limit how often the device
will report to the master in order to lessen network traffic. To do
so requires either setting the hysteresis to over 10% of the
‘RESOLUTION PER REVOLUTION’ value or increasing the
‘Inhibit Time’. To increase the inhibit time to 10ms, click on the
Advanced... button under ‘Change of State/Cyclic.’ Adjust the
Inhibit Time and click OK.
Configuring a Scanner to Communicate with the Encoder5-7
Figure 5.5Inhibit 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 Ye s to continue. The Edit I/O Parameters dialog
box closes and then the Scanner Module dialog box (Figure 5.3)
reappears. You will map the I/O in the next section in this chapter.
Mapping the Product’s Data in
the Scanner
Data from I/O messages must be mapped in the scanner. This
mapping determines where a ladder logic program can find data
transmitted on the network.
Mapping the Input I/O
In the Scanner Module dialog box, click the Input tab. (If you need to
display this dialog box, right-click the scanner in the configuration
view. See Figure 5.1.). Below, the input pages for Change of State,
Polled and Strobed are shown.
Figure 5.6Scanner Module Dialog Box, Input Page - COS
5-8Configuring a Scanner to Communicate with the Encoder
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. If I/O is not mapped,
click AutoMap to map it. If you need to change the mapping,
click Advanced and change the settings. Click Help for
assistance.
Saving the ConfigurationAfter configuring a scanner, you must download it to the scanner. You
should also save it to a file on your computer.
1. In the Scanner Module dialog box, click Apply to save the
configuration to the scanner. A Scanner Configuration Applet
appears and asks if it is OK to download the changes.
2. Click Ye s to download the changes. The changes are downloaded
and then the Scanner Module dialog box reappears.
3. Click OK to close the Scanner Module dialog box.
4. Select File > Save. If this is the first time that you saved the
project, the Save As dialog box appears. Navigate to a folder, type
a file name, and click Save to save the configuration to a file.
Chapter 6
Using DeviceNet Explicit
Messaging
Chapter ObjectivesChapter 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.
•An Explicit Messaging example.
Refer to Appendix B, DeviceNet Objects, for information on object
data support.
Required EquipmentBefore using messaging, your PC must be:
•Running RSLogix500 and RSLinx if you are using an SLC. Refer
to http://www.software.rockwell.com for more information on
these products.
Explicit Messaging
Examples
•Running RSLogix5000 and RSLinx for Logix platforms. Refer to
http://www.software.rockwell.com for more information on these
products.
•Connected to and communicating with the controller.
ATTENTION: The PRESET function results in a
change of position reading. This can cause unexpected
!
Explicit Messaging Preset Example for the 1747-SDN
Scanner
The SLC copies an Explicit Message into the scanner’s M0-file.
When the copy is completed the scanner moves the message into a
queue for processing. Up to 10 Explicit Messages can be in this
queue.
When the scanner receives a response message it is placed into a
queue. The first response in the queue is available from the M1-file.
When the message delete command is copied into the scanner the
message is complete and the next available response will appear in
the M1-file.
motion which could result in personal injury and damage
to the product or equipment. During PRESET, steps
should be taken to ensure the shaft is stationary and will
remain so.
6-2Using 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. The N20 user defined integer file is
used to hold message data:
Figure 6.11747SDN Explicit Messaging Example
Using DeviceNet Explicit Messaging6-3
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)
Offset01234567
N20:000 04-------
N20:1002 0100 0A10 MacID002F0001000A00 0000 00
...--------
N20:5002 0100 0090 MacID--
---------
Table 2: Preset (set service) Example to position 01 35 D0 B2h (20304050 decimal)
Offset01234567
N20:000 04-------
N20:1002 0100 0A10 MacID002F0001000AD0 B201 35
...--------
N20:5002 0100 0090 MacID--
---------
Data Description
The table below defines the data types and is followed by their
definitions.
Table 3: Data Type (see definitions on next page)
Offset01234567
N20:0Delete
Block Cmd
N20:10TX ID,
Command
...--------
N20:50RX ID,
Status
-------
Port, SizeService
Req,
MacID
Port, SizeService
Rsp,
MacID
ClassInstanceAttributePreset
ValueLS W
--
Preset
ValueMSW
---------
6-4Using DeviceNet Explicit Messaging
TXID:
This is a one-byte integer the range of 1 to 255. The scanner
uses this value to track the transaction to completion, and
returns the value with the response that matches the
request.
STATUS:
For each upload, the status code provides the processor
with status on the device and its response:
0 = Ignore transaction block (block empty)
1 = Transaction completed successfully
2 = Transaction in progress (not ready)
3 = Error — Slave not in scan list
4 = Error — Slave off-line
5 = Error — DeviceNet port disabled or off-line
6 = Error — Transaction TXID unknown
8 = Error — Invalid command code
9 = Error — Scanner out of buffers
10 = Error — Other client/server transaction in progress
11 = Error — Could not connect to slave device
12 = Error — Response data too large for block
13 = Error — Invalid port
14 = Error — Invalid size specified
15 = Error — Connection busy
COMMAND:
A code that instructs the scanner how to administer the
request:
1 = Execute this transaction block
4 = Delete this transaction block
PORT:
The port must be zero (Channel A) on a 1747-SDN scanner.
SERVICE REQ/RSP:
The DeviceNet service request and response:
10 = Set Service Request
0 = Set Service Response
MAC ID:
The DeviceNet network address of device where the
transaction is sent. This value can range from 0 to 63. The
slave device must be listed in the scanner module's scan list
and be on-line for the Explicit Message transaction to be
completed.
See appendix B of the encoder manual for class/attribute
values, access rules, and data types.
CLASS:
002Fh is the encoder class
INSTANCE:
There is only one instance of the encoder - 0001h
ATTRIBUTE:
The value 000Ah is the Preset Value attribute.
PRESET VALUEMSW / VALUELSW:
This quadword value (limited to 03 FF FF FF) is stored in
non-volatile memory when the set service is used. Storing
the preset value applies the preset value to the encoder
position value.
SIZE:
The size of the transaction body in bytes. The transaction
body can be up to 29 words (58 bytes) in length. If the size
exceeds 29 words, an error code will be returned.
Using DeviceNet Explicit Messaging6-5
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:
•MSGY is a Message type tag
•Lsource is a UDINT type tag the value is preset to
•Ldest is a UDINT type tag that should always return with 0.
Figure 6.2Position Value Preset
MSGY needs the service code (set) 10, the class code (encoder) 2F,
and the instance 01 (only instance) for the attribute 0A (Preset). The
preset data will be sent from the tag ‘Lsource.’ Since the ‘Preset’
attribute is a long integer (UDINT), the ‘Num. Of Elements’ is 4
bytes.
Other attributes maybe read (service code 0E) or set ( service code
10) in a similar way. Any response data would return in Ldest.
6-6Using DeviceNet Explicit Messaging
Figure 6.3Message 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. The decimal value of the node address may
be used if a variable is not desired.
Figure 6.4Message Configuration - Communication Tab:
coupling the encoder shaft
to the machine shaft will
!
cause a failure in either the
bearings of the encoder or
the bear ings of the machine
shaft.
Flexible Shaft Couplings
Angle
Diagnostic
LEDs
Parallel
Off-Set
∅59.5
(2.34)
∅53.8
(2.12)
9.98/9.99
(0.392/0.393)
8.8/9.2
(0.34/0.37)
35.94/35.98
(1.415/1.416)
7 (0.28) deep)
M4 3 Plcs
18/20
(0.71/0.79)
18
(0.71)
10
(0.39)
6
(0.24)
27.8
(1.09)
120˚
3
(0.12)
105.8
(4.16)
35˚
X
15.5
(0.61)
76
(2.99)
13
(0.51)
Screw Cover for
DIP Switches and
Reset Button
Single QD
Double QD
65
(2.56)
65
(2.56)
Diagnostic
LEDs
Single QD
M4 3 Plcs
7 (0.28) deep)
Double QD
120˚
35˚
∅48 ±0.1
(1.89)
∅48 ±0.1
(1.89)
Appendix B
DeviceNet Objects
Appendix ObjectivesAppendix 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 ClassesThe 842D DeviceNet encoder supports the following object classes:
ClassObjectPage
Class Code 01
Object
— Identity
hex
01
02
03
04
05
2F
hex
hex
hex
hex
hex
hex
Identity
Message Router
DeviceNet
Assembly
Connection
Encoder
B-1
B-2
B-2
B-3
B-5
B-7
The identity object provides identification and general information
about the device.
Class Attributes
Not supported.
Instance Attributes
Attr.
ID
1Vendor IDGetUINTAllen Bradley = 1
2Device TypeGetUINTRockwell Misc., 115
AttributeAccessData typeDescription
3Product CodeGetUINT10626
4RevisionGetUINT4.001
5StatusGetWORD
6Serial NumberGetUDINT
7Product NameGetShort String
842D MULTITURN
ENCODER
Services
Service CodeService NameDescription
0E
05
hex
hex
Get_Attribute_SingleReturns the attribute value
ResetValue = 0
B-2DeviceNet Objects
Class Code 02
hex
Message Router
Class Code 03
hex
DeviceNet
—
—
The Message Router Object provides a messaging connection point
through which a client may address to any object class or instance
residing in the physical devices.
Class and Instance Attributes
Not supported.
Services
Not supported.
The DeviceNet Object is used to provide the configuration and status
of a physical attachment to DeviceNet. A product must suppot one
(and only one) DeviceNet Object per physical network attachment.
Class Attributes
Attr.
ID
1RevisionGetUINTRevision = 002
AttributeAccessData TypeDescription
Instance Attributes
Attr.
ID
1Node addressGetUSINTRange 0-63
2Baud RateGetUSINTRange 0-2
3BOIGetBOOLValue=1
4Bus-OFF-Ctr.Get/SetUSINT
5
AttributeAccessData TypeDescription
Allocation
Information
Get
Struct. of:
BYTE
USINT
Allocation choice byte
master’s Node Address
Services
Service
Code
0E
hex
10
hex
4B
hex
Service NameDescription
Get_Attribute_SingleReturns the attribute value
Set_Attribute_SingleChanges the attribute value
Allocte_Master/
Slave_Connection_Set
Predefined master/slave
connection set is requested
DeviceNet ObjectsB-3
Class Code 04
Assembly
hex
—
The Assembly Object combines attributes from different objects into
a single object. For a detailed view of the assembly data format, see
page B-4.
Class Attributes
Attr.
ID
1RevisionGetUINTRevision = 002
AttributeAccessData TypeDescription
Instance Attributes
Instance IDAttr
ID
13DataGetARRAYPosition value
23DataGetARRAY
33DataGetARRAYPosition + Velocity
43DataGetARRAYPosition + CAM
AttributeAccess
Data
Ty pe
Description
Position+Warning
Flag+Alarm Flag
Services
Service codeService nameDescription
0E
hex
Get_Attribute_SingleReturns the value of an attribute
The Connection Class allocates and manages the internal resources
associated with both I/O and Explicit Messaging Connections. The
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. Unless otherwise
noted, all services/attributes noted in the following sections are
accessible using Explicit Messaging.
A Connection Object within a particular module actually represents
one of the end-points of a Connection. It is possible for one of the
Connection end-points to be configured and “active” (e.g.,
transmitting) without the other end-point(s) being present.
Connection Objects are used to model the communication specific
characteristics of a particular Application-to-Application(s)
relationship. A specific Connection Object Instance manages the
communication-specific aspects related to an end-point.
A Connection Object on DeviceNet uses the services provided by a
Link Producer and/or Link Consumer to perform low-level data
transmission and reception functions.
Class Attributes
Not supported
Instance Attributes
Attr.
ID
1
2Instance_TypeGetUSINTIndicates I/O or Messaging connection
3transpor tclass_tri
4Produced Cnxn
5Consumed Cnxn
6
7Produced Cnxn
AttributeAccessData typeDescription
State
gger
ID
ID
Initial Comm Char
Size
GetUSINTState of the connection as defined in the
DeviceNet specification
GetBYTE
GetUINT
GetUINT
GetBYTEDefines the DeviceNet message groups that the tx/
GetUINT
The Transport Class Trigger for this instance
CAN Identifier to transmit on
CAN Identifier to receive on
rx Cnxn’s apply
Max bytes to transmit across this connection
8Consumed Cnxn
Size
9EPRGet/SetUINTExpected Packet Rate
12Watchdog ActionGetUSINTHow to handle inactivity/watchdog timeouts
GetUINT
Max bytes to receive across this connection
B-6DeviceNet Objects
Attr.
ID
AttributeAccessData typeDescription
13Produced Cnxn
Path Length
14Produced Cnxn
Path
15Consumed Cnxn
Path Length
16Consumed Cnxn
Path
Production inhibit
17
time
GetUINTNumber of bytes in the produced connection path
attribute
GetARRAY of
UINT
Path information of the desired assembly instance
(Def. 1)
GetUINTNumber of bytes in the consumed connection path
attribute
GetARRAY of
UINT
Get/Set
UINT
Specifies the application object to receive the data
consumed by this application
Defines minimum time between new data
production for COS connections
Services
Service CodeService NameDescription
0E
10
05
hex
hex
hex
Get_Attribute_SingleReturns the value of an attribute
Set_Attribute_SingleChanges the value of an attribute
ResetReset
16
hex
SaveSave
DeviceNet ObjectsB-7
Class Code 2F
— EncoderThe Encoder Object contains all encoder data. All input data,
hex
parameter data and status data are included here.
Class Attributes
Attr.
ID
1RevisionGetUSINTRevision = 01
2Max. InstanceGetUSINT1
AttributeAccessData TypeDescription
Instance Attributes
Attr. IDAttributeAccessData typeDescription
1
2AttributesGet
3
5
Number of
attributes
Code
Sequence
Scaling
function control
GetUSINTNumber of supported attributes
ARRAY
of USINT
Get/SetBOOL
Get/SetBOOL
List of supported attributes
Direction control for counting. Defines the increasing 'POSITION
VALUE' as clockwise shaft rotation or counter clockwise as seen
facing the shaft (CW, CCW).
Scaling Enable --Enabling scaling changes the 'POSITION
VALUE' I/O data resolution to 'MEASURING UNITS PER
REVOLUTION' and 'TOTAL MEASURING RANGE'
measuring
7
8
10Preset valueGet/SetUDINTThis value will be applied to the 'POSITION VALUE'.
11COS/deltaGet/SetUDINT
12Position valueGetUDINT
20Velocity formatGet/SetBYTE
units per
revolution
To t a l
measuring
range in
measuring
units
Get/SetUDINT
Get/SetUDINT
Number of distinguishable steps per revolution. Less than
physical resolution.
The steps over total measuring range. The number is
automatically adjusted to a 2^0 - 2^13 multiple of 'RESOLUTION
PER REVOLUTION'.Example: if 'RESOLUTION PER
REVOLUTION' is set to 3600 then the possible 'TOTAL
MEASURING RANGE' values will be 3600, 7200, 14400, 28800,
... 29491200.
A COS I/O message will be generated when the 'POSITION
VALUE' changes by this value. This value will be set to 5 if set to a
value larger than the 'TOTAL MEASURING RANGE'. Setting this
value to 0 disables COS messaging for 'POSITION VALUE'
changes. To lessen network traffic for high speed (4000 RPM+)
and/or high resolution (1024+ ppr) applications either: increase
the hysteresis to over 10% of the 'RESOLUTION PER
REVOLUTION' value, increase the 'Inhibit Time' ('Scanlist', 'Edit I/
O Parameters...', 'Advanced...') to 10 msec.
The current position value. This value is affected by 'PRESET
VALUE', 'RESOLUTION PER REVOLUTION', and 'SCALING
CONTROL'.
This sets the format for velocity and acceleration values. The max
and min limits for velocity and acceleration are affected as well.
–0 = Steps per second
–1 = RPM
–2 = RPS
B-8DeviceNet Objects
Attr. IDAttributeAccessData typeDescription
22Velocity valueGetDINT
23
24
31
32
33
40
Minimum
velocity
Maximum
velocity
Acceleration
value
Minimum
acceleration
Maximum
acceleration
CAM state
register
Get/SetDINT
Get/SetDINT
GetDINT
Get/SetDINT
Get/SetDINT
GetBYTE
This is the value of the current velocity according to unit type in
'VELOCITY FORMAT'
Value of minimum velocity limit according to unit type of
'VELOCITY FORMAT'. A 'VELOCITY VALUE' under this limit will
cause a 'Min. Velocity Underrun' warning and set the warning flag.
Value of maximum velocity limit according to unit type of
'VELOCITY FORMAT'. A 'VELOCITY VALUE' over this limit will
cause a 'Max. Velocity Exceeded' warning and set the warning
flag.
Value of the current acceleration according to unit type of
'VELOCITY FORMAT'.
Value of minimum acceleration limit according to unit type of
'VELOCITY FORMAT'. An 'ACCELERATION VALUE' under this
limit will cause a 'Min. Accel. Underrun' warning and set the
warning flag.
Value of maximum acceleration limit according to unit type of
'VELOCITY FORMAT'. An 'ACCELERATION VALUE' over this
limit will cause a 'Max. Accel. Exceeded' warning and set the
warning flag.
State of all 8 cams. See “Designation of Cam Bits‘, page B-10:
–Bit 0=Cam_NO_1 State...
–Bit 7=Cam_NO_8 State
41
42
43, 46, 49,
52, 55, 58,
61, 64
44,47,50,
53, 56, 59,
62, 65
45,48,51,
54, 57, 60,
63, 66
80
81
CAM polarity
register
CAM enable
register
CAM X low limit
(0 ≤ X < 8)
CAM X high
limit (0 ≤ X < 8)
CAM X
hysteresis
(0 ≤ X < 8)
Operating
status
Single-turn
resolution
Get/SetBYTE
Get/SetBYTE
Get/SetUDINT
Get/SetUDINT
Get/SetUINT
GetUSINT
GetUDINT
Polarity for the state of 8 independent CAMs (1-8), See
“Designation of Cam Bits‘, page B-10:
–1 cam state will be active outside of the cam limits
–0 cam state will be active inside of the cam limits
Enable / Disable 8 independent CAMs (1-8). See “Designation of Cam Bits‘, page B-10:
–1 cam state will be affected by position
–0 cam state will always be 0
This is the Switch point for this cam's lower limit. The value must
be less than the 'CAM HYSTERESIS' for this cam and less than
the 'TOTAL MEASURING RANGE'
This is the Switch point for this cam's upper limit. The value must
be less than the 'TOTAL MEASURING RANGE'.
This value will be added to the 'CAM (1) HIGH LIMIT' and
subtracted from the 'CAM (1) LOW LIMIT' when calculating the
cam state. This value must be less than 'CAM (1) LOW LIMIT'.
The 'Direction: CCW' and 'Scaling: On' indicators show enabled
modes for 'CODE SEQUENCE' and 'SCALING CONTROL'.
This is the physical number of steps per revolution. This is the
maximum number for 'RESOLUTION PER REVOLUTION'.
82
Number of
distinguishable
revolutions
GetUINT
This is the number of revolutions the encoder will rotate before the
'POSITION VALUE' rolls over to 0. Must be a multiple of 2
0
between 2
and 213.
DeviceNet ObjectsB-9
Attr. IDAttributeAccessData typeDescription
Malfunction could lead to incorrect position value. See
83AlarmsGetWORD
85Alarm flagGetBOOL
86WarningsGetWORD
88Warning flagGetBOOL
“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. This value will be
reported if 'INPUT ASSY.' is set to 'Position + Flags' as bit 0 of the
5th byte.
Internal parameters exceeded. See “Designation of Warning Bits‘,
page B-10.
Any warning will set the 'WARNING FLAG'. The 'Frequency
Exceeded' warning is caused by rotating faster then 6000 RPM.
The Velocity min/max flag is caused by a 'VELOCITY VALUE'
under or over the velocity limits. The Acceleration min/max flag is
a 'ACCELERATION VALUE' under or over the acceleration limits.
The 'Cam Limits Out of Order' flag is caused by a set of cam limits
where the hysteresis value is larger then the cam lower limit, or
the higher or lower limit that is greater than the 'TOTAL
MEASURING RANGE'.
Indicates if any of the 'WARNINGS' are active. This value will be
reported if the 'INPUT ASSY’ is set to 'Position + Flags' as bit 1 of
the 5th byte."
90Operating timeGetUDINTStores operating time for the encoder in operating hours.
91Offset valueGetDINT
Assembly
111
112
113
Number -
Polling Mode
Assembly
Number - COS/
Cyclic Mode
Assembly
Number - Bit
Strobed Mode
GetUSINT
GetUSINT
GetUSINT
The offset value is calculated by the preset function. Shift position
value by the calculated value.
The type of input data that is sent for the Polling I/O connections.
–Position = 4 bytes
–Position + Cam State = 5 bytes
–Position + Flags = 5 bytes
–Position + Velocity = 8 bytes
–Update time: Velocity 50 mS, other modes 0.3 mS
The type of input data that is sent for the Change of State I/O
connections.
–Position = 4 bytes
–Position + Cam State = 5 bytes
–Position + Flags = 5 bytes
–Update time: 0.3 mS
–Velocity not supported.
The type of input data that is sent for the Strobed I/O connections.
–Position = 4 bytes
–Position + Cam State = 5 bytes
–Position + Flags = 5 bytes
–Position + Velocity = 8 bytes
–Update time: Velocity 50 mS, other modes 0.3 mS.
B-10DeviceNet Objects
Designation of Alarm Bits
(see Attribute 83)
BitDescription
0Position error: 0=NO, 1=YES
1Diagnostic: 0=Diagnostic OK, 1=Diagnostic error
2...11Reserved
12...15Manufacturer specific (not used)
Designation of Warning Bits
(see Attribute 86)
BitDescription
0Frequency exceeded: 0=NO, 1=YES
1Light control reserve: 0=Not reached, 1=Error
2CPU watchdog: 0=OK, 1=Reset
3Operating time limit warning: 0=NO, 1=YES
4Reserved
5Reference point: 0=Reached, 1=Not reached
6Minimum Velocity Flag: 0=OK, 1=Under
7Maximum Velocity Flag: 0=OK, 1=Over
Designation of Cam Bits
(See Attributes 40, 41, 42)
BitDescription
0Cam 1 state
1Cam 2 state
2Cam 3 state
3Cam 4 state
4Cam 5 state
5Cam 6 state
6Cam 7 state
7Cam 8 state
Index
Numerics
842D
configuring to communicate with a
scanner 5-1
default settings 3-1
function 1-1
installation 2-1
setting up 1-2
specifications A-1
1747-SDN Scanner 6-1
1756-DNB/A 5-4
A
Accessing and Editing Parameters 4-5
Alarm Bits B-10
Assembly B-3
Audience for this manual P-1
Automap on Add 5-5
B
Baud rate 3-2
Bit Strobe 5-3
Bus termination 3-2
Bus Termination Switches 3-3
Connection B-5
Conventions Used in this Manual P-5
COS 5-2
Cyclic 5-2
D
Daisy chain connections 2-1
Data exchange 5-6
Default Values 4-7
Designation of Alarm Bits B-10
Designation of Cam Bits B-10
DeviceNet B-2
Read-only 4-6
Read parameters 4-5
Recommended cables. 2-1
Related Publications P-2
Remote setting of the DIP switches 3-3
Request and Response messages 6-1
Reset service 4-5
Restore service 4-5
Rockwell Automation Support P-5
RSNetworx 4-4
RSNetWorx for DeviceNet 4-1
creating an EDS file 4-4
editing parameters with 4-5
going online 4-2
setting up a scan list with 5-4
using to map I/O 5-7
web site 5-1
Rx Size 5-6
S
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
SLC
explicit messaging example 6-4
Specifications A-1
STATUS 6-3
IndexI–3
T
Technical support P-5
Termination resistor 3-2
Terms and Abbreviations P-3
Terms and abbreviations P-3
Time delay 5-3
Transaction body 6-2
Transaction header 6-2
Transaction ID 6-3
Transmission baud rate 3-2
Trunk cable 2-1
Tx Size 5-6
TXID 6-3
U
Update cycle time 5-2
Upload 5-4
W
Warning Bits B-10
I–4Index
Notes:
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.
Windows and Microsoft are either registered trademarks or trademarks of Microsoft Cor poration.