Copley Absolute Encoder Guide
Copley Absolute Encoder Guide
P/N 16-01055
Revision 00
September 2012
This page for notes
TABLE OF CONTENTS
Copley Controls 3
4 Copley Controls
ABOUT THIS MANUAL
1.1.1: Overview and Scope
This book describes the use and configuration of encoders on Copley Controls’ Plus drives.
1.1.2: Related Documentation
CME 2 User Guide
ASCII Programmers Guide
Copley Amplifier Parameter Dictionary
Copley Motion Objects Programmer’s Guide
Links to these publications can be found under Software Documents and Communications
Protocols at: http://www.copleycontrols.com/Motion/Downloads/index.html.
Also of interest:
CANopen Programmer’s Manual
CML Reference Manual
Copley Programming Language (CPL) User Guide
1.1.3: Comments
Copley Controls welcomes your comments on this manual. See http://www.copleycontrols.com for
contact information.
1.1.4: Copyrights
No part of this document may be reproduced in any form or by any means, electronic or
mechanical, including photocopying, without express written permission of Copley Controls.
Xenus, Accelnet, and Stepnet are registered trademarks of Copley Controls.
CME 2 is a registered trademark of Copley Controls.
Windows XP and Windows 7 are trademarks or registered trademarks of the Microsoft
Corporation.
1.1.5: Document Validity
We reserve the right to modify our products. The information in this document is subject to change
without notice and does not represent a commitment by Copley Controls. Copley Controls
assumes no responsibility for any errors that may appear in this document.
Copley Controls 5
About this Manual Copley Controls Encoder Guide
Hazardous voltages.
After the cause of a non-latched fault is corrected, the drive re-enables the PWM
output stage without operator intervention. In this case, motion may re-start
unexpectedly. Configure faults as latched unless a specific situation calls for non-
latched behavior. When using non-latched faults, be sure to safeguard against
unexpected motion.
Latching an output does not eliminate the risk of unexpected motion with non-
latched faults.
Associating a fault with a latched, custom-configured output does not latch the fault
itself. After the cause of a non-latched fault is corrected, the drive re-enables without
operator intervention. In this case, motion may re-start unexpectedly.
For more information, see the CME 2 User Guide.
When operating the drive as a CAN or DeviceNet node, the use of CME 2 or ASCII
serial commands may affect operations in progress. Using such commands to initiate
motion may cause network operations to suspend.
Operation may restart unexpectedly when the commanded motion is stopped.
Operate drives within the specifications provided in the relevant hardware manual or
data sheet.
FAILURE TO HEED THESE WARNINGS CAN CAUSE EQUIPMENT DAMAGE,
INJURY, OR DEATH.
6 Copley Controls
Copley Controls Encoder Guide About this Manual
Revision History
Revision Date ECO # Comments
00 September 2012 46231 Initial publication
.
Copley Controls 7
About this Manual Copley Controls Encoder Guide
8 Copley Controls
CHAPTER
1: INTRODUCTION
Absolute encoders provide position data without referencing to a mechanical home. For every
position a unique binary word is generated.
In single-turn absolute encoders, words are repeated for every revolution of the encoder’s shaft. In
multi-turn absolute encoders, words are unique for every position, through multiple rotations of the
shaft.
For both single and multi-turn encoders, the resolution of a single-turn, and the number of turns,
are programmable. The total number of bits is limited to 32.
The encoder selection and configuration examples in this guide use Copley Controls’ CME 2
commissioning software. For more detailed information see data sheets for encoders and Copley
drives.
Copley Controls 9
Introduction Copley Controls Encoder Guide
10 Copley Controls
CHAPTER
2: ABSOLUTE ENCODERS
This chapter describes the configuration of absolute encoders using Copley’s CME 2
commissioning software. Note that configuration steps may be continued on subsequent pages.
Copley Controls 11
Absolute Encoders Copley Controls Encoder Guide
12 Copley Controls
Copley Controls Encoder Guide Absolute Encoders
On the Feedback Options screen, set Motor Feedback to Absolute A, for example.
Copley Controls 13
Absolute Encoders Copley Controls Encoder Guide
2 From the Multi-mode Port drop down, select Emulated Motor Feedback.
14 Copley Controls
Copley Controls Encoder Guide Absolute Encoders
Copley Controls 15
Absolute Encoders Copley Controls Encoder Guide
Field Description
lines The number of encoder lines. Quadrature counts/rev will be 4 times the number of
lines.
Enable Encoder Loss An encoder fault will occur when a differential encoder signal, A /A or B /B, is lost.
Detection
Enable Index Loss An encoder fault will occur when a differential index signal, X /X, is lost.
Detection
Encoder Resolution The number of rotary counts/rev or linear distance/count.
Bits The number of bits used for calculating position. Sign extended to 32 bits.
BiSS B Mode choice at each start cycle.
BiSS C Continuous mode.
Motor counts The position from motor feedback.
Position counts The position from load feedback.
16 Copley Controls
Copley Controls Encoder Guide Absolute Encoders
Copley Controls 17
Absolute Encoders Copley Controls Encoder Guide
18 Copley Controls
Copley Controls Encoder Guide Absolute Encoders
Copley Controls 19
Absolute Encoders Copley Controls Encoder Guide
20 Copley Controls
Copley Controls Encoder Guide Absolute Encoders
Copley Controls 21
Absolute Encoders Copley Controls Encoder Guide
22 Copley Controls
Copley Controls Encoder Guide Absolute Encoders
Copley Controls 23
Absolute Encoders Copley Controls Encoder Guide
24 Copley Controls
Copley Controls Encoder Guide Absolute Encoders
2 Open the Motor/Feedback screen’s Feedback tab. Note that Enable Incremental 1Vpp
sin/cos has been checked.
Field Description
Bits Resolution of the encoder output.
Number of Revolutions The number of turns on a multi-turn encoder.
Enable Incremental Required for EnDat 2.1 to close the position loop. Lines interpolated.
1Vpp sin/cos
Line Count Fundamental lines that are photo etched on an encoder disk for quadrature count
and interpolation.
Interpolation The number of counts/post quadrature fundamental lines.
Zero Encoder Automatically zeros the encoder.
Copley Controls 25
Absolute Encoders Copley Controls Encoder Guide
26 Copley Controls
Copley Controls Encoder Guide Absolute Encoders
Copley Controls 27
Absolute Encoders Copley Controls Encoder Guide
Field Description
Bits Resolution of the encoder output.
Number of Revolutions The number of turns on a multi-turn encoder.
Number of Counts Per Bits (which contain no useful information) to ignore, after the position data has
Rev Bits to Ignore been sent.
Bit Rate Used for communication. 2.5MB/s or 4 MB/s
28 Copley Controls
Copley Controls Encoder Guide Absolute Encoders
Copley Controls 29
Absolute Encoders Copley Controls Encoder Guide
On the Feedback Options screen, set Motor Encoder to Incremental A Format, for
example.
30 Copley Controls
Copley Controls Encoder Guide Absolute Encoders
Field Description
Bits Resolution of the encoder output.
Counts per rev The number of counts/rev post quadrature.
Ignore Battery Error Ignores battery error status from the encoder.
Copley Controls 31
Absolute Encoders Copley Controls Encoder Guide
32 Copley Controls
Copley Controls Encoder Guide Absolute Encoders
Copley Controls 33
Absolute Encoders Copley Controls Encoder Guide
Field Description
Bits Resolution of the encoder output.
Number of Revolutions The number of turns on a multi-turn encoder.
Number of alignment Bits (which contain no useful information), that may be ignored, after position data
Bits has been sent.
BiSS B Mode choice at each start cycle.
BiSS C Continuous mode.
34 Copley Controls
Copley Controls Encoder Guide Absolute Encoders
3 On the Feedback screen click the Advanced button to open the BiSS Advanced Settings
window.
Field Description
Ignore Multi-turn Data Use only single turn data.
Active Low Errors Active low option. Active high is the default.
Status Before Position Status before position data option. Position data before status is the default.
Data
Error Before Warning Error before warning option. Warning before error is the default.
Data
Baud Rate A baud rate option of 2.5 MHz . 4 MHz is the default.
Copley Controls 35
Absolute Encoders Copley Controls Encoder Guide
36 Copley Controls
CHAPTER
3: ENCODER MANAGEMENT
This chapter discusses the management of encoder errors, ASCII programming using CME 2,
clearing faults, and absolute position.
CME 2 uses ASCII variables to read status information and to configure absolute encoders. The
mapping of bits to function depends on the encoder type. For details pertaining to specific encoder
types see Encoder Status Words, p. 40 and Encoder Option Words, p. 42.
For a full list of parameters see the Copley Amplifier Parameter Dictionary. For detailed ASCII
programming see the Copley ASCII Interface Programmer’s Guide. Both guides can be found at:
http://www.copleycontrols.com/Motion/Downloads/protocols.html.
Copley Controls 37
Encoder Management Copley Controls Encoder Guide
To open the Control Panel, click on the icon from the Toolbar, or, from the Main Menu choose
AmplifierControl Panel.
38 Copley Controls
Copley Controls Encoder Guide Encoder Management
To open the Error Log, click on the icon from the Toolbar, or, from the Main Menu, choose
AmplifierError Log.
Troubleshooting Table
The table below shows examples of errors described in the Error Log window and their likely
solutions.
After faults have been managed, clear them using the Control Panel Clear Faults button.
Copley Controls 39
Encoder Management Copley Controls Encoder Guide
40 Copley Controls
Copley Controls Encoder Guide Encoder Management
Copley Controls 41
Encoder Management Copley Controls Encoder Guide
42 Copley Controls
Copley Controls Encoder Guide Encoder Management
Copley Controls 43
Encoder Management Copley Controls Encoder Guide
Note: power cycling an encoder may not clear an internal encoder fault condition.
44 Copley Controls
Copley Controls Encoder Guide Encoder Management
ASCII Interface
Copley drives support a command on CME 2’s ASCII interface that can be used to clear encoder
faults.
To clear a fault on a motor encoder, use the CME ASCII command enc clear.
To clear a fault on a load encoder, use the CME 2 ASCII command ldenc clear.
Upon success, these commands will return 'ok'. If an error occurs or the drive’s firmware does not
support clearing latched faults for the specific type of encoder, an error response will be returned.
From the Main screen, choose ToolsASCII Command Line to open the tool.
1
2 Enter the ASCII Command enc clear or Idenc clear in the Command field.
3 Press the Enter key to send the command to the drive. Observe the Response field. The
response should read ok.
Copley Controls 45
Encoder Management Copley Controls Encoder Guide
Bits Description
0 Identify which encoder to clear; 0 for motor encoder, 1 for load encoder.
1-3 Reserved.
4-7 Sub-command code (Should be 1 to clear encoder errors).
8-11 Reserved.
12 Axis number; 0 for axis 1, 1 for axis 2.
13-15 Reserved.
Code Description
0 Read a register from within the encoder. The register number is passed
as a second word of data to the encoder command.
1 Reset any errors currently latched on the encoder
2 Zero the encoder’s internal position.
For example:
To clear latched faults on the motor encoder of axis 1, the data word would be 0x0010.
To clear latched faults on the load encoder of axis 2, the data word would be 0x1011.
The full binary command consists of a 4 byte header followed by the two byte data word.
To clear latched faults on the motor encoder of axis 1, the full command sent to the drive
would be:
0x00 0x50 0x01 0x1B 0x00 0x10
For more details on the Binary Serial Protocol, please contact Copley Controls.
46 Copley Controls
Copley Controls Encoder Guide Encoder Management
1 Save the data word to the internal buffer associated with 1018:
MS0,i1018 = 0x000200100000
Copley Controls 47
Encoder Management Copley Controls Encoder Guide
After all faulty conditions have been corrected, the following actions may be taken.
CANopen or EtherCAT
To clear a driver’s Encoder Faults over a CANopen or EtherCAT network, use control word
0x6040, bit 7.
See Copley’s CANopen Programmer’s Manual for more information.
Power Cycling
Power cycle the drive to clear a driver’s encoder faults.
48 Copley Controls
Copley Controls Encoder Guide Encoder Management
CME 2 may also be used to send an ASCII command to clear latched Encoder Faults on the drive
as in the following procedure.
1 From the Main screen, choose ToolsASCII Command Line to open the tool.
3 Press the Enter key to send the command to the amplifier. Observe the Response field.
The response should read ok.
Copley Controls 49
Encoder Management Copley Controls Encoder Guide
WARNING
50 Copley Controls
Copley Controls Encoder Guide Encoder Management
3.5.3: Calibration
All absolute encoders need to be calibrated to zero or home. This section describes three choices:
Manual Calibration, the Homing Method, and Writing to an Encoder (using CME 2 or through
CANopen/EtherCAT).
Manual Calibration
This procedure begins with the encoder not mounted to the mechanical system.
1 Rotate the encoder shaft until the zero position is displayed. CME 2 may also be used
with the drive to move the encoder to the zero position.
3 Keeping the encoder in the zero position, mount the encoder to the mechanical system.
Homing Method
This procedure begins with the encoder mounted to the mechanical system. The absolute
encoder will power up with an arbitrary position value, and the drive will add an offset to
reference the encoder to zero.
2 In CME 2, run the Homing Method Absolute Position Home. For information on running
the Homing Method, see the CME 2 User Guide.
Copley Controls 51
Encoder Management Copley Controls Encoder Guide
Writing to an Encoder
Some encoders allow the zero calibration position to be written directly to the encoder. In this case
the following applies.
Lost Commutation
! Writing zero to the encoder will cause loss of motor manufacturer’s standard
calibration of phase relationship to position and cause lost commutation.
Motor manufactures phase calibration will need to be performed again.
WARNING Failure to heed this warning can cause equipment damage.
Using CME 2
From the CME 2 main screen, choose ToolsASCII Command Line. In the command
field enter enc zero.
OR
From CME 2 navigate to the Manual Phase screen and press the zero encoder button.
Through CANopen/EtherCAT
To zero an encoder over an EtherCAT or CANopen interface, a command is sent to object 0x2000
(via the binary serial interface) using an SDO. The data written to 0x2000 consists of the op-code
0x1B, followed by any data words. Note that data words are sent least significant word first when
communicating over the CANopen/EtherCAT interface, rather then most significant word first
when communicating over the normal binary serial interface.
For example:
To zero the motor encoder of axis 1, use op-code 0x1B and a single data word 0x0020. To
write this command to object 0x2000, pass the following three bytes of data:
0x1B 0x20 0x00
To read back the result of the command, read object 0x2000. This object should contain a
single byte of data which will be 0x00 for success, or an error code for failure.
Op-code 0x1B uses a single word of data to identify the type of command to send to the encoder.
The data word is formatted as follows:
Bits Description
0 Identify which encoder to clear; 0 for motor encoder, 1 for load encoder.
1-3 Reserved.
4-7 Sub-command code; 2, to zero the encoder’s internal position.
8-11 Reserved.
12 Axis number; 0 for axis 1, 1 for axis 2.
13-15 Reserved.
Sub-commands are shown on the next page.
52 Copley Controls
Copley Controls Encoder Guide Encoder Management
Code Description
0 Read a register from within the encoder. The register number is passed
as a second word of data to the encoder command.
1 Reset any errors currently latched on the encoder
2 Zero the encoder’s internal position.
Copley Controls 53
Copley Controls Serial Encoder Guide
P/N 16-01055
Revision 00
September 2012
2012
Copley Controls
20 Dan Road
Canton, MA 02021 USA
All rights reserved
Copley Controls 54