Encoders With PROFIBUS-DP User Manual
Encoders With PROFIBUS-DP User Manual
Encoders With PROFIBUS-DP User Manual
Encoders with
PROFIBUS-DP
Interface
9/2000 Version 1.01
General Information
1 General Information............................................................................................ 3
1.1 The PROFIBUS Technology .................................................................... 3
1.2 Encoder Device Profile............................................................................ 3
1.3 Abbreviations .......................................................................................... 4
2 Encoder Installation ............................................................................................ 5
2.1 Cabling .................................................................................................... 5
2.2 Address................................................................................................... 5
2.3 Terminating Resistor............................................................................... 5
2.4 GSD File .................................................................................................. 6
3 Encoder Configuration........................................................................................ 7
3.1 Encoder Class ......................................................................................... 7
3.2 Operating Parameters........................................................................... 11
3.2.1 Code Sequence ....................................................................... 13
3.2.2 Class 2 Functionality................................................................ 14
3.2.3 Commissioning Diagnostics .................................................... 14
3.2.4 Scaling Functions..................................................................... 14
3.2.5 Multi/Single Separation............................................................ 18
3.2.6 Running Indication ................................................................... 18
3.2.7 Data_Exchange Alarm ............................................................. 18
3.2.8 Control Bit for Limit Switch Function ...................................... 18
3.2.9 Limit Switch Minimum ............................................................ 19
3.2.10 Limit Switch Maximum .......................................................... 19
3.3 Data exchange ...................................................................................... 20
3.3.1 Position .................................................................................... 20
3.3.2 Preset Value Function.............................................................. 21
3.4 Diagnostic Information.......................................................................... 22
3.4.1 Diagnostic Header ................................................................... 23
3.4.2 Alarms...................................................................................... 23
3.4.3 Operating Status...................................................................... 25
3.4.4 Encoder type ........................................................................... 26
3.4.5 Singleturn Resolution or Measuring Step................................ 27
3.4.6 Number of Distinguishable Revolutions .................................. 28
3.4.7 Additional Alarms..................................................................... 28
3.4.8 Supported Alarms.................................................................... 29
3.4.9 Warnings ................................................................................. 30
3.4.10 Supported Warnings .............................................................. 31
3.4.11 Profile Version ........................................................................ 32
3.4.12 Software Version.................................................................... 32
3.4.13 Operating Time ...................................................................... 33
3.4.14 Offset Value ........................................................................... 33
3.4.15 Offset Value of the Encoder Manufacturer ............................ 34
3.4.16 Scaling Parameters Settings .................................................. 34
3.4.17 Encoder Serial Number .......................................................... 35
4 Configuration Example..................................................................................... 36
5 Appendix............................................................................................................ 40
A) Overview of encoder functions............................................................. 40
B) History................................................................................................... 42
2
General Information
1 General Information
This manual describes installation and configuration options of
the HEIDENHAIN devices with PROFIBUS-DP interface. The
PROFIBUS-DP gateway is therefore the solution of choice for
applications with high ambient temperature. Encoders with
integral PROFIBUS-DP interface are advantageous if a very
compact solution is required.
3
General Information
1.3 Abbreviations
DP Decentral Periphery
DDLM Direct Data Link Mapper, the interface
between PROFIBUS-DP functions and
the encoder software
PDU Protocol Data Unit
PI PROFIBUS International
PNO PROFIBUS Nutzerorganisation e.V.
(PROFIBUS user organization)
PROFIBUS Process Field Bus
4
Encoder Installation
2 Encoder Installation
2.1 Cabling
The PROFIBUS-DP device is supplied with 10 to 30 Vdc by
means of the screw terminal strip on the PCB. A shielded
power cable should be used. A cable according to the PNO
specifications should be used as data cable.
2.2 Address
The address of the PROFIBUS-DP unit must be set to a value
between 3 and 126 by means of the respective address
selector switch. The address is set in decimal code (the value
for each switch position is marked beside the switch). The
encoder reads the address switch only at power-up.
Note!
The PROFIBUS-DP device does not support the setting of the
station address by the PROFIBUS master.
5
Encoder Installation
Installation:
1. Select the GSD file of the respective device on the diskette
and copy the *.gsd file (encoder or gateway) into the
respective directory of the PROFIBUS configuration tool.
2. Select the bitmap file (encoder or gateway) of the
respective device on the floppy disk and copy the *.bmp
file into the respective directory of the PROFIBUS
configuration tool.
3. Update the GSD files (SCAN).
6
Encoder Configuration
3 Encoder Configuration
The PROFIBUS-DP devices can be configured and parameters
set according to the user’s needs. In this context it is useful
to know that with PROFIBUS there are three types of data
transmission.
Configuration
When the system is started, the PROFIBUS devices are
configured (DDLM_Set_Prm mode), i.e. the encoder class set
by means of the GSD file in the configuration tool (see
Chapter 3.1 Encoder class) and the set operating parameters
(see Chapter 3.2 Operating parameters) are transferred to
the respective slave. This has the advantage that the
configuration data need not be modified when a PROFIBUS
device is exchanged.
Data exchange
In the normal mode (DDLM_Data-Exchange mode), data are
exchanged between master and slaves. The preset value
function can be carried out only in this operating mode. The
data exchange is described in Chapter 3.3.
Diagnostic messages
In the diagnostic mode (DDLM_Slave_Diag) diagnostic data of
the slave are transferred on the master’s request. The
diagnostic messages are described in Chapter 3.4.
CLASS 1
In the CLASS 1 configuration only output values are assigned.
Depending on the encoder resolution, this is one output word
(16 bits) or two (32 bits).
The following functions can be performed:
Changed direction of counting
Diagnostic data up to octet 16
Configuration data:
Singleturn CLASS 1 – 16 Bit: D0hex 1 input data word,
data consistency
Multiturn Class 2 – 32 Bit: D1hex 2 input data words,
data consistency
7
Encoder Configuration
CLASS 2
In the class 2 configuration output values and input words are
transferred. Depending on the encoder resolution, this is one
output word (16 bits) or two (32 bits).
The following functions are available in addition to the class 1
functions:
· Scaling function
· Preset Value Function
· Extended diagnostic data
Configuration data:
Singleturn Class 2 – 16 bits: F0hex 1 input data word,
1 output data word
for preset value,
data consistency
Multiturn Class 2 – 32 bits: F1hex 2 input data words,
2 output data words
for preset value,
data consistency
SPECIALS
In the Specials configuration two output values and two input
words are assigned.
The following functions are available in addition to the class 2
functions:
· Separation of multi/singleturn position value
· Running indication
· Data exchange alarm
· Limit switch function (minimum and maximum value)
Configuration data:
· Special01 Class 2 – 32 bits: F1hex 2 input data words,
2 output data words
for preset value,
data consistency
8
Encoder Configuration
LC 481 1) 0,1 µm – á – –
LC 181 1) 0,1 µm – á – –
9
Encoder Configuration
Position
Devices of
Basic functions Code sequence
class 1
Display of the
position value
Position
Devices of
Basic functions Code sequence
class 1
---------- Absolute position
- Scaling function
Scaling function - Measuring units per revolution
- Measuring range in measuring
steps
- Control function/status
Class 2
encoder
Display of the
position value
10
Encoder Configuration
11
Encoder Configuration
DDLM_Set_Prm
Octet 9
Bits 7–0
Data 27 – 20
Operating parameters
Bits Definition =0 =1
4
Reserved
... for future
applications
7
12
Encoder Configuration
DDLM_Set_Prm
Octet 26
Bits 7–0
Data 27 – 20
Bits Definition =0 =1
4
Reserved
... for future
applications
7
13
Encoder Configuration
Note!
If a class 1 encoder uses some optional class 2 functions, the
class 2 control bit must be set.
14
Encoder Configuration
DDLM_Set_Prm
Octet: 10 11 12 13
Bits 31 – 24 23 – 16 15 – 8 7–0
DDLM_Set_Prm
Octet: 14 15 16 17
Bits 31 – 24 23 – 16 15 – 8 7–0
15
Encoder Configuration
Note!
If the user wants to transmit a parameter telegram without
changing the scaling parameters and with the scaling function
remaining enabled, the length of the telegram must be limited
to 9 and the scaling function control bit must be set. In this
case the encoder reacts only to the parameter octets that are
received.
Measuring range
The measuring range is defined by the parameter "Total
measuring range in measuring units." The encoder has two
different operating modes, depending on the specified
measuring range. When the encoder receives a parameter
message, it checks the scaling parameters for binary scaling.
If binary scaling is detected, the encoder selects operating
mode A (see following explanation). If not, operating mode B
is selected.
16
Encoder Configuration
Position
Measuring range
B. Noncyclic operation
If the measuring range is used to limit the value range of the
encoder to a value other than the specified singleturn
resolution * 2x, the output position value is limited within the
operating range. If the position value resulting from rotation of
the encoder exceeds the maximum value or falls below 0, the
encoder indicates the value of the measuring range. See
figure below.
Position
Scaled
total range
Measuring range
17
Encoder Configuration
18
Encoder Configuration
DDLM_Set_Prm
Octet: 27 28 29 30
Bits 31 – 24 23 – 16 15 – 8 7–0
When the value falls below this defined position value, bit 29
is set in the input word:
DDLM_Set_Prm
Octet: 31 32 33 34
Bits 31 – 24 23 – 16 15 – 8 7–0
19
Encoder Configuration
3.3.1 Position
The input data of the encoder are required only for the
position value with a defined length of 32 bits. As an option,
the encoder supports a position value length of 16 bits. The
value is right-justified in the data field.
DDLM_Data_Exchange mode
Standard configuration:
Octet: 1 2 3 4
Bits 31 – 24 23 – 16 15 – 8 7–0
Data_Exchange – 32 bits
Configuration data:
Device class 1 D1hex 2 input data words,
data consistency
Device class 2: F1hex 2 input data words,
2 output data words for
preset value, data consistency
Optional configuration:
Octet: 1 2
Bits 15 – 8 7–0
Data 215 – 28 27 – 20
Data_Exchange – 16 bits
Configuration data:
Device class 1 D0hex 1 input data word,
data consistency
Device class 2: F0hex 1 input data words,
1 output data word for
preset value, data consistency
20
Encoder Configuration
Note!
The preset value function should be used only during a
standstill of the encoder.
Bits 31 30 –- 24 23 – 16 15 – 8 7–0
Bits 15 14 – 8 7–0
21
Encoder Configuration
22
Encoder Configuration
Note!
The length of the diagnostic information of class 1 is limited
to 16 bytes. It is compatible with former DP versions.
DDLM_Slave_Diag
Octet 7
Bits 7 6 5–0
Data 0 0 xxh
Extended diagnosis
3.4.2 Alarms
An alarm is given if a malfunction in the encoder can lead to
incorrect position values. Octet 8 in the diagnostic function
(DDLM_Slave_Diag) indicates the status of the alarms.
Additional alarms for device class 2 are added in the
diagnostic octet 17.
23
Encoder Configuration
Note
Not every encoder supports every alarm. For encoders of
class 2 the diagnostic information "supported alarms" (see
Chapter 3.4.8) makes it possible to find out which individual
alarm bits are supported.
DDLM_Slave_Diag
Octet 8
Bits 7–0
ALARMS
Bits Definition =0 =1
5
Currently
6 not
assigned
7
24
Encoder Configuration
The status bit of the scaling function is set when the scaling
function is activated and the resolution of the encoder is
calculated by means of the scaling parameters.
DDLM_Slave_Diag
Octet 9
Bits 7–0
Operating Status
Bits Definition =0 =1
4
Currently
5
not
6 assigned
25
Encoder Configuration
DDLM_Slave_Diag
Octet 10
Bits 0 - FF
Encoder type
Code Definition
09
·
Currently
· not
assigned
·
FF
26
Encoder Configuration
DDLM_Slave_Diag
Octet 11 12 13 14
Bits 31 – 24 23 – 16 15 – 8 7–0
Singleturn resolution
Example:
A 1 µm resolution of the linear encoder µm results in a value
of 00 00 03 E8 hex.
DDLM_Slave_Diag
Octet 11 12 13 14
Bits 31 – 24 23 – 16 15 – 8 7–0
Measuring unit
27
Encoder Configuration
DDLM_Slave_Diag
Octet 15 16
Bits 15 – 8 7–0
DDLM_Slave_Diag
Octet 17
Bits 7–0
Additional alarms
Bits Definition =0 =1
0
Currently
·
not
7 assigned
28
Encoder Configuration
DDLM_Slave_Diag
Octet 18 19
Bits 15 – 8 7–0
Supported alarms
Bits Definition =0 =1
5
Currently
·
not
15 assigned
29
Encoder Configuration
3.4.9 Warnings
Warnings indicate that tolerances for certain internal
parameters of the encoders have been exceeded. Contrary to
alarms, no faulty position values are expected in case of
warnings.
Octets 20 and 21 of the diagnostic function indicate the
status of the warnings. If a warning is set, the Ext_Diag bit in
the diagnostic function is logically set to 1 until the warning is
reset. All warnings are deleted when the diagnostic message
of the encoder has been read. However, if the tolerances are
still exceeded, the warning is activated again. The warning
"Maximum operating time exceeded" (bit 4) is not activated
before the system is switched on again.
Not every encoder supports every warning. Please refer to
the diagnostic information under “Supported Warnings“ (see:
Chapter 3.4.10), for information on the support of specific
warnings.
DDLM_Slave_Diag
Octet 20 21
Bits 15 – 8 7–0
WARNINGS
Bits Definition =0 =1
7
Currently
·
not
15 assigned
30
Encoder Configuration
DDLM_Slave_Diag
Octet 22 23
Bits 15 – 8 7–0
Supported Warnings
Bits Definition =0 =1
7
Currently
·
not
15 assigned
31
Encoder Configuration
Example:
Profile version: 1.40
Octet no. 24 25
Binary code: 00000001 01000000
Hex: 1 40
DDLM_Slave_Diag
Octet 24 25
Bits 15 – 8 7–0
Data 27 – 20 27 – 20
Profile Version
Example:
Software version: 1.40
Octet no.: 26 27
Binary code: 00000001 01000000
Hex: 1 40
DDLM_Slave_Diag
Octet 26 27
Bits 15 – 8 7–0
Data 27 – 20 27 – 20
Software version
32
Encoder Configuration
DDLM_Slave_Diag
Octet 28 29 30 31
Bits 31 – 24 23 – 16 15 – 8 7–0
Operating time
DDLM_Slave_Diag
Octet 32 33 34 35
Bits 31 – 24 23 – 16 15 – 8 7–0
Offset Value
33
Encoder Configuration
DDLM_Slave_Diag
Octet 36 37 38 39
Bits 31 – 24 23 – 16 15 – 8 7–0
34
Encoder Configuration
DDLM_Slave_Diag
Octet 40 41 42 43
Bits 31 – 24 23 – 16 15 – 8 7–0
DDLM_Slave_Diag
Octet 44 45 46 47
Bits 31 – 24 23 – 16 15 – 8 7–0
DDLM_Slave_Diag
Octets 48 – 57
Bits 79 – 0
Data ASCII
Serial number
ASCII string 30 30 30 35 39 46 38 44 45 35
Serial (hex.) 0 0 0 5 9 F 8 D E 5
35
Configuration Example
4 Configuration Example
This example using a Siemens S5 (115 with CPU 942A) with
IM 308-C master interface module and the COM PROFIBUS
configuration software is intended to illustrate the
commissioning of a model ROQ 425 absolute rotary encoder.
The encoder is to be scaled to 3600 measuring units per
revolution and a maximum measuring range.
Then, all the type files are copied into the configuration
software COM PROFIBUS by selecting the File command in
the menu bar and the menu item Scan GSD files.
Note!
There is no confirmation after the copying process.
36
Configuration Example
37
Configuration Example
39
Appendix
5 Appendix
A) Overview of encoder functions
The encoder specification comprises functions for
comprehensive diagnoses and for parameterizing the position
value. Tables A.1 and A.2 provide an overview of encoder
data for class 1 and class 2 encoders.
40
Appendix
41
Appendix
B) History
Version Date Modifications
1.0 2000-07-18 First edition
1.01 2000-08-22 Change of SPECIAL octet assignment
for operating parameters and limit
switch
- Change of bit assignment for
Data_Exchange_Alarm
- Supplementation of diagnostic
information about limit switch
positions
42
DR. JOHANNES HEIDENHAIN GmbH
Dr.-Johannes-Heidenhain-Straße 5
83301 Traunreut, Germany
{ + 49 / 86 69 / 31-0
| + 49 / 86 69 / 50 61
e-mail: [email protected]
{ Service + 49 / 86 69 / 31-12 72
{ TNC-Service + 49 / 86 69 / 31-14 46
| + 49 / 86 69 / 98 99
e-mail: [email protected]
http://www.heidenhain.de
Ve 00
345 677-20 · 2 · 9/2000 · S · Printed in Germany · Subject to change without notice