1. Catalogs
  2. TWK-ELEKTRONIK GmbH
  3. Rotary encoder TKN46 manual

Rotary encoder TKN46 manual

Rotary encoder TKN46 manual
1 / 22 PagesView full catalog

Rotary encoder TKN46 manual

Product catalog summary
General Overview:
The T Series encoders are designed for direct connection to the CAN bus using the CAN bus controller T89C51 CC02 SO 28. They comply with the Device Profile for Encoders (CiA Draft Standard 406, Version 3.0) and CANopen Application Layer and Communication Profile (CiA Draft Standard 301, Version 4.02).
CANopen Features:
  • NMT slave
  • One SDO per communication direction
  • Two transmit PDOs with adjustable identifiers
  • SYNC and EMERGENCY messages
  • Simple boot-up according to DS 301
  • Node number and Baud rate setting via Layer Setting Service (LSS)
Installation Instructions:
Electrical connections must follow CiA Draft Recommendation Proposal 303-1. Baud rates range from 20 kBaud to 1000 kBaud, with corresponding lead lengths from 2500m to 25m. Node address and Baud rate are set via LSS, with default values of 20 kBaud and node address 1. An EDS file is provided for integration into project planning tools.
Process Data Exchange:
I/O data traffic occurs via PDO messages, with two PDOs available. Operating modes include Polling, Asynchronous, Synchronous, and Acyclic modes. Transmission types are set via SDOs, with specific codes for cyclic, acyclic, synchronous, and asynchronous modes.
Data Format:
Output data mapping is identical for both PDOs. Position value is output in steps, and speed value (if applicable) is output in steps per 100 ms. Data is depicted in Intel format.
Programming and Diagnosis:
The object directory includes communication parameters, standardized device parameters, and manufacturer-specific parameters. Key objects include device type, error register, COB-ID SYNC, and identity object.
Encoder Specifications:
  • Single-turn Encoder TBN/TKN: Utilizes 4 data bytes with 13-bit position data and 16-bit speed data.
  • Multi-turn Encoder TMN/TSN: Uses 4 data bytes with 28-bit position data.
  • Multi-turn Encoder TRN: Employs 4 data bytes with 25-bit position data.
  • Encoders with Speed Signal: Use 6 data bytes with 25-bit position data and speed information.
Emergency Messages:
Encoders transmit emergency messages when the internal error status changes. These messages consist of 8 data bytes, including an error code and manufacturer-specific information. The error register (Index 1001h) indicates general and manufacturer-specific errors, with specific error causes detailed in index 6503h.
Key Parameters and Functions:
  • Scaling Function Control: Must be enabled to adjust measuring units and total measuring range.
  • EEPROM: Parameters are stored in a failsafe manner using the "save" command.
  • Emergency Message Inhibit Time: Defines the minimum time between emergency messages.
  • PDO Mapping: Defines how position and speed values are transmitted.
Specifications and Calculations:
The document specifies a resolution of 4096 steps per turn for an encoder. The speed in RPM can be calculated using the formula: n = v / (t x ms-1) x 60000, where v is the speed value in steps per gate time, and t is the gate time in milliseconds.
Standardized Device Diagnosis:
  • Object 6500h - Operating Status: Represents the encoder's operating status.
  • Object 6501h - Singleturn Resolution: Maximum settable resolution is 4096, with values in brackets for a 13-bit single turn resolution.
  • Object 6502h - Number of Distinguishable Revolutions: For single-turn encoders, the value is 1; for multi-turn encoders, it is 4096 or 32768.
  • Object 6503h - Alarms: Lists possible errors and their rectifications, such as EEPROM errors and sensor errors.
  • Object 6504h - Supported Alarms: Only alarms listed under object 6503h are supported.
  • Object 6506h - Supported Warnings: No warnings are supported.
  • Object 6508h - Operating Time: Not supported at present.
  • Object 6507h - Profile and Software Version: Details the version of the encoder profile and software.
  • Object 6509h - Offset Value: Internal calculation value.
  • Object 650Ah - Module Identification: Not supported at present.
  • Object 650Bh - Serial Number: Contains the device's serial number.
Manufacturer-Specific Parameters:
  • Object 2000h - Node ID: The sensor's node address, which must be saved in the EEPROM.
  • Object 2001h - Bit Timing: Sets the sensor's Baud rate, which must also be saved in the EEPROM.
  • Object 2010h - Speed Value: Transmitted with the position value in the PDO, with a basic resolution of 12-bit per revolution.
  • Object 2011h - Speed Gate Time: Gate time for speed measurement in milliseconds.
Examples:
  • Boot-up: Describes the message traffic during encoder boot-up and setting the slave address with LSS.
  • Change Parameter: Shows how to change the code sense and save parameters in the EEPROM.
  • Setting the Node Address via LSS: Details the process of addressing a sensor via its LSS address and programming a new node address.
Literature:
References to various CiA Draft Standards and Proposals related to CANopen protocols and services.
See more

Catalog excerpts

Rotary encoder TKN46 manual-1

T Series Encoders with CANopen Interface User Manual TWK-ELEKTRONIK GmbH · PB. 10 50 63 · D-40041 Düsseldorf

 Open the catalog to page 1
Rotary encoder TKN46 manual-2

COPYRIGHT: The TXN 11551 operating instructions are owned by TWK-ELEKTRONIK GMBH and are protected by copyright laws and international treaty provisions. © 2009 by TWK-ELEKTRONIK GMBH POB 10 50 63 ■ 40041 Dusseldorf ■ Germany Tel. +49/211 /63 20 67 ■ Fax +49/211 /63 77 05 [email protected] ■ www.twk.de

 Open the catalog to page 2
Rotary encoder TKN46 manual-5

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: Device Profile for Encoders CiA Draft Standard 406, Version 3.0 /1/ CANopen Application Layer and Communication Profile CiA Draft Standard 301, Version 4.02 /2/ 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: 2. CANopen features...

 Open the catalog to page 5
Rotary encoder TKN46 manual-6

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: 3.2 Baud rates and lead lengths Note: The encoder has no galvanic separation between the supply...

 Open the catalog to page 6
Rotary encoder TKN46 manual-7

4. Process data exchange In the case of CANopen, I/O data traffic takes place via the PDO (Process Data Object) message. The T Series encoders provide two PDOs. Their transmission behaviour (transmission type) can be set independently of each other. 4.1 Operating modes The following operating modes can be set: Polling Mode (asynchronous-RTR): The encoder transmits the current, actual position value, after the current position value has been polled via a „Remo-te Frame“ message by the master. Asynchronous Mode (cyclic / acyclic): Without being requested to do so by the master, the encoder transmits...

 Open the catalog to page 7
Rotary encoder TKN46 manual-8

4. Process data exchange 4.2 Data format The definition of the output data (mapping) and their depiction is identical for both PDOs. The position value is output in steps and, in the case of the variant with speed signal, the speed value is output in steps per 100 ms. The position and speed value can also be called up in the object directory under indices 6004h - Position value and 2010h - Speed value. The position and speed values are depicted in Intel format. The following tables show encoders with 13 bits single turn resolution. For encoders with 12 bit resolution the positi-onvalue is one...

 Open the catalog to page 8
Rotary encoder TKN46 manual-9

5. Emergency messages Each time the internal error status register (Index 1001 h) changes, the encoder transmits an emergency message with the identifier: 80h + node ID (even if an error which has occurred has been rectified). An emergency message is comprised of 8 data bytes and is structured as follows:

 Open the catalog to page 9
Rotary encoder TKN46 manual-10

6. Programming and diagnosis (object directory) 6. Programming and diagnosis (object directory) In the case of CANopen, all parameters and diagnostic information are contained in the object directory. There, they may be changed and/or read with the SDO (Service Data Object) message, specifying their index and sub-index. The object directory is sub-divided into the following areas: Communication parameters Index 1000h - 1FFFh Manufacturer-specific parameters Index 2000h - 5FFFh Standardised device parameters Index 6000h - 9FFFh Those parameters marked with “rw” in this chapter can be set by the...

 Open the catalog to page 10
Rotary encoder TKN46 manual-11

6.2 Communication parameters 6.2.1 Object 1000h - Device type Contains the manufacturer software version, e.g.: „TBN Std“

 Open the catalog to page 11
Rotary encoder TKN46 manual-12

6. Programming and diagnosis (object directory) 6.2.7 Object 1010h - Store parameters The information in object 1018h (also see Chapter 3.3) is required to use the Layer Setting Service (LSS, /5/).

 Open the catalog to page 12
Rotary encoder TKN46 manual-13

6.2.13 Object 1800h - First transmit PDO

 Open the catalog to page 13
Rotary encoder TKN46 manual-14

6. Programming and diagnosis (object directory)

 Open the catalog to page 14
Rotary encoder TKN46 manual-15

6.3 Standardised device parameters 6.3.1 Object 6000h - Operating parameters Values in brackets represent an encoder with 13 bit single turn resolution. The „Scaling function control" bit (object 6000h) must be enabled in order to change the parameter.

 Open the catalog to page 15
Rotary encoder TKN46 manual-16

6. Programming and diagnosis (object directory) 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...

 Open the catalog to page 16
Rotary encoder TKN46 manual-17

6.4 Standardised device diagnosis 6.4.1 Object 6500h - Operating status Only the alarms listed under object 6503h are supported.

 Open the catalog to page 17
Rotary encoder TKN46 manual-18

6. Programming and diagnosis (object directory) 6.4.6 Object 6506h - Supported Warnings The object contains the device‘s serial number.

 Open the catalog to page 18
Rotary encoder TKN46 manual-19

6.5 Manufacturer-specific parameters 6.5.1 Object 2000h - Node ID Gate time for speed measurement in ms. The updating time of the speed signal is equal to the gate time.

 Open the catalog to page 19
Rotary encoder TKN46 manual-20

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...

 Open the catalog to page 20

All TWK-ELEKTRONIK GmbH catalogs and technical brochures

  1. Manual TRN50/C3

    86  Pages

*Prices are pre-tax. They exclude delivery charges and customs duties and do not include additional charges for installation or activation options. Prices are indicative only and may vary by country, with changes to the cost of raw materials and exchange rates.