RXA CANopen Manual
RXA CANopen Manual
1. INTRODUCTION 2
1.1 CANopen communication model 2
1.2 Profile overview 2
1.3 References 3
2. FUNCTIONAL OVERVIEW 3
2.1 Default Identifiers 3
2.2 Boot-up message 4
2.3 Encoder functionality 4
3. SCALING FUNCTION 5
3.1 Overview 5
3.2 Scaling formulas 6
4. PRESET VALUE 6
4.1 Overview 6
4.2 Preset formula 7
5. INSTALLATION 7
5.1 Bus installation 7
5.2 Address setting 7
5.3 Baudrate setting 8
5.4 EDS and DCF files 8
5.5 Parameter settings 8
5.6 Cables and connectors 9
APPENDIX A, HISTORY 14
Document Revision Page Total
Application Note RXA CANopenAppl 1.1 2 14
Topic Project Sign. Date
1. Introduction
This document contains application and installation information on the Leine &
Linde CANopen Encoders RXA 5X7 based on the CiA CANopen Encoder
Profile DS 406. The Encoders support all functions of the profile.
All programming and diagnostic parameters are accessible through SDOs. The
output position value from the encoder is presented in binary format.
Document Revision Page Total
Application Note RXA CANopenAppl 1.1 3 14
Topic Project Sign. Date
1.3 References
http://www.can-cia.de
CAN Application Layer, DS 201 …207 CiA
CAL Based Communication Profile, DS 301 CiA
Device Profile for Encoders, DS 406 CiA
CAN Specification Version 2.0 A Robert Bosch Gmbh
CANary CAN controller Atmel
2. Functional overview
Bit-Nr. 10 9 8 7 6 5 4 3 2 1 0
The following broadcast objects with default identifiers are available in the
encoder:
The following Peer-to-Peer objects with default identifiers are available in the
encoder:
3. Scaling function
3.1 Overview
With the scaling function the Encoder internal numerical value is converted in
software to change the physical resolution of the Encoder.
The parameters ”Measuring units per revolution” and ”Total measuring range in
measuring units” are the scaling parameters set to operation with the scaling
function control bit.
NOTE! When scaling a singleturn encoder the parameter “Total measuring
range in measuring units” does not need to be set as it is equal to the Measuring
units per revolution.
The data type for both scaling parameters is unsigned 32 with a value range
from 1 to 232 limited by the encoder resolution. For a 13 bit encoder the
permissible value for the ”Measuring units per revolution” is between 1 and 213
(8192).
The scaling parameters are securely stored in case of voltage breakdown and
reloaded at each start-up.
Byte 3 2 1 0
Bit 31 - 24 23 - 16 15 - 8 7 - 0
Byte 3 2 1 0
Bit 31 - 24 23 - 16 15 - 8 7 - 0
where:
singleturn_position = The Absolute position value of the encoder singleturn
disk.
4. Preset value
4.1 Overview
The preset function supports adaptation of the encoder zero point to the
mechanical zero point of the system. The preset function sets the actual position
of the encoder to the preset value. The preset function is used after the
scaling function which means that the preset value is given in the current
measuring units.
A preset is handled by the encoder in the following way:
The encoder reads the current position value and calculates an offset value from
the preset value and the read position value. The position value is shifted with
the calculated offset value. The offset value can be read with the diagnostic
function (Object 6509h) and is securely stored in case of voltage breakdown and
reloaded at each start-up.
NOTE! The preset function should only be used at encoder standstill.
Byte 3 2 1 0
Bit 31 - 24 23 - 16 15 - 8 7 - 0
Setup calculation:
offset_value = preset_value - current_position
NOTE! A previously set offset_value is not included in the current position.
Runtime calculation:
output_position = current_position + offset_value
5. Installation
This section handles the installation issues of the CANopen Encoder.
NOTE! The selected address (node number) affects the default identifier
allocation, see section 2 for further information.
Document Revision Page Total
Application Note RXA CANopenAppl 1.1 8 14
Topic Project Sign. Date
The EDS file serves as a template for different configurations of one device
type. A DCF-file (Device Configuration File) is generated from the EDS-file
describing a specific configuration of the device including object values,
selected baudrate and module-Id.
CANopen configuration tools are available to support CANopen network
configuration and device configuration via the CAN bus. The information about
the device is obtained from the EDS-file.
NOTE! The EDS Installation procedure depends on your configuration tool,
please consult your tool supplier if you run into problems.
Installation example for PRO-CANopen:
1. Copy the EDS file into the EDS directory created by PRO-CANopen.
2. Select the type of device to be configured, a list of EDS-files is displayed,
select the required EDS-file.
3. An empty DCF file is created and the configuration of the device can start.
Function: Colour:
+E Volt Red
0 Volt Blue
CAN_H Green
CAN_L Yellow
CAN_GND Grey/Pink
Address bit 0 White
Address bit 1 Brown
Address bit 2 Grey
Address bit 3 Pink
Address 0 Volt Red/Blue
NC Black
NC Violet
Case Shield
OBJECT DESCRIPTION
INDEX 5000 H
Name Transmission rate
Object Code VAR
Data Type Unsigned 8
VALUE DESCRIPTION
Object Class Manufacturer specific
Access Rw
PDO Mapping No
Value Range Unsigned8
Mandatory No
Range
Default Value 3 = 125kbit/s
STRUCTURE OF PARAMETER
Value Function
2 50 kBit/s
3 125 kBit/s
4 250 kBit/s
5 500 kBit/s
6 800 kBit/s
7 1.000 kBit/s
8 100 kBit/s
Document Revision Page Total
Application Note RXA CANopenAppl 1.1 11 14
Topic Project Sign. Date
OBJECT DESCRIPTION
INDEX 5001 H
Name Node number
Object Code VAR
Data Type Unsigned 8
VALUE DESCRIPTION
Object Class Manufacturer specific
Access Rw
PDO Mapping No
Value Range 1 – 127, FFh
Mandatory No
Range
Default Value FFh = Hardware settings
STRUCTURE OF PARAMETER
Bit Function
0 Node number
1 Node number
2 Node number
3 Node number
4 Node number
5 Node number
6 Node number
7 Hardware switching
Document Revision Page Total
Application Note RXA CANopenAppl 1.1 12 14
Topic Project Sign. Date
OBJECT DESCRIPTION
INDEX 5002 H
Name Address offset
Object Code VAR
Data Type Unsigned 8
VALUE DESCRIPTION
Object Class Manufacturer specific
Access Rw
PDO Mapping No
Value Range 0 – 112
Mandatory No
Range
Default Value 0
Document Revision Page Total
Application Note RXA CANopenAppl 1.1 13 14
Topic Project Sign. Date
2. Set the baudrate of your CAN network to the baudrate of the encoder (125
kbit if the Encoder still is using the default baudrate). See section 6.1 for
further information.
5. The encoder is now ready for configuration through the SDO message. To
set a cyclic transmission of the position value with 10ms repetition rate we
need to send an SDO request message (ID = 1536 + encoder address) to the
cyclic timer object (Object 6200h) with the data below. The encoder will
confirm with the SDO response message (ID = 1408 + encoder address).
Byte 0 Byte 1
0x01 The encoder address (Node Number)
7. The encoder has now entered the operational state and the position message
(ID = 384 + encoder address) is transferred with a 10ms repetition rate. If an
error occur the encoder will send an emergency message (ID = 128 +
encoder address).
Document Revision Page Total
Application Note RXA CANopenAppl 1.1 14 14
Topic Project Sign. Date
Appendix A, History