TBN 11551 User Manual Unlocked
TBN 11551 User Manual Unlocked
User Manual
TWK-ELEKTRONIK GmbH · PB. 10 50 63 · D-40041 Düsseldorf · Tel.: +49/211/63 20 67 · Fax: +49/211/63 77 05 · [email protected] · www.twk.de
COPYRIGHT: The TXN 11551 operating instructions
are owned by TWK-ELEKTRONIK GMBH and are
protected by copyright laws and international treaty provisions.
3. Installation instructions...................................................................................................... 6
3.1 Electrical connection.....................................................................................................................6
3.2 Baud rates and lead lengths.........................................................................................................6
3.3 Setting the address and Baud rate................................................................................................6
3.4 EDS file.........................................................................................................................................6
5. Emergency messages......................................................................................................... 9
7. Examples............................................................................................................................ 20
7.1 Boot-up........................................................................................................................................20
7.2 Change parameter......................................................................................................................20
7.3 Setting the node address via LSS...............................................................................................21
8. Literature............................................................................................................................ 22
1. General
The electromagnetic T Series encoders are designed for direct connection to the CAN bus. This is achieved internally
via the CAN bus controller T89C51 CC02 SO 28 (Atmel). The following specifications have been implemented:
The CANopen specifications can be obtained from the user organisation CiA (www.can-cia.org).
The following T Series encoders with CANopen interface have been taken into consideration:
3. Installation instructions
3.1 Electrical connection
CiA Draft Recommendation Proposal 303-1, Version 1.1.1 CANopen Cabling and Connector Pin Assignment /3/ must
be adhered to when connecting the encoder. This particularly applies with regard to the terminal resistors, the lead
characteristics, the length of the branch lines and the transmission length.
The bus terminal resistors must be implemented internally. The precise connector assignment is enclosed with each
device.
Principle bus structure:
subscriber
CAN-Bus
Encoder
CAN_H CAN_H
Note: The encoder has no galvanic separation between the supply voltage and bus leads; the total bus length is
therefore limited to 200 m.
After integrating the EDS file into the project planning tool (e.g. CANsetter from Vektor-Informatik), the encoder‘s pa-
rameters can be comfortably set and diagnostic information can be read.
The following Table shows the relevant values for the parameters transmission type.
Transmission Type
Code Transmission type
Cyclic Acyclic Synchron Asynchronous RTR
0 x x
1-240 x x
241-251 Reser
252 x x
253 x x
254 x
Meaning
0 After SYNC, but only if the value has changed since the last SYNC.
1-240 Transmit value after 1st or 240th SYNC message.
252 Cycle Timer = 0 Position integration on SYNC; output of the stored position following
request (Remote Frame).
Cycle Timer ≠ 0 Current position is transmitted in the timer‘s cycle. Position integration
on SYNC; output of the stored position following request (Remote Frame)
remains active.
253 Cycle Timer = 0 Current position is transmitted upon request (Remote Frame).
Cycle Timer ≠ 0 Current position is transmitted in the timer‘s cycle. Current position
is also transmitted following request (Remote Frame).
254 Cycle Timer = 0 Data output occurs in the event of a position change. Current position
is also transmitted following request (Remote Frame).
Cycle Timer ≠ 0 Current position is transmitted in the timer‘s cycle. Data output also
occurs in the event of a position change. Current position is also
transmitted following request (Remote Frame).
The following tables show encoders with 13 bits single turn resolution. For encoders with 12 bit resolution the positi-
onvalue is one bit shorter in each case.
Byte 0 Byte 1
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
13 Bit Position data 0 0 0
Multi-turn encoder TMN and TSN without speed signal - 4 data bytes:
5. Emergency messages
Each time the internal error status register (Index 1001h) changes, the encoder transmits an emergency message with
the identifier: 80h + node ID (even if an error which has occurred has been rectified).
Byte 0 1 2 3…7
Content Error code Error register Manufacturer-specific
(Index 1001h)
The bits in the error register, index 1001h, (see Chapter 6.1), have the following meaning:
Bit Meaning
0 General error
1-6 Not used
7 Manufacturer-specific error
In the case of an error, the error register always contains 81h. The cause of the error is then contained in index 6503h.
Bytes 3 and 4 of the emergency message reflect the content of the index 6503h (see Chapter 6.4.4) and may assu-
me the following values:
Bit Meaning
0 General error
1-6 Not used
7 Manufacturer-specific error
The error register is the higher-level error register. Bit 0 and bit 7 are always set in the event of an error (81h ). The cause
of the error is then contained in index 6503h.
Object 1005h defines the COB ID (11-bit identifier) for the Sync message.
Writing „save“ (in hex: 73 61 76 65) in sub-index 01 saves the current parameters in the encoder‘s EEPROM, where
they are protected against zero-voltage.
Writing „load“ (in hex: 6C 6F 61 64) in sub-index 01 loads the parameter‘s default values and saves them in the
encoder‘s EEPROM, where they are protected against zero-voltage.
Identifier for the emergency message, which the encoder transmits on occurrence of an alarm.
In default status, this has the value 0x80 + node address. If the object is written, the node address is no longer added.
The default status can be restored via „load default“ (object 1011h).
Defines the minimal time between two emergency messages. The inhibit time is given in multiples of 100 μs.
If the value is > 0, the heartbeat message is transmitted on the identifier guard COB ID + node ID in the heartbeat
time interval in ms.
The information in object 1018h (also see Chapter 3.3) is required to use the Layer Setting Service (LSS, /5/).
Object 1800h defines the first PDO‘s communication data. Only transmission types 252,253,254 are supported.
In default status, this has the value 0x180 + node address. If the object is written, the node address is no longer ad-
ded. The default status can be restored via „load default“ (object 1011h).
The inhibit time (ms) is the time before the PDO is permitted to be transmitted again.
Object 1801h defines the second PDO‘s communication data. Only transmission types 0... 240 are supported.
In default status, this has the value 0x280 + node address. If the object is written, the node address is no longer ad-
ded. The default status can be restored via „load default“ (object 1011h).
The following Table contains an overview of operating parameters for the encoder. Before scaling the encoder via
objects 6001h, 6002h or 6003h, the „Scaling function control“ bit must be set to „1“.
The „Scaling function control“ bit (object 6000h) must be enabled in order to change the parameter. Values in bra-
ckets represent an encoder with 13 bit single turn resolution.
The values 134217728 or 268435456 depict the maximum, total number of steps of a multi-turn sensor with a resolu-
tion of 4096 or 8192 steps per revolution and max. 32768 revolutions.
The „Scaling function control“ bit (object 6000h) must be enabled in order to change the parameter.
Note: For parametration of TRN it must be noted that the calculation of the number of revolutions is carried out in
2n powers internally within the encoder. Regardless of this requirement, the user may programme the desired total
measuring range in units and the desired single turn resolution in accordance with the application. During calculation,
the encoder accesses the next highest 2n power if required. In this case, the values are designated as the actual single
turn resolution or as the actual total measuring range in units, and are displayed as the output value.
The preset value is displayed as the position value if object 6003h is written and the „Scaling function control“ bit (ob-
ject 6000h) is enabled.
This value is the position value, and is output via the PDOs (see Chapter 4).
From revision 0x10100 the speed value can be find here. It will be mapped via Index 6000h into the PDOs. The di-
mension of the speed value is steps/gate time. The gate time can be adjusted via Index 2011h . The resolution of the
speed value is independent on the resolutioin of the position value (Index 6001h). The speed value is always based
on a resolution of 4096 steps/turn.
v / (t x ms-1) x 60000
The dimension steps/gate time can be calculated into rpm with the following formula: n=
4096 steps
n = in rpm, v = speed value in steps/gate time, t = gate time in ms
In the case of values of > 0 ms for the cyclic timer, the position value (or position and speed value) is transmitted
cyclically with PDO 1 (see Chapter 4).
Object 6500h represents the encoder‘s operating status (also see object 6000h).
The maximum setable resolution. Values in brackets represent an encoder with 13 bit single turn resolution.
Multi-turn encoder
On occurrence of an error, an emergency message is transmitted, and the encoder switches to pre-operational status
(see Chapter 5). The following Table shows the possible errors:
Version of the encoder profile which is implemented and encoder software version. The version numbers are each
BCD-encoded byte-by-byte.
The sensor‘s node address. After setting the node address via index 2000h, this must be permanently saved in the
EEPROM via index 1010h. It only comes into effect following power off/on or a reset.
This object can also be changed via the Layer Setting Service (see Chapter 3.3).
The sensor‘s Baud rate can be set via this index. After setting the Baud rate via index 2001h, this must be permanently
saved in the EEPROM via index 1010h. It only comes into effect following power off/on or a reset.
This object can also be changed via the Layer Setting Service (see Chapter 3.3).
6.5.3 Object 2010h - Speed value (encoder with speed signal only, up to rev. 0x10100)
The speed value, which is transmitted together with the position value in the PDO.
In the case of T Series encoders, the following key data apply for speed measuring:
6.5.4 Objekt 2011h - Speed gate time (from revision 0x10100 on)
Gate time for speed measurement in ms. The updating time of the speed signal is equal to the gate time.
7. Examples
Message traffic between a master and the TBN encoder (single-turn encoder without speed signal) during boot-up
and when setting the slave address with LSS is shown in the following. The identifier (ID), the transmission direction
(Rx/Tx), the Data Length Code (DLC) and the data bytes are shown in tabular form.
The following applies: - The encoder has the address 1 (default) and is the only slave
- Encoder with default parameter values
- Tx: Master transmits data to the encoder
- Rx: Encoder transmits data
7.1 Boot-up
The following Table shows encoder boot-up, from switching on the supply voltage to initial transmission of the position
value. The position value is subsequently polled via a Sync command.
In the following example, the sensor is addressed via its LSS address (i.e. is switched from LSS-Operation-Mode to
LSS-Configuration-Mode), node address 2 is programmed and saved. LSS-Operation-Mode is subsequently reset.
The sensor then reboots and logs on (without voltage off/on) with its boot-up protocol. It is now ready to operate with
its new address.
To do this, a switch first has to be made to stop status and the heartbeat timer has to be deactivated, i.e. heartbeat
time=0 (default status).
Attention: During LSS-programming the Heartbeat-Time (Index 1017h) has to be zero (default status).
8. Literature
/1/ CiA Draft Standard 406, Version 3.0, Device Profile for Encoders
/2/ CiA Draft Standard 301, Version 4.02, CANopen Application Layer and Communication Profile
/3/ CiA Draft Recommendation Proposal 303-1, Version 1.1.1 CANopen Cabling and Connector
Pin Assignment
/4/ CiA Draft Standard Proposal 305, Version 1.1.1, CANopen Layer Setting Services and Protocol (LSS)