1200531-01 PROFINET PxE 900 Rev.02 Manual en
1200531-01 PROFINET PxE 900 Rev.02 Manual en
Contents
1 INTRODUCTION 10
1.1 APPLICABILITY OF MANUAL 10
1.2 ABOUT LEINE LINDE 10
1.3 ABOUT ABSOLUTE ENCODERS 11
1.4 ABOUT PROFINET TECHNOLOGY 11
1.5 ENCODER PROFILES 12
2 DECLARATION OF CONFORMITIES 14
4 INSTALLATION 17
4.1 INSTALLATION CHECKLIST 17
4.2 CABLES AND STANDARDS 17
4.3 CONNECTORS AND PIN CONFIGURATION FOR ABSOLUTE ENCODER 18
4.4 SHIELDING CONCEPT OF THE DEVICE 19
4.5 MAC-ADDRESS AND CHANGE INDEX 20
4.6 LED INDICATION 21
3
PROFINET
USER MANUAL www.leinelinde.com
4
PROFINET
USER MANUAL www.leinelinde.com
10 FIRMWARE UPGRADE 79
5
PROFINET
USER MANUAL www.leinelinde.com
14 TROUBLESHOOTING 89
15 REVISION HISTORY 90
6
PROFINET
USER MANUAL www.leinelinde.com
Tables
Table 1 Bus connection 18
Table 2 Power supply connection 19
Table 3 LED indication 21
Table 4 GSDML file 22
Table 5 Standard specific signals 32
Table 6 Standard Telegram 81 32
Table 7 Supported 32
Table 8 Standard Telegram 82 32
Table 9 Supported 32
Table 10 Supported telegrams 33
Table 11 Output data Telegram 81 33
Table 12 Input data Telegram 81 34
Table 13 Output data Telegram 82 34
Table 14 Input data Telegram 82 34
Table 15 Output data Telegram 83 35
Table 16 Input data Telegram 83 35
Table 17 Output data Telegram 84 35
Table 18 Input data Telegram 84 36
Table 19 Output data Telegram 86 36
Table 20 Input data Telegram 86 36
Table 21 Output data Telegram 87 36
Table 22 Input data Telegram 87 37
Table 23 Output data Telegram 88 37
Table 24 Input data Telegram 88 37
Table 25 Output data Telegram 89 37
Table 26 Input data Telegram 89 38
Table 27 Output data Telegram 59001 38
Table 28 Input data Telegram 59001 38
Table 29 Output data from IO-controller to encoder 39
Table 30 Input data from encoder to IO-controller 39
Table 31 Format of G1 XIST3 40
Table 32 G1 XIST1 PRESET B 40
Table 33 G1 XIST1 PRESET B1 41
Table 34 G1 XIST1 PRESET C 41
Table 35 Control word 2 (STW2 ENC) 41
Table 36 Detailed assignment of Control word 2 (STW2 ENC) 42
Table 37 Status word 2 (ZSW2 ENC) 42
Table 38 Detailed assignment of Status word 2 (ZSW2 ENC) 43
Table 39 Control word (G1 STW) 43
Table 40 Status word (G1 ZSW) 44
Table 41 Channel diagnostics 46
Table 42 Manufacturer-specific error types 47
Table 43 Error codes in G1 XIST 2 47
Table 44 Changing the preset value 49
Table 45 Reading the preset value (request) 49
Table 46 Reading the preset value (response) 50
Table 47 Hardware components 55
Table 48 Software components 55
Table 49 Parameters of SFB52 58
Table 50 Parameters of SFB53 59
Table 51 Supported functions 61
Table 52 Code sequence 62
Table 53 Class 4 functionality 62
7
PROFINET
USER MANUAL www.leinelinde.com
Figures
Figure 1 Encoder port 1 and 2 18
Figure 2 Encoder power supply 19
Figure 3 MAC-adress 20
Figure 4 Change index 20
Figure 5 GSDML installation 22
Figure 6 Setting up the encoder configuration 23
Figure 7 Telegram selection 24
Figure 8 Assign IO controller 24
Figure 9 IP-address and device name settings 25
Figure 10 Assigning device name 26
Figure 11 Assign PROFINET device name 26
Figure 12 Assign name OK 27
Figure 13 Setting encoder parameters 28
Figure 14 Example of parameter data 29
Figure 15 Compile 29
Figure 16 Download settings 30
Figure 17 Overview of encoder profiles 31
Figure 18 Absolute value in G1 XIST1 40
Figure 19 Absolute value in G1 XIST2 40
8
PROFINET
USER MANUAL www.leinelinde.com
Figure 20 Real-time communication 45
Figure 21 Request data block, DB1 55
Figure 22 Response data block, DB2 56
Figure 23 Instance data block, DB3 56
Figure 24 Instance data block, DB4 56
Figure 25 Organization block, OB1 57
Figure 26 Diagnostic address of slot 1 59
Figure 27 Variable table 60
Figure 28 Cyclic operation 67
Figure 29 Non cyclic operation, preset control enabled 67
Figure 30 Non-cyclic operation, preset control disabled 68
Figure 31 Firmware upgrade PC software running 79
Figure 32 Firmware upgrade PC software completed 80
Figure 33 MRP 81
Figure 34 LLDP Properties 82
Figure 35 LLDP Port configuration 83
Figure 36 LLDP Partner port settings 83
Figure 37 Open Topology editor 84
Figure 38 Topology editor 84
Figure 39 Edit Ethernet node 85
Figure 40 Factory reset 85
Figure 41 Factory set configuration 86
9
PROFINET
USER MANUAL www.leinelinde.com
1 Introduction
Thank you for choosing this device produced by the Swedish encoder manufacturer Leine Linde. In your
hands, you have a state of the art component that is ready to be used in the utmost demanding environments.
This manual describes the installation procedures and configuration of absolute encoders with PROFINET
interface. If you are in need of assistance during the system design phase, commissioning, or during operation,
please make sure that you contact your local Leine Linde representative.
Leine Linde is a company that often customizes the product to fit individual customer requirements.
Such customized products may therefore not be fully compliant with the descriptions in this product manual.
Customized encoder devices are indicated by their type label, and marked 99X – where the “9” digit in the
second position indicates that the device has some customized parameters. Encoder series with the following
name and type plate information may therefore have deviating functional performance.
PSE 991
PSE 993
PHE 991
PHE 993
If your product is of the type mentioned above, contact Leine Linde to obtain the product’s complete
functional description.
Leine Linde can meet very specific individual demands. Due to a modular design in the collection, the encoders
are easily adapted exactly to the customer’s needs with respect to resolution, electrical connections and inter-
faces, voltage, casings, etc. Leine Linde concentrates on advanced development of intelligent encoders with inte-
grated ASICs, new special features and with adaptations to different fieldbus systems. Thereby the company can
meet the need for increasingly effective and dependable machines and automation to an even higher degree.
10
PROFINET
USER MANUAL www.leinelinde.com
An absolute encoder can also be used to calculate a digital speed value. By internally dividing the difference in
position with a small delta time an accurate speed value can be calculated and transmitted to the subsequent
electronics for closed loop control.
In conjunction with PROFINET, the two perspectives PROFINET CBA and PROFINET IO exist. PROFINET CBA is
suitable for the component-based communication via TCP/IP and the real-time communication for real-time
requirements in modular systems engineering. Both communication options can be used in parallel.
PROFINET IO was developed for real-time (RT) and isochronous real-time (IRT) communication with the
Decentralized periphery. The designations RT and IRT merely describe the real-time properties for the commu-
nication within PROFINET IO.
Interfacing the peripherals devices such as encoders is performed through PROFINET IO. Its basis is a cascad-
ing real-time concept. PROFINET IO defines the entire data exchange between controllers (devices with “master
functionality”) and the devices (devices with “slave functionality”), as well as parameter setting and diagnosis.
PROFINET IO is designed for the fast exchange of data between Ethernet-based field devices and follows the
11
PROFINET
USER MANUAL www.leinelinde.com
provider-consumer model. The configuration of an IO-System has been kept nearly identical to the “look and
feel” of PROFIBUS.
An application relation (AR) is established between an IO Controller and an IO Device. These ARs are used
to define communication relations (CR) with different characteristics for the transfer of parameters, cyclic
exchange of data and handling of alarms.
The characteristics of an IO Device are described by the device manufacturer in a General Station Description
(GSD) file. The language used for this purpose is the GSDML (GSD Markup Language) – an XML based language.
The GSD file provides the supervision software with a basis for planning the configuration of a PROFINET IO
system.
Within PROFINET IO, process data and alarms are always transmitted in real-time (RT). Real-time in PROFI-
NET is based on the definition of IEEE and IEC, which allows for only a limited time for execution of real-time
services within a bus cycle. The RT communication represents the basis for the data exchange for PROFINET IO
and real-time data are always treated with a higher priority than TCP (UDP)/IP data.
Leine Linde devices comply with the definitions in the Encoder profile 3.162, version 4.2. The encoder device
profile describing encoder functionality and additional information about PROFINET can be ordered from
PROFIBUS User Organization, PNO.
PROFINET is generally defined by PROFIBUS & PROFINET International (PI) and is backed by the INTERBUS
Club. Since 2003, it has been part of the IEC 61158 and IEC 61784 standards.
12
PROFINET
USER MANUAL www.leinelinde.com
13
PROFINET
USER MANUAL www.leinelinde.com
2 Declaration of conformities
This device conforms to prevailing legal requirements and is designed in accordance with proper engineering
practices. A certificate of conformity can be provided upon request from Leine Linde.
14
PROFINET
USER MANUAL www.leinelinde.com
3.1 References
Profile Encoders for PROFIBUS and PROFINET V4.1,
Order No. 3.162
PROFIBUS Guidelines, Part 1: Identification & Maintenance Functions V1.1, PROFIBUS International,
Order No. 3.502
PROFIBUS Guidelines, Part 3: Diagnosis, Alarms and Time Stamping V1.0, PROFIBUS International,
Order No. 3.522
PROFINET Application Layer Service Definition Application Layer Protocol Specification, Version 2.0,
PROFIBUS International, Order No. 2.332
PROFINET Guidelines: PROFINET Cabling and Interconnection Technology V1.99, PROFIBUS International,
Order No. 2.252
3.2 Abbreviations
PI PROFIBUS and PROFINET International
IO Input/Output
DO Drive Object
DU Drive Unit
AR Application Relation
CR Communication Relation
MLS Master Sign-of-Life
RT Real Time Ethernet
15
PROFINET
USER MANUAL www.leinelinde.com
16
PROFINET
USER MANUAL www.leinelinde.com
4 Installation
A summary of the PROFINET guideline: PROFINET Cabling and Interconnection Technology V 1.99,
Profibus International, Order No 2.252 is provided in this section.
Only shielded cables and connecting elements are allowed in a PROFINET network. The individual compo-
nents have to satisfy the requirements of Category 5 in accordance with IEC 11801. The entire transmission
path has to meet the requirements of Class D in accordance with IEC 11801.
Furthermore, PROFINET cables must have a cable cross-section of AWG 22 in order to enable even complex ca-
bling structures through minimum damping. For this reason, the specification of the PROFINET cables supports
a modular setup, which ensures an IEC 11801-compliant structure in adherence to simple installation rules.
Transmission channel lengths are determined by the type of cable being used. The choice of cable shall be such
that a transmission channel length of 100 meters is achieved between two active network devices. The use of a
high number of plug connections has a negative effect on attenuation and reflection and consequently reduces
the transmission channel length. A maximum of three interconnections can be inserted between two active
devices without reduction of the permissible transmission lengths of 100 meters.
17
PROFINET
USER MANUAL www.leinelinde.com
Port 1
Port 2
Note: The encoder provides integrated switch functionality between the two M12 connectors used for
PROFINET communication. It is important to distinguish between these ports when IRT-communication is
being used.
18
PROFINET
USER MANUAL www.leinelinde.com
The M12 connectors used for power supply of the encoder is constituted by a 4-pin male shielded
A-coded version.
Supply
Not connected - 2
0 Volt 0 Volt 3
Not connected - 4
Note: It is not possible to use passive T-couplings in a PROFINET network. All devices must be connected
through active network components.
The electromagnetic compatibility (EMC) of the entire plant must be ensured by using suitably designed
components and assembling them correctly to create the system. Data cabling is considered a passive system
and cannot be tested for EMC compliance individually. Nevertheless, cabling and connection elements for
PROFINET support compliance with devices requirements by providing a high-quality, comprehensive shielding
concept.
To achieve the highest possible noise immunity and resistance against other EMC related disturbances, the bus
and power supply cables must always be shielded. The screen should be connected to ground on both ends of
the cable. In certain cases, compensation current might flow over the screen.
19
PROFINET
USER MANUAL www.leinelinde.com
Figure 3 MAC-adress
One other identification mark on the label is the Change index used in upgraded versions of the firmware in
order to identify the version of the firmware. The Change index is a letter that is added behind the serial num-
ber as in the picture below.
Figure 4 Change index
20
PROFINET
USER MANUAL www.leinelinde.com
– Bus disconnected
No connection to another
– Controller not available/
Red Green device.
switched off
Criteria: No data exchange
Table 3 LED indication
21
PROFINET
USER MANUAL www.leinelinde.com
GSDML file
Encoder GSDML-V2.35-LL-PROFINET-PxE-900-xxxxxxxx.xml
Table 4 GSDML file
Installation of GSDML-file
Figure 5 GSDML installation
1. Select Options -> Manage general station description files (GSD) and click the “Browse” button to navigate to
the location of the GSDML file. If a bitmap picture representing the encoder is requested, make sure that
the bitmap file is located in the same folder as the GSDML file. A bitmap file is included in the zip-file
downloadable from www.leinelinde.com.
2. Select the GSDML file and click the “Install” button to start installing the selected GSDML file.
22
PROFINET
USER MANUAL www.leinelinde.com
Note: The steps above need to be performed once for each device to be connected.
The next step will be to choose the data length and the type of data that should be sent to and from the IO
controller. This is done by choosing different telegrams. Available telegrams can be found in the “Hardware
catalog” in the “Device” view. Expand the “Module” folder in the catalogue tree and double-click on “EO Mul-
titurn”. That will open up the “Submodules” folder. Double-click on the telegram to be used. For more informa-
tion regarding the different telegrams refer to chapter sections 6.4 - 6.14.
Note: The steps above need to be performed once for each device.
23
PROFINET
USER MANUAL www.leinelinde.com
Figure 7 Telegram selection
Figure 8 Assign IO controller
24
PROFINET
USER MANUAL www.leinelinde.com
25
PROFINET
USER MANUAL www.leinelinde.com
The “Assign PROFINET device name” window will then open. Under the “Online access field” choose “PN/IE” as
the type of PG/PC interface. Then click on the “Update list” button to update the list. The encoder should now
be available in the list. Choose the device to be configured with the help of the MAC address. The MAC address
for the device is written on the device label.
Then choose the PROFINET device name from the drop down list and click the “Assign name” button.
26
PROFINET
USER MANUAL www.leinelinde.com
If the assigning of the name went well, this will be indicated with a status “OK”.
Figure 12 Assign name OK
27
PROFINET
USER MANUAL www.leinelinde.com
28
PROFINET
USER MANUAL www.leinelinde.com
The “Module parameters” window will open. Change the value of the different parameters by clicking on the
drop-down list in the “Value” field for the respective parameter. For more information regarding parameter
data, see chapter 8.
When the configuration and parameterization of the device has been done, the settings needs to be compiled
before they can be downloaded to the IO controller. This is done by clicking on the “Compile” button.
Figure 15 Compile
29
PROFINET
USER MANUAL www.leinelinde.com
Then download the settings to the IO controller by clicking on the “Download” button.
Figure 16 Download settings
In the extended “Download to device” window, select your interface/subnet (PN/IE_1) and click on the “Start
search” button. Then choose the IO controller and click on the “Load” button.
If everything went well, both the Module and Bus LED shall turn to green.
30
PROFINET
USER MANUAL www.leinelinde.com
For further information regarding the device functionality, refer to the device profile. The profile and
PROFINET technical information can be ordered at PNO in Karlsruhe, Germany (www.profinet.com).
CLASS 1 Standard encoder with preset functionality. Isochronous mode is not supported. Inherited
from old PROFIBUS profile for DP-V0. Specially dedicated to General motion application.
CLASS 2 Standard encoder with base mode parameter access, preset functionality, velocity value and
scaling functionality. Isochronous mode is not supported. Inherited from old PROFIBUS profile
for DP-V0. Specially dedicated to General motion application.
CLASS 3 Device with base mode parameter access and limited parameterization of the functionality.
Isochronous mode is not supported.
CLASS 4 Device with scaling, preset and base mode parameter access. Isochronous mode is supported.
31
PROFINET
USER MANUAL www.leinelinde.com
32
PROFINET
USER MANUAL www.leinelinde.com
Table 6 Supported telegrams
IO Data (word) 1 2
Byte 0 1 2 3
33
PROFINET
USER MANUAL www.leinelinde.com
IO Data
1 2 3 4 5 6
(word)
Byte 0 1 2 3 4 5 6 7 8 9 10 11
Actual
ZSW2 ENC G1 ZSW G1 XIST1 G1 XIST2
value
IO Data (word) 1 2
Byte 0 1 2 3
IO Data
1 2 3 4 5 6 7
(word)
Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13
Actual
ZSW2 ENC G1 ZSW G1 XIST1 G1 XIST2 NIST A
value
Note: Avoid using telegram 82. Telegram 82 uses only a 16 bit velocity value and an overflow of the speed
value is likely to occur.
34
PROFINET
USER MANUAL www.leinelinde.com
IO Data (word) 1 2
Byte 0 1 2 3
IO Data
1 2 3 4 5 6 7 8
(word)
Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Actual
ZSW2 ENC G1 ZSW G1 XIST1 G1 XIST2 NIST B
value
IO Data (word) 1 2
Byte 0 1 2 3
35
PROFINET
USER MANUAL www.leinelinde.com
IO Data
1 2 3 4 5 6 7 8 9 10
(word)
Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Actual ZSW2 G1
G1 XIST3 G1 XIST2 NIST B
value ENC ZSW
Note: In standard Telegram 84, G1 XIST2 is used to transfer error codes and optionally position values if the
measuring length exceeds 64 bits.
IO Data (word) 1 2
Byte 0 1 2 3
IO Data (word) 1 2 3 4
Byte 0 1 2 3 4 5 6 7
IO Data (word) 1 2
Byte 0 1 2 3
36
PROFINET
USER MANUAL www.leinelinde.com
IO Data (word) 1 2
Byte 0 1 2 3
IO Data (word) 1 2 3 4
Byte 0 1 2 3 4 5 6 7
IO Data
1 2 3 4 5 6
(word)
Byte 0 1 2 3 4 5 6 7 8 9 10 11
Actual
G1 XIST3 NIST B
value
Note: Telegram 88 should only be used if the measuring range exceeds 32 bits.
IO Data (word) 1 2 3
Byte 0 1 2 3 4 5
37
PROFINET
USER MANUAL www.leinelinde.com
IO Data (word) 1 2 3 4 5
Byte 0 1 2 3 4 5 6 7 8 9
The preset function can be used to set the actual position of the encoder to any entered value within the work-
ing range of the encoder. If scaling is active and has been done on the device it is only possible to enter a preset
value within the working range of the encoder.
The preset is activated when the most significant bit (bit 31) is set to 1. The actual preset value should be en-
tered in the following bits according to below.
IO Data (word) 1 2
Byte 0 1 2 3
The Manufacturer Telegram 59001 input data consist of a 4 bytes position data value and a 4 byte velocity
value as shown below. The velocity value uses the format that is defined in the Velocity measuring unit.
IO Data (word) 1 2 3 4
Byte 0 1 2 3 4 5 6 7
Note: User parameter Class 4 functionality and G1 XIST1 Preset control, must be activated in order to acti-
vate the preset in Manufacturer Telegram 59001.
38
PROFINET
USER MANUAL www.leinelinde.com
The preset function can be used to set the actual position of the encoder to any entered value within the work-
ing range of the encoder. If scaling is active and has been done on the encoder it is only possible to enter a
preset value within the scaled working range of the encoder.
The preset is activated when the Most significant Bit (bit 63) is set to 1. The actual preset value should be en-
tered in the other following bits according to below.
Byte 0 1 2 3 4 5 6 7
Bits 63 (MSB) 62-56 55-48 47-40 39-32 31-24 23-16 15-8 7-0
Preset control bit Preset value < total resolution
The manufacturer telegram 59002 input data consist of an 8 byte position value and a 4 byte velocity value as
shown below. The velocity value uses the format that is defined in the Velocity measuring unit.
IO Data
0 1 2 3 4 5
(word)
Byte 0 (MSB) 1 2 3 4 5 6 7 (LSB) 8 (MSB) 9 10 11 (LSB)
Velocity value 32 Bit
Actual value Position value 64 Bit Unsigned int
Signed int
Note: User parameter Class 4 functionality and G1_XIST1 Preset control must be activated in order to acti-
vate the preset in manufacturer telegram 59002.
39
PROFINET
USER MANUAL www.leinelinde.com
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
M M M M M M M M M M M M S S S S S S S S S S S S S
MSB LSB
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
M M M M M M M M M M M M S S S S S S S S S S S S S
MSB LSB
IO Data (word) 1 2 3 4
Table 27 Format of G1 XIST3
IO Data (word) 1 2
Byte 0 1 2 3
40
PROFINET
USER MANUAL www.leinelinde.com
IO Data (word) 1 2
Byte 0 1 2 3
PRESET value
IO Data (word) 1 2 3 4
Bit Function
1...6 Reserved
7 Not supported
8, 9 Reserved
10 Control by PLC
11 Reserved
41
PROFINET
USER MANUAL www.leinelinde.com
Bit Function
0 PRESET acknowledge
3 Fault Present
4...6 Reserved
7 Warning Present
8 Reserved
9 Control requested
10, 11 Reserved
Preset Acknowledge
1 The preset value was set as new position value.
0->1
0 The encoder position offset value was stored in
0 Idle the encoder and the encoder is now ready for a
new Preset operation.
42
PROFINET
USER MANUAL www.leinelinde.com
0 No Warning
Bit Function
8...10 Reserved
43
PROFINET
USER MANUAL www.leinelinde.com
Note: If the sensor parking is activated (bit 14 = 1), the encoder remains on the bus with the Slave Sign-of-
Life active and the encoder error and diagnostics switched off.
Bit Function
8...10 Reserved
15 Sensor fault
Note: If bit 13 Transmit absolute value cyclically or bit 15 Sensor error is not set there is no valid value or
error code transferred in G1 XIST2.
Note: Bit 13 Transmit absolute value cyclically cannot be set at the same time as bit 15 Sensor error as these
bits are used to indicate either a valid position value transmission (bit 13) or the error code transmission
(bit 15) in G1 XIST2.
The RT (Real-Time) channel is used for process data transfer and alarms.
Real-time data are treated with a higher priority than data sent over the open channel. RT communications
overrides the open channel to handle the data exchange with programmable Controllers.
44
PROFINET
USER MANUAL www.leinelinde.com
The third channel, Isochronous Real-Time (IRT) is the high-performance, high-speed channel used for demanding
motion control applications. IRT data are treated with a higher priority than RT data sent over the RT channel.
Figure 20 Real-time communication
PROFINET distinguishes between three real-time classes for transmission of time-critical process data.
The three RT classes are:
REAL-TIME, RT CLASS 1
• Unsynchronized real-time communication
• Industrial standard switches can be used
• Typical application area: Factory automation
REAL-TIME, RT CLASS 2
• Synchronized and unsynchronized data transmission
• Special switches supporting IRT is needed
• Typical application area: Factory automation
The difference to real-time communication is essentially the high degree of determinism, so that the
start of a bus cycle is maintained with high precision. The synchronization is monitored by “Sign-of-Life” mes-
sages in “Control word 2” (STW2 ENC) and “Status word 2” (ZSW2 ENC).
45
PROFINET
USER MANUAL www.leinelinde.com
Alarm data is transmitted from the IO-device to the IO-controller via the RT channel.
Alarm is generated by the encoder when a failure occurs that affects the position value. Alarms can be reset
(deleted) once all encoder parameters are within the specified value ranges and the position value is correct.
Table 37 Channel diagnostics
In a SIMATIC STEP 7 system the operation system responds by calling a diagnostic OB. The OB number and
start information provides the cause and location of the error. The error information can be read by calling a
system Function block (SFB54 RALRM for STEP 7). Then the user can decide how the system should handle the
error.
Note: If the called OB is not included in the program the CPU will cause CPU stop mode.
46
PROFINET
USER MANUAL www.leinelinde.com
47
PROFINET
USER MANUAL www.leinelinde.com
For more information regarding additional I&M functions supported by the encoder, refer to chapter 9.17.9.
Parameter address:
One address for each parameter, if several parameters are accessed.
48
PROFINET
USER MANUAL www.leinelinde.com
Parameter value:
If the Request ID is 0x02 (change value) the value is set in the request and if the Request ID is 0x01 (request
value), the value appears in the reply.
49
PROFINET
USER MANUAL www.leinelinde.com
50
PROFINET
USER MANUAL www.leinelinde.com
Subindex:
975[0] = Manufacturer Id, Set in the production.
975[1] = DO type
975[2] = Software version
975[3] = Software year
975[4] = Software day and month
975[5] = PROFIdrive DO type class
975[6] = PROFIdrive SUB class 1
975[7] = Drive object Id (DO ID).
Subindex:
979[0] = Header
979[1] = Sensor type
Bit 0 = 0 Rotary encoder, Bit 0 = 1 linear encoder
Bit 1 = 1 always set to 1
Bit 2 = 0 32 bit data, Bit 2 = 1 64 bit data
Bit 31 = 1 if configuration and parameterization is OK
51
PROFINET
USER MANUAL www.leinelinde.com
Note: This parameter is only used together with parameter 60001 set to N2/N4 Normalized.
52
PROFINET
USER MANUAL www.leinelinde.com
65001[0] = 0x00120102 Header, Version of parameter structure and numbers of index describing the
encoder. 19 index and version 1.2
65001[1] = Operating status (Bit 4 alarm channel control is always set with profile version 4.x)
65001[2] = Errors
65001[3] = Supported errors
65001[4] = Warnings
65001[5] = Supported warnings
65001[6] = Encoder profile version
65001[7] = Operating time
65001[8] = Offset value
65001[9] = Measuring units per revolution
65001[10] = Total measuring length in measuring units (Linear = 1)
65001[11] = Velocity value normalization
65001[12] = Velocity reference value
65001[13] = Measuring units per revolution 64 bit (MSW)
65001[14] = Measuring units per revolution 64 bit (LSW)
65001[15] = Total measuring range in measuring units 64 bit (MSW)
65001[16] = Total measuring range in measuring units 64 bit (LSW)
65001[17] = Offset value 64 bit (MSW)
65001[18] = Offset value 64 bit (LSW)
53
PROFINET
USER MANUAL www.leinelinde.com
54
PROFINET
USER MANUAL www.leinelinde.com
Hardware components
Table 43 Hardware components
Software components
Table 44 Software components
DB1
DB1 is the request data block.
55
PROFINET
USER MANUAL www.leinelinde.com
DB2
DB2 is the response data block.
DB3
DB3 is the instance data block of SFB52
DB4
DB4 is the instance data block of SFB53
56
PROFINET
USER MANUAL www.leinelinde.com
OB1
OB1 controls the read and write operation.
57
PROFINET
USER MANUAL www.leinelinde.com
SFB52
SFB52 is standard S7 block for reading parameters.
Parameters of SFB52
VALID OUTPUT BOOL New record has been received and is valid.
Table 45 Parameters of SFB52
58
PROFINET
USER MANUAL www.leinelinde.com
SFB53
SFB53 is standard S7 block for writing parameters.
Parameters of SFB53
Table 46 Parameters of SFB53
Diagnostic address
59
PROFINET
USER MANUAL www.leinelinde.com
Variable table
With the variable table the user can monitor and modify variables.
Figure 27 Variable table
To change the value of parameter 65000 with the variable table perform the following steps:
1. Enable monitoring by clicking the “Monitor variable” button.
2. Write 02hex to address DB1.DBB 1 by entering B#16#02 in the “Modify value” column.
3. Write the new preset value in hexadecimal to address DB1.DBD 12 by entering the value in the “Modify
value” column. (Ex.DW#16#000001F4)
4. Click the “Modify variable” button. The status value of DB1.DBB 12 should now contain the new value.
5. Run the program – right-click on “M8.4” and click “Modify address to 1” to run the program. Then stop the
program by right-click and click “Modify address to 0”.
6. The status value of DB2.DBD 6 should now have been changed to the new preset value.
7. Change the value in DB1.DBB 1 to 01hex (B#16#01#) and click “Modify variable”.
8. To set the encoder to the new preset value bit 12 in control word must be set to 1. This is done by writing
1000hex (W#16#1000) to address PQW 2. Then click the button “Modify variable” to make the preset of the
encoder.
9. The encoder can now at any time be set to the preset value by setting bit 12 in Control word (G1 STW).
60
PROFINET
USER MANUAL www.leinelinde.com
Function Encoder
Code sequence √
Class 4 functionality √
G1 XIST1 Preset control √
Scaling function control √
Alarm channel control √
Encoder profile V3.1 compatibility √
Encoder profile √
Encoder type √
Preset value √
Preset value 64 bit √
Measuring units per revolution/Measuring step √
Total measuring range √
Measuring units per revolution 64 bit √
Total measuring range 64 bit √
Velocity reference value √
Maximum Master Sign-of-Life errors √
Velocity measuring unit √
Encoder profile version √
Operating time √
Offset value √
Offset value 64 bit √
Acyclic data √
Table 47 Supported functions
61
PROFINET
USER MANUAL www.leinelinde.com
Linear encoder:
The code sequence defines the direction count of the absolute position value. The code sequence is by default
set to increase (CW) when the scale is traversed towards the right (viewed from ID-label side).
Rotary encoder:
CW 0
Increasing position values with clockwise rotation (seen from shaft side)
Increasing position values with counter-clockwise rotation (seen from
CCW 1
shaft side)
Table 48 Code sequence
Note: The position value will be affected when the code sequence is changed during operation. It might be
necessary to perform a preset after the code sequence has been changed.
Table 49 Class 4 functionality
62
PROFINET
USER MANUAL www.leinelinde.com
Note: There is no functionality of this parameter if the “Class 4 functionality” parameter is disabled.
Note: The parameter “Class 4 functionality” must be enabled to use this parameter.
If the value is zero (default value) only the communication related alarms are sent via the alarm channel.
If the value is one (1) also encoder profile specific faults and warnings are sent via the alarm channel.
Note: This parameter is only supported in Encoder profile V3.1 compatibility mode. In standard mode the
profile-specific diagnosis is always active.
63
PROFINET
USER MANUAL www.leinelinde.com
Attribute Meaning
Disable No backward-compatibility
Table 55 Encoder profile
64
PROFINET
USER MANUAL www.leinelinde.com
Table 56 Encoder type
The preset function has an absolute and a relative operating mode selectable by bit 11 in the Control word (G1
STW). Bit 11 and bit 12 in the Control word controls the preset in the following way.
The steps below should be followed by the IO-controller when modifying the Preset value parameters:
1. Read the requested Preset value parameter and check if the returned value meets the application require-
ments. If not, proceed with the following steps.
2. Write the Preset value into the individual parameter.
3. Store the value in the non-volatile memory by PROFIdrive parameter 971 if the value should be valid also
after the next power on sequence.
Note: If scaling is used the preset function shall be used after the scaling function to ensure that the preset
value is entered in the current measuring unit.
65
PROFINET
USER MANUAL www.leinelinde.com
Note: There is no preset activated when the preset value is written to the encoder. How the preset is con-
trolled depends on the telegram used.
Note: Preset can also be done with encoder specific Parameter 65000 or 65002 (64bit).
Example:
For a 13-bit encoder with a single-turn resolution of 13 bits, the permissible value range for “Measuring units
per revolution” is between 20 and 213 (8192).
Note: After downloading new scaling parameters, the preset function must be used to set the encoder start-
ing point to absolute position 0 or to any required starting position within the scaled operating range.
Example:
The total measuring range for a 25 bit multi-turn encoder with a 13 bit single-turn and a 12 bit multi-turn reso-
lution is between 20 and 225 (33 554 432).
66
PROFINET
USER MANUAL www.leinelinde.com
Figure 28 Cyclic operation
B. Non-cyclic operation
If the desired total measuring range is not equal to the specified single-turn resolution * 2X (where x<= 12)
the encoder operates in non-cyclic operation. The non-cyclic operation is affected by the parameter G1 XIST1
Preset control as described below.
67
PROFINET
USER MANUAL www.leinelinde.com
tion value G1 XIST2. The position value G1 XIST1 is not limited to the scaled total range. For the position value
G1 XIST1, the device will continue to output a scaled position value within the encoder’s total measuring range
(up to 33554432 positions for a 25 bit encoder).
Example:
Total measuring range in measuring units = 236
MSB LSB
2 = 68719476736 = 0x 00 00 00 10 00 00 00 00
36
Then take the 4 most significant bytes above and convert to decimal:
0x00 00 00 10 = 16 = Total measuring range MSB
68
PROFINET
USER MANUAL www.leinelinde.com
Note: This parameter is only used when N2/N4 Normalization has been chosen as velocity measuring unit.
Note: This parameter is only supported in Encoder profile V3.1 or V4.2 mode. When using the encoder in
V4.1 mode the value is fixed to 1.
Steps/s 0
Steps/100 ms 1
Steps/10 ms 2
RPM 3
N2/N4 normalized 8
69
PROFINET
USER MANUAL www.leinelinde.com
The velocity calculations are made with a maximum of 19 bits resolution. If the resolution is higher than 219,
the value used for velocity calculations is automatically reduced to 219.
Example:
For a 37 bit multi-turn encoder with a 225 single-turn resolution and a 212 multi-turn resolution, the maxi-
mum single-turn value for velocity calculations will be 219. For a single-turn encoder the maximum resolution
can be up to 31 bit, but the value used for velocity calculations will in this case also be 219.
Note: In case of the steps/s unit, an average is made over 200 ms and the value is multiplied by 5.
Note: Avoid using telegram 82. Telegram 82 uses only a 16 bit velocity value and an overflow of the speed
value is likely to occur.
Bits Meaning
16...31 Reserved
Table 60 Encoder profile
If the operating time function is not used the operating time value is set to the maximum value (0xFFFF FFFF).
The accumulated
Operating time Unsigned 32
power on time
Table 61 Operating time
The preset function is used after the scaling function. This means that the offset value is indicated according
to the scaled resolution of the device.
70
PROFINET
USER MANUAL www.leinelinde.com
Table 62 Offset value
Note: The offset value is read only and cannot be modified by a parameter write access.
71
PROFINET
USER MANUAL www.leinelinde.com
Array [n]
65001 Operating status R
Integer 32
Additional parameters available when the encoder is configured according to the Encoder profile V.4.1.
(See chapter 9.7 Encoder Profile)
Array [n]
65003 Operating status 64 bit R
Integer 64
PNU 65000
The preset value sets the value for the preset function. The preset value can be
Explanation stored in the non-volatile memory by PROFIdrive parameter 971 and will be re-
loaded at each start-up if stored.
72
PROFINET
USER MANUAL www.leinelinde.com
PNU 65002
The preset value sets the value for the preset function. The preset value can be
Explanation stored in the non-volatile memory by PROFIdrive parameter 971 and will be re-
loaded at each start-up if stored.
PNU 65001
Access Read
0 Header
1 Operating status
2 Faults
3 Supported Faults
4 Warnings
5 Supported warnings
7 Operating time
8 Offset value
73
PROFINET
USER MANUAL www.leinelinde.com
Sub-indices 12..18 are only available when the encoder is configured according to the Encoder profile ver-
sion V.4.2. (See chapter 9.7 Encoder profile)
Bits Definition
0 Code sequence
1 Class 4 functionality
6 Encoder type
Parameter 65003 is a read only parameter where information on the 64 bit parameter values can be found.
74
PROFINET
USER MANUAL www.leinelinde.com
PNU 65003
Access Read
0 Header
Table 71 Parameter 65003
PNU 65004
Access Read/write
Bits Definition
0 Code sequence
1 Class 4 functionality
75
PROFINET
USER MANUAL www.leinelinde.com
Bits Definition
6 Encoder type
7...31 Reserved
PNU 65005
Access Read/write
This parameter configures all available parameter initialization and access func-
Explanation
tionality
Bits Definition
7...15 Reserved
76
PROFINET
USER MANUAL www.leinelinde.com
7...15 Reserved
Header
I&M Block
MANUFACTURER_ID 2 Manufacturer Id
77
PROFINET
USER MANUAL www.leinelinde.com
78
PROFINET
USER MANUAL www.leinelinde.com
10 Firmware upgrade
The Leine Linde encoders support a firmware upgrade function. The firmware upgrade function has been
developed to offer the possibility to upgrade the device to the latest released firmware. For more information
regarding the firmware upgrade function, please contact Leine Linde.
The update is performed with a PC software with an interface as figure below. The PC software is available
from Leine Linde. The below procedure for firmware upgrade is only valid for encoders with change index A or
later. For more information about change index, refer to chapter 4.5.
Note: Please contact Leine Linde for firmware upgrade of older encoders, without change index.
79
PROFINET
USER MANUAL www.leinelinde.com
80
PROFINET
USER MANUAL www.leinelinde.com
Figure 33 MRP
Ring redundancy is supported by the Leine Linde encoder through the Media Redundancy Protocol (MRP).
The ring is managed by a Media Redundancy Manager and all the other devices on the network act as Media
Redundancy Clients. The Media Redundancy Manager is responsible for issuing test frames for testing the
network and for re-configuring the network in the event of a ring failure due to a non-functioning device or a
broken cable.
If for example a cable or slave is damaged in the network the Media Redundancy Manager detects this through
the failure of the test frames that is sent out. Additionally, the Media Redundancy Clients will communicate
failure messages back to the manager if a failure is detected on its forwarding port.
Once a failure is detected, the Media Redundancy Manager will send out reconfiguration instructions to all
clients on both ports. The manager will then begin sending data traffic out on both ports so that the messages
reaches all clients. The total time for this process is about 200 ms. MRP is not supported for IRT.
81
PROFINET
USER MANUAL www.leinelinde.com
Figure 34 LLDP Properties
82
PROFINET
USER MANUAL www.leinelinde.com
83
PROFINET
USER MANUAL www.leinelinde.com
Then select Edit -> PROFINET IO -> Topology to open the “Topology editor”.
Figure 38 Topology editor
After the above has been verified it is possible to replace any IO device if the ports are reconnected in the same
way and the new device is set to factory reset.
84
PROFINET
USER MANUAL www.leinelinde.com
Enter the device’s MAC-address and then click on the “Reset” button. The MAC-address of the device is written
on the label of the device.
Figure 40 Factory reset
85
PROFINET
USER MANUAL www.leinelinde.com
Click “Reset” under “Reset to factory settings”, and then “Yes” in the confirmation window to reset the encoder
to its factory settings.
86
PROFINET
USER MANUAL www.leinelinde.com
With Telegram 84, the acyclic parameter 65002 Preset value 64 bit shall be used to set a preset value (<=64 bit)
for the device. If the acyclic parameter 65000 Preset value 32 bit is used in this case, an error message will be
returned.
When using Telegram 88 the preset value is set directly in the output data. The operating status is read by pa-
rameter 65001 Operating status and 65003 Operating status 64bit if using the encoder in Encoder profile V4.1. If
using the encoder in Encoder profile V4.2 the operating status is read by parameter 65001.
87
PROFINET
USER MANUAL www.leinelinde.com
13.6 Start up
This state is only reached when Control word (G1 STW) bit 14 “Activate parking sensor” is cleared (=0). Once the
Control word bit 14 is cleared, it takes about 500 ms before the Status word bit 14 “Parking sensor active” is set
to zero (=0).The reason for the delay is that before the encoder goes to normal operation mode, an initializing
of the encoder is made.
88
PROFINET
USER MANUAL www.leinelinde.com
14 Troubleshooting
1. Problem:
Preset, parking mode and error reset is not possible.
Solution:
The Control By PLC bit in Control Word 2 has to be set to 1 (Profile V4.1/V4.2).
2. Problem:
The preset value is lost if the power supply is switched off.
Solution:
Parameter 971 has to be set to 1 in order to save the preset value into non-volatile memory.
89
PROFINET
USER MANUAL www.leinelinde.com
15 Revision history
Table 79 Revision history
90
PROFINET
USER MANUAL www.leinelinde.com
91
The best encoders and sensors are those you
never have to think about. Those that simply do
their job – year after year. Leine Linde develops
and manufactures customized encoder and sensor
solutions for demanding environments, advanced
measuring systems for accurate feedback of speed,
Part no. 1200531-01, ver. 02
position or strain.
+46-(0)152-265 00 www.leinelinde.com