Documente Academic
Documente Profesional
Documente Cultură
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
Miniature connecting
element, M12, 8-pin
Connecting element,
e.g. M12, D-sub
2
The bidirectional interface
3
Clock frequency
The clock frequency is variabledepending
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
Z0 = 120
Incremental signals
Depends on encoder
(e.g. 1 VPP)
1 VPP
5
Data transfer
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
7
Position values
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
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
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:
10
Parameters
Memory areas
EnDat interface
protected.
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).
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.
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 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
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
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:
Acknowledgment of MRS code Position value + Acknowledgment of MRS code (selection of additional data and readout)
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
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
17
Interface
Voltage supply and switch-on
Power-on routine (simplified). For more information, see the EnDat Application Note.
18
Connection technology
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
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