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

Rotary encoder TMN50 manual

Rotary encoder TMN50 manual
1 / 22 PagesView full catalog

Rotary encoder TMN50 manual

Product catalog summary
General Overview
The T Series encoders are designed for integration with the CAN bus using the T89C51 CC02 SO 28 controller. 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
The encoders operate as NMT slaves, supporting one SDO per communication direction, two transmit PDOs, adjustable PDO identifiers, SYNC and EMERGENCY messages, and a simple boot-up process. Transmission types for all PDOs can be configured, and node number and Baud rate are adjustable via Layer Setting Service (LSS).
Installation Instructions
Electrical connections should follow CiA Draft Recommendation Proposal 303-1, Version 1.1.1. The encoder lacks galvanic separation between supply voltage and bus leads, limiting the total bus length to 200 m. Baud rates range from 20 kBaud to 1000 kBaud, with corresponding lead lengths from 2500 m to 25 m. Default settings are 20 kBaud and node address 1.
Process Data Exchange
Data exchange is conducted via PDO messages, with two PDOs available. Operating modes include Polling, Asynchronous, Synchronous, and Acyclic modes. Transmission types are set via SDOs, detailed under indices 1800h and 1801h.
Data Format
Output data mapping is consistent for both PDOs, with position values output in steps. For variants with speed signals, speed values are output in steps per 100 ms. Position and speed values are accessible in the object directory under indices 6004h and 2010h.
Programming and Diagnosis
The object directory provides an overview of communication parameters, standardized device parameters, and manufacturer-specific parameters. Key objects include device type, error register, COB-ID SYNC, and identity object.
Examples
Examples include boot-up procedures, parameter changes, and setting node addresses via LSS.
Conclusion
This manual offers comprehensive instructions for the installation, configuration, and operation of T Series encoders with CANopen interfaces, ensuring efficient integration into CAN bus systems.
Encoder Specifications
  • Single-turn Encoder TBN/TKN: 4 data bytes with 13-bit position data and 16-bit speed data.
  • Multi-turn Encoder TMN/TSN: 4 data bytes with 28-bit position data, no speed signal.
  • Multi-turn Encoder TRN: 4 data bytes with 25-bit position data, no speed signal.
  • Encoders with Speed Signal: 6 data bytes with 25-bit position data and speed data.
Emergency Messages
  • Triggered by changes in the internal error status register (Index 1001h).
  • Composed of 8 data bytes, including error code and manufacturer-specific data.
  • Error register (Index 1001h) indicates general and manufacturer-specific errors.
  • EEPROM and sensor errors are addressed through specific rectification procedures.
Programming and Diagnosis
  • Parameters and diagnostics are managed via the object directory using SDO messages.
  • Object directory includes communication parameters (Index 1000h - 1FFFh), manufacturer-specific parameters (Index 2000h - 5FFFh), and standardized device parameters (Index 6000h - 9FFFh).
  • Parameters marked "rw" can be user-modified and stored in EEPROM using the "save" command (Index 1010h).
Key Objects in Object Directory
  • Device Type (1000h): Read-only, specifies device type.
  • Error Register (1001h): Read-only, indicates error status.
  • COB-ID SYNC (1005h): Read-write, defines Sync message identifier.
  • Store Parameters (1010h): Allows saving current parameters in EEPROM.
  • Restore Default Parameters (1011h): Loads default parameter values into EEPROM.
  • Operating Parameters (6000h): Controls scaling and speed value settings.
  • Measuring Units per Revolution (6001h): Defines units per revolution, adjustable with scaling enabled.
  • Total Measuring Range (6002h): Specifies total range for single and multi-turn encoders.
Operational Notes
  • Scaling function control must be enabled to adjust certain parameters.
  • Emergency messages and heartbeat signals are managed through specific COB-IDs and timing settings.
  • Encoders support various mapping configurations for PDOs, depending on the presence of speed signals.
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 TMN50 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 TMN50 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 TMN50 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 TMN50 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 TMN50 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 TMN50 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 TMN50 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 TMN50 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 TMN50 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 TMN50 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 TMN50 manual-13

6.2.13 Object 1800h - First transmit PDO

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

6. Programming and diagnosis (object directory)

 Open the catalog to page 14
Rotary encoder TMN50 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 TMN50 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 TMN50 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 TMN50 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 TMN50 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 TMN50 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.