Operation guide | DST X510 and DST X520 Rotary position sensors CANopen
Table of contents
Contents
1. General information..............................................................................................................................................2
2.1 Deutsch version with shaft...................................................................................................................... 4
2.2 AMP Supersxeal with shaft...................................................................................................................... 5
2.3 AMP Superseal without shaft................................................................................................................. 6
2.4 Cable without shaft.................................................................................................................................... 7
The document describes the standard CANopen
implementations created. It is addressed to
CANopen system integrators and to CANopen
device designers who already know the
content of standards designed by C.i.A. (CAN in
Automation).
Operation guide | DST X510 and DST X520 Rotary position sensor CANopen
1.3 Abbreviations and terms
Abbreviation/termDenition
CAN
CAL
CMS
COB
COB-ID
D1 - D8
DLC
ISO
NMT
PDO
RXSDO
SDO
TXPDO
TXSDO
Controller Area Network
Describes a serial communication bys that implements the “physical” level
1 and the “data link” level 2 of the ISO/OSI reference model.
CAN Application Layer
Describes implementation of the CAN in level 7 “application” of the ISO/
OSI reference model form which CANopen derives.
CAN Message Specication
CAL service element. Denes the CAN Apllication Layer for the various
industrial applications.
Communication Object
Unit of transport of data in a CAN network (aCAN message). A maximum
of 2,048 COBs may be present i a CAN network, each of which may
transport from 0 to a maximum of 8 bytes.
COB Identier
Identifying element of a CAN message. The identier determines the
priority of a COB in case of multiple messages in the network.
Data from 1 to 8
Number of data bytes in the data eld of a CAN message.
Data Length Code
Number of data bytes transmitted in a single frame.
International Standard Organization
International authority providing standards for various merchandise
sectors.
Network Management
CAL service element. Describes how to congure, initialize, manage errors
in a CAN network.
Process Data Object
Process data communication objects (with high priority).
Receive SDO
SDO objects received from the remote device.
Service Data Object
Service data communication objects (with low priority). The value of this
data is contained in the “Objects Dictionary” of each device in the CAN
network.
Transmit PDO
PDO objects transmitted by the remote device.
Transmit SDO
SDO objects transmitted by the remote device.
The numbers followed by the suffix “h” represent a hexadecimal value, with suffix “b” a
binary value, and with suffix “d” a decimal value.
The value is decimal unless specified otherwise.
AQ304226795410en-0001010 | IC.PS.P21.J2.02 | 3
Operation guide | DST X510 and DST X520 Rotary position sensors CANopen
2. Electrical Connections 2.1 Deutsch version with shaft
CONNECTIONS
1.: OV (GND)
2.: + VS (+9 - +36 VDC)
3.: NC
4.: NC
5.: CAN-L
6.: CAN-H
NOTE:
Please make sure that the CANbus is terminated.
The impedance measured between CAN-H and
CAN-L must be 60 ohm that means the cable
must be connected to a 120 ohm resistor on each
ends of the bus line. Internally the tranducer is
not terminated with the resistor of 120 ohm.
Do not confuse the signal lines of the CAN bus,
otherwise communication with the transducer is
impossible.
Operation guide | DST X510 and DST X520 Rotary position sensor CANopen
2.2 AMP version with shaft
NOTE:
Please make sure that the CANbus is terminated.
The impedance measured between CAN-H and
CAN-L must be 60 ohm that means the cable
must be connected to a 120 ohm resistor on each
ends of the bus line. Internally the tranducer is
not terminated with the resistor of 120 ohm.
Do not confuse the signal lines of the CAN bus,
otherwise communication with the transducer is
impossible.
Operation guide | DST X510 and DST X520 Rotary position sensors CANopen
2.3 AMP Superseal version without shaft
M10 CH17 Magnet
< Suggested less than 1°
Air gab
NOTE:
Please make sure that the CANbus is terminated.
The impedance measured between CAN-H and
CAN-L must be 60 ohm that means the cable
must be connected to a 120 ohm resistor on each
ends of the bus line. Internally the tranducer is
not terminated with the resistor of 120 ohm.
Do not confuse the signal lines of the CAN bus,
otherwise communication with the transducer is
impossible.
Operation guide | DST X510 and DST X520 Rotary position sensor CANopen
2.4 Cable version without shaft
NOTE:
Make sure that the CANbus is terminated. The
inpedance measured between CAN-H and
CAN-L mus be 60 ohm that means the cable
must b e connected to a 120 ohm resistor
on each end of the bus line. Internally the
transducer is not terminated with resistor of
120 ohm. Do not confuse the signal lines of the
CANbus, otherwise communication with the
transducer is impossible.
Operation guide | DST X510 and DST X520 Rotary position sensor CANopen
Every CANopen device contains an
international Network Management server that
communicates with an external NMT master.
One device in a network, generally the host,
may act as the NMT master.
Through NMT messages, each CANopen device’s
network management server controls state
changes within its built-in Communication
State Machine.
This is independent from each node’s
operational state machine, which is device
dependant and described in Control State
Machine.
NMT MessageCOOB-IDData Byte 1Data Byte 2
Start Remote Node001hNode-ID*
Stop Remote Node002hNode-ID*
Pre-operational State080hNode-ID*
Reset Node081hNode-ID*
Reset Communica<tion082hNode-ID*
* Node-ID = Drive address (from 1 to 7Fh)
It is important to distinguish a CANopen
device’s operational state machine from its
Communication State Machine.
CANopen sensors and I/O modules, for example,
have completely dierent operational state
machines than servo drives. The “CommunicationState Machine” in all CANopen devices, however,
is identical as specied by the DS301.
NMT messages have the highest priority. The 5
NMT messages that control the Communication
State Machine each contain 2 date bytes that
identify the node number and a command to that
node’s state machine.
Table 1 shows the 5 NMT messages surpported,
and Table 2 shows the correct message for
sending these messages.
000h0See table 1See table 2These bytes are not sent
4. Baud rate
5. Baud rate
6. Parameter settings
Baud rate can be congurable via Layer Setting
Services and Protocol (LSS) and via SDO
communication (index 0x5999).
The default Baud rate is 250kbit/s.
Node-ID can be congurable via Layer Setting
Services and Protocol (LSS) and via SDO
communication (index 0x5999).
This parameters are called LSS parameters
(marking LSS-PARA).
The resolution can be congurable by using
manufacturing specic objec 0x2100.
All object dictionary parameters (object with
marking PARA) can be saved in a special
section of the internal EEPROM and secured
by checksum calculation.
The special LSS parameters (objects with
marking LL-PARA), also part of the objec
dictionary, will be also saved in a special
section of the internal EEPROM and secured
by checksum calculation.
Date Field
Important Note:
Changing this parameter can disturb the network!
Use the service only if one device is connected to the
network!
The default Node-ID is 7F.
The default resolution is 0.1°.
Important note:
Changing this parameter can disturb the network!
Use the service only if one device is
the network!
Due to the internal architecture of the
microcontroller the parameter write cycles are
limited to 100,000 cycles.
Operation guide | DST X510 and DST X520 Rotary position sensors CANopen
7. Restore default
parameters
8. Restore default
parameters
9. Error handling
All object dictionary parameters (objects with
marking PARA) can be restored to factory default
values via SDO communication (index
0x1011).
The heartbeat mechanism for this device
isestablished through cyclic transmission of
the heartbeat message done by the heartbeat
producer.
One or more devices in the network are aware
of this heartbeat message. If the herartbeat
cycle fails from the heartbeat producer the local
application on the heartbeat consumer will be
informed about that event.
Heartbeat Message
COB-IDByte0
700 + Node-IDContentNMT State
Principle
Emergency messages (EMCY) shall be triggered
by internal errors on device and they are
assigned the highest possible priority to ensure
that they get access to the bus without delay
(EMCY Producer). By default, the EMCY contains
the error eld with pre-dened error numbers
and additional information.
Error Behavior (object 0x4000)
If a serious device failure is detected the object
0x4000 species, to which state the module shall
be set:
=: Pre-operational
1: Mo state change (default)
2: Stopped
The implementation of either guarding or
heartbeat is mandatory.
The device supports Heartbeat Producer
functionality.
The producer heartbeat time is dened in object
0x1017.
EMCY Message
The EMCY COB-ID is dened in object 0x1014.
The EMCY message consists of 8 bytes.
It contains an emergency error code, the
contents of object 0x1001 and 5 byte of
manufacturer specic error code. The device
uses only the 1st byte as manufacturer specic
error code. When a failure ccurs, the reading
of the angular position from the failed channel
presents an out-of-range value, i.e. 0xFFFF.
The device fulls the SDO Server functionality.
Witi Service Data Object (S.D.O.) the access
to entries of a device Object Dictionary is
provided. As these entries may contain data of
arbitrary size and data typ SDOs can be used
to transfer multiple data sets from a client to a
server and vice versa.
Structure of SDO-request by the Master
Structure of SDO-answer by the Slave
Write Access, Data Transfer form Host to Slave
Each access to object dictionary is checked
by the slave for validity. Any write access to
nonexistent objects, to read - only objects or
with a non-corresponding data format are
rejected and answered with a corresponding
error message.
CMD determines the direction of data transfer and
the size of the data object:
23 hex Sending of 4-byte data
(bytes 5 - 8 contian a 32 bit value)
2B hex Sending of 2-byte data
(bytes 5, 6 contain a 16-bit value
2F hex Sending of 1-byte data
(byte 5 contians an 8-bit value)
Read Access, Data Transfer form Slave to Host
Any read access to non-existing objects is
answered with an error message.
CMD determines the direction of data transfer:
40 hex read access (in any case)
The Slave answers:
RES Response of the slave:
42 hex Bytes used by node when replying to
read command with 4 or less data
43 hex Bytes 5 - 8 contain a 32-bit value
4B hex Bytes 5, 6 contain a 16-bit value
4F hex Byte 5 contains an 8-bit value
80 hex Error
11. PDO communication
and Angle calculation
ByteByte 1Byte 2Byte 3Byte 4
ANGLE 1
Description
object
(0x2110.1)
High-Byte
The Slave answers:
RES response of the slave:
60 hex Data sent successfully
80 hex Error
Transmit PDO #0
This PDO transmits asynchronously the
position value of the angle sensor. Default
transmission rate is 100 ms. The Tx PDO#0
shall be transmitted cyclically, if the cyclic
timer (object 0x1800.5) is programmed > 0.
Values between 1 ms and 65535 ms shall
be selectable by parameter settings. The Tx
PDO#0 will be transmitted by entering the
“Operational” state.
ANGLE 1
object
(0x2110.2)
Low-Byte
TxPDO# with default mapping when object 0x5001 = 0 (big endian)
The two angles Angle 1 and Angle 2 are
obtained independently from each other (i.e.
in DST X510/DST X520 series contactless rotary
sensors there are two on-board HALL chips) in a
sort of redundant conguration.
Operation guide | DST X510 and DST X520 Rotary position sensors CANopen
IndexSub
Index
4000hError
4001h
5000hAutomatic NMT
5001h
5999h0Number of entriesUnsigned 8Ro3
1Baud rate - LSS-PARAUnsigned 16Rw250
2Node-ID - LSS-PARAUnsigned 8Rw2
3Store - LSS-PARAUnsigned 32Wo
Ro = the parameter can be read only
Rw = the parameter can be read and also written
Wo = the parameter can be written only
NameTypeAccessDefault
Angle Value
Behavior - PARA
Error codeUnsigned 8Ro0
Start after Power-on
- PARA
PDO coding standard
used - PARA
Unsigned 8Rw1
Unsigned 8Rw1
UndesignedRw0
LSS Parameter
value
Comments
0: Pre-operational, 1: No state change
2: Stopped; Min. = 0 & Max. = 255
0000 0000 No error
0000 0001 Angle 1 sensor chip error
0000 0010 Angle 2 sensor chip error
0000 0100 Angle mismatch (Angle 1 vs Angle 2)
error, object 0x2103 NOT IMPLEMEMTED
0001 0000 Program checksum error
0100 0000 LSS Parameter checksum error
1000 0000 Magnetic elsd too high/low
0: Not activated
1: Little endian
Min. = 0 & Max. = 1
0: Big endian
1: Little Endian
Min. = 0 & Max. = 1
Possible values:
50 kbit/s
125 kbit/s
250 kbit/s
500 kbit/s
800 kbit/s
1000 kbit/s
Min. = 50 & Max. = 1000
IMPORTANT: use this service only if one device
is connected to the network
Min. = 1 & Max. = 127
IMPORTANT: use this service only if one device
is connected to the network
“Save” (0x65766173) to store all LSS parameters
(object with marking LSS-PARA)
IMPORTANT: use this service only if one device
is connected to the network
I
Example 1: How to change the Baud Rate
Setting from 250 kbaud to 500 kbaud
With Service Data Object (S.D.O) the access
to entries of a device Object Dictionary is
provided. As these entries may contain data of
arbitrary size and data type SDOs can be used
to transfer multiple data sets from a client to a
server and vice versa.
Structure of SDO-request by the Master
CMD determines the direction of data transfer
and the size of the data object:
23 hex Sending of 4-byte data (bytes 5 - 8
contain a 32 bith value)
2B hex Sending of 2-byte data (bytes 5, 6
contain a 16-bit value)
2F hex Sending of 1-byte data (byte 5 contains
an 8-bit value)
500 kbit/s
800 kbit/s
1000 kbit/s
Min. = 50 & Max. = 1000
IMPORTANT: use this service only if one device is
connected to the network
Min. = 1 & Max. = 127
IMPORTANT: use this service only if one device is
connected to the network
“Save” (0x65766173) to store all LSS parameters
(object with marking LSS-PARA)
IMPORTANT: use this service only if one device is
connected to the network
Operation guide | DST X510 and DST X520 Rotary position sensor CANopen
Example 2: How to change the ID-Node from
0x03h (3d) to 0x06h (6d)
With Service Data Object (S.D.O) the access
to entries of a device Object Dictionary is
provided. As these entries may contain data of
arbitrary size and data type SDOs can be used
to transfer multiple data sets from a client to a
server and vice versa.
500 kbit/s
800 kbit/s
1000 kbit/s
Min. = 50 & Max. = 1000
IMPORTANT: use this service only if one device is
connected to the network
Min. = 1 & Max. = 127
IMPORTANT: use this service only if one device is
connected to the network
“Save” (0x65766173) to store all LSS parameters
(object with marking LSS-PARA)
IMPORTANT: use this service only if one device is
connected to the network
Operation guide | DST X510 and DST X520 Rotary position sensor CANopen
Example 3: How to activate an automatic NMT
Start after Power ON (the PDO will be send
automatically after power ON)
With Service Data Object (S.D.O) the access
to entries of a device Object Dictionary is
provided. As these entries may contain data of
arbitrary size and data type SDOs can be used
to transfer multiple data sets from a client to a
server and vice versa.
CMD determines the direction of data transfer
and the size of the data object:
23 hex Sending of 4-byte data (bytes 5 - 8
contain a 32 bit value)
2B hex Sending of 2-byte data (bytes 5, 6
contain a 16-bit value)
2F hex Sending of 1-byte data (byte 5 contains
an 8-bit value)
Operation guide | DST X510 and DST X520 Rotary position sensors SAE J1939
Example 4: How to change the PDO rate (time
interval) from 100 ms to 20 ms
With Service Data Object (S.D.O) the access
to entries of a device Object Dictionary is
provided. As these entries may contain data of
arbitrary size and data type SDOs can be used
to transfer multiple data sets from a client to a
server and vice versa.
CMD determines the direction of data transfer
and the size of the data object:
23 hex Sending of 4-byte data (bytes 5 - 8
contain a 32 bit value)
2B hex Sending of 2-byte data (bytes 5, 6
contain a 16-bit value)
2F hex Sending of 1-byte data (byte 5 contains
an 8-bit value)
Operation guide | DST X510 and DST X520 Rotary position sensors SAE J1939
Example 5: How to set the ZERO degree point
to Angle 1 (example with resolution ±0.1°)
With Service Data Object (S.D.O) the access
to entries of a device Object Dictionary is
provided. As these entries may contain data of
arbitrary size and data type SDOs can be used
to transfer multiple data sets from a client to a
server and vice versa.
CMD determines the direction of data transfer
and the size of the data object:
23 hex Sending of 4-byte data (bytes 5 - 8
contain a 32 bit value)
2B hex Sending of 2-byte data (bytes 5, 6
contain a 16-bit value)
2F hex Sending of 1-byte data (byte 5 contains
an 8-bit value)
If the actual value of the Angle 1 is 02h 65 h =
0265 h = 613 d = 61.3° with the aim to move the
Angle 1 to ZERO add to Byte 5 and Byte 6 the
values below:
Operation guide | DST X510 and DST X520 Rotary position sensors SAE J1939
Example 6: How to set the ZERO degree point
to Angle 2 (example with resolution ±0.1°)
With Service Data Object (S.D.O) the access
to entries of a device Object Dictionary is
provided. As these entries may contain data of
arbitrary size and data type SDOs can be used
to transfer multiple data sets from a client to a
server and vice versa.
CMD determines the direction of data transfer
and the size of the data object:
23 hex Sending of 4-byte data (bytes 5 - 8
contain a 32 bit value)
2B hex Sending of 2-byte data (bytes 5, 6
contain a 16-bit value)
2F hex Sending of 1-byte data (byte 5 contains
an 8-bit value)
If the actual value of the Angle 1 is 02h 65 h =
0265 h = 613 d = 61.3° with the aim to move the
Angle 2 to ZERO add to Byte 5 and Byte 6 the
values below:
Operation guide | DST X510 and DST X520 Rotary position sensors SAE J1939
Example 7: How to set the resolution to ± 0.1°
on Angle 1 and Angle 2 (the current setting
resolution is ±0.1°)
With Service Data Object (S.D.O) the access
to entries of a device Object Dictionary is
provided. As these entries may contain data of
arbitrary size and data type SDOs can be used
to transfer multiple data sets from a client to a
server and vice versa.
CMD determines the direction of data transfer
and the size of the data object:
23 hex Sending of 4-byte data (bytes 5 - 8
contain a 32 bit value)
2B hex Sending of 2-byte data (bytes 5, 6
contain a 16-bit value)
2F hex Sending of 1-byte data (byte 5 contains
an 8-bit value)
Operation guide | DST X510 and DST X520 Rotary position sensors SAE J1939
Example 8: How to set the resolution to ± 0.1°
on Angle 1 and Angle 2 (the current setting
resolution is ±0.1°)
With Service Data Object (S.D.O) the access
to entries of a device Object Dictionary is
provided. As these entries may contain data of
arbitrary size and data type SDOs can be used
to transfer multiple data sets from a client to a
server and vice versa.
CMD determines the direction of data transfer
and the size of the data object:
23 hex Sending of 4-byte data (bytes 5 - 8
contain a 32 bit value)
2B hex Sending of 2-byte data (bytes 5, 6
contain a 16-bit value)
2F hex Sending of 1-byte data (byte 5 contains
an 8-bit value)
Operation guide | DST X510 and DST X520 Rotary position sensor CANopen
Example 9: How to send the command
RESTORE
With Service Data Object (S.D.O) the access
to entries of a device Object Dictionary is
provided. As these entries may contain data of
arbitrary size and data type SDOs can be used
to transfer multiple data sets from a client to a
server and vice versa.
CMD determines the direction of data transfer
and the size of the data object:
23 hex Sending of 4-byte data (bytes 5 - 8
contain a 32 bit value)
2B hex Sending of 2-byte data (bytes 5, 6
contain a 16-bit value)
2F hex Sending of 1-byte data (byte 5 contains
an 8-bit value)