Professional Documents
Culture Documents
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 by mode
commands that the subsequent electronics send to the encoder.
CLOCK 8 MHz
5V
UN
5 V *) Connecting element,
UN *) e.g. M12, D-sub
* For parallel power
supply lines
5
Power supply without
remote sensing
Integrated interpolation and position
(5 V ± 5%)
value generation, temperature capture
2
Compatibility of EnDat 2.2 > 2.1
to transfer additional information with the ’ Absolute position values after reference run of
(8 MHz)
• Optimized calculating time (position EnDat 2.1 command set
value acquisition within 5 µs) • Absolute position values
• Minimized dead time (recovery time) • Send and receive parameters
(1.25 to 3.75 µs) • Reset
• Expanded power supply range (3.6 V to • Test command
5.25 V at the encoder) • Test values
Description of Function
The EnDat interface transmits position the position value, additional information 4. Test commands and values are used
values or additional physical quantities in an can also be requested of axes in the for forced dynamization in safety-
unambiguous time sequence and serves to feedback loop, and functions executed oriented controls. The significance of the
read out from and write to the encoder's with them. error message is inverted in order to
internal memory. 2. Parameter reading and writing is monitor its generation. Moreover, for
possible both as a separate function and encoders with Gray-code scanning, the
1. Position values can be transmitted with in connection with the position value. start-up diagnostics—which tests the
or without additional information. The Parameters can be read or written after position value at standstill—must be
additional information types are selectable the memory area is selected. started by a test command.
via the Memory Range Select (MRS) 3. Reset functions serve to reset the
code. Other functions such as parameter encoder in case of malfunction. Reset is
reading and writing can also be called possible instead of or during position
after the memory area has been selected. value transmission.
Through simultaneous transmission with
3
Data Transfer
4
Selecting the transmission type
Transmitted data are identified as either po- The time absolute linear encoders need for
sition values, position values with additional calculating the position values tcal differs
information, or parameters. The type of depending on whether EnDat 2.1 or
information to be transmitted is selected EnDat 2.2 mode commands are transmitted
by mode commands. Mode commands (see Specifications in the Linear Encoders
define the content of the transmitted infor- for Numerically Controlled Machine Tools
mation. Every mode command consists of brochure). If the incremental signals are
three bits. To ensure reliable transmission, evaluated for axis control, then the EnDat 2.1
every bit is transmitted redundantly (inverted mode commands should be used. Only in
or double). If the encoder detects an erro- this manner can an active error message be
neous mode transmission, it transmits an transmitted synchronously with the currently
error message. The EnDat 2.2 interface can requested position value. EnDat 2.1 mode
also transfer parameter values in the addi- commands should not be used for purely
tional information together with the position serial position-value transfer for axis
value. This makes the current position control.
values constantly available for the control
loop, even during a parameter request.
Mode bit
5
Position Values
With the end of the data word, the clock Data delay time tD (0.2 + 0.01 x cable length in m) µs
must be set to HIGH. After 10 to 30 µs or
1.25 to 3.75 µs (with EnDat 2.2 parame- Pulse width tHI 0.2 to 10 µs Pulse width fluctuation
terizable recovery time tm) the data line falls HIGH to LOW max. 10%
back to LOW. Then a new data transmission tLO 0.2 to 50 ms
can begin by starting the clock. to 30 µs (with LC)
6
Data packet with position value and additional information 1 and 2
Encoder saves
position value
Subsequent electronics
transmit mode command
tcal tm tR
tST
S F1 F2 L M
Additional Additional
Mode command Position value CRC information 2 CRC information 1 CRC
Typical command sequence when transmitting a position value with additional information:
Encoder transmit position value and receive Mode command Position value MRS Random
▲
▲
desired additional information)
Encoder transmit position value and receive Mode command Position value 01000111 Random
selection of memory area (acknowledgment of 001 001 Acknowledg- content
▲
▲
the MRS code) ment request for
MRS code
Encoder transmit position value with additional Mode command Position value Additional info 1
information (acknowledgment) 111 000 MRS
▲
acknowledgment
7
Status data Content of the additional information • Test values
WRN—Warnings The content of the additional information is Test values serve for inspection purposes,
This collective bit indicates whether certain defined by the mode command for selection in service diagnostics, for example.
tolerance limits of the encoder have been of a memory area. This content, updated • Temperature
reached or exceeded, for example rotational with each clock pulse, is transmitted until Transmission of temperature in encoders
speed or light source control reserve, there is a new request. The following with integrated evaluation of temperature
without necessarily indicating an incorrect contents are possible: sensors.
position value. This function makes it possible • Additional sensors
to issue preventive warnings in order to Additional information 1 The EnDat 2.2 protocol enables the
minimize idle time. The cause of the warning • Diagnosis connection of 16 additional sensors (4-bit
is stored in the encoder memory. The alarms Cyclic information on encoder function address). The sensor values increase by
and warnings supported by the respective and additional diagnostic values. x+1 for each request. The associated
encoder are saved in the "parameters of • Position value sensor is identified by the address
the encoder manufacturer" memory area. For incremental encoders: Relative position supplied.
information (counter starts from zero at
RM—Reference marks switch-on). The absolute position value is Additional information 2
The RM bit indicates whether the reference only available after the reference marks • Commutation
run has been completed. In incremental have been traversed (RM bit HIGH). Some incremental encoders provide
systems, this is required in order to establish For absolute encoders: Second absolute “rough” position information for
the absolute reference to the machine position value. commutation in electric motors.
reference system. The absolute position • Memory parameters • Acceleration
value can then be read from the additional Parameters saved in the encoder can If the encoder has additional sensor
information 1. On absolute encoders the also be transmitted along with the systems for acceleration, it can transmit
RM bit is always on HIGH. position values. The request is defined the results.
via memory range selection, followed by • Limit position signals
Busy—parameter request output of the parameters with the Limit position signals and homing
When LOW, the busy bit indicates that a associated address. information.
parameter request (read/write) is possible. • MRS-code acknowledgment • Asynchronous position value
If a request is being processed (HIGH), the Acknowledgment of the requested Position formed by oversampling
encoder memory cannot be accessed. memory area selection between two "regular" requests.
• Operating status error sources,
operating status warning sources
Detailed information about the cause of
the present error message or warning.
8
Parameters
Memory areas
EnDat interface
The parameters, which in most cases are
set by the OEM, largely define the function
of the encoder and the EnDat interface.
When the encoder is exchanged, it is Absolute
therefore essential that its parameter position value
settings are correct. Attempts to configure
machines without including OEM data can
result in malfunctions. If there is any doubt
as to the correct parameter settings, the
OEM should be consulted.
9
Parameters of the encoder manufacturer
The meaning of the information contained The meanings of parameters are divided The additional information for EnDat 2.2
in the parameters of the encoder into evaluation categories. On the basis of contained in the parameters of the encoder
manufacturer depends on the encoder. these categories, the user can make clear manufacturer depends in part on the
decisions on the use of parameters and respective encoder.
HEIDENHAIN encoders can be divided into their integration in the application software.
six groups. They are differentiated by the EnDat 2.2 parameters can be read out only
type of encoder (word 14 of the EnDat 2.1 Evaluation categories: with EnDat 2.2 mode commands.
parameters). • Required:
It is essential for operation that these The types of additional information,
Encoder types: parameters be considered. additional functions, diagnostic values, and
L Linear encoders • Depends on application: specifications that the respective encoder
W Angle encoders (rotational) Whether these parameters are to be supports are saved in the assigned status
D Rotary encoders (rotational) considered depends on the customer's words of these memory areas. Before
E EIB external interface box for conversion application. If, for example, no OEM range interrogation of the additional information,
of 1 VPP to pure serial EnDat 2.2 is used, then the parameter regarding HEIDENHAIN recommends reading out
iL Incremental linear encoder with integral memory allocation for parameters of the the supported information and functions
conversion of 1 VPP to pure serial OEM need not be considered. (typically for every initialization of encoders).
EnDat 2.2 • Informative: They are also shown in the encoders'
iR Incremental rotational encoder with These parameters are not required for specifications.
integral conversion of 1 VPP to pure encoder operation, but they give the user
serial EnDat 2.2 additional information such as the model
number.
• Not relevant:
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.
Informative
application
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 – – All – – Depends on encoder; program flexibly.
10 the OEM Memory pointer to first free address
11 Memory allocation for compensation – – – – – Reserved for encoder manufacturer
12 values
13 Number of pulses for transfer 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 or signal periods per nm – – – E, iL, iR: for calculating the smallest
16 revolution for incremental output All display step (LSB) or the correct display
signals value for negative traverse direction
All: for EnDat-compliant datum shift
17 Distinguishable revolutions (only for – – WD – – Required for correct calculation of the
multiturn encoders) position.
18 (Nominal) increment of reference mm Signal periods – – E iL iR –
marks
19 Position of first reference mark mm – – – iL Not supported by EIB.
10
Parameters of the encoder manufacturer for EnDat 2.1 (continued)
Unit for
Depends on
Informative
application
Word Content Linear Rotary/angle Remark
Required
encoder encoder
11
Parameters of the encoder manufacturer for EnDat 2.2
Unit for
Word Content Linear Rotary/ Remark
Depends on
Informative
application
encoder angle
Required
encoder
12
Transmission of parameters
Control cycles for transfer of parameters Reading parameters from the encoder Writing parameters to the encoder
(EnDat 2.1 mode command 001110) (EnDat 2.1 mode command 100011) (EnDat 2.1 mode command 011100)
Before parameter transfer, the memory area After selecting the memory area, the After selecting the memory area, the
is specified with the selection of memory subsequent electronics transmit a complete subsequent electronics transmit a complete
area mode command. The possible memory communications protocol beginning with communications protocol beginning with
areas are stored in the parameters of the the mode command Encoder transmit the mode command Encoder receive
encoder manufacturer. Due to internal parameters, followed by an 8-bit address parameters, followed by an 8-bit address
access times to the individual memory and 16 bits with random content. The and a 16-bit parameter value. The encoder
areas, the time tac may reach 12 ms. encoder answers with the repetition of the answers by repeating the address and the
address and 16 bits with the contents of contents of the parameter. The CRC check
the parameter. The transmission cycle is concludes the cycle.
concluded with a CRC check.
tac
Typical EnDat 2.2 command sequence for transmitting a position value with parameter values in the additional information
(max. 12 ms access time by interrogating the integrated EEPROM)
Subsequent elec- Encoder Subsequent electronics
tronics transmit transmits transmit
Encoder transmit position value and receive Mode command Position value MRS Random
▲
Encoder transmit position value and receive Mode command Position value 01000111 Random
selection of memory area (acknowledgment of 001 001 Acknowledg- content
▲
Encoder transmit position value with additional Mode command Position value Additional info 1
▲
Encoder transmit position value and transmit Mode command Position value Address Random
▲
Encoder transmit position value with additional Mode command Position value Additional info 1
▲
Encoder transmit position value with additional Mode command Position value Additional info 1
▲
Encoder transmit position value with additional Mode command Position value Additional info 1
▲
Max. 12 ms
Encoder transmit position value with additional Mode command Position value Additional info 1
▲
This concludes the request. A new parameter value can be requested from a new address.
13
Diagnosis
Configuration of Diagnosis =0 =1
In word 3 of the operating status, the Valuation number 1 Deactivated Activated
customer can define the configuration of
the diagnosis for the “Encoder transmit Valuation number 2 Deactivated Activated
position values with additional information
mode” command. Valuation number 3 Deactivated Activated
In the factory default setting, all available Valuation number 4 Deactivated Activated
evaluation numbers are activated, and this
setting should normally not be changed. System-specific data Deactivated Activated
They provide the maximum depth of
information on the encoder's function The configuration is not activated until the encoder receive reset mode
reserves. command has been transmitted.
15
Interface
Power supply and switch-on
ƒ undefined *) high-impedance
Wait for 50 ms
Deletion of alarms
Deletion of warnings
16
Input circuitry of the subsequent electronics
Data (measured values or parameters) can Data transfer Encoder Subsequent electronics
be transferred bidirectionally between
position encoders and subsequent elec-
tronics with transceiver components in
accordance with RS-485 (differential signals),
in synchronism with the clock signal
produced by the subsequent electronics.
Dimensioning
IC1 = RS 485 differential line receiver and
driver
C3 = 330 pF
Z0 = 120 −
Incremental signals
Depends on encoder
17
Safety System
Safety-oriented controls are the planned In a safe drive, the safety-related position system can be used for the following
application for encoders with EnDat 2.2 measuring system—consisting of encoder, safety functions in the complete system:
interface. The ISO 13 849-1 (previously data transmission line and EnDat 2.2 receiver
EN 954-1) and IEC 61 508 standards serve component (master) with monitoring • Safe standstill
as the foundation for this. These standards functions—presents such a subsystem. • Safe stop
describe the assessment of safety-related The safety-oriented control and the power • Safe operational stop
systems, for example on the basis of stage with cable and drive complete the • Safe linear or rotational speed reduction
failure probabilities of integrated “safe drive” to form an entire system. The • Safe limited step
components and subsystems. position measuring system is integrated • Safe limited absolute position
over two interfaces into the complete • Safe limit of torque / power
This modular approach helps manufacturers system. The mechanical coupling of the
of safety-related systems to implement encoder on the drive is determined by the Scanning in the encoders produces two
their systems, because they can begin with encoder's geometry. Including the EnDat independent position values that are
prequalified subsystems. Safety-related master into the safe control ensures its transmitted over the EnDat 2.2 protocol
position encoders with pure serial data electrical integration. Certain measures are to the EnDat master. The EnDat master
transmission via EnDat 2.2 accommodate to be taken for the integration and evaluation provides the two position values and
this technique. of the EnDat master in the control in order independent error bits to the safe control
to be able to use the safety system of the over two physically separated interfaces.
position encoder. With regard to a safe A package of measures for the control
complete system, the remaining compo- describes the integration of the EnDat
nents are also to be approved by the master into the control and the additional
auditing agency. tasks of the control. The architecture of the
position measuring system according to
Safety-related position measuring systems IEC 61 508 is regarded as a single-channel
that are built into the feedback loop of the tested system. The testing consists of
machine can be used as single-encoder monitoring and comparison.
systems in applications with control category
SIL-2 (in accordance with IEC 61 508). This
corresponds to performance level “d” of
the EN 13 849 or category 3 according to
the previous EN 954-1. Also, the functions
of the safety-related position measuring
18
The EnDat 2.2 interface supports the • Independent individual CRC • Force dynamic sampling of the
following individual safety-relevant generation for position values and CRC monitoring in the subsequent
functions: additional information electronics
Separate CRC values are generated for The CRC generation in the receiver chip
• Two mutually independent position the individual data packets of a trans- (EnDat master) of the subsequent
values for error detection mission (position value, additional electronics must be ensured through a
In addition to the position value, the information 1 and 2). targeted execution of bit sequences with
additional information includes a separately known result.
evaluated position value to be used for • Highly dynamic data acquisition and
comparison in the subsequent electronics. transmission • Multiple transmission of position
Short cycle times for data acquisition value during start-up
• Two mutually independent error including transmission make the To avoid errors during initialization, the
messages necessary comparisons and monitoring position value must be transmitted
The error messages are generated of transmission functions possible. repeatedly during start-up and compared.
independently of each other and are
transmitted at different active levels. The safety-oriented control must support • Following error monitoring in the
the corresponding communication with the subsequent electronics
• Inversion or repetition of the mode master over two separate interfaces As a general additional check of the
commands (interfaces 1 and 2). Furthermore, it must moving axes, the servo lag must be
The mode commands consist of 3 bits handle additional tasks, e.g.: monitored in the subsequent electronics.
that are transmitted redundantly either
inverted or repeated. The consistency is • Forced dynamic sampling of error • Assume safe status in case of error
monitored in the encoder and acknowl- messages
edged with an error response. Through the mode commands for
requesting test values, the value of the
error messages is inverted in order to
monitor their generation.
EnDat slave Data transmission line EnDat master in the Further processing
• Measured value • Serial data transfer subsequent electronics of position values and
acquisition (opto ASIC) • EnDat 2.2 • Organization of data Interface 1 messages
• Position value calculation communications transmission
(two position values protocol • Position values 1 and 2
through separate • Evaluation of warning and Interface 2
evaluation) error messages
• Forced dynamic sampling
User interface
Safety-related position measuring system with package of Safe control
measures
In addition to the actual encoder, safety-related position measuring systems from HEIDENHAIN also include the transmission line and
the EnDat master in the subsequent electronics.
19
Overview of Encoders
20
383 942-23 · 15 · 7/2006 · F&W · Printed in Germany · Subject to change without notice