Professional Documents
Culture Documents
Contents
1 GENERAL INFORMATION 5
1.1 ABSOLUTE ENCODERS 5
1.2 APPLICABILITY OF MANUAL 5
1.3 DEVICENET TECHNOLOGY 5
1.4 ABOUT LEINE &LINDE AB 6
1.4.1 Technical and commercial support 6
1.4.2 Certification of fieldbus products 6
1.5 REFERENCES 7
1.6 ABBREVIATIONS 7
2 ENCODER INSTALLATION 8
2.1 SETTINGS INSIDE THE ENCODER 8
2.2 NODE ADDRESS/MAC ID 8
2.3 BUS TERMINATION 8
2.4 BAUDRATE SETTING 9
2.5 CONNECTING THE ENCODER 9
2.5.1 Power supply 9
2.5.2 BUS lines 9
2.5.3 Shielding philosophy 10
2.6 EDS FILE 10
2.7 LED INDICATION 11
2.7.1 Module LED 11
2.7.2 Network LED 11
3 PROFILE OVERVIEW 12
4 ENCODER FUNCTIONALITY 13
4.1 BASIC ENCODER FUNCTIONALITY 13
4.2 DEVICENET FUNCTIONALITY SUPPORTED 13
4.3 DEVICENET ADOPTION OF CAN IDENTIFIERS 14
4.4 ASSEMBLY INSTANCES 14
4.5 POSITION SENSOR OBJECT (0X23HEX) 15
4.5.1 Position value 16
4.5.2 Position sensor type 16
4.5.3 Code sequence 16
4.5.4 Commissioning diagnostic control 16
4.5.5 Scaling function 16
4.5.6 Position format 18
4.5.7 Preset, zero-set and offset value 18
Leine & Linde AB 4.5.8 COS/delta 18
T +46-(0)152-265 00 4.5.9 Position limits 19
F +46-(0)152-265 05 4.5.10 Velocity 19
info@leinelinde.com 4.5.11 Operating status 19
www.leinelinde.com 4.5.12 Measuring range 19
4.5.13 Alarms 19
4.5.14 Warnings 20
Publication date: 2015-06-01
4.5.15 Operating time 20
3
DeviceNet DeviceNet
USER MANUAL www.leinelinde.com USER MANUAL www.leinelinde.com
Leine & Linde is a company that often customizes the product to fi t individual requirements of our customers.
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 69X 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.
RSA 697 ISA 697
RSA 698 ISA 698
RHA 697 IHA 697
RHA 698 IHA 698
If your product is of the type mentioned above, contact Leine & Linde to obtain the product’s complete
functional description.
4 5
DeviceNet DeviceNet
USER MANUAL www.leinelinde.com USER MANUAL www.leinelinde.com
Based on the encoder profile, see chapter 3, the following objects are implemented in the
Leine &Linde integrated encoder:
1.5 References
• Identity Object. Provides identification and general information about the device.
http://www.odva.org ODVA
In addition the Identity object includes the reset function.
ODVA DeviceNet Specification 2.0 ODVA
• Message Router. The Message Router Object provides a messaging connection point through which a
Statement of Conformance Leine & Linde AB
client may address a service to any object class or instance residing in the physical device.
Encoder Profile Revision 2 ODVA/Leine & Linde AB
• Connection Class Object. Provides the configuration and status of a poll connection port.
Encoder EDS-file Leine & Linde AB
• DeviceNet Object. Provides the configuration and status of a DeviceNet port.
• Assembly Object. Binds attributes of multiple objects, which allows data to or from each object to be
sent or received over a single connection. By addressing different instances of the Assembly object,
different collections of data are returned in each poll cycle.
1.6 Abbreviations
• Position Sensor Object. Provides the configuration and status of the Encoder.
CAN Controller Area Network
• Acknowledge Object. Used to manage the reception of message acknowledgments. This object
CiA CAN in Automation
communicates with a message producing Application Object within a device. The Acknowledge Handler
CAL CAN Application Layer
Object notifies the producing application of acknowledge reception, acknowledge timeouts, and
EDS Electronic Data Sheet
production retry limit.
DCF Device Configuration File
MAC Media Access Control
1.4 About Leine &Linde AB
For more than 40 years the Swedish based company Leine & Linde has concentrated on one thing – develop-
ment and manufacturing of advanced encoders that meet the most rigorous demands. That is why a wide
selection of incremental and absolute encoders with obvious concentration on robust products and quality
down to the last detail can be offered. Leine & Linde encoders provide the utmost in reliability year after year,
in working conditions where vibration, dirt, cold and other harsh environments are common.
Leine & Linde can meet very specific individual customer demands. The encoders are easily adapted, due to a
modular design, to the customer’s exact need with respect to resolution, electrical connections and interfaces,
casings, etc. That is due to the fact that tomorrow’s technology already is used today in Leine & Linde’s product
lines. Leine & Linde concentrate on advanced development of intelligent encoders with integrated ASICs, new
special features and with adaptations to different fieldbus systems such as DeviceNet. This enables us to meet
the need for increasingly effective and dependable machines and automation to an even higher degree.
Leine &Linde AB
Box 8
SE-645 21 Strängnäs, Sweden
Tel: +46-(0)152-265 00
Fax: +46-(0)152-265 05
E-mail: info@leinelinde.com
Web: www.leinelinde.com
6 7
DeviceNet DeviceNet
USER MANUAL www.leinelinde.com USER MANUAL www.leinelinde.com
+E V 2
The node address or MAC ID of the device can be set using two decimal rotary switches located inside the
back cover. The weighting, x10 and x1 are specified beside the switches. Permissible address range is between 0V 3
1 and 63 but the lower addresses 0 to 2 are usually used by the master and not recommended to be used by
CAN_H 4
the device. The device address is read and adopted when the encoder power supply is switched on, i.e. a power
off and On is required in order to adopt changes done to the address settings. The node address or MAC ID is CAN_L 5
adopted and used to generate the CAN message identifier, see chapter 4.3
Figure 2 Orientation of M12 bus connectors Table 1 Pinning bus in/out- lines M12 version
2.3 Bus termination The cable gland encoders shall be equipped with twisted pair shielded cable in accordance with DeviceNet.
The guidelines recommend a conductor area higher than 0,34mm2. Permissible outer cable diameter is ø8mm
In a DeviceNet network, all devices are connected in a bus structure. Up to 32 devices (master and/or slaves)
to ø10mm. Located inside the back cover are six screw terminals containing the required bus line terminals
can be connected in one segment. When more devices are needed repeaters should be used to amplify the
marked H, L and G.
signals between segments. Generally a DeviceNet network is of trunk-line characteristics were drop-lines are
used for connecting devices on the bus. As a consequence termination is normally done in each end of the
The (H) terminal shall be connected to CAN_H line.
trunk-line. Based on this bus topology the Leine & Linde encoder doesn’t enable the possibility to set active
The (L) terminal shall be connected to CAN_L line.
termination.
The (G) terminal shall not be connected.
Note: If, for some reason, termination is required the encoder variants with M12 connectors can make
Note: The two H and L-terminals are internally connected to each other, i.e. it does not matter to which pair
use of the standard M12 termination plugs normally supplied for DeviceNet networks.
the bus lines are connected to.
8 9
DeviceNet DeviceNet
USER MANUAL www.leinelinde.com USER MANUAL www.leinelinde.com
Note: Encoder models ISA/IHA 647/678 are not equipped with LEDS. Therefore the LED indication tables
below are not applicable for these models.
Figure 3 Cable assembling principal
2.7.1 Module LED
To achieve the highest possible noise immunity and resistance against other EMI related disturbances the bus
and power supply cables shall always be shielded. The screen should be connected to ground on both ends of The module status LED is a bicolor LED with functionality as below.
the cable. In certain cases compensation current might flow over the screen. Therefore a potential compensation
wire is recommended. Module LED Indication
Off No power
Flashing Green Device is On-line but has no connections in the established state
When the encoder is on error free communication in on-line state both the module and the status LED should
shown green.
10 11
DeviceNet DeviceNet
USER MANUAL www.leinelinde.com USER MANUAL www.leinelinde.com
Physical position
Code sequence
Basic funtion Singleturn resolution
Number of distinguishable revolutions
Absolute position
Measuring units per revolution
Scaling function Total measuring range in measuring units
Scaling function control/status
Preset value
Preset function
Offset value
To specify which assembly instance that should be active when a poll response is returned, use the
‘Set produced connection path’ attribute of the Connection Class object.
12 13
DeviceNet DeviceNet
USER MANUAL www.leinelinde.com USER MANUAL www.leinelinde.com
4.3 DeviceNet adoption of CAN identifiers 4.5 Position Sensor object (0x23hex)
The DeviceNet communication has adopted the 11 identifier bits. They are subdivided into four separate The position sensor object supports the following attributes.
message groups; Group 1, Group 2, Group 3 and Group 4.
Attribute Attribute name Data type
Identifier Bits Hex Range Identity Usage 3 Position Value (Scaled) UDINT
10 9 8 7 6 5 4 3 2 1 0 10 Position Value (Unscaled) DINT
0 Group 1 Source MAC ID 0x000 – 0x3FF Message Group 1 11 Position sensor type UINT
Message ID 12 Code sequence BOOL
1 0 MAC ID Group 2 0x400 – 0x5FF Message Group 2
13 Commissioning diagnostic control BOOL
Message ID
14 Scaling function control BOOL
1 1 Group 3 Source MAC ID 0x600 – 0x7BF Message Group 3
Message ID 15 Position format ENGUNITS
1 1 1 1 1 Group 4 Message ID 0x7C0 – 0x7EF Message Group 4 16 Measuring units per revolution UDINT
1 1 1 1 1 1 1 X X X X 0x7F0 – 0x7FF Invalid CAN ID’s 17 Total measuring range in measuring units UDINT
18 Position measuring step UDINT
Table 4 CAN identifier 19 Preset value DINT
• Message ID – Identifies a message within a Message Group inside a particular endpoint. 20 COS/delta UDINT
• Source MAC ID – The MAC ID assigned to the transmitting node. 21 Work area state register BYTE
• Destination MAC ID – The MAC ID assigned to the receiving device. Message Group 2 allows the
22 Work area low limit DINT
specification of either Source or Destination within the MAC ID portion of the CAN Identifier Field.
23 Work area high limit DINT
The MAC ID uses 6 bits, which makes it possible to have 0-63 node addresses. Address 0 is not allowed.
24 Velocity value DINT
The Leine &Linde encoder uses Message Group 2.
25 Velocity format ENGUNITS
26 Velocity Resolution UDINT
4.4 Assembly instances
41 Operating status BYTE
The Leine &Linde encoder supports three assembly instances. 42 Physical resolution UDINT
43 Number of distinguishable revolutions UINT
Byte Instance 1 Instance 2 Instance 3
44 Alarms WORD
0 Position Data (Low byte) Position Data (Low byte) Position Data (Low byte) 45 Supported alarms WORD
1 Position Data Position Data Position Data 46 Alarm flag BOOL
Table 5 Assembly instances Note: The ‘Data Type’ Engineering Units (ENGUNITS) might not be common knowledge.
For a description of how it works, please see Appendix K-2.30 in the DeviceNet Specification.
The remaining part of this chapter describes the majority of the attributes in the position sensor object.
If more extensive explanation is required please advise the DeviceNet specification.
14 15
DeviceNet DeviceNet
USER MANUAL www.leinelinde.com USER MANUAL www.leinelinde.com
4.5.2 Position sensor type Attribute 17 - Total measuring range in measuring units
The position sensor type attribute can either have value 01, singleturn encoder, or 02, multiturn encoder
Table 8 Total measuring range attribute format
depending on encoder model commissioned.
The encoder has two different operating modes depending on the specified measuring range. If the scaling is
4.5.3 Code sequence binary the encoder enter operation mode A, cyclic operation, and if the scaling value is non-binary the encoder
enters operation mode B, non cyclic operation.
The code sequence defines whether increasing or decreasing position values are outputted when the encoder
shaft rotates clockwise (CW) or counterclockwise (CCW) as seen from shaft end. If attribute 12 is defined as
“0”, clockwise (CW) the position value will increase when the shaft is turned clockwise seen from shaft end. A. CYCLIC OPERATION (Binary scaling)
In contrary “1”, counter clockwise (CCW) will give increasing values when turning the shaft counter clockwise. Used when operating with 2X number of turns (2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048 and 4096 number of
turns). If the desired measuring range is equal to the specified singleturn resolution * 2X (where x <= 12) the
encoder operates in endless cyclic operation (0 - max - 0 - max ...). For example: If the position value increases
4.5.4 Commissioning diagnostic control above the maximum value (measuring range-1) by rotating the encoder beyond the maximum value the en-
The commissioning diagnostic control attribute enables internal encoder diagnostics function. If this attribute coder continues from 0.
is set to “1” the diagnostics is enabled and the actual status is presented in the alarm attribute 44.
Example of a cyclic scaling:
Measuring units per revolution = 1000
4.5.5 Scaling function Total measuring range = 32000 (25 = 32 number of turns)
With the scaling function the encoder internal numerical value is converted in software to change the physical
resolution of the encoder. The scaling function control attribute 14 enables the scaling attributes to affect the
position value. If this attribute is set to “1” (ON) the scaling attributes (16 and 17) affects the outputted position
value. Attribute 16 defines the singleturn resolution, i.e. the number of measuring units per revolution. Attribute
17 defines the total measuring range in measuring units, i.e. singleturn time’s multiturn resolution.
Note: When scaling a multiturn encoder the parameter “Measuring units per revolution” must be sent
before the parameter “Total measuring range in measuring units”.
Figure 5 Cyclic scaling
The data type for both scaling attributes is unsigned 32 with a value range from 1 to 232 limited by the encoder
resolution. For a 25 bit encoder with a singleturn resolution of 13 bits the permissible value for the ”Measur-
ing units per revolution” is between 1 and 213 (8192) and for the ”Total measuring range in measuring units” the B. NON CYCLIC OPERATION
permissible value is between 1 and 225 (33 554 432). The scaling attributes are securely stored in case of voltage If the measuring range is used to limit the encoder value range to a value not equal to the specified singleturn
breakdown and reloaded at each start-up. resolution * 2X the output position value is limited within the operating range. If the position value increases
or decreases outside the measuring range by rotating the encoder beyond the maximum value (measuring
range-1) or below 0 the encoder outputs the total measuring range value.
Byte 3 2 1 0
16 17
DeviceNet DeviceNet
USER MANUAL www.leinelinde.com USER MANUAL www.leinelinde.com
The scaling function used in the DeviceNet encoder is limited to a singleturn resolution within one step. 4.5.9 Position limits
After downloading new scaling attributes the preset function should be used to set the encoder starting point.
Using the attributes 22-23 a work area can be defined, i.e. high and low limit value. In attribute 21 the status of
Note: Changing the scaling function attributes should only be used at encoder standstill. the work area is presented. Whenever the actual position value is out of range bit 0 of the state register is set.
Bit 1 and 2 indicates weather an under or over flow is detected.
In the following formula a 25 bit multiturn encoder with a singleturn resolution of 13 bits is used as
an example. Formula for the multiturn scaling function: Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
4.5.10 Velocity
Where: singleturn_position = the Absolute singleturn position value
revolution_number = the Absolute multiturn number Attribute 24 presents the velocity value of the encoder shaft. The resolution and unit of the represented
velocity value is stated by attribute 25 and 26. Attribute 25, velocity format, is a read/write attribute defining
the unit of the outputted velocity value. The attribute value 1F04hex, count/sec, is default but also DF0Fhex, RPM,
4.5.6 Position format and DF0Ehex, RPS, is accepted.
For the position format attribute only 1001h, i.e. counts, is valid as the device is a rotary encoder.
4.5.11 Operating status
4.5.7 Preset, zero-set and offset value This attribute basically contains status of the code sequence and scaling functionality. No vendor specific
status bits are implemented.
The preset value, attribute 19, supports adapting of a desired position value to an actual position value.
When a preset value is added to attribute 19 a preset to the position value is performed and an offset
value is calculated. Bit Description FALSE (0) TRUE (1)
1 Scaling Off On
The offset value is continuously added to the internal encoder position value resulting
in a position value continuously affected by the preset value. 2..4 Reserved by DeviceNet
The calculated offset value will remain constant (until the preset value is changed) and can be accessed in at- Table 10 Operating status
tribute 51 and is securely stored in case of voltage breakdown and reloaded at each start-up.
Table 11 Alarms
18 19
DeviceNet DeviceNet
USER MANUAL www.leinelinde.com USER MANUAL www.leinelinde.com
2..11 Reserved by DeviceNet Note: Since commissioning is software tool dependent, the steps below must be adapted to the
specific tool in use. Also the example only shows how the scanner part is made.
12..15 Vendor specific
1) Set the physical address (Node Number) of the encoder using the address switches.
Table 12 Supported alarms
2) Power up the encoder.
4.5.14 Warnings 3) In RSNetworx, click on the “go on-line” button to connect to the DeviceNet network.
The encoder supports warnings according to the definition below.
Table 13 Warnings
Bit Description FALSE (0) TRUE (1) 4) The encoder will send a Boot-up message (Duplicate MAC message) when the baudrate is detected.
If no other node responds on the MAC request the encoder is online and waiting for a master to connect.
0 Frequency exceeded Not supported Supported
In case another node is responding the encoder enters offline and indicates accordingly on the LED’s.
1 Light control reserve Not supported Supported
5) Scan the network. When all expected units on the network have appeared, double-click the scanner
2 CPU watchdog Not supported Supported icon to bring up its property view.
3..10 For specific definition, see encoder profile Not supported Supported
6) Select the Scanlist tab. All units added to the Scanlist will be polled by the scanner/PLC.
20 21
DeviceNet DeviceNet
USER MANUAL www.leinelinde.com USER MANUAL www.leinelinde.com
6 Revision history
Revision Date Changes
9) Confirm the mapping of the encoder value in the PLC image file. Click OK to close the property page and
download the changes to the scanner device.
10) Now the scanner will gather all position data from all units in its scanlist and put in the image file.
22 23
The best encoders are those you never have to think
about. Those that simply do their job – year after year.
Leine & Linde develops and manufactures custom-
ised encoder solutions for demanding environments,
advanced measuring systems for accurate feedback
of speed and position.
Part no. 643197-01, ver. 2.0
+46-(0)152-265 00 www.leinelinde.com