Sunteți pe pagina 1din 20

Technical Information

EnDat 2.2 Bidirectional Interface for Position Encoders

Digital drive systems and feedback loops with position encoders for measured value acquisition require fast data transfer with high
transmission reliability from the encoders. Further data such as drive-specific parameters, compensation tables, etc. must also
be made available. For high system reliability, the encoders must be integrated in routines for error detection and have diagnostic
capabilities.

The EnDat interface from HEIDENHAIN is a digital, bidirectional interface for encoders. It is capable both of transmitting position values
from incremental and absolute encoders as well as transmitting or updating information stored in the encoder, or saving new information.
Thanks to the serial transmission method, only four signal lines are required. The data are transmitted in synchronism with the clock
signal from the subsequent electronics. The type of transmission (position values, parameters, diagnostics, etc.) is selected through
mode commands that the subsequent electronics send to the encoder. The EnDat 2.2 interface, a purely serial interface, is also suited for
safety-related applications up to SIL 3.

Voltage supply

CLOCK 16 MHz

DATA Position values, parameters, datum shifts,


electronic ID label, diagnostics, warning, etc.
Benefits of the EnDat interface

The EnDat interface provides everything


needed to reduce system cost and at the
same time improve your technical standard.
The most significant benefits are:

Cost optimization Improved quality Safety system


A single interface for all absolute and Higher system accuracy through specific EnDat 2.2 was conceived for safety-
incremental encoders optimization in the encoder related machine designs up to SIL 3
Simple subsequent electronics with High contour accuracy, particularly for Two independent position values for
EnDat receiver chip and standard CNC machine tools: position value error detection
components formation in the encoder permits shorter Two independent error messages
Simpler, more economical voltage sampling intervals without influencing Checksums and acknowledgments
supply, since remote sensing is not the computing time of the CNC Forced dynamic sampling of error
required messages and CRC formation by
Simple connection technology: Standard Higher availability subsequent electronics
connecting elements (M12 8-pin), Automatic configuration of the system
single shielded standard cables and low axis: all necessary information can be Support for state-of-the-art machine
wiring costs saved in the encoder (electronic ID label). designs
Only one cable with HMC 6: the Hybrid High system reliability through purely Suitable for direct drive technology
Motor Cable contains the lines for the digital data transmission thanks to high resolution, short cycle
encoder, the motor and the brake Diagnostics of the encoders through times and commutation information
Small motor or system dimensions monitoring messages and warnings that Cyclic sampling every 25 s with full
through compact connecting elements can be evaluated in the subsequent read and write mode
No expensive additional sensory analysis electronics Position values available in the subse-
and wiring: EnDat2.2 transmits additional High transmission reliability through quent electronics after only approx. 10s
data (limit switch, temperature, etc.) cyclic redundancy checking
Faster configuration during installation:
Datum shifting through offsetting by a
value in the encoder

Simple connection technology, Simple subsequent electronics


8-wire cable, single shielding with EnDat 2.2 receiver chip
(EnDat Master)

Miniature connecting
element, M12, 8-pin

Connecting element,
e.g. M12, D-sub

* For parallel voltage supply lines


or battery buffering
Voltage supply without
remote sensing
(UP = 3
 .6 to 5.25V or
3.6 to 14 V)

Integrated interpolation and position value


formation, temperature measurement

For further information on implementing


EnDat or additional documents, see
www.endat.de

2
The bidirectional interface

The EnDat interface is a digital,


Interface EnDat serial bidirectional
bidirectional interface for encoders. It is
capable both of transmitting position
Data transfer Position values, parameters and additional data
values as well as transmitting or updating
information stored in the encoder, or saving
Data input Differential line receiver according to EIA standard RS485 for
new information. Thanks to the serial
the signals CLOCK, CLOCK, DATA and DATA
transmission method, only four signal
lines are required. The data is transmitted
Data output Differential line driver according to EIA standard RS485 for
in synchronism with the clock signal from
DATA and DATA signals
the subsequent electronics. The type of
transmission (position values, parameters,
Position values Ascending during traverse in direction of arrow (see dimensions
diagnostics, etc.) is selected through mode
of the encoders)
commands that the subsequent electronics
send to the encoder. Some functions are
Incremental signals Depends on encoder
available only with EnDat 2.2 mode
1VPP, TTL, HTL (see the respective incremental signals)
commands.

History and compatibility Order designations Voltage supply


The EnDat 2.1 interface available since the The order designations define the central The typical voltage supply of the encoders
mid-90s has since been upgraded to the specifications and give information about: depends on the interface:
EnDat 2.2 version (recommended for new Typical voltage supply range
applications). EnDat 2.2 is compatible in its Command set EnDat01 5 V 0.25 V
communication, command set and time Availability of incremental signals EnDat21
conditions with version 2.1, but also offers Maximum clock frequency
significant advantages. It makes it possible, The second character of the order EnDat02 3.6 V to 5.25 V or 14 V
for example, to transfer additional data (e.g. designation identifies the interface EnDat22
sensor values, diagnostics, etc.) with the generation. For encoders of the current
position value without sending a separate generation the order designation can be EnDatH 10 V to 30 V
request for it. This permits support of read out from the encoder memory.
additional encoder types (e.g. with battery EnDatT 4.75 V to 30 V
buffer, incremental encoders, etc.). The Incremental signals
interface protocol was expanded and the Some encoders also provide incremental
time conditions (clock frequency, signals. These are usually used to increase Exceptions are documented in the
processing time, recovery time) were the resolution of the position value, or to Specifications.
optimized. serve a second subsequent electronics
unit. Current generations of encoders have Command set
Supported encoder types a high internal resolution, and therefore no The command set describes the available
The following encoder types are currently longer need to provide incremental signals. mode commands, which define the
supported by the EnDat 2.2 interface (this The order designation indicates whether an exchange of information between the
information can be read out from the encoder outputs incremental signals: encoder and the subsequent electronics.
encoders memory area): EnDat01 With 1VPP incremental signals The EnDat 2.2 command set includes all
Incremental linear encoder EnDatH With HTL incremental signals EnDat 2.1 mode commands. In addition,
Absolute linear encoder EnDatT With TTL incremental signals EnDat 2.2 permits further mode com
Rotational incremental singleturn EnDat21 Without incremental signals mands for the selection of additional data,
encoder EnDat02 With 1VPP incremental signals and makes memory accesses possible
Rotational absolute singleturn encoder EnDat22 Without incremental signals even in a closed control loop. When a
Multiturn rotary encoder mode command from the EnDat 2.2
Multiturn rotary encoder with battery Note on EnDat01/02: command set is transmitted to an encoder
buffer The signal period is stored in the encoder that only supports the EnDat 2.1 command
In some cases, parameters must be memory. set, an error message is generated. The
interpreted differently for the various supported command set is stored in the
encoder models (see EnDat Specifications) encoders memory area:
or EnDat additional data must be EnDat01/21/H/T Command set 2.1
processed (e.g. incremental or battery- or 2.2
buffered encoders). EnDat02/22 Command set 2.2

3
Clock frequency
The clock frequency is variabledepending

Cable length [m]


on the cable length (max. 150 m)
between 100 kHz and 2 MHz. With
propagation-delay compensation in the
subsequent electronics, either clock
frequencies up to 16 MHz are possible or
cable lengths up to 100 m. For EnDat
encoders with order designation EnDat x2,
the maximum clock frequency is stored in
the encoder memory. For all other encoders
the maximum clock frequency is 2 MHz.
Propagation-delay compensation is provid- Clock frequency [kHz]
ed only for order designations EnDat 21 EnDat 2.1; EnDat 2.2 without propagation-delay compensation
and EnDat 22; for EnDat 02, see the note EnDat 2.2 with propagation-delay compensation
below.
Under certain conditions, cable lengths up to 300 m are possible after consultation with
EnDat01 2 MHz (see without HEIDENHAIN
EnDatT propagation-delay com-
EnDatH pensation in the diagram)

EnDat21 2 MHz Position values Additional data


The position value can be transmitted with One or two items of additional data can be
EnDat02 2 MHz or or without additional data. appended to the position value, depending
8 MHz or 16 MHz It is not transmitted to the subsequent on the type of transmission (selection via
(see note) electronics until after the calculation time MRS code). The additional data supported
tcal has passed. The calculation time is by the respective encoder are saved in the
EnDat22 8 MHz or 16 MHz ascertained at the highest clock frequency encoder parameters.
permissible for the encoder, but at no The additional data contains:
greater than 8 MHz.
Transmission frequencies up to 16 MHz in Status information, addresses and data
combination with large cable lengths place Only the required number of bits is trans- WRN warnings
high technological demands on the cable. ferred for the position value. The bit num- RM reference mark
Due to the data transfer technology, the ber depends on the respective encoder Busy parameter request
adapter cable connected directly to the and can be read out from the encoder for
encoder must not be longer than 20 m. automatic parameterization. Additional data 1
Greater cable lengths can be realized with Diagnostics
an adapter cable no longer than 6 m and Typical operating modes Position value 2
an extension cable. As a rule, the entire Operating mode EnDat 2.1: This mode is Memory parameters
transmission path must be designed for for encoders that provide additional incre MRS-code acknowledgment
the respective clock frequency. mental signals. The absolute position is Test values
read out once simultaneously with the Temperature
incremental position and both are used to Additional sensors
Note on EnDat02 calculate the position value. Otherwise, the
EnDat02 encoders can feature a pluggable position value in the control loop is formed Additional data 2
cable assembly. In choosing the version on the basis of the incremental signals. Commutation
of the adapter cable, the customer also Only EnDat 2.1 mode commands are used. Acceleration
decides whether the encoder will be Limit position signals
operated with incremental signals or Operating mode EnDat 2.2: This mode is Asynchronous position value
without them. This also affects the for purely serial encoders. The position Operating status error sources
maximum possible clock frequency. For value is read out from the encoder in each Timestamp
adapter cables with incremental signals the control cycle. EnDat 2.2 mode commands
clock frequency is limited to at most are typically used to read out the position
2MHz; see EnDat01. For adapter cables value. EnDat 2.1 mode commands are
without incremental signals the clock typically used to read and write parameters
frequency can be up to 16 MHz. The exact after switch-on.
values are stored in the encoders memory. The EnDat 2.2 interface can interrogate the
position and additional data, and also per-
form functions (e.g. read/write parameters,
reset error messages, etc.), all within the
closed loop.

4
Memory areas Absolute encoder Subsequent electronics
The encoder provides several memory
areas for parameters. These can be read Incremental 1 VPP A*)
signals *)
from by the subsequent electronics, and 1 VPP B*)
some can be written to by the encoder

EnDat interface
manufacturer, the OEM, or even the end
user. The parameter data are stored in a
permanent memory. This memory permits Absolute
only a limited number of write access position value
events and is not designed for cyclic data
storage. Certain memory areas can be
write-protected (this can only be reset by
the encoder manufacturer). Parameters of the encoder
Operating Operating Parameters manufacturer for *) D
 epends on encod-
parameters status of the OEM er, example repre-
Parameters are saved in various memory EnDat 2.1 EnDat 2.2 sentation for 1 VPP
areas, e.g.:
Encoder-specific information
Information of the OEM Functional safety Basic principle
(e.g. electronic ID label of the motor) EnDat 2.2 strictly supports the use of
Operating parameters (datum shift, encoders in safety-related applications. The
instruction, etc.) DIN EN ISO 13 849-1 (previously EN 954-1),
Operating status (alarm or warning EN 61508 and EN61800-5-2 standards
messages) serve as the foundation. These standards
describe the assessment of safety-related
Monitoring and diagnostic functions of systems, for example based on the failure
the EnDat interface make a detailed probabilities of integrated components and
inspection of the encoder possible. subsystems. The modular approach helps
Error messages manufacturers of safety-related systems to
Warnings implement their complete systems,
Online diagnostics based on valuation because they can begin with prequalified
numbers (EnDat 2.2) subsystems.
Mounting interface

For more information, see Functional


safety at www.endat.de

Input circuitry of Data transfer Encoder Subsequent electronics


subsequent electronics
Dimensioning
IC1 = RS 485 differential line receiver
and driver

Z0 = 120

Incremental signals
Depends on encoder
(e.g. 1 VPP)

1 VPP

5
Data transfer

A clock pulse (CLOCK) is transmitted by Clock frequency


the subsequent electronics to synchronize
data transmission. When not transmitting,
the clock signal is on high level.

Cable length [m]


Clock frequency and cable length
Without propagation-delay compensation,
the clock frequency is variable between
100kHz and 2MHz, depending on the
cable length. Because large cable lengths
and high clock frequencies increase the
signal run time to the point that they can
disturb the unambiguous assignment of
data, the delay can be measured in a test Clock frequency [kHz]
run and then compensated. With this Without delay compensation
propagation-delay compensation in the With delay compensation
subsequent electronics, clock frequencies
up to 16MHz are possible at cable lengths Under certain conditions, cable lengths up to 300 m are possible after consultation with HEIDENHAIN.
up to a maximum of 100m (fCLK8MHz).
The maximum clock frequency is mainly
determined by the cables and connecting
elements used. To ensure proper function Clock on-off ratio
at clock frequencies above 2MHz, use only
original HEIDENHAIN cables.

The permissible clock frequencies shown


in the diagrams apply for a clock on-off
ratio of 1:1. This means that the HIGH and
LOW levels of the clock are equally long.
For other on-off ratios, the theoretical clock
frequency is calculated as fc = 1
2tmin
Determining the propagation time
After every change in the transmission line
hardware, the propagation time must be Clock
ascertainedpreferably automatically after
every power interruption.

The subsequent electronics transmit the


mode command Encoder transmit position
values without additional data to the between the last rising clock pulse edge clock frequency (100kHz to 200kHz). To
encoder. After the encoder has switched and the edge of the start bit. The process attain sufficient accuracy, however, the
to transmission, i.e. after in total 10 clock should be repeated at least three times in value must be sampled at an internal
periods, a counter in the subsequent order to rule out any disturbances during frequency that is at least eight times higher
electronics starts with every rising edge. the calculation of the propagation time and than the clock frequency to be used later
The subsequent electronics measure the to test the value for consistency. The signal for data transmission.
propagation time as the difference propagation time is measured at a reduced

Clock frequency 100 kHz to 200 kHz

2T Mode command 2T
Clock pulse
transmitted
to the encoder
Clock pulse
at encoder
Mode
Data at 0 0 0 1 1 1 S F1 D D D D CRC CRC CRC CRC CRC
encoder
Data at subs. 0 0 0 1 1 1 S F1 D D D D CRC CRC CRC CRC CRC
electronics tD
S = start, F1 = error, D = data
Start counter

6
Selecting the transmission type

Transmitted data are identified as either The time encoders need for calculating
position values, position values with the position values tcal sometimes differs
additional data, or parameters. The type of depending on whether EnDat 2.1 or
information to be transmitted is selected EnDat 2.2 mode commands are transmit
by mode commands. Mode commands ted (see catalog: Linear Encoders for
define the content of the transmitted Numerically Controlled Machine Tools
information. Every mode command Specifications). If the incremental signals
consists of three bits. To ensure reliable are evaluated for axis control, then the
transmission, every bit is transmitted EnDat2.1 mode commands should be
redundantly (inverted or double). If the used. Only in this manner can an active
encoder detects an incorrect mode error message be transmitted synchro
transmission, it transmits an error message. nously with the currently requested
The EnDat2.2 interface can also transfer position value. EnDat2.1 mode commands
parameter values in the additional data should not be used for purely serial
together with the position value. This position-value transfer for axis control.
makes the current position values
constantly available for the control loop,
even during a parameter request.

Mode bit

No. Mode command M2 M1 M0 (M2) (M1) (M0)

1 Encoder send position values 0 0 0 1 1 1


EnDat 2.1 command set

2 Selection of memory area 0 0 1 1 1 0

3 Encoder receive parameters 0 1 1 1 0 0

4 Encoder send parameters 1 0 0 0 1 1

5 Encoder receive reset 1 0 1 0 1 0

6 Encoder send test values 0 1 0 1 0 1


EnDat 2.2 command set

7 Encoder receive test command 1 1 0 0 0 1

8 Encoder send position value with 1 1 1 0 0 0


additional data

9 Encoder send position value and 0 0 1 0 0 1


receive selection of memory area 1)

10 Encoder send position value and 0 1 1 0 1 1


receive parameters1)

11 Encoder send position value and 1 0 0 1 0 0


send parameters1)

12 Encoder send position value and 1 0 1 1 0 1


receive error reset1)

13 Encoder send position value and 1 1 0 1 1 0


receive test command1)

14 Encoder receive communication 0 1 0 0 1 0


command 2)
1)
Selected additional data are also transmitted
2)
Reserved for encoders that do not support the safety system

7
Position values

For every data transfer one data packet is


transmitted in synchronism with the clock
signal. The transmission cycle begins with
the first falling clock edge. The encoder
saves the measured values and calculates
the position value.
After two clock pulses (2T), the subsequent
electronics transmit the mode command
Encoder transmit position value (with/
without additional data).
After successful calculation of the absolute
position value (tcalsee table), the start
bit begins the data transmission from the
encoder to the subsequent electronics.
The subsequent error bits, error 1 and Position value packet without additional data
error 2 (only with EnDat 2.2 commands),
are group signals for all monitored Encoder saves
functions and serve for failure monitoring. position value
They are generated separately from each Subsequent electronics
other and indicate when a malfunction of transmit mode command
the encoder can result in incorrect position
values. The exact cause of the disturbance
is saved in the operating status memory
of the encoder and can be interrogated in
detail.
The encoder then transmits the position
value, beginning with the LSB. Its length
varies depending on which encoder is Mode command Position value CRC
being used. The number of required clock
pulses for transmission of a position value S = start, F1 = error 1, F2 = error 2, L = LSB, M = MSB
Diagram does not include the propagation-delay compensation
is saved in the parameters of the encoder
manufacturer.
The data transmission of the position value
is completed with the Cyclic Redundancy Without delay compensation With delay compensation
Check (CRC).
This is followed in EnDat 2.2 by the Clock frequency fc 100 kHz ... 2 MHz 100 kHz ... 16 MHz
additional data 1 and 2, each also
concluded with a CRC. The content of Calculation time for
the additional data is determined by the Position value tcal Typical of EnDat 2.2 encoders: 5 s
selection of the memory area and is Parameters tac Max. 12 ms
transmitted in the next sampling cycle for
additional data. This information is then Recovery time tm EnDat 2.1: 10 s to 30 s
transmitted with every sample until a EnDat 2.2: 10 s to 30 s or 1.25 s to 3.75s (fc1MHz)
selection of a new memory area changes (parameterizable)
the content.
With the end of the data word, the clock tR Max. 500 ns
must be set to HIGH. After 10 to 30 s or
1.25 to 3.75 s (with EnDat 2.2 parameter- tST 2 s to 10 s
izable recovery time tm) the data line falls
back to LOW. Then a new data transmis- Data delay time tD (0.2 + 0.01 x cable length in m) s
sion can be initiated by starting the clock.
Pulse width tHI 0.2 s to 10 s Pulse width fluctuation
HIGH to LOW max. 10%
tLO 0.2 ms t o 50 ms
Up to 30 s
(with LC 1x3/4x3)

8
Data packet with position value and additional data 1 and 2
Encoder saves
position value
Subsequent electronics
transmit mode command

Mode command Position value CRC Additional datum 2 CRC Additional datum 1 CRC

S = start, F1 = error 1, F2 = error 2, L = LSB, M = MSB


Diagram does not include the propagation-delay compensation

Content of the data packet

Error messages 1 and 2 Position value


The EnDat interface enables The position value is transmitted as a assignable to each of the additional data 1
comprehensive monitoring of the encoder complete data word whose length and 2. These numbers are used to select
without requiring an additional transmission depends on the resolution of the encoder. the additional data and are transmitted for
line. An error message becomes active if a Transmission begins with the LSB (LSB acknowledgment (see next page). The
malfunction of the encoder might result in first). additional data supported by the encoder is
incorrect position values. At the same time, saved in the encoder memory.
the cause of error is saved in the encoder. The composition of the position value
Errors include: differs depending on the encoder model The Encoder transmit position value and
Light unit failure (see EnDat specifications). At this point, receive selection of memory area mode
Signal amplitude too low absolute encoders transmit the absolute command selects the information to be
Error in calculation of position value position value while incremental encoders transmitted, which is therefore possible in
Supply voltage too high/low transmit the relative position value (see a closed loop. After the additional datum
Current consumption is excessive also Position value 2 on the following has been selected, it is transmitted with
For reasons of security it is necessary to page). the next mode command (only no. 8 to 13).
generate a second, independently acquired The additional datum is transmitted with
error message. It is transmitted with the Additional data each position value until it is deselected
inverted value as error message 2. The two An encoder with EnDat 2.2 interface can through the transmission of a special MRS
error messages must be evaluated transmit the position value together with code or until another additional datum is
separately from each other. up to two additional data. Sixteen possible selected. When the encoder is switched
contents identified by unique numbers are on, at first no additional data is selected.

Example
Additional datum 1:
Rolling transmission of temperature 1 (Temp1: MRS code 0x4C) and temperature 2 (Temp2: MRS code 0x4D)

Additional datum 2: Transmission of the operating status error sources (BZFQ: MRS code 0x59)

Mode command 9 (001001): Encoder transmit position value and receive selection of memory area

Subsequent electronics encoder Encoder subsequent electronics


Mode command 9 + MRS code 0x59 Position
Mode command 9 + MRS code 0x4C Position + BZFQ
Mode command 9 + MRS code 0x4D Position + BZFQ + Temp1
Mode command 9 + MRS code 0x4C Position + BZFQ + Temp2
Mode command 9 + MRS code 0x4D Position + BZFQ + Temp1
etc.

9
Additional data
30 bits
One or two items of additional data can be
appended to the position value, depending
on the type of transmission (selection via Additional data 5 bits
MRS code). The additional data are each CRC
30 bits in length, with a LOW level as first
bit. Each additional datum is concluded
with a CRC that is formed from the respec
tive additional data without the first bit or
the CRC.
Acknowledgment of
The additional data supported by the additional data 8 bits 8 bits data
respective encoder are saved in the address or
encoder parameters. data
The additional data include status
information, addresses, and data:

Status data Content of the additional data Test values


WRN warnings The content of the additional data is Test values serve for inspection purpos-
This collective bit indicates whether certain defined by the mode command for es, in service diagnostics, for example.
tolerance limits of the encoder have been selection of a memory area. This content, Temperature
reached or exceeded, for example updated with each clock pulse, is Transmission of temperature in encoders
rotational speed or light source control transmitted until there is a new request. with integrated evaluation of internal or
reserve, without necessarily indicating an A unique number is assigned to each external temperature sensors.
incorrect position value. This function additional datum. It is 5 bits in length and Additional sensors
makes it possible to issue preventive is transmitted for inspection purposes. The The EnDat 2.2 protocol enables the
warnings in order to minimize idle time. following contents are possible: connection of 16 additional sensors (4-bit
The cause of the warning is stored in the address). The sensor values are output in
encoder memory. The error messages and Additional datum 1 a rolling request process (x+1); the
warnings supported by the respective Diagnostics assigned sensor can be identified based
encoder are saved in the parameters of Cyclic information on encoder function on the supplied address.
the encoder manufacturer memory area. and additional diagnostic values, such as
mounting information Additional datum 2
RM reference mark Position value 2 Commutation
The RM bit indicates whether the For incremental encoders: Relative Some incremental encoders provide
reference run has been completed. In position information (counter starts from rough position information for
incremental systems, this is required in zero at switch-on). The absolute position commutation in electric motors.
order to establish the absolute reference value is only available after the reference Acceleration
to the machine reference system. The marks have been traversed (RM bit If the encoder has additional sensor
absolute position value can then be read HIGH). systems for acceleration measurement,
from the additional datum 1. On absolute For absolute encoders: Second absolute it can transmit the results.
encoders, the RM bit is always on HIGH. position value for safety-related Limit position signals
applications. Limit position signals and homing
Busy parameter request Memory parameters information.
When LOW, the busy bit indicates that a Parameters saved in the encoder can Asynchronous position value
parameter request (read/write) is possible. also be transmitted along with the Position formed by oversampling
If a request is being processed (HIGH), the position values. The request is defined between two "regular" requests.
encoder memory must not be accessed. via memory range selection, followed by Operating status error sources
output of the parameters with the Detailed information about the cause of
associated address. the present error message.
MRS codeacknowledgment Timestamp
Acknowledgment of the requested Reserved for touch probes.
memory area selection

10
Parameters
Memory areas

The encoder provides several memory


Absolute encoder Subsequent
areas for parameters. These can be read electronics
from by the subsequent electronics, and
some can be written to by the encoder Incremental
manufacturer, the OEM, or even the end signals *) / *)
user. Certain memory areas can be write-

EnDat interface
protected.

The parameters, which in most cases are


set by the OEM, largely define the function Absolute
of the encoder and the EnDat interface. position value
When the encoder is exchanged, it is
therefore essential that its parameter
settings are correct. Attempts to configure
Operating Operating Parameters Parameters of the encoder *) D
 epends on
machines without including OEM data can parameters status of the OEM manufacturer for encoder
result in malfunctions. If there is any doubt (1 VPP, TTL, HTL)
as to the correct parameter settings, the EnDat 2.1 EnDat 2.2
OEM should be consulted.

Addressing
Block diagram of absolute encoder with EnDat 2.2 interface
Before transmission of parameters
(reading or writing), the corresponding
memory range must be selected. One
or more MRS codes are therefore
assigned to the respective memory areas
(MRS Memory Range Select).

After selection of the memory range, the


word address is also required for reading or
writing information. The access time tac for
reading or writing can be up to 12 ms. The
MRS code selection and the reading and
writing of data are possible with EnDat 2.1
or EnDat 2.2 mode commands.

Parameters of the encoder manufacturer Parameters of the OEM Operating status


This write-protected memory area contains In this freely definable memory area, the This memory area provides detailed error
all information specific to the encoder, OEM can store his information, e.g. the messages or warnings for diagnostic
such as encoder type (linear, angular, electronic ID label of the motor in which purposes. Here it is also possible to
singleturn/multiturn, etc.), signal periods, the encoder is integrated, indicating the initialize certain encoder functions, activate
number of position values per revolution, motor model, maximum current rating, etc. write protection for the OEM parameters
transmission format of absolute position The size of the OEM area depends on the and operating parameters memory areas,
values, direction of rotation, maximum encoder. and to interrogate their status.
permissible speed, accuracy dependent on Once activated, the write protection
shaft speeds, support of error and warning Operating parameters cannot be reversed.
messages, part number, and serial number. This area is available to the customer for a
This information forms the basis for datum shift, the configuration of diagnos-
automatic configuration. tics and for statements. Furthermore, a
warning threshold can be defined for the
A separate memory area contains the temperature sensor integrated in the
parameters typical for EnDat 2.2, such as encoder. Other functions (cycle time, I/0,
status of additional data, temperature, touch-probe status) are reserved for future
acceleration, support of diagnostic and applications. The operating parameter area
error messages. can be protected against overwriting.

11
Parameters of the encoder manufacturer

The meaning of the information contained The meanings of parameters are divided The additional data for EnDat 2.2 contained
in the parameters of the encoder into evaluation categories. On the basis of in the parameters of the encoder manufac-
manufacturer depends on the encoder. these categories, the user can make clear turer depend in part on the respective en-
decisions on the use of parameters and coder.
HEIDENHAIN encoders can be divided into their integration in the application software.
six groups. They are differentiated by the The additional data, additional functions,
type of encoder (word 14 of the EnDat 2.1 Evaluation categories: diagnostic values, and specifications that
parameters). Required: the respective encoder supports are saved
It is essential for operation of the in the assigned status words of these
Encoder types: encoder that these parameters be memory areas. Before interrogation of the
L Linear encoder considered. additional data, HEIDENHAIN recommends
ST Singleturn rotary encoder or angle Depending on application: reading out the supported information and
encoder Whether these parameters are to be functions (typically for every initialization of
MT Multiturn encoder considered depends on the customer's encoders). They are also shown in the
iL Incremental linear encoder with application. If, for example, no OEM encoders specifications.
external (EIB) or integral conversion of range is used, then the parameter
1VPP to purely serial EnDat 2.2 regarding memory allocation for
iR Incremental rotational encoder with parameters of the OEM need not be
external (EIB) or integral conversion considered.
of 1VPP to purely serial EnDat 2.2 Informative:
T Touch probe These parameters are not required for
encoder operation, but they give the user
additional information such as the model
number.
Irrelevant:
If no encoder types were assigned to
any of the three other evaluation
categories, then the parameter is not
required for encoder operation and can
be ignored.

Parameters of the encoder manufacturer for EnDat 2.1


Unit for
Depends on

Informative
application

Word Contents Linear Rotary/Angle Remark


Required

encoder encoder

4 Mask 0
5 Mask 1
6 Mask 2
7 Mask 3
8 Version of the EnDat interface All 2 saved with EnDat 2.1 or 2.2
9 Memory allocation for parameters of Depends on encoder; flexibly
10 the OEM All programmable. Memory pointer to first
free address
11 Memory allocation for compensation Reserved for encoder manufacturer
12 values
13 Number of pulses for transmission of Setting the correct clock number for
position value (transmission format) All position transmission
14 Encoder type All Defines the units of the parameters
15 Signal period(s) per revolution for nm iL, iR: For calculating the smallest
1)
16 incremental output signals All display step (LSB) or the correct display
value for negative traverse direction
All: For EnDat-compliant datum shift
17 Distinguishable revolutions MT Required for correct calculation of the
(only for multiturn rotary encoders) position
18 (Nominal) increment of reference mm Signal periods iL iR
marks
19 Position of the first reference mark mm iL
1)
Except touch probe

12
Parameters of the encoder manufacturer for EnDat 2.1 (continued)
Unit for

Depends on

Informative
application
Word Contents Linear Rotary/Angle Remark

Required
encoder encoder

20 Measuring step or steps per revolution nm Measuring All1)


21 with serial data transmission steps per
revolution
22 Datum shift of the encoder Signal periods Signal periods All To be accounted for by the user for
23 manufacturer datum shift

24 ID number All Safety technology


25
26
27 Serial number All Encoder exchange can be detected
28 (may affect applicationsafety related)
29
1)
30 Direction of rotation or traverse All
31 Status of commissioning diagnostics No longer supported since 1999
1
32 Maximum mechanically permissible m/min min All1) Required for cross checking of absolute
linear velocity or shaft speed position incremental position
2)
33 Accuracy depending on linear velocity LSB LSB 2) ST MT L Comparison of absolute and incremental
or shaft speed, area I position not possible with E iL iR
34 Accuracy depending on linear velocity LSB
2)
LSB 2) ST MT L because these encoders have only
or shaft speed, area II incremental information
35 Support of error messages 1 All For definition of an error mask
(safety related)
36 Support of warnings All For preventive maintenance
37 EnDat command set All Information on whether EnDat 2.2
mode commands are supported
3)
38 Reserved for measuring length L iL
39 Maximum processing time All For monitoring (time out)
40 EnDat ordering designation All Distinguishes between with/without
incremental signals
41 HEIDENHAIN specifications
42
43
44
45
46
47 CHECKSUM
1)
Except touch probe
2)
The higher-valued byte contains the divisor with respect to the maximum permissible linear velocity or rotational shaft speed up to
which this accuracy is valid.
3)
Not supported by all linear encoder models; initialized with default value 0

13
Parameters of the encoder manufacturer for EnDat 2.2
Unit for

Depends on

Informative
application
Required
Word Contents Linear Rotary/ Remark
encoder Angle
encoder

0 Status of additional datum 1 All Can be safety related. Cross checking of what
1 Status of additional datum 2 All is required and what does the encoder
support
2 Status of additional functions All
2
3 Acceleration m/s 1/s2 All1) Consider the scaling factor
4 Temperature K K All Consider the scaling factor
5 Diagnostic status All
1)
6 Support of error message 2 All For definition of an error mask (safety related)
1)
7 Dynamization status All Safety technology
8
9 Measuring step or measuring steps nm Safety technology
1)
10 per revolution for position value 2 All
2)
11 Accuracy of position value 2 depending LSB LSB2) All1) Safety technology
12 on linear velocity or shaft speed, area I LSB2) LSB 2)
All1) Safety technology
2)
13 Accuracy of position value 2 depending LSB LSB2) All1) Safety technology
14 on linear velocity or shaft speed, area II LSB2) LSB2) All1) Safety technology
15 Distinguishable revolutions for position MT Required for correct calculation of the position
value 2 (only for multiturn encoders)
1)
16 Direction of rotation of position value 2 All iL, iR safety technology
17-20 Encoder designation All
21 Support of instructions Not yet supported
Not for safety technology
1)
22 Max. permissible encoder temperature K K All
at measuring point
2
23 Max. permissible acceleration m/s 1/s2 All1)
24 Number of blocks for memory area All Depends on encoder; program flexibly
section 2
25 Maximum clock frequency kHz kHz All Depends on connector, cable and cable lengths
1)
26 Number of bits for position comparison All Safety technology
27 Scaling factor for resolution All1) For calculation of the smallest display step
28 Measuring step, or measuring steps All1) (LSB)
29 per revolution or subdivision values of
a grating period
1
30 Max. speed or rpm for constant code m/min min All1) Specific to application. Applies for encoders
value that permit higher mechanical than electrical
speed. (Not supported by the EIB.)
1)
31-33 Offset between position value and All Safety technology
position value 2
34 Number of distinguishable MT Required for correct calculation of the position
revolutions with scaling factor
35 Support of operating status error All Expanded EnDat error message, particularly for
sources battery-buffered encoders
1)
36-38 Safety-relevant measuring steps All Safety technology
1)
39-40 Non-safety-relevant subdivision of the All Safety technology
relative position
1)
41-42 Non-safety-relevant subdivision of the All Safety technology
absolute position
43 Generation of a warning message L iL Presently available only with certain
through limit position signals incremental exposed linear encoders
44 Support of touch probe statuses T Supported features
45 Timestamp for unit of measure T
46 Referencing of incremental encoders iL, Ir Is re-referencing supported?
1)
47 Support of I/Os All Are I/O supported and which?
48 Number of OEM blocks for memory All The memory area section 2 makes larger OEM
area section 2 memory possible.
63 CHECKSUM
1)
Except touch probe
2)
 he higher-valued byte contains the divisor with respect to the maximum permissible linear velocity or rotational shaft speed
T
up to which this accuracy is valid.

14
Transmission of parameters

Fundamentals Selection of MRS code EnDat 2.1 mode commands for the
Because saving the data in an EEPROM The MRS code must be set before transmission of parameters
consumes a maximum access time tac of transmission of a parameter word. The All mode commands have the same
up to 12 ms, it must be decided for each EnDat 2.1 parameter area is selected with structure and are distinguished by the
application whether the control loop should the corresponding EnDat 2.1. or EnDat 2.2 number of the mode command and the
be closed during the reading or writing of mode command. For the EnDat 2.2 data content. Within the respective mode
parameters. EnDat 2.1 mode commands parameter area, the appropriate EnDat 2.2 command, the data are transmitted from
are designed for an open control loop mode command is required. the subsequent electronics to the encoder
during access to the parameters. EnDat 2.2 and then, after the access time tac, data
mode commands are designed for opera- are transmitted as acknowledgment from
tion in the closed control loop. the encoder to the subsequent electronics.
If multiple values (parameters) are read
from or written to a memory area, the
MRS must be selected only once.

Communication: Communication:
Subsequent electronics encoder Encoder subsequent
electronics

Mode command Mode bits MRS code or Parameters Acknowledg- Confirmation of


address ment of MRS parameters
code or address
1)
Selection of the memory area 001 110 MRS code Any MRS code Any

Encoder receive parameters 011 100 Address Parameters Address Parameters

Encoder send parameters 100 011 Address Any Address Parameters


1)
 he appropriate EnDat 2.2 mode command is required for the selection of the MRS code of the parameters of the encoder
T
manufacturer for EnDat 2.2.

EnDat 2.2 mode commands for the A following transmission supplement can
transmission of parameters then also transmit the MRS code, address
Reading and writing in the closed control and parameters to the encoder. The
loop is possible with EnDat 2.2 mode additional data and the transmission
commands. The access time tac to the supplement provide the following:
EEPROM is synchronized through what is Additional data:
termed the busy bit that is transferred Data content from reading of parameters
with each EnDat additional datum. First, and acknowledgments
the position value and (if selected) additional Transmission supplement:
data are transmitted with each of the mode MRS code, address and parameters
commands to make communication in the Schematic representation of reading
closed control loop possible. access with EnDat 2.2 mode commands:

Sequence Data communication on interface (bidirectional)

Selection of memory area Position value + Selection of the MRS code

Acknowledgment of MRS code Position value + Acknowledgment of MRS code (selection of additional data and readout)

Transmission of read address Position value + Selection of address to be read

Cyclical request on busy bit = 0; Position value + Any additional data


(max. tac = 12 ms)

Reading out of LSB data and Position value + Addressing of the additional datum acknowledgment of LSB and read-
acknowledgment out of data content + acknowledgment of read address

Reading out of MSB data and Position value + Addressing of additional datum acknowledgment of MSB and read-
acknowledgment out of data content + acknowledgment of read address

15
Diagnostics

The EnDat interface makes extensive


monitoring and diagnosis of an encoder
possible without an additional line. The
diagnostic system generates error
messages and warnings (see Position
values), and is a significant prerequisite for
the high level of availability of the complete
system.

Online diagnostics are growing in


significance. Decisive points of emphasis
are:
Machine usage planning
Support for the service technician on-site
Simple evaluation of encoder function
reserves
Simplification of trouble-shooting for
repair
Generation of meaningful quality
statistics

On encoders with incremental signals, it is


possible to use Lissajous figures to analyze
signal errors and what they mean for
encoder function. Screen showing the valuation numbers as functional reserves (e.g. with ATS software)

Encoders with purely serial interfaces do Activation of diagnosis


not provide incremental signals. Encoders
with EnDat 2.2 can cyclically output the
valuation numbers in order to evaluate
the functions of the encoder. The valuation Interrogation of diagnostics data Encoder send position value
numbers provide the current state of the with additional data
encoder and ascertain the encoders
function reserves. Their scaling is
identical for all HEIDENHAIN encoders.
This makes integrated evaluation possible. Adaptation of synchronism to a valid packet header.
The valuation numbers supported by the (Non-supported addresses system data must be suppressed.)
respective encoder are saved in the
EnDat 2.2 parameters.

Composition and interrogation of the Determination and display of valid valuation numbers
transmitted diagnostics data:
The desired valuation numbers must be
activated.
The value (8 bits) is transmitted over the
additional datum 1.
Flow chart for interrogating the diagnostic data (simplified; for details see
The values are output in a cyclic process;
EnDat Application Note).
address and value.
The data as to which valuation numbers
are supported is saved in the EnDat 2.2
parameters. In addition to the online diagnostics, certain
The diagnostics information can be inductive rotary encoders provide special
transmitted in the closed-loop mode. information over the diagnostics interface
The border areas should be sup- for mounting, for example the mounting
pressed in the display (definition of dimensions. Output of the mounting infor-
reserve areas is required). mation must be activated by the OEM and
should also be deactivated after mounting
is completed. For more information, see
the EnDat Application Note.

16
Configuration

The EnDat interface makes it possible Operating status Operating parameters


to set various functions regarding data
transmission or the general operation of Function initialization Datum shift
the encoder. The various EnDat words Recovery time: This function is called electronic datum
for setting functions are located in the 10stm30s selectable to setting and enables the customer to fit
operating status or operating parame 1.25stm3.75s (for mode the encoder datum to the datum of the
ters memory areas. The settings are commands no. 8 to 14 and application.
normally saved and need only be made fCLK>1MHz)
once. Reduced recovery time is set when very Configuration of diagnostics
short cycle times are to be attained. This EnDat word activates the desired
valuation numbers for transmission of
Multiturn functions: diagnostic information.
Make it possible to connect encoders Recommendation: All available valuation
with a battery-buffered revolution numbers should be activated to ensure the
counter. maximum depth of information on the
encoders function reserves.
Reference pulse initialization:
Only with incremental encoders for Address assignment and instructions
finding the optimal reference mark Reserved for future bus operation through
position the EnDat interface.

The following functions are reserved for Threshold sensitivity to temperature


future applications and therefore cannot Specification of a temperature threshold at
yet be set: which the encoder transmits a warning to
Oversampling, diagnostics reset the subsequent electronics. The temperature
EnDat 2.2 cyclic operation I/O, statuses is derived from the encoders internal
of touch probes, referencing of incre- temperature sensor
mental encoders can be switched off
Cycle time
Setting the cycle time with which the
Write protection higher-level control transmits EnDat
The customer can write-protect the OEM requests. Reserved for future applications.
parameters (electronic ID label) and/or
the operating parameters (e.g. datum shift).

17
Interface
Voltage supply and switch-on

Voltage supply Supply voltage


The encoders require a stabilized DC from subsequent
voltage UP as voltage supply. The required electronics UP max.
voltage supply and the current (supply point)
consumption are given in the respective see Specifications UP min.
specifications. The values apply as of the Encoder
measured at the encoder.

EnDat 2.2 encoders feature an expanded


voltage supply range from 3.6 V to 5.25V
or from 3.6 V to 14V. This makes it possible
to design the voltage supply of the subse Start
quent electronics so that the resulting
voltage after attenuation through cable
length, cable cross section and current
Reaction of the
consumption can be processed without
encoder
correction (applies only for cable assem
blies from HEIDENHAIN). This means that
monitoring the voltage at the encoder with Data
the encoders sensor lines and adjusting
the supply voltage through a controllable
power supply unit (remote sense) are no Clock pulse
longer necessary. sequence from
subsequent 50 ms 1 ms
The permissible ripple content of the electronics
DC voltage is:
High frequency interference Clock
UPP < 250 mV with dU/dt > 5 V/s
Low frequency fundamental ripple Valid HIGH or At least one pulse (> 125 ns)
UPP<100mV 800 ms t1 any LOW level or one request cycle
80 ms t2 120 ms
Starting behavior at the encoder 380 ms t3 420 ms undefined *) high-impedance
The integrated electronics require a start-
up time of approx. 1.3 s, whereby a defined
initialization phase should be taken into
account (see Clock pulse sequence from
Encoder's initialization phase is concluded
the subsequent electronics at right).

After conclusion of the initialization phase, Encoder reset


a certain switch-on routine is necessary. Encoder receive reset mode command
Only EnDat 2.1 mode commands can be
used for this purpose.
Readout and buffering of error messages and warnings
For battery-buffered encoders, the operating status error sources
may have to be read out and followed by special fault handling.

Deleting the error messages and warnings (if set)

Reading the encoder parameters, for example:


The number of clock pulses for transfer of position value
Support of EnDat 2.2 mode commands
Other parameters

Power-on routine (simplified). For more information, see the EnDat Application Note.

18
Connection technology

Connecting elements Cable


Encoders with EnDat 2.2 interface without Transmission frequencies up to 16 MHz in
incremental signals use mainly 8-pin M12 combination with large cable lengths place
connecting elements, but also 9-pin M23. high technological demands on the cable.
M12 connector technology is in wide use HEIDENHAIN cables are equal to this task,
in industrial applications and has the not least because of a cable construction
following advantages: conceived specifically for this application.
Cost-effective connection technology We recommend using original HEIDENHAIN
Smaller dimensions cables.
Simpler cable feed through in machines Due to the data transfer technology, the
Thinner connecting cables ( 6 mm adapter cable ( 4.5 mm) connected
instead of the previous 8 mm) directly to the encoder must not be longer
Higher reliability thanks to injection- than 20 m. Greater cable lengths can be
coated connection technology realized with an adapter cable no longer
Integrated lock mechanism as vibration than 6 m and an extension cable ( 6mm).
protection

Implementation of EnDat
HEIDENHAIN offers various aids for imple- EnDat master EnDat error injector
menting the EnDat interface in subsequent The EnDat master controls communication The simulation of a faulty data transmission
electronics (see also Implementation with EnDat encoders from HEIDENHAIN. can be useful for test purposes. The EnDat
section at www.endat.de): It allows simple transmission of position error injector enables manipulation of an
data and additional data to the higher-level EnDat transmission in a closed loop. A
EnDat Demotool software application. The EnDat master can be special PWM 20 version forms the basis
The EnDat Demotool software requires a integrated by means of a micro controller for the error injector.
PWM 20 as hardware basis. The EnDat (C) or an FPGA (Field Programmable Gate
Demotool software supports you when Array) or ASIC. Documentation
implementing the EnDat interface: The C solutions are used if the intended EnDat Specifications
Communication with EnDat encoders on clock frequencies are relatively low. EnDat Application Note
the basis of mode commands Integration in an FPGA or ASIC is chosen EnDat Seminar
Logging of EnDat command sequences primarily for high transmission frequencies FAQ and implementation at
Provides a reference when integrating of with purely serial data transfer. Several www.endat.de
the EnDat master into the control loop variants are available for integration in an Technical Information: EnDat
FPGA or ASIC. Description of the EnDat master
EnDat master, standard component at www.mazet.de
EnDat master, safe
EnDat master, reduced
EnDat master, light

19
Overview of encoders

Another advantage of the EnDat interface Absolute encoders Resolution


is that it can be used with a wide variety of
encoders. Rotary, linear and angle encod- Linear encoders LC 115/LC 415
1)
5 m 10 nm
ers with EnDat interface make it possible 3 m 1 nm
to cover very diverse applications in the LC 211 10 nm
machine tool, electronics and automation LIC 4000 1 nm
industries. LIC 4100 1 nm
For more information about the encoders LIC 2100 Down to 50 nm
regarding the EnDat 2.2 interface, see
Encoder characteristics at Length gauges AT 1200 0.023 m
www.endat.de. AT 3000 0.368 m

Angle encoders RCN 2000/RCN 50001) 5 26 bits


2.5 28 bits
RCN 80001) 29 bits
ECA 4000 Depending on
the diameter

Rotary encoders, ECN 1113 / EQN 1125 13/25 bits


1)
optical ECN 1123/EQN 1135 23/35 bits
Singleturn/multiturn ECN 1313 / EQN 1325 13/25 bits
ECN 1325/EQN 13371) 25/37 bits
ECN 113 13 bits
ECN 125 25 bits
ECN 413 / EQN 425 13/25 bits
ECN 425/EQN 4371) 25/37 bits
ECN 1013 / EQN 1025 13/25 bits
ECN 1023 / EQN 1035 23/35 bits
ROC 413/ROQ 425 13/25 bits
ROC 425/ROQ 4371) 25/37 bits
ROC 1013/ROQ 1023 13/25 bits
ROC 1023/ROQ 1025 23/35 bits

Rotary encoders, ECI 1319/EQI 13311) 19/31 bits


inductive ECI 1118/EBI 11352) 18/35 bits
Singleturn/Multiturn ECI 1119/EQI 11311) 19/31 bits
ECI 119/EBI 1352) 19/35 bits

Incremental encoders Resolution

Linear encoders LIP 211 0.03125 nm

Magnetic modular ERM 2410 Integrated 14-bit


encoders interpolation

HEIDENHAIN encoders Via EIB


with 1 VPP output
signals
1)
Versions with functional safety available on request
2)
Multiturn function via battery-buffered revolution counter

This Technical Information supersedes all previous editions, which thereby become
invalid. The basis for ordering from HEIDENHAIN is always the Technical Information
 valid when the contract is made.

 
   
 More information:

 
 HEIDENHAIN encoder brochures

 
  www.endat.de

Description of the Master Component (www.mazet.de)

 Detailed interface specifications (upon request)

*I_383942-27*
383942-27 5 2/2015 H Printed in Germany

S-ar putea să vă placă și