This technical description contains information regarding the proper use of the OGS 600
optical guidance sensors.
1.1Explanation of symbols
The symbols used in this technical description are explained below.
CAUTION
This symbol precedes text messages which must strictly be observed.
Failure to observe the provided instructions could lead to personal injury or damage to
equipment.
NOTE
This symbol indicates text passages containing important information.
This sensor was developed, manufactured and tested in line with the applicable safety standards. It corresponds to the state of the art.
2.1Intended use
The OGS 600 optical guidance sensor measures the contrast of a guide trace that is affixed
to the ground. The sensor supplies the vehicle's position data on the guide trace, which
determines the course of travel.
Areas of application
The OGS 600 optical guidance sensor is designed for the following area of application:
• Intralogistics – in-house material flow with automated guided vehicles (AGV).
CAUTION
Observe intended use!
The protection of personnel and the device cannot be guaranteed if the device is operated in a manner not complying with its intended use.
Only operate the device in accordance with its intended use.
Leuze electronic GmbH + Co. KG is not liable for damages caused by improper use.
Read the supplement and these operating instructions for the device before commis-
sioning the device. Knowledge of these documents is required in order to use the
equipment for its intended purpose.
Safety
NOTE
The optical guidance sensors of the OGS 600 series correspond to the following classification with respect to the integrated lighting:
Illumination red:
risk group 0 (exempt group) in acc. with EN 62471
NOTE
Comply with conditions and regulations!
Observe the locally applicable legal regulations and the rules of the employer's liability
insurance association.
2.2Foreseeable misuse
Any use other than that defined under "Intended use" or which goes beyond that use is
considered improper use.
Leuze electronicOGS 6006
TNT 35/7-24V
In particular, use of the device is not permitted in the following cases:
• in rooms with explosive atmospheres
• as stand-alone safety component in accordance with the machinery directive
• for medical purposes
NOTE
Do not modify or otherwise interfere with the device!
Do not carry out modifications or otherwise interfere with the device.
The device must not be tampered with and must not be changed in any way.
The device must not be opened. There are no user-serviceable parts inside.
Repairs must only be performed by Leuze electronic GmbH + Co. KG.
2.3Competent persons
Connection, mounting, commissioning and adjustment of the device must only be carried
out by competent persons.
Prerequisites for competent persons:
• They have a suitable technical education.
• They are familiar with the rules and regulations for occupational safety and safety at
work.
• They are familiar with the original operating instructions of the device.
• They have been instructed by the responsible person on the mounting and operation
of the device.
Safety
1)
Certified electricians
Electrical work must be carried out by a certified electrician.
Due to their technical training, knowledge and experience as well as their familiarity with
relevant standards and regulations, certified electricians are able to perform work on electrical systems and independently detect possible dangers.
In Germany, certified electricians must fulfill the requirements of accident-prevention regulations BGV A3 (e.g. electrician foreman). In other countries, there are respective regulations that must be observed.
2.4Exemption of liability
Leuze electronic GmbH + Co. KG is not liable in the following cases:
• The device is not being used properly.
• Reasonably foreseeable misuse is not taken into account.
• Mounting and electrical connection are not properly performed.
• Changes (e.g., constructional) are made to the device.
1) Use as a safety-related component within a safety function is not permissible.
Leuze electronicOGS 6007
TNT 35/7-24V
3Device description
A Integrated illumination – transmitter (small lenses)
B Receiver modules – receiver (large lenses)
C Groove with 2 sliding blocks for fastening the mounting bracket
D 2 x M12 connector, 5-pin
E 1 x M12 connector, 8-pin
A
B
C
D
OGS 600-280/CN-M12
OGS 600-140/D…-M12.8
E
3.1Device overview
Device description
Leuze electronicOGS 6008
Figure 3.1:Device overview
TNT 35/7-24V
3.2Performance characteristics
A
B
C
D
E
A Guide trace; here dark trace on light background
B Left edge of guide trace
C Right edge of guide trace
D Width of the sensor's measurement field
E AGV direction of travel
3.2.1Trace detection
The sensor is designed to detect an optical guide trace on the floor and to output the position
of the guide trace relative to the sensor.
The sensor can detect a light trace on a dark background or, inversely, a dark trace on a
light background.
The sensor can detect up to 6 guide traces. Each guide trace consists of a left edge (shown
in red below) and a right edge (show in green below). This edge information is output for
each detected guide trace.
When a guide trace is detected, the sensor therefore outputs two pieces of information in
the process data for each trace:
• position of the left edge of the guide trace and
• position of the right edge of the guide trace
The difference between these two edge positions is the track width.
Device description
Figure 3.2:Schematic illustration of the guide trace under the optical guidance sensor
Leuze electronicOGS 6009
TNT 35/7-24V
3.2.2Measurement time
The sensor delivers an updated measurement every 10ms.
3.2.3Filter
The detection of incorrect floor markings can be minimized considerably by means of the
following filters, which can be activated separately: trace width, minimum contrast and trace
amplitude.
Filtered-out traces can be read out in separate parameters (see the chapter "Index overview
– More data on correct and incorrect traces").
Chapter 9 "Tips for initial commissioning" contains information on using the filters.
3.2.4Switches
At each switch, the sensor outputs two or more traces. The users themselves decide which
trace they want to follow. The switch function is provided to ensure that the wide midpoint of
the type 2 switch (see chapter 7.4 "Switch") is detected properly when the trace width filter
is active.
Example:
When the vehicle moves over a seamlessly bonded switch (type 2) and a turn request is
given, the vehicle control unit can very early on follow the edge position in the direction in
which the vehicle is to turn.
If the vehicle is to turn left, the vehicle is guided by the left edge. The turn operation then
begins before the sensor has passed the midpoint of the switch and outputs two traces.
Device description
3.2.5Faults
If floor markings occur which, despite activated filters, are detected as valid, then these
markings are output. The vehicle's control unit must ensure that position jumps in the output
traces are detected and that they are not followed.
Leuze electronicOGS 60010
TNT 35/7-24V
3.2.6Output value
150 mm
17 mm17 mm
AB
A Start of measurement field, output value 0
B End of measurement field, output value 1500 or 3000
300 mm
17 mm17 mm
AB
The sensor outputs the position of the left edge and the right edge of the optical guide trace
in mm * 10. The output value range is therefore:
• Short version OGS 600-140…:0 … 1500.
•Long version OGS 600-280…:0 … 3000.
A trace is detected if it enters the sensor's measurement field by at least 17mm at the
left or right edge. This corresponds to an output value of:
• Short version OGS 600-140…:170 … 1330.
•Long version OGS 600-280…:170 … 2830.
Device description
Figure 3.3:Measurement field of the guidance sensor
The trace width is the absolute value of the difference between the right and left edge of the
trace.
Leuze electronicOGS 60011
TNT 35/7-24V
3500
A Measurement value for left edge of guide trace
B Measurement value for right edge of guide trace
C Output value: Position of left edge
D Output value: Position of right edge
x Position of left edge of guide trace under sensor
y Output value: Edge positions
3000
2500
2000
1500
1000
500
Device description
y
A
B
D
C
0
010050150 200 250 300 350
Figure 3.4:Sensor characteristic curve with one trace (long version)
x
TNT 35/7-24V
Leuze electronicOGS 60012
Device description
A
B
C
D
AGuide trace; here dark trace on light background
BLeft edge of guide trace
CRight edge of guide trace
D, E Trace too wide according to active "Trace width" filter
FWidth of the sensor's measurement field
GAGV direction of travel
HObjects not detected as trace
G
E
F
F
H
H
If the "Trace width" filter detects an excessively wide trace, you can e.g.:
• activate the "Switch" function
• manually increase the upper tolerance for
the permissible trace width
3.2.7Example: Guide trace detection with active "Trace width" filter
Leuze electronicOGS 60013
Figure 3.5:Schematic illustration of the guide trace under the optical guidance sensor
TNT 35/7-24V
3.3Guide trace requirements
To ensure error-free detection of the optical guide trace on the floor, the guide trace must
meet the requirements described in the following sections.
3.3.1Trace color
The illumination of the sensors emits red light. As a result, the contrast that the sensor sees
is different to that perceived by the human eye.
The following overview shows how the sensor sees different colors.
Device description
Color perceived by
human eye
WhiteTraffic white901621200Leuze black
BlackJet black9005400Leuze white 1)
RedTomato red301311800Black
OrangeDeep orange201117400Black
YellowMelon yellow102819800Black
GreenEmerald green60011200White
BlueUltramarine blue5002700White
1) Leuze trace tapes available as accessories:
OTB 40-BK250, black, 40mm wide, self-adhesive, 25m roll (part no. 50137874)
OTB 40-WH250, white, 40mm wide, self-adhesive, 25m roll (part no. 50137875)
Table 3.6:Color comparison between the sensor and the human eye.
NOTE
A detailed table with sensor measurement values can be found in the appendix (see
chapter 13 "Appendix – Sensor measurement values for RAL colors").
Floor/backgroundGuide trace
RAL colorRAL no.Measurement value of
the sensor:
Amplitude [LSB]
Suitable
trace color
1)
TNT 35/7-24V
Leuze electronicOGS 60014
3.3.2Trace width
AB
C
A Guide trace; here dark trace on light background
B Free space next to guide trace
C Markings next to guide trace
B
C
The maximum width of the trace is limited only by the sensor's measurement field (see
figure 3.3). The trace must have a minimum width so that a sufficiently good contrast can be
achieved. The "Trace width" filter can be adjusted to the trace by means of a trace width
teach.
The recommended trace width is approx. 30 … 40mm.
Trace widthOGS 600-280…OGS 600-140…
Maximum266mm106mm
Minimum20mm20mm
Table 3.1:Maximum/minimum trace widths
3.3.3Free space next to the trace
To ensure error-free detection, there should not be any other marking within a distance of at
least 30mm from the actual trace.
At distances greater than 30mm from the trace, the floor can have any color.
> 30mm> 30mm
Device description
Leuze electronicOGS 60015
Figure 3.7:Minimum distance between the guide trace and other objects on the floor
The same applies to an inverted layout with a light guide trace on a dark background.
TNT 35/7-24V
3.4Connection technology
All device connections are based on M12 connection technology, see chapter 5 "Electrical
connection".
NOTE
Shielding!
The shielding is connected via the M12 connector housing.
Use only shielded connection cables!
3.5Operating and display elements
The optical guidance sensor does not have any operating elements or indicators.
The sensor is operated and its configuration checked only via the serial interface or via the
CAN bus.
Device description
Leuze electronicOGS 60016
TNT 35/7-24V
4Mounting
20°
A
B
C
A Optical guidance sensor
B Reflection of reflecting surfaces
C Automated guided vehicle (AGV)
D Direction of travel
D
4.1General mounting instructions
The device is mounted using the groove integrated in the profile. Two sliding blocks with M6
thread are included in the delivery and already inserted into the groove.
NOTE
Mount the sensor at an angle!
The sensor must be mounted at an angle of 20° to ensure that reflective surfaces have no
effect on the evaluation.
Mounting
Figure 4.1:Angled sensor mounting to prevent unwanted reflection
The sensor can be mounted using the mounting brackets included in the delivery (see
chapter 4.3 "Mounting accessories"). They ensure that the sensor is pointing at the floor at
the correct angle.
Leuze electronicOGS 60017
TNT 35/7-24V
4.2Selecting a mounting location
Reliable detection of the guide trace primarily depends on how good the contrast is between
the trace and the background.
In order to select the right mounting location, several factors must be considered:
• The distance of the sensor to the trace to be detected should be 10 … 70mm.
• The guide trace must have a minimum width of 20mm.
• The linearity error of the output value depends on the distance to the floor.
• Diffuse reflection of the trace. Ideally, a jet black guide trace on a pure white background should be used.
4.3Mounting accessories
The following items are included with the sensor:
• 2x M6 sliding blocks (inserted in the groove)
• 2x mounting brackets for mounting the sensor at an angle of 20°.
NOTE
Dimensioned drawings!
The dimensioned drawings with the installation dimensions of the sensor can be found in
Chapter 11.2.
Mounting
Leuze electronicOGS 60018
TNT 35/7-24V
5Electrical connection
NOTE
The corresponding mating connectors and ready-made cables are available as accessories for all M12 connections. For further information, see chapter 12 "Order guide and
accessories".
5.1Safety notices for the electrical connection
CAUTION
Before connecting the device, be sure that the supply voltage agrees with the value
printed on the name plate.
The device may only be connected by a qualified electrician.
Ensure that the functional earth (FE) is connected correctly. Unimpaired operation is
only guaranteed when the functional earth is connected properly.
If faults cannot be cleared, the device should be switched off and protected against
accidental use.
NOTE
Protective Extra Low Voltage (PELV)!
The OGS 600 optical guidance sensors are designed in accordance with protection class
III for supply by PELV (protective extra-low voltage with reliable disconnection).
Electrical connection
NOTE
Shielding connection!
The shielding is connected via the M12 connector housing.
Use only shielded connection cables!
NOTE
Degree of protection IP65 is achieved only if the connectors and caps are screwed into
place.
Leuze electronicOGS 60019
TNT 35/7-24V
5.2Voltage supply
The OGS 600 guidance sensors are designed for a voltage supply of 18 … 30 VDC (PELV
– protective extra low voltage with reliable disconnection). The current consumption with
24 V DC is approx. 180 mA.
5.2.1Shielding
NOTE
Shielded connection cables!
Only shielded connection cables should be used; they ensure that the housing of the
OGS 600 is connected to functional earth.
Use only shielded connection cables!
The shielding must be connected to earth potential on the connection side.
If unshielded connection cables are used, a separate cable must be routed from the
housing to the earth potential (additional earthing screw on the housing cover and in
the fastening groove).
Electrical connection
Leuze electronicOGS 60020
TNT 35/7-24V
5.3Pin assignment
M12 plug
(A-coded)
M12 plug
(A-coded)
5.3.1OGS 600-…/D3-M12.8 with RS485 interface
PWR/RS485, 8-pin M12 connector, A-coded
PinNameCommentIN / OUT
1VINOperating voltage +18 … +30V DCIN
2IOSwitching input or switching outputIN / OUT
3GND
4SW_IOSwitching outputOUT
5RX / TX +Signal line of RS485 interface IN / OUT
6RX / TX -Signal line of RS485 interface IN / OUT
7n. c.Not connected
8n. c.Not connected
ThreadFEFunctional earth (housing)
Table 5.1:PWR/RS485 – Pin assignment for OGS 600 with RS485 interface
5.3.2OGS 600-…/D2-M12.8 with RS422 interface
PWR/RS422, 8-pin M12 connector, A-coded
PinNameCommentIN / OUT
1VINOperating voltage +18 … +30 VDCIN
2IOSwitching input or switching outputIN / OUT
3GND
4SW_IOSwitching outputOUT
5TX +Signal line of RS422 interface OUT
6TX-Signal line of RS422 interface OUT
7RX +Signal line of RS422 interface IN
8RX-Signal line of RS422 interface IN
ThreadFEFunctional earth (housing)
Table 5.2:PWR/RS422 – Pin assignment for OGS 600 with RS422 interface
Operating voltage 0VDC / reference
Operating voltage 0VDC / reference
Electrical connection
ground
ground
IN
IN
TNT 35/7-24V
Leuze electronicOGS 60021
Electrical connection
M12 plug
(A-coded)
M12 socket
(A-coded)
5.3.3OGS 600-…/CN-M12 with CANopen and RS232 interface
PWR/RS232, 5-pin M12 connector, A-coded
PinNameCommentIN / OUT
1VINOperating voltage +18 … +30 VDCIN
2RxDSignal line of RS232 interface IN
3GND
4SW_IOSwitching outputOUT
5TxDSignal line of RS232 interface OUT
ThreadFEFunctional earth (housing)
Table 5.3:PWR/RS232 – Pin assignment for OGS 600 with CANopen/RS232 interface
CAN, 5-pin M12 socket, A-coded
PinNameCommentIN / OUT
1SHIELDCAN functional earth
2n. c.Not connected
3CAN_GNDReference level for CAN signal lines
4CAN_HighCAN bus A signal lineIN / OUT
5CAN_LowCAN bus B signal lineIN / OUT
ThreadFEFunctional earth (housing)
Operating voltage 0VDC / reference
ground
IN
Table 5.4:CAN – Pin assignment for OGS 600 with CANopen/RS232 interface
Leuze electronicOGS 60022
TNT 35/7-24V
5.4Switching inputs/outputs
NOTE
The devices with RS485 and RS422 interface have two IO pins:
• SW_IO (pin 4) switching output (configurable)
• IO (pin 2) switching input or switching output (configurable)
The devices with CANopen and RS232 interface have only one IO pin:
• SW_IO (pin 4) switching output (configurable)
5.4.1Function of the SW_IO and IO switching outputs
The switching outputs are configured via index accesses only. The possible function range
is the same for both switching outputs. The switching outputs can be configured independently of each other.
Two functions are available which can be signaled via the switching output.
Trace monitoring
An upper and lower position value can be defined using two parameters. The limit values
are compared with the values of the detected trace.
If the left or the right edge of the detected trace is greater than the limit value, the switching
output is activated.
If more than one trace is detected, then the outermost edges are always used for monitoring.
The function has a hysteresis.
Electrical connection
Contrast monitoring
An upper and a lower value can be defined for contrast using two parameters. The limit
values are compared internally with the values of the contrast measured for the current
trace.
If the contrast is greater or less than the limit value, the switching output is activated.
NOTE
Deactivation of a switching output
Both switching outputs SW_IO and IO can also be deactivated independently of each
other.
Leuze electronicOGS 60023
TNT 35/7-24V
Switching behavior
1 High signal within switching points
2 High signal outside switching points
3 Hysteresis
4 Measurement value: object position or contrast
5 Upper switching point
6 Lower switching point
ON
1
OFF
ON
2
OFF
Electrical connection
3
654
Figure 5.1:Switching behavior of the switching outputs
NOTE
The switching outputs can be configured independently of each other as:
• Push-pull switching output
•PNP switching output
• NPN switching output
Leuze electronicOGS 60024
TNT 35/7-24V
5.4.2Switching output SW_IO (pin 4)
The functions of the switching output are described in Chapter 5.4.1.
The switching output SW_IO is connected to pin 4 on all device models (see chapter 5.3
"Pin assignment"). The function of the switching output can be configured via indices.
Electrical connection
Name Index
Q1UserConfig 87d 2003h [6h]2RW 0d 0d: not active
Q1SwitchPtMode80
Q1UpperSwitchingPoint 77
Q1LowerSwitchingPoint 78
Q1Hysteresis81
Q1LightDark79
Qproperty76
Index
UART
[subindex]
CANopen
2003h [4h]2RW 0d 0d: deactivated
d
2003h [1h]2RW 0d Upper limit.
d
2003h [2h]2RW 0d Lower limit.
d
2003h [5h]2RW 20d Hysteresis in absolute values.
d
2003h [3h]2RW 0d 0d: output has high signal outside switching
d
2005h [0h]2RW 0d 0d: switching output switches OFF
d
Index
length
[byte]
Access Default
data
Function / value [dec.]
1
: Out_PP (push-pull)
d
2
: Out_NPN
d
3
: Out_PNP
d
1
: trace monitoring
d
2
: contrast monitoring
d
Trace position in mm * 10
Contrast value in LSB
Trace position in mm * 10
Contrast value in LSB
Applies to both limits.
Unit: mm * 10 or LSB
points
1
: output has high signal within switching
d
points
1
: switching output switches ON
d
2
: switching output remains unchanged
d
Takes effect in the case of
• Activation/deactivation
• Global error
(UART index 200
], value 0001h) with detailed info in UART
[1
h
index 201
Table 5.5:Configuration options for switching output SW_IO (pin 4)
, and CAN index 2020h
d
and CAN index 2020h [2h]
d
TNT 35/7-24V
Leuze electronicOGS 60025
5.4.3IO switching output/switching input (pin 2)
The functions of the switching output are described in Chapter 5.4.1.
The IO switching output is connected to pin 2 on the device models with RS485 and RS422
interface (see chapter 5.3 "Pin assignment"). The function of the switching output can be
configured via indices.
Electrical connection
Name Index
Q2UserConfig 88
Q2SwitchPtMode85
Q2UpperSwitchingPoint 82
Q2LowerSwitchingPoint 83
Q2Hysteresis86
Q2LightDark84
Qproperty76
Index
UART
[subindex]
CANopen
2004h [6h]2RW 0d 0h: inactive
d
2004h [4h]2RW 0d 0d: deactivated
d
2004h [1h]2RW 0d Upper limit.
d
2004h [2h]2RW 0d Lower limit.
d
2004h [5h]2RW 20d Hysteresis in absolute values.
d
2004h [3h]2RW 0d 0d: output has high signal outside switching
d
2005h [0h]2RW 0d 0d: switching output switches OFF
The switching input is configured via index accesses only (see Table 5.6).
Two functions are available which can be activated via the switching input.
Activation
A high signal at the switching input activates the sensor illumination; a low signal deactivates
the sensor illumination.
Deactivation
A high signal at the switching input deactivates the sensor illumination; a low signal activates
the sensor illumination.
NOTE
Output behavior with deactivated sensor illumination
With the sensor illumination deactivated, the sensor does not deliver any measurement
values.
In this case, the output behavior of the switching output (pin 2, pin 4) with the trace monitoring or contrast monitoring function can be controlled via UART index 76
index 2005
This setting has no effect on the output of process data.
NOTE
Deactivation of the switching input
The switching input IO can also be deactivated.
) Qproperty.
h
Electrical connection
(CANopen
d
Leuze electronicOGS 60027
TNT 35/7-24V
5.5Connection to the PC via RS232/RS422/RS485
A
B
C
A PC with OGS 600 software
B RS485-USB adapter (on request)
C Y-connection cable (on request)
D Optical guidance sensor
D
The devices can be configured via the RS232/RS422/RS485 interface using the Windows
software OGS600.exe or Sensor Studio.
All connections via the serial interfaces require a USB adapter which provides a virtual COM
port on the PC.
For the RS422/RS485 interface, a USB adapter and a Y-cable are available as accessories
for setting up the connection between the sensor, voltage supply and USB adapter.
Electrical connection
Figure 5.2:Connection of the OGS 600 to the PC using the RS485 interface
The adapter set and the Y-connection cable are available as accessories on request.
Information about installation and use of the software can be found in Chapter 6 "Configu-
Leuze electronicOGS 60028
ration/diagnostic software" on page 29.
TNT 35/7-24V
Configuration/diagnostic software
6Configuration/diagnostic software
6.1Installing the required software
6.1.1System requirements
Operating system:Windows XP
Windows Vista
Windows 7
Windows 8
Windows 10
Computer:PC with USB interface version 1.1 or higher
Graphics card:Min. 1024 x 768 pixels or higher resolution
Required hard drive capacity:Approx. 10MB
Note!
It is recommended to update the operating system and the browser regularly and to install
the current Windows service packs.
6.1.2Installation of the software
RS485-USB adapter
A driver must be installed for the USB RS485/422 interface adapter (available as an accessory). It can be found on the supplied CD. The file CDM21216_Setup.exe can be found on
the CD in the folder ..\Windows. This file must be executed by double-clicking. Admin rights
are required for correct installation.
Configuration software OGS 600
The control software for the OGS 600 does not need to be installed. This is a directly executable .exe file. No admin rights are required.
The software functions with all RS485, RS422, RS232 serial interfaces.
The software accesses the (virtual) COM port of the adapter.
Leuze electronicOGS 60029
TNT 35/7-24V
Configuration/diagnostic software
6.2Starting the configuration/diagnostic software
To start the configuration software, double-click the file OGS600.exe.
6.3Short description of the configuration/diagnostic software
The control software is intended to provide an overview of the sensor's functions. For this
purpose, measurement data and detected traces are visualized.
There is a function for recording raw values and data of the guide trace.
This can be used for configuring CANopen devices via the RS232 interface.
The control software offers the following functions
• Firmware update via UART boot loader
• Visualization of the measurement values
• Saving of measurement values
• Visualizing the detected guide traces
• Visualizing the filter settings
• Changing filter settings manually
• Performing the various teach modes for the filters
• Querying of the process data
• Reading out of valid and invalid traces
• Reading and writing indices
• Configuring the CANopen properties
Leuze electronicOGS 60030
TNT 35/7-24V
Configuring the sensor – Overview of functions
A
B
C
A Optical guidance sensor
B Long axis (150mm/300 mm)
C Light beam gate
D Distance
E Angle
D
E
7Configuring the sensor – Overview of functions
7.1Compensating the installation position of the sensor – Angle compensation teach
After installation of the device, it is recommended to perform a one-off compensation teach
in order to compensate the installation position. The compensation teach is especially
recommended if the contrast between the trace and environment to be evaluated is
extremely low. A low contrast is a value less than 5000 LSB.
Figure 7.1:Angle compensation teach for compensation of the installation position
Procedure
1.The sensor must be pointing at a light, homogeneous object.
A sheet of white paper is ideal for this purpose.
2.Perform the teach –> System Command (UART index 2
value: 193
Leuze electronicOGS 60031
3.Read UserState (UART index 151
evaluation of the data –> wait until bit 1 (angle compensation OK) is set.
and CAN index 2000h [0h],
).
d
and CAN index 2011h [2h]),
d
d
TNT 35/7-24V
Configuring the sensor – Overview of functions
AB
C
A Dark guide trace on light background
B Light guide trace on dark background
C Retro-reflective guide trace
7.2Configuring the guide trace – light, dark, retro-reflective
The sensor must be preconfigured for the type of trace to be detected.
The following models exist:
• Dark guide trace on light background
• Light guide trace on dark background
• Retro-reflective guide trace
Figure 7.2:Guide trace types
Retro-reflective guide trace
The retro-reflective guide trace is a special variant of the light guide trace on a dark background. The amount of light reflected by the retro-reflective medium is greater than the
amount of light reflected by the background. For the sensor, this signal looks like a light
trace.
With this setting, the transmitting current of the LEDs for the sensor illumination is reduced
in order to fully utilize the dynamics of the electronics.
Leuze electronicOGS 60032
TNT 35/7-24V
Configuring the sensor – Overview of functions
Configuration of the guide trace type
Name Index
Dark trace type2d 2000h [0h] 2W212d Dark trace, light background
An offset can be added to the edge output values. This offset only has an effect on the output
of process data.
NOTE
If indices with edge positions are read out, they do not contain the offset.
The offset can be used to compensate off-center installation of the sensor.
AccessData
AccessDataFunction / value
[Dec.]
Function / value
Bit 8: 0 = inactive, 1 = retro-reflective trace
Name Index
UserOffset 109d 2010h [Ah] 2RW212d Offset for edge position
UART
Index
[subindex]
CANopen
Index
length
[byte]
AccessData
[Dec.]
Function / value
Unit: [ mm * 10 ]
Example:
Offset the process data output values from 0 … 3000 to -1500 … 1500.
-150mm offset: -150mm * 10 = -1500.
–> Write the value ’-1500’ in UserOffset (UART index 109
and CAN index 2010h [Ah]).
d
NOTE
If the offset is to be deactivated, the value 0 must be written.
Leuze electronicOGS 60033
TNT 35/7-24V
7.4Switch
AB
C
D
ASwitch type 1
BSwitch type 2
CMinimum distance 30mm
DMidpoint of switch
ELeft edge of guide trace
FLeft edge of guide trace too wide
GRight edge of guide trace
HRight edge of guide trace too wide
"Trace width" filter = ON
GE
FH
At a switch, the sensor always outputs all detected traces.
NOTE
The users themselves must decide in which direction they want to turn.
There are two different switch types (see figure 7.3):
•Switch type 1 with parallel guide trace
•Switch type 2 with branching guide trace
Configuring the sensor – Overview of functions
Leuze electronicOGS 60034
Figure 7.3:Type 1 and type 2 trace switches
The sensor supports both switch types.
TNT 35/7-24V
Configuring the sensor – Overview of functions
A
B
CD
AMidpoint of a type 2 switch
BDead zone
CLeft edge of guide trace
DRight edge of guide trace
EArea with extremely low contrast
B - Dead zone:
Area in which there is no trace output. The
length depends on the angle of the branch.
Typical value: approx. 5 … 20mm.
E
NOTE
One switch can have three branches.
Switch type 2
The behavior at the midpoint of a type 2 switch depends on the trace width filter and the
angle of the branch.
For type 2 switches, it is recommended to use the "Switch" function (see chapter 7.4.1
""Switch" function – Settings for type 2 switches") in order to improve detection of the wide
trace at the midpoint of the switch, as well as to receive two trace values in the output as
soon as possible in the triangular, extremely low-contrast area after the switch.
Figure 7.4:Midpoint of type 2 switch
Leuze electronicOGS 60035
TNT 35/7-24V
Configuring the sensor – Overview of functions
7.4.1"Switch" function – Settings for type 2 switches
NOTE
The "Switch" function changes several settings in the sensor.
These changes are only required for type 2 switches.
Activation of the SwitchNumber function (UART index 170d and CAN index 2012h) affects
the filters as follows:
• "Minimum contrast" filter is deactivated
• "Trace width" filter remains active/inactive -> adjustment of Tr ac eW id th Ma x
If the "Trace width" filter is used, the maximum trace width of the filter is increased. The
minimum trace width remains unchanged.
The SwitchTraceWidthFactor factor (UART index 110
for calculating the new maximum trace width.
The calculation temporarily changes the TraceWidthMax parameter (UART index 100
CAN index 2010
[1h]) until the SwitchNumber switch function is deactivated.
h
The SwitchTraceWidthFactor factor is preset by default for a type 2 switch with one branch.
For switches with 2 branches (3 traces), the preset factor may be too small and may need
to be increased.
Calculation of the maximum trace width when the switch function is activated:
TraceWidthMax_Switch = TraceWidthMax + ( Trac e Wid thM a x * SwitchTraceWidthFactor / 100 )
The result of the calculation can be checked in TraceWidthMax. After deactivation of the
SwitchNumber function, the original value is entered in TraceWidthMax.
and CAN index 2010h [Bh]) is used
d
and
d
NOTE
If problems with the "Trace width" filter occur at a switch, the SwitchTraceWidthFactor
factor can be increased or reduced.
The change is retained after a voltage reset of the device. Resetting to the factory settings
(system command Factory Reset) restores the original value.
Why write trace number?
To ensure that the dead zone (see Figure 7.4) is as small as possible, internal parameters
for the guide trace are set on activation of the switch function when the first measurement is
performed after the query.
If the sensor detects more than one correct guide trace in the measurement cycle performed
during activation, then these traces are output via the process data.
The vehicle decides which guide trace is used. The sensor does not know the decision made
by the vehicle.
To allow optimum configuration to be performed, the sensor must be informed of the number
of the guide trace which is followed by the vehicle.
Leuze electronicOGS 60036
TNT 35/7-24V
Configuring the sensor – Overview of functions
The trace number is derived from the sequence in which the trace is output in the process
data (see Table 8.8).
If the trace number used by the vehicle control unit changes during an active switch function
or the second trace disappears, then the currently used trace number is transferred to the
sensor.
This does not cause the internal settings to change. These settings are only changed again
when the switch function is deactivated by writing a '0' and then reactivated.
NOTE
If a trace number which is not present is written, an error occurs. In this case, bit 13 is set
in the Status index (UART index 200
activated.
The switch function is active if bit 12 is set in the Status index (UART index 200
index 2020
).
h
Solution: Write the correct trace number.
Operational sequence of the "Switch" function
When should the SwitchNumber function be activated?
1.The system informs the vehicle that there is a switch ahead.
Ideally, this happens 10 … 200mm before the sensor reaches the midpoint of the
switch and the trace becomes wider.
2.The vehicle notes which guide trace it is currently following. The guide traces are
numbered in ascending order from 1 to 6.
The sequence is derived from the sequence in which the edges are output in the process data (see Table 8.8).
3.This trace number must be written to the SwitchNumber index (UART index 170
CAN index 2012
[0h]) or sent via the query with the process data with byte 2 PD-In1.
h
4.Internal adaptation of the values in the sensor to the trace which the vehicle is cur-
rently following takes place once only.
The effect on the output traces becomes apparent within the maximum time of one
measurement cycle (10ms) after the query is sent for the first time.
and CAN index 2020h). The switch function is not
d
and CAN
d
d
and
TNT 35/7-24V
Deactivation of the "Switch" function
1.Writing a ’0’ in SwitchNumber (UART index 170d and CAN index 2012h [0h])
or
2.Writing of ’0’ in byte 2 PD-In1 during the process data query.
Leuze electronicOGS 60037
Configuring the sensor – Overview of functions
7.4.2Index accesses for activation of the "Switch" function
Name Index
SwitchNumber 170d 2012h [0h]2W00d = inactive
SwitchTraceWidthFactor 110
Index
UART
[subindex]
CANopen
2010h [Bh] 2RW150Factor in % for increase in Tra ce -
d
Index
length
[Byte]
AccessDefault value
data [Dec.]
Info
1
= trace no. 1
d
2
= trace no. 2
d
3
= trace no. 3
d
4
= trace no. 4
d
5
= trace no. 5
d
6
= trace no. 6
d
WidthMax parameter when switch
function is activated
Table 7.3:Index accesses for activation of the "Switch" function
TypeByte 0Byte 1Byte 2Byte 3Byte 4
QueryPD13
Node no./
identifier
PD typePD-In1
04h 0
h
(data in)
= off
d
1
= trace no. 1
d
2
= trace no. 2
d
3
= trace no. 3
d
4
= trace no. 4
d
5
= trace no. 5
d
6
= trace no. 6
d
PD-In2
(reserve)
CRC
0
h
CRC
Table 7.4:Settings for "Switch" function with process data query in byte 2
Leuze electronicOGS 60038
TNT 35/7-24V
7.5"Trace width" filter
AB
CD
xEdge position
yAmplitude reception signal
ALeft edge of guide trace
BRight edge of guide trace
CTrace too wide according to active "Trace width" filter
DTrace OK
ETeac h th r esh old
E
AB
If the sensor is to output only traces which correspond to a certain trace width, the "Trace
width" filter can be activated.
The filter value can be set to the trace by means of a teach or manually by entering the
values in the corresponding indices.
Traces filtered out by the filter can be read out via the TraceInvalidSubPixel index (UART
index 213
During the trace width teach, the TraceTeachThr parameter is calculated. The position of
the left and right edge is determined for the amplitude of this threshold. If a trace is detected
which does not allow the trace width to be calculated with the threshold determined during
the teach, then the threshold is adapted for this particular trace. The taught threshold is used
as soon as the amplitude of the found background-trace combination permits this.
The trace width depends on the value of this threshold.
and CAN index 2027h [1h]…[Ch]).
d
CAUTION
y
Configuring the sensor – Overview of functions
Figure 7.5:Application of the "Trace width" filter using a dark trace as an example
Leuze electronicOGS 60039
x03000
TNT 35/7-24V
Configuring the sensor – Overview of functions
7.5.1Teaching the trace width
The TraceWidthTol parameter (UART Index 102d and CAN Index 2010h [3h]) is used during
the teach in order to define the upper and lower limit for the trace width on the basis of the
currently measured trace width.
Calculation of the values in the sensor:
Trace width = │Position of left edge - Position of right edge│
Trace Wi dt hM ax = Trace width + Tr ac eW id th Tol
Trace Wi dt hM in = Trace width - Trac eW id th Tol
7.5.2Manual configuration of the trace width
If the trace width is to be configured manually, the values can be written directly to the
parameters TraceWidthMax (UART index 100
WidthMin (UART index 101
Remember to apply the factor 10 during conversion: 10
CAUTION
If a trace width teach is performed, manually configured trace width values are overwritten.
and CAN index 2010h [2h]).
d
7.5.3Process data information for the "Trace width" filter
If the number of detected traces which, owing to the "Trace width" filter, are not output in the
process data is greater or equal to one, then bit 3 is set in process data byte 2 Status PD.
2020h [1h] 2RBit no. 5 If the number of filtered-out traces is
d
2002h [0h] 2RBi t no. 2If the bit is set, then the "Trace width"
d
Index
length
[byte]
AccessData / (default
value)
Info
For manual configuration
or result from teach
Value: [ mm * 10 ]
For manual configuration
or result from teach
Value: [ mm * 10 ]
Only required for teach
Value: [ mm * 10 ]
≥ 1, the bit is set.
See also process data status byte, bit
no. 3 (Chapter 8.1.4.1)
filter is active.
Table 7.5:Index accesses for the "Trace width" filter
Leuze electronicOGS 60041
TNT 35/7-24V
Configuring the sensor – Overview of functions
AB
C
D
xEdge position
yReception signal amplitude
ALeft edge of guide trace
BRight edge of guide trace
CTrace width
DAmplitude of background
EAmplitude of guide trace
FContrast
GWarning threshold for minimum contrast
HMinimum contrast (TraceContrastMin)
JVerification of minimum contrast.
The second, right trace is not output because the minimum contrast is not fulfilled.
G
E
F
H
J
7.6"Minimum contrast" filter
The filter for the minimum contrast queries whether the brightness of the background and
the brightness of the trace have a minimum difference.
This minimum difference can be taught based on a reference trace, or the value can be set
manually.
y
03000
Figure 7.6:Application of the "Minimum contrast" filter using a dark trace as an example
7.6.1Teaching the minimum contrast
Leuze electronicOGS 60042
The value of the TraceContrastTol parameter (UART index 105d and CAN index 2010h [6h])
is used for calculating a minimum threshold for the contrast using the contrast value
measured during the teach. The value appears as a percentage [%] in the index.
If the minimum contrast is to be configured manually, it can be written directly to the TraceContrastMin parameter (UART index 103
CAUTION
If a minimum contrast teach is performed, a manually configured minimum contrast value
is overwritten.
7.6.3Warning for minimum contrast
The warning threshold corresponds to a percentage deviation from the minimum contrast
TraceContrastMin (UART index 103
the minimum contrast is calculated using the TraceContrastWarning factor (UART
index 104
Calculation:
and CAN Index 2010h [5h]). There is no index for calling up this value directly.
7.6.4Process data information for the "Minimum contrast" filter
In the status byte of the process data, there are two bits for information relating to the
minimum contrast:
•Bit1: Minimum contrast warning
•Bit4: Minimum contrast error
Bit 1 Minimum contrast warning is set if the number of detected traces for which the
minimum contrast is less then the warning threshold, is greater than or equal to one.
Bit 4 Minimum contrast error is set if the number of detected traces for which the contrast is
less than TraceContrastMin, is greater than or equal to one.
and CAN index 2010h [4h]) as a value in [LSB].
d
and CAN index 2010h [4h]). The warning threshold for
d
Leuze electronicOGS 60043
TNT 35/7-24V
Configuring the sensor – Overview of functions
7.6.5Index overview for the "Minimum contrast" filter
Bit counting method: bit0 … bit15
NameIndex
Activate filter2d 2000h [0h] 2W231d System command
Deactivate filter2
Teaching the minimum
contrast
TraceContrastMin103
TraceContrastWarning 104
TraceContrastTol105
Status200
Status200
UserMode75
Index
UART
[subindex]
CANopen
2000h [0h] 2W232d System command
d
2
2000h [0h] 2W195d System command
d
2010h [4h] 2RW(5500d)Result from teach or manual entr y, unit:
d
2010h [5h]2RW(20d)Factor for calculation of warning thresh-
d
2010h [6h]2RW(30d)Tolerance is used in teach event, unit:
2002h [0h] 2RBi t no. 3If bit = 1, then "Minimum contrast" filter
d
Index
length
[byte]
AccessData / (default
value)
Info
[LSB]
old, unit [%]
[%]
See also process data status byte, bit
no. 4 (Chapter 8.1.4.1)
See also process data status byte, bit
no. 1 (Chapter 8.1.4.1)
is active.
Table 7.6:Index accesses for the "Minimum contrast" filter
Leuze electronicOGS 60044
TNT 35/7-24V
7.7"Trace amplitude" filter
AB
C
D
xEdge position
yReception signal amplitude
ALeft edge of guide trace
BRight edge of guide trace
CTrace width
DAmplitude of background
EAmplitude of guide trace
FInvalid trace amplitudes (red area)
GTraceAmplitudeMin value
HTraceAmplitudeWarning value
G
E
F
H
The filter is based on the assumption that the guide trace tape processed in a system is the
same throughout. If this is the case, then the guide trace tape is a known constant. As a
result, all other markings with a different amplitude can be filtered out.
It is therefore recommended to select a guide trace tape which is as light as possible (white)
or as dark as possible (black) so that there are no markings which are darker or lighter than
the optical trace.
The filter for trace amplitude is the limit value TraceAmplitudeMin (UART index 106
CAN index 2010
trace signal is greater than the limit value. There is a warning threshold which is set using
the TraceAmplitudeWarning parameter (UART index 107
y
[7h]) which marks as incorrect all traces for which the amplitude of the
h
Configuring the sensor – Overview of functions
and
d
and CAN index 2010h [8h]).
d
03000
Figure 7.7:Application of the "Trace amplitude" filter using a dark trace as an example
Leuze electronicOGS 60045
x
TNT 35/7-24V
Configuring the sensor – Overview of functions
7.7.1Teaching the trace amplitude
The TraceAmplitudeTol value (UART index 108d and CAN index 2010h [9h]) is used for
setting the TraceAmplitudeMin limit value (UART index 106
the "Trace amplitude" filter during the teach.
Calculation of dark guide trace:
TraceAmplitudeMin = Amplitude_trace [LSB] + Trace Amp l itu deTo l [LSB]
If the trace amplitude limit value is to be configured manually, it can be written directly to the
TraceAmplitudeMin parameter (UART index 106
[LSB].
CAUTION
If a trace amplitude teach is performed, a manually configured trace amplitude limit value
is overwritten.
7.7.3Warning for trace amplitude
The warning threshold corresponds to a percentage deviation from the trace amplitude limit
value TraceAmplitudeMin (UART index 106
The warning threshold for the trace amplitude is calculated using the
TraceAmplitudeWarning factor (UART index 107
index for calling up the calculated value directly.
Calculation of dark guide trace:
TraceAmplitudeWarning_threshold = TraceAmplitudeMin [LSB] - ( TraceAmplitudeMin [LSB] * Tra c eA mpl itu deW ar nin g )
7.7.4Process data information for the "Trace amplitude" filter
In the status byte of the process data, there are two bits for information relating to the trace
amplitude:
•Bit2: Trace amplitude warning
•Bit5: Trace amplitude error
The Trace amplitude warning bit is set if the number of detected traces for which the trace
amplitude is greater (dark guide trace) or less (light guide trace) than the warning threshold,
is greater than or equal to one.
The Trace amplitude error bit is set if the number of detected traces for which the contrast
is greater (dark guide trace) or less (light guide trace) than TraceAmplitudeMin, is greater
than or equal to one.
7.7.5Index overview for the "Trace amplitude" filter
Bit counting method: bit0 … bit15
NameIndex
Activate filter2
Deactivate filter2
Teaching the minimum
contrast
TraceAmplitudeMin106
TraceAmplitudeWarning 107
TraceAmplitudeTol108
Status200
Status200
UserMode75
Index
UART
[subindex]
CANopen
2000h [0h] 2W233d System command
d
2000h [0h] 2W234d System command
d
2000h [0h] 2W196d System command
2
d
2010h [7h] 2RW(2500d)Result from teach or manual change,
d
2010h [8h]2RW(20d)Factor for calculation of warning thresh-
d
2010h [9h] 2RW(1000d)During teach:
d
2020h [1h] 2RBit no. 71 = Trace amplitude error
d
2020h [1h] 2RBit no. 41 = Trace amplitude warning
d
2002h [0h] 2RBit no. 4If bit = 1, then "Trace amplitude" filter
d
Index
length
[byte]
AccessData / (default
value)
Table 7.7:Index accesses for the "Trace amplitude" filter
Info
unit [LSB]
old, unit [%]
Tolerance for calculation of minimum
threshold, unit [LSB]
See also process data status byte, bit
no. 5 (Chapter 8.1.4.1)
See also process data status byte, bit
no. 2 (Chapter 8.1.4.1)
is active
TNT 35/7-24V
Leuze electronicOGS 60047
Configuring the sensor – Overview of functions
7.8Index overview – More data on correct and incorrect traces
It is also possible to access the detected and filtered traces without accessing the process
data. In doing so, additional information on the traces can be retrieved:
• With valid traces, the warning (if available) is shown in the TraceValidStatus index
(UART index 210
• With filtered-out traces, the error why the trace was filtered out is shown in the
TraceInvalidStatus index (UART index 215
• The amplitudes which are used for calculating the filters can be read in the
TraceValidAmp index (UART index 209
• The data for filtered-out traces can be read in the TraceInvalidAmp index
(UART index 214
The data is always sorted by edge/trace in ascending order.
Table 7.9:Index overview: direct access to all data of invalid traces
Contains the edge positions of
the valid traces:
• 16 bit for each edge
• Divided into LowByte and
HighByte
• Only traces are displayed
• A trace always consists of
two consecutive edges
Contains the amplitude of the
environment and of the trace:
• 16 bit amplitude value
• Divided into LowByte and
HighByte
The error is shown for each
trace.
Data:
1
: contrast error
h
2
: trace amplitude error
h
4
: trace width error
h
Leuze electronicOGS 60049
TNT 35/7-24V
8Commissioning
8.1Communication protocol for serial interfaces (UART)
The following default settings apply for the RS232, RS485 and RS422 serial interfaces.
Baud rate [bit/s]115200
ParityOdd
Data bits8
Stop bits1
Node number1
Minimum response timeCan be set for RS485; see the parameter RS485Delay
(index 149).
Table 8.1:Factory settings for the communication protocol of serial interfaces
8.1.1RS485/RS422 node address
The node address is set via index 70 UART Node No (see chapter 8.2 "Object directory for
serial interfaces (UART)"). It is recommended to change the default address if, in the case
of RS485/RS422, multiple devices are connected to the bus.
If a device is reset to the factory settings, the default address (1) is restored. This avoids an
address collision.
Commissioning
8.1.2Error handling
The following communication errors are intercepted and/or returned:
• Too few characters:
after timeout (1.6ms), the receive buffer is cleared -> no error telegram.
• Too many characters: cannot be detected. The valid characters are processed (CRC
check) and the remaining characters are discarded.
• Incorrect CRC: error telegram 8112
• Error during reception (parity error, ...): error telegram 8113
• Incorrect identifier: error telegram 8111
• Maximum time taken for the sensor to respond to a query: 1.2 ms
Byte 0: Always contains the device address (node number). This can be changed. The
Byte 1: Contains the number of data bytes.
Byte 2: Contains the lowbyte of the index to be read or written.
Byte 3: Contains the highbyte of the index to be read or written.
Byte 4: Contains the sub-index of the index to be read or written.
Byte 5…n: Data which is written or read.
Byte n+1: CRC is calculated from byte 0 to byte n. Process: XOR with start value 0.
In the case of access to an index, the identifier indicates what is to be done. There are three
different query identifiers. The sensor returns a corresponding identifier in response to the
query.
If an error was detected in the data transfer, the identifier nF
chapter 8.1.5 "Error codes") are returned as the response.
LengthIndex low-
identifier indicates what is to be done: read, write, request PD.
Bit 3…0: Identifier
Bit 7…4: Node no. n
The length is counted from byte 5 to byte n-1.
byte
Index highbyte
Commissioning
Sub-index Data 0Data 1Data 2Data 3CRC
and an error code (see
h
Identifiers
TypeIdentifier for
Readn1
Writen2
Process datan3
ErrornF
n = node number
query
n4h Response from sensor:
h
n8h Write to sensor:
h
nCh
h
Identifier for
sensor response
h
Function of byte 1 "Length"
Length indicates how much data is sent by the sensor: from byte
5 without CRC byte
Length indicates how much data is sent to the sensor; if the data
length exceeds the object length, an error is returned.
Table 8.2:Identifiers for working with indices
Leuze electronicOGS 60051
TNT 35/7-24V
Example:
TypeByte 0Byte 1Byte 2Byte 3Byte 4Byte 5Byte n + 1
QueryRead11
ResponseRead14
Node no./
identifier
LengthIndex
0C8
h
Quantity
h
Data bytes
lowbyte
C8h 00h 0Data n CRC
Table 8.3:Example of a query to read byte
Node no.: 1
Index: 200 (LowByte: C8
, HighByte: 00h)
h
Commissioning
Index
highbyte
00h 0CRC
h
Subindex
Data n CRC
Leuze electronicOGS 60052
TNT 35/7-24V
8.1.4Process data
There are different types of process data. They are used for calling up various information.
In addition, a setting for the "Switch" function can be changed in the sensor by sending the
process data byte query.
Process data query
The structure of the query from byte 0 to byte 4 is the same for all process data types.
TypeByte 0Byte 1Byte 2Byte 3Byte 4
QueryPDn3
Byte 0: Always contains the device address (node number). This can be changed. The
identifier indicates what is to be done: request PD.
Bit 3…0: Identifier
Bit 7…4: Node no. n
Byte 1: Contains the process data type: 1 or 4.
Byte 2: PD-In1:
Data can be written to the sensor in order to change settings (example:
"Switch" function). The changed setting is applied for the first time with the next
PD query.
Byte 3: PD-In2:
Reserve.
Byte 4: CRC is calculated from byte 0 to byte 3. Process: XOR with start value 0.
Process data response
TypeByte 0Byte 1Byte 2Byte 3Byte nByte n + 1
ResponsePDnC
Table 8.4:Request for process data:
Byte 0: Device number as well as identifier (in this case nC
Byte 1: Number of sent user data bytes, varies depending on the PD type.
Byte 2: Status PD contains the eight most important pieces of information about the
detected traces.
Byte 3: Contrast is a value reduced to 8 bits and indicates the contrast of the trace.
Byte 4: Data of the detected traces
Byte n+1: The last byte is the CRC byte.
PD typePD-In1PD-In2CRC
h
Length
h
User data
PD statusContrastDataCRC
Commissioning
)
h
TNT 35/7-24V
Leuze electronicOGS 60053
8.1.4.1 Status byte in the process data
The process data status byte is composed of 8 bits which convey a state for each filter and
when the warning threshold for the filter is reached. It is output if a global error is present or
when no trace at all has been detected.
The state is always active if the corresponding bit is set.
Bit 0: General error–> Reading out of index 201 Error
Bit 1: Minimum contrast warningsee chapter 7.6 ""Minimum contrast" filter"
Bit 2: Trace amplitude warningsee chapter 7.7 ""Trace amplitude" filter"
Bit 3: Trace width errorsee chapter 7.5 ""Trace width" filter"
Bit 4: Minimum contrast errorsee chapter 7.6 ""Minimum contrast" filter"
Bit 5: Trace amplitude errorsee chapter 7.7 ""Trace amplitude" filter"
Bit 6: Switch activesee chapter 7.4 "Switch"
Bit 7: No trace detected–> Check guide trace/background
NOTE
Data for traces (edge positions, contrast) which are declared as invalid by a filter is never
output via the process data.
Commissioning
Leuze electronicOGS 60054
TNT 35/7-24V
8.1.4.2 Contrast byte in the process data
The difference between the amount of light reflected by the ground next to the guide trace
and the amount of light reflected by the guide trace itself is an important measure for assessment of the optical state of the trace.
This value is defined by the following calculation (see also Figure 7.6):
This value is known during commissioning of the system. By moving over the guide trace
when it is in its new condition, it is possible to determine the poorest contrast of the system.
The state of the guide trace can be checked continuously during operation.
NOTE
Contrast output values in the process data
If one valid trace is detected, the contrast of this trace is output.
If more than one valid trace is detected, the contrast of the trace with the poorest contrast,
e.g. at a switch, is output.
Conversion
To be able to compare the contrast value in the process data with the values in the indices
of the "Minimum contrast" or "Trace amplitude" filters, the value from the process data must
be multiplied by 100.
Contrast = Hex2Dec(byte 3) * 100
Commissioning
Leuze electronicOGS 60055
TNT 35/7-24V
8.1.4.3 Type 1 process data
A
B
C
D
AGuide trace; here dark trace on light background
BLeft edge of guide trace
CRight edge of guide trace
DWidth of the sensor's measurement field
"Trace width" filter = OFF
Type 1 process data outputs the position of a left and a right edge.
If the sensor finds one trace, the left and the right edge of this trace is output. If the sensor
finds two traces, then the outermost left edge and the outermost right edge of the detected
traces are output.
If filters such as trace width, minimum contrast or trace amplitude are active, they are effective for PD type 1.
Commissioning
Figure 8.1:Output of the left edge and right edge with PD type 1.
The "Trace width" filter is OFF in Figure 8.1 because the wide trace would otherwise not be
detected at the midpoint of the switch.
With active "Trace width" filter, the "Switch" function can be used as an alternative (see
chapter 7.4 "Switch"). In this case, additional information is sent in byte 2 (data) when the
process data is requested.
Table 8.6:Example response for type 1 process data
Contrast= 120 * 100 = 12000 LSB
Left edge of the trace = 1200 / 10 = 120.0 mm
Right edge of the trace = 1300 / 10 = 130.0 mm
Left
edge
highbyte
Commissioning
Right
edge
lowbyte
Right
edge
highbyte
CRC
Leuze electronicOGS 60057
TNT 35/7-24V
8.1.4.4 Type 4 process data
A
B
C
D
AGuide trace; here dark trace on light background
BLeft edge of guide trace
CRight edge of guide trace
DWidth of the sensor's measurement field
"Trace width" filter = OFF
Type 4 process data outputs the positions of up to six detected traces.
If the sensor finds one trace, the left and the right edge of this trace is output. If the sensors
finds two or more traces, the left and right edges of all valid traces are output. The traces in
the process data are arranged in ascending order according to the position at which they
were found. The trace with the smallest position is always output first and is therefore always
trace no. 1. All subsequent traces are arranged in ascending order according to their position and the trace number is incremented.
If filters such as trace width, minimum contrast or trace amplitude are active, they are effective for PD type 4.
Commissioning
Figure 8.2:Output of the left edge and right edge with PD type 1.
The "Trace width" filter is OFF in Figure 8.2, recognizable by the fact that the wide trace is
detected at the midpoint of the switch. With active "Trace width" filter, the "Switch" function
can be used as an alternative (see chapter 7.4 "Switch"). In this case, additional information
is sent in byte 2 (data) when the process data is requested.
Leuze electronicOGS 60058
TNT 35/7-24V
Commissioning
Type 4 process data query
TypeByte 0Byte 1Byte 2Byte 3Byte 4
Node no./
identifier
QueryPD13
Table 8.7:Type 4 process data query
Type 4 process data response
Byte 0Byte 1Byte 2Byte 3Byte 4Byte 5Byte 6Byte 7
Node no./
identifier
Response 1C
Byte 8Byte 9Byte 10Byte 11Byte 12
Left
edge
lowbyte
DC
Left
edge
highbyte
05h 40h 6h
h
User data
length
08h 0h 78h B0h 4
h
Trace 2
Right
edge
lowbyte
Table 8.8:Example response for type 4 process data with 2 traces
Contrast= 120 * 100 = 12000 LSB
Left edge of trace 1= 1200 / 10 = 120.0 mm
Right edge of trace 1= 1300 / 10 = 130.0 mm
Left edge of trace 2= 1500 / 10 = 150.0 mm
Right edge of trace 2= 1600 / 10 = 160.0 mm
From the number of user data bytes, it is possible to calculate how many traces have been
found:
• per edge: 2 bytes
• per trace: 2 edges
=> This results in 4 bytes of user data per trace.
PD typePD-In1PD-In2CRC
04h 0
h
PD status ContrastLeft
Right
edge
highbyte
0
h
CRC
CRC
h
edge
lowbyte
Trace 1
Left
edge
highbyte
Right
edge
lowbyte
14h 05h
h
Right
edge
highbyte
TNT 35/7-24V
Leuze electronicOGS 60059
8.1.5Error codes
Error codeError descriptionReaction
8011
8012
8020
8023
8030
8031
8032
8033
8034
8035
8082
8111
8112
8113
Table 8.9:Error codes for data transfer
Index is not available / releasedCheck index
h
Sub-index is not available / releasedSub-index must always be 0
h
Service temporarily unavailable
h
(memory function for flash is still assigned)
Access denied (index write only)Check index (see Table 8.11)
h
Value is outside permissible value rangeCheck value which is to be written to index (see Table 8.11)
h
Maximum is above permissible value rangeCheck value which is to be written to index (see Table 8.11)
h
Minimum is below permissibl e value rangeCheck value which is to be written to index (see Table 8.11)
h
Length of object is above maximumCheck data length (see Table 8.11)
h
Length of object is below minimumCheck data length (see Table 8.11)
h
Unknown command in index 2Check value Command not present
h
Internal error -> abort Repeat several times, otherwise sensor defective
h
UART: incorrect identifierCheck identifier (for valid identifiers, see Table 8.2)
h
UART: incorrect CRCCheck CRC calculation
h
Receive error (parity, …)Repeat several times, otherwise sensor defective
h
Commissioning
Repeat several times, otherwise sensor defective
(see Table 8.12)
Leuze electronicOGS 60060
TNT 35/7-24V
Commissioning
8.2Object directory for serial interfaces (UART)
Data types:Access:
stringConvert bytes into ASCII characters in incoming sequenceRWRead Write
uint16Arrangement: [ LowByte, HighByte ]RORead Only
uint32Arrangement: [ LowByte, LowerByte, HigherByte, HighByte ]WOWrite Only
Bit 1: angle compensat ion active
Bit 2: filter: trace width
Bit 3: filter: contrast
Bit 4: filter: amplitude
Bit 5: teach trace width
Bit 6: teach contrast
Bit 7: teach amplitude
Bit 8: retro-reflective trace
TraceContrastWarning Contrast warning threshold in % RWUnit: %201…100 2uint16
d 0d
TraceContrastTolContra st toleranceRWOnly required f or teach,
d 0d
Tra ceA mp lit ud eMi nMinimum amplitudeRWUnit: [LSB]2500 0…
d 0d
TraceAmplitudeWarning Amplitude warning threshold in % RWUnit: %201…100 2u int16
d 0d
Tra ceA mp lit ud eTolAmpl itude tolerance for teach RWOnly required for teach,
d 0d
UserOffsetOffs et for process data output RWPD output value = edge posit ion + offset0
d 0d
SwitchTraceWidthFactor Trace width factor for switch
d 0d
SwitchDeviationThrLower limit value for deviation
d 0d
TraceTeachThrThreshold which is taughtRWUnit: [LSB]7000 0…
d 0d
RS485DelayDelay before sending on RS485 RWDelay after reception of a telegram until
d 0d
UserStateStatus ROBit 0 = 1: angle compensation OK
d 0d
SwitchNumberSwitch functionRWActivation of switch function for guide trace:
d 0d
StatusSensor stateROBit 0: G lobal error
d 0d
function
with switch
unit: [LSB]
unit: [LSB]
RWFactor for widening trace with active switch
function (see index 170
unit: %
RWUsed with active switch function,
unit: [LSB]
),
d
response is sent, unit: ms
Bit 1 = 1: trace teach OK
0
: Switch function not active
d
1
: Switch function active for guide trace 1
d
2
: Switch function active for guide trace 2
d
3
: Switch function active for guide trace 3
d
4
: Switch function active for guide trace 4
d
5
: Switch function active for guide trace 5
d
6
: Switch function active for guide trace 6
d
Bit 1: Compensation factors valid
Bit 2: Teach, compensation measurement
running
Bit 3: Trace contrast warning
Bit 4: Trace amplitude warning
Bit 5: Trace width error
Bit 6: Contrast error
Bit 7: Amplitude error
Bit 8: Supply voltage warning
Bit 9: Supply voltage error
Bit 10: Teaching error
Bit 11: Compensation error
Bit 12: Switch function active
Bit 13: Switch error: unknown trace
Bit 14: No trace detected
The CAN bus is a serial 2-wire bus system to which all participants are connected in parallel
(i.e., using short stub cables). To avoid reflections, the bus must be terminated with a terminating resistor of 120ohm at each end of the trunk line. Terminating resistors are also
required for very short trunk line cable lengths.
8.3.1.2 Bus line (trunk line)
For CAN, the maximum cable length of the trunk line is predominantly limited by the signal
propagation time. The multi-master bus-access process (arbitration) requires that the
signals are present virtually simultaneously at all nodes/participants. Therefore, the cable
length of the trunk cable must be adapted to the baud rate.
Baud rateBus length
1Mbit/s< 20 m
500kbit/s< 100 m
250kbit/s< 250 m
125kbit/s< 500 m
50kbit/s< 1000 m
20kbit/s< 2500 m
Table 8.13:CANopen bus length in relation to baud rate
Commissioning
8.3.1.3 Address assignment
NOTE
The participant-specific address for CANopen is also called the Node ID. Throughout this
handbook, the term "address" is used, which is identical to Node ID.
Each participant connected to CANopen is assigned its own address (Node ID). Up to 127
participants can be connected to one network. The addresses range from 1 to 127. The
address 0 is usually reserved for the CANopen master.
The node ID can be set in two ways:
• Via the object directory:
IndexSub-index NameDescriptionLength [byte]Data type
2001
[1h]Can Node NoCAN node address2uint16
h
•Via the Layer Setting Services function (LSS, see DS305 of CiA).
Leuze electronicOGS 60066
TNT 35/7-24V
8.3.1.4 Baud rate setting
The OGS 600 supports the following baud rates:
•1 Mbit/s
• 500 kBit/s
• 250 kBit/s
• 125 kBit/s
• 100 kBit/s
• 50 kBit/s
• 20 kBit/s
• 10 kBit/s
The OGS 600 is set to 1 Mbit/s by default.
The baud rate can be set in two ways:
• Via the object directory:
IndexSub-index NameDescriptionLength [byte]Data type
2001
[2h ]Can Baud rateCAN baud rate:
h
•Via the Layer Setting Services function (LSS, see DS305 of CiA).
8.3.1.5 Communication mechanisms of the OGS 600 in the CANopen network
In a CANopen network, all participants have in principle equal privileges. Each participant
can initiate its data transmission independently. Here, the arbitration specified by the CIA
controls the access of the individual participants to the network.
Generally, each CAN participant listens in on the bus. The transmission process is started
only if the bus is not occupied by another CAN participant. When transmitting, the current
bus status is always compared to the own transmitted frame.
Arbitration process
If several participants start a transmission simultaneously, the arbitration process decides
which participant gains access to the network next. The individual participants are integrated
into a prioritization scheme via their bus address and the type of data to be transmitted
(index address of the data). Process data (PDOs) of a device are transmitted with a higher
priority than, for example, variable objects (SDOs) of a device.
The node address of the participant is another criterion for prioritizing a participant in the
network. The smaller the node address, the higher the priority of the participant in the
network.
Since every participant compares its own priority with that of the other participants at the
time of bus access, the participants with low priority discontinue their transmission activities
immediately. The participant with the highest priority obtains temporary access to the bus.
The arbitration process controls the access of all participants so that even participants with
a low priority have access to the bus.
8.3.1.6 Objects
All process data and parameters are stored as objects in the OGS 600. The object directory
(see Chapter 8.4) is the compilation of all process data and parameters of the OGS 600.
The object directory is structured in such a way that all objects are stored in the manufacturer-specific object area.
The objects are uniquely identified using an index addressing scheme. The structure of the
object directory, the assignment of the index numbers, as well as some mandatory entries
are specified in the CIA standard DS301 for CANopen.
TNT 35/7-24V
Leuze electronicOGS 60068
8.3.1.7 EDS file
For the user, the object directory of the OGS 600 is available as an EDS file (Electronic Data
Sheet).
Download the EDS file for the device at www.leuze.com.
NOTE
Download EDS file from the Internet!
Call up the Leuze home page: www.leuze.com.
Enter the type designation or part number of the device as the search term.
The EDS file can be found on the product page for the device under the Downloads
tab.
The EDS file contains all objects with index, sub-index, name, data type, default value,
minimum and maximum, and access privileges.
The EDS file describes the complete functionality of the OGS 600.
8.3.1.8 SDOs and PDOs
The data exchange in CANopen distinguishes between service data objects (SDOs),
which are used for transmitting the service data (parameters) from and to the object directory, and process data objects (PDOs), which are used to exchange the current process
states.
SDOs
By using SDOs, all entries of the object directory can be accessed. Within one SDO call, only
one object can be accessed at any one time. For this reason, a service data telegram must
have a protocol structure which describes the exact target address by means of index and
sub-index addressing. SDO telegrams place a part of the SDO addressing into the user data
area. Eventually, a user data area with a width of 4 bytes out of the possible 8 bytes of user
data remains for each SDO telegram.
The target address always responds to SDO transfers. In the following, the index and subindex address of the OGS 600 parameters and variables can be found in the individual
object descriptions.
PDOs
PDOs are objects (data, variables and parameters) from the object directory compiled
(mapped) by the device manufacturer. A maximum of 8 bytes of user data from various
objects can be mapped into one PDO.
A PDO can be received and evaluated by each participant (node). The model is referred to
as the producer-consumer procedure.
Since there is no protocol structure in the telegram of a PDO, the participants in the network
for whom these data are intended must know how the user data in the data area of the PDO
are structured (which data are stored where in the user data area).
Commissioning
TNT 35/7-24V
Leuze electronicOGS 60069
Commissioning
The exchange of process data is supported by the OGS 600 via the following accesses:
• Event-controlled data transfer
Here, the data of a node are transmitted as a message whenever a change to the present state occurs.
• Polling with remote frames
The CAN node which has been defined as master in the network requests the desired
information via query (via remote frame). The participant which has this information
(or the required data) responds by sending the requested data.
• Synchronized mode
CANopen permits simultaneous querying of inputs and states of different participants
and the simultaneous change of outputs or states. For this purpose, one uses the synchronization telegram (SYNC) transmitted by a master.
The SYNC telegram is a broadcast to all network devices with high priority and without
data content. Generally, the master sends the SYNC telegram cyclically. Participants
working in synchronized mode read their data when receiving the SYNC message and
then transmits them immediately afterwards as soon as the bus permits this (see "Arbitration process" on page 68).
As the SYNC process can very quickly lead to high bus loads, another distinction is
made between "event-controlled synchronization" and a "timer synchronization".
• Time-controlled transmission
In this case, the transmission of a PDO is triggered when an adjustable time period
has elapsed. The time-controlled transmissions are set individually for each PDO via
the so-called "inhibit time" or an "event timer". The respective parameters can be
found in the objects 1800
• Node monitoring
Heartbeat and guarding mechanisms are available for failure monitoring of the
OGS 600. This is particularly important for CANopen, as the OGS 600 may not
respond regularly in the event-controlled operating mode. In the case of guarding, the
participants are cyclically queried for their state via data request telegrams (remote
frame). In case of heartbeat, the nodes transmit their state themselves.
Heartbeat and guarding/life time are standard communication objects from the DS301
CANopen specification. The corresponding objects here are:
- Heartbeat 1017
- Guarding/life time factor 100C
to 1803h for the corresponding PDOs.
h
h
and 100Dh
h
TNT 35/7-24V
Leuze electronicOGS 60070
8.3.1.9 Default 11 bit identifier
The OGS 600 sends an 11 bit identifier. 29 bit identifiers can be neither received nor sent
by the OGS 600.
The node address (address of the OGS 600) is part of the 11 bit identifier. The default identifier and the node address give the COB ID, the value of which defines the prioritization in
the arbitration.
NOTE
Low-value identifiers have a higher priority in the arbitration.
Example:
If the same objects are queried in a CANopen network consisting of multiple OGS 600s, e.g.
PDO1 (rx), then the sensor with the smallest node address has the highest priority in the
arbitration.
The table below shows the value of the individual functions in the arbitration process of the
CANopen.
According to the table, synchronization and emergency objects have the highest priority.
This is followed by the PDOs; at the end of the prioritization are the SDOs.
11 bit identifier
(binary)
000000000000
Identifier
Dec.
0
d
00010000000128
0001xxxxxxx129
0011xxxxxxx385
0100xxxxxxx513
0101xxxxxxx641
0110xxxxxxx769
0111xxxxxxx897
1000xxxxxxx1025
1001xxxxxxx1153
1010xxxxxxx1281
1011xxxxxxx1409
1100xxxxxxx1537
1110xxxxxxx1793
xxxxxxx = node address 1 - 127
Table 8.14:11 bit identifier
Identifier
Function
Hex
Network management
h
80h Synchronization
d
… 255d 81h…FFh Emergency
d
… 511d 181h…1FFh PDO1 (tx)
d
… 639d 201h… 27Fh PDO1 (rx)
d
… 767d 281h…2FFh PDO2 (tx)
d
… 895d 301h… 37Fh PDO2 (rx)
d
… 1023d 381h…3FFh PDO3 (tx)
d
… 1151d 401h… 47Fh PDO3 (rx)
d
… 1279d 181h…4FFh PDO4 (tx)
d
… 1407d 501h… 57Fh PDO4 (rx)
d
… 1535d 581h…5FFh Send SDO
d
… 1663d 601h… 67Fh Receive SDO
d
… 1919d 701h… 77Fh NMT Error Control
d
Commissioning
TNT 35/7-24V
Leuze electronicOGS 60071
8.3.1.10 Object structure of the OGS 600
Overview of the CANopen-specific object area of the OGS 600
The following overview table shows the CANopen-specific communication objects from
DS301 which are supported by the OGS 600. These operating instructions describe only the
objects for which device-specific configurations can be performed. All other objects are standard objects of the CANopen specification. A description of these objects can be found in
the DS301.
Object address in hexCANopen-specific object area
1000
Device type
h
Error register
1001
h
Manufacturer status
1002
h
Pre-defined error field
1003
h
COB ID SYNC
1005
h
SYNC cycle time
1006
h
Manufacturer device name
1008
h
Manufacturer hardware version
1009
h
Manufacturer software version
100A
h
Guard time
100C
h
Life-time factor
100D
h
Store parameter field
1010
h
Restore default parameters
1011
h
COB-ID emergency message
1014
h
Consumer heartbeat time
1016
h
Producer heartbeat time (necessary for heartbeat mechanism)
1017
h
Identity object (contains general information regarding the device)
1018
h
Synchronous counter overflow value
1019
h
Error behaviour
1029
h
Table 8.15:Standard objects of CANopen specification CIA DS301
Commissioning
TNT 35/7-24V
Leuze electronicOGS 60072
8.3.1.11 Process data objects
The OGS 600 provides 4 transmit process data objects (TPDOs) and 1 receive process data
object (RPDO).
The TPDOs describe which objects are mapped to (integrated in) the TxPDO, and define
the access (synchronous/asynchronous) to these objects.
• TPDO1: Status, contrast, number of detected traces, 1st edge and 2nd edge
• TPDO2: 3rd to 6th edge
• TPDO3: 7th to 10th edge
• TPDO4: 11th and 12th edge
The communication parameters of the PDOs are determined via defined objects. Synchronous or asynchronous access, a possible inhibit time for the PDO object in the CAN network
as well as an event timer are defined in these objects.
• TPDO1: object address 1800
• TPDO2: object address 1801
• TPDO3: object address 1802
• TPDO4: object address 1803
Asynchronous transfer is controlled by the event timer in the PDOx property objects 1800
to 1803h.
Synchronous transfer is initiated by a SYNC telegram (80
by the PDOx property objects 1800
h
h
h
h
to 1803h.
h
Commissioning
) sent from the master, as well as
h
h
Leuze electronicOGS 60073
TNT 35/7-24V
8.3.1.12 Overview of the mapped data in the TxPDOs
TxPDO1 contains general information about the sensor:
• Status: see object 2020
• Contrast: see object 2030
h
[1h]
h
[2h]
• Number of detected traces: see object 2021
The first trace (1st left edge, 1st right edge) is also transmitted there: see object 2022
[1
].
h/2h
All subsequent traces (1 trace = 2 edges) are transmitted in TxPDO2 to TXPDO4. If not all
traces are present, 0 is transmitted there.
TxPDO1
Byte 0Byte 1Byte 2Byte 3Byte 4Byte 5Byte 6Byte 7
Mapped
object
Low byte status
2020
High byte status
]2030h [2h]2021
h [1h
ContrastNumber of
traces
h
TxPDO2
Byte 0Byte 1Byte 2Byte 3Byte 4Byte 5Byte 6Byte 7
Trace 2Trace 3
Mapped
object
Left edge low
byte
2022
Left edge
high byte
]2022h [4h]2022h [5h]2022h [6h]
h [3h
Right edge
low byte
Right edge
high byte
Commissioning
[0h]
h
Trace 1
Left edge low
byte
2022h [1h]2022h [2h]
Left edge low
byte
Left edge
high byte
Left edge
high byte
Right edge
low byte
Right edge
low byte
h
Right edge
high byte
Right edge
high byte
TxPDO3
Byte 0Byte 1Byte 2Byte 3Byte 4Byte 5Byte 6Byte 7
Trace 4Trace 5
Mapped
object
Left edge low
byte
2022
Left edge
high byte
[7h]2022h [8h]2022h [9h]2022h [Ah]
h
Right edge
low byte
Right edge
high byte
Left edge low
byte
Left edge
high byte
Right edge
low byte
Right edge
high byte
TxPDO4
Byte 0Byte 1Byte 2Byte 3
Trace 6
Mapped
object
Left edge low
byte
2022
Left edge
high byte
[Bh]2022h [Ch]
h
Right edge
low byte
Right edge
high byte
Leuze electronicOGS 60074
TNT 35/7-24V
8.3.1.13 Overview of the mapped data in the RxPDO
The PD command is transmitted in the RxPDO.
PD-In1:
• 0: Switch not active
• 1: Trace 1 switch
• 2: Trace 2 switch
• 3: Trace 3 switch
• 4: Trace 4 switch
• 5: Trace 5 switch
• 6: Trace 6 switch
PD-In2: Reserve
RxPDO
Byte 0Byte 1
PD-In1PD-In2
Mapped
object
2051
h
[0h]
Commissioning
Leuze electronicOGS 60075
TNT 35/7-24V
8.3.1.14 Overview TPDOs
The TPDOs describe which objects are mapped to (integrated in) the TxPDO, and define
the access (synchronous/asynchronous) to these objects.
Object 1800h TPDO1
Index
Sub-
(hex)
[1h] COB-ID for TPDO1uint32ro180h+ node ID
1800
h
NameData type AccessDefaultComment
index
(hex)
[2
] Transmission typeuin8rw11 = synchronous
h
] Inhibit timeuint16rw0Inhibit time
[3
h
] Reserve
[4
h
[5
] Event timeruint16rwEvent timer
h
] Sync start valueuint8rw0Sync start value
[6
h
Commissioning
Object 1A00
Index
Sub-
(hex)
index
(hex)
1A00
h[1h
[2
[3
[4
[5
Object 1801
Index
Sub-
(hex)
index
(hex)
1801
[1h] COB-ID for TPDO2uint32ro280h+ node ID
h
[2
[3
[4
[5
[6
Object 1A01
Index
Sub-
(hex)
index
(hex)
1A01
[1h] 3rd edgeuint32ro20220310h Content from object 2022h [3h]
h
[2
[3
[4
TPDO1
h
NameData type AccessDefaultComment
] Statusuint32 ro20200110h Content from object 2020h [1h]
] Contrast PDuint32ro20300208h Content from object 2030h [2h]
h
] Number of tracesuint32ro20210008h Content from object 2021h [0h]
h
] 1st edgeuint32ro20220110h Content from object 2022h [1h]
h
] 2nd edgeuint32ro20220210h Content from object 2022h [2h]
h
TPDO2
h
NameData type AccessDefaultComment
] Transmission typeuin8rw254254 = asynchronous
h
] Inhibit timeuint16rw0Inhibit time
h
] Reserve
h
] Event timeruint16rwEvent timer
h
] Sync start valueuint8rw0Sync start value
h
TPDO2
h
NameData type AccessDefaultComment
] 4th edgeuint32ro20220410h Content from object 2022h [4h]
h
] 5th edgeuint32ro20220510h Content from object 2022h [5h]
h
] 6th edgeuint32ro20220610h Content from object 2022h [6h]
h
TNT 35/7-24V
Leuze electronicOGS 60076
Object 1802h TPDO3
Index
Sub-
(hex)
[1h] COB-ID for TPDO3uint32ro380h+ node ID
1802
h
NameData type AccessDefaultComment
index
(hex)
[2
] Transmission typeuin8rw254254 = asynchronous
h
] Inhibit timeuint16rw0Inhibit time
[3
h
] Reserve
[4
h
[5
] Event timeruint16rwEvent timer
h
] Sync start valueuint8rw0Sync start value
[6
h
Commissioning
Object 1A02
Index
Sub-
(hex)
index
(hex)
1A02
[1h] 7th edgeuint32ro20220710h Content from object 2022h [7h]
h
[2
[3
[4
Object 1803
Index
Sub-
(hex)
index
(hex)
[1h] COB-ID for TPDO4uint32ro480h+ node ID
1803
h
[2
[3
[4
[5
[6
Object 1A03
Index
Sub-
(hex)
index
(hex)
[1h] 11th edgeuint32 ro20220B10h Content from object 2022h [Bh]
1A03
h
[2
TPDO3
h
NameData type AccessDefaultComment
] 8th edgeuint32ro20220810h Content from object 2022h [8h]
h
] 9th edgeuint32ro20220910h Content from object 2022h [9h]
h
] 10th edgeuint32 ro20220A10h Content from object 2022h [Ah]
h
TPDO4
h
NameData type AccessDefaultComment
] Transmission typeuin8rw254254 = asynchronous
h
] Inhibit timeuint16rw0Inhibit time
h
] Reserve
h
] Event timeruint16rwEvent timer
h
] Sync start valueuint8rw0Sync start value
h
TPDO4
h
NameData type AccessDefaultComment
] 12th edgeuint32 ro20220C10h Content from object 2022h [Ch]
h
TNT 35/7-24V
Leuze electronicOGS 60077
8.3.1.15 Overview RPDOs
The RPDOs describe which objects are mapped to (integrated in) the RxPDO, and define
the access (synchronous/asynchronous) to these objects.
Object 1400h RPDO1
Index
Sub-
(hex)
[1h] COB-ID for RPDO1uint32ro200h+ node ID
1400
h
NameData type AccessDefaultComment
index
(hex)
[2
] Transmission typeuin8rw255255 = asynchronous
h
] Inhibit timeuint16rw0Inhibit time
[3
h
] Reserve
[4
h
[5
] Event timeruint16rwEvent timer
h
] Sync start valueuint8rw0Sync start value
[6
h
Commissioning
Object 1600
Index
(hex)
1600
[1h] PDO-CMDuint32 ro20510008h Content from object 2051h [0h]
h
RPDO1
h
Sub-
NameData type AccessDefaultComment
index
(hex)
TNT 35/7-24V
Leuze electronicOGS 60078
Commissioning
8.4CANopen object directory
Data types:Access:
stringConvert bytes into ASCII characters in incoming sequenceRWRead Write
uint16Arrangement: [ LowByte, HighByte ]RORead Only
uint32Arrangement: [ LowByte, LowerByte, HigherByte, HighByte ]WOWrite Only
[0h] UserModeUserModeRWBit 0: 1 = dark tra ce; 0 = light trace
h
[1h] Q1Upp erSwitchingPoint Upper switching point for
h
[2h] Q1LowerSwitchingPoint Lower switching point for
h
[3h] Q1LightDarkSwitching behavior
h
[4h] Q1SwitchPtModeSwitching point mode for
h
[5h] Q1HysteresisSwitching hysteresis for
h
switching output SW_IO (pin 4)
switching output SW_IO (pin 4)
Light/dark switching for
switching output SW_IO (pin 4)
switching output SW_IO (pin 4)
switching output SW_IO (pin 4)
1
: not used
d
2
: 500 kBit/s
d
3
: 250 kBit/s
d
4
: 125 kBit/s
d
5
: 100 kBit/s
d
6
: 50 kBit/s
d
7
: 20 kBit/s
d
8
: 10 kBit/s
d
Bit 1: angle compensat ion active
Bit 2: filter: trace width
Bit 3: filter: contrast
Bit 4: filter: amplitude
Bit 5: teach trace width
Bit 6: teach contrast
Bit 7: teach amplitude
Bit 8: retro-reflective trace
TraceValidSubPixelValid traces: sub-pixe ls in mm ROContains e dge positions of valid traces, unit:
h [1h
[C
]
h
TraceValidAmpValid traces: amplitudeROContains amplitude of environment and of
[1h]…
h
]
[C
h
[1h]…
TraceValidThresholdValid traces: thresholdROContains threshold for edge position of every
h
[C
]
h
function
with switch
RWFactor for widening trace with active switch
function (see index 170
unit: %
RWUsed with active switch function,
unit: [LSB]
),
d
Bit 1 = 1: trace teach OK
0
: Switch function not active
d
1
: Switch function active for guide trace 1
d
2
: Switch function active for guide trace 2
d
3
: Switch function active for guide trace 3
d
4
: Switch function active for guide trace 4
d
5
: Switch function active for guide trace 5
d
6
: Switch function active for guide trace 6
d
Bit 1: Compensation factors valid
Bit 2: Teach, compensation measurement
running
Bit 3: Trace contrast warning
Bit 4: Trace amplitude warning
Bit 5: Trace width error
Bit 6: Contrast error
Bit 7: Amplitude error
Bit 8: Supply voltage warning
Bit 9: Supply voltage error
Bit 10: Teaching error
Bit 11: Compensation error
Bit 12: Switch function active
Bit 13: Switch error: unknown trace
Bit 14: No trace detected
(number of edges < 2)
Bit 1: Teach: valid traces > 1; in valid traces;
switch active
Bit 2: Angle compensation:
compensation values missing
Bit 3: Angle compensation:
trace or edge detected
Bit 4: Hardwar e error:
Measurement interrupt error
Bit 5: Supply voltage warning
Bit 6: Supply voltage error
Bit 7: S witch: unknown trace
[mm] (see Chapter 7.8)
valid trace, unit: [LSB]
(see Chapter 7.8)
detected trace, unit: [ LSB]
1000 0…
1500…
2500…
00…
00…62uint16
00…
00…
00…
00…
00…
range
65535
-32768
… 32767
65535
65535
65535
65535
65535
32
2
-1
65535
65535
65535
Length
[byte]
2uint16
2int16
2uint16
2uint16
2uint16
2uint16
2uint16
4uint32
24array
24array
24array
Data
type
_uint16
_uint16
_uint16
TNT 35/7-24V
Leuze electronicOGS 60081
Commissioning
CAN
CAN
index
2025h [1h]…
2026
2027
2028
2029
2030
2031
2031
NameDescriptionAccess CommentsDefault Value
subindex
TraceValidStatusValid traces: statusROStatus is signaled for every valid trace:
[6
Two different resets can be performed by means of system commands:
•The device reset restarts the software of the OGS 600.
All settings are retained.
•The factory reset resets all internal settings of the device to the factory settings. This
includes all indices as well as settings determining which trace type is active and which
filters are active.
Leuze electronicOGS 60083
TNT 35/7-24V
Tips for initial commissioning
9Tips for initial commissioning
To obtain a quick impression of how the sensor operates, you will need:
• USB <-> UART interface adapter (RS232, RS422, RS485)
• PC software (see Chapter 6)
• Mounting bracket for the device
9.1Configuration of the sensor according to the trace
9.1.1Variant: All filters ON
The aim of this procedure is to detect as few incorrect traces as possible.
Reset the sensor to the factory settings (system command).
Switch on all filters.
Position the sensor or the vehicle with the sensor over the trace.
Perform teach mode 4. This mode teaches all three filters at once.
The trace output is now very restrictive. If a point is reached at which the sensor stops
outputting traces, it is possible to check the status bit in the process data to find out which
filter is responsible for this. Alternatively, Status (UART index 200 and CAN index 2020
[1h]) can be evaluated.
By evaluating the warning bits and error bits, a corresponding action can be triggered in the
vehicle's control unit.
The warning can help in detecting gradual soiling of the guide trace. Alternatively, the
contrast information from the process data response can be evaluated.
The system user can then be informed of any location-dependent recommendation such as
"clean trace" or "replace trace".
If is recommended to clean the guide trace if the contrast has continuously reduced over a
long period.
Replacement of the guide trace is recommended if the trace amplitude deviates from the
taught value or if, owing to the "Trace width" filter, a trace is no longer detected because it
has become detached or has widened.
Before a type 2 switch is reached, the maximum trace width must be increased using the
switch function so that the midpoint of the switch is output. To enable this, the currently used
trace number must also be transferred.
h
TNT 35/7-24V
Leuze electronicOGS 60084
Tips for initial commissioning
9.1.2Changeover between different traces
If the system consists of various traces with different width and/or trace type (light/dark), the
following procedure is recommended.
For each trace, a parameter set with the appropriately adjusted variables must be stored in
the control unit.
The following settings should be stored:
Index nameComment
TraceWidthMax
TraceWidthMin
TraceTeachThrTaught threshold (affects the measured trace width)
TraceContrastMin
TraceAmplitudeMin
SwitchTraceWidthFactorFor changeover between a system with 2-way and 3-way switches.
Table 9.1:Parameters for trace-specific parameter set
9.1.3Trace markings for application-specific actions
The following approaches are conceivable in order to provide the vehicle with locationdependent information by means of the trace or additional markings.
Trace width
The width of the trace can be varied. The sensor always outputs the left edge and the right
edge of the trace. The difference between these two values is the width.
The trace width information can be used to inform the vehicle whether e.g. it should move
slower or faster.
Markings next to the trace
Additional markings can be attached next to the trace in order to e.g. create a code.
For example, a 4 bit code can be realized by the presence of detected traces (which satisfy
the filters) at a certain position.
From the process data, the vehicle's control unit recognizes if traces have been discovered
which, owing to the filters, are not output via the process data.
It is therefore possible to design the markings such that they are not detected as a trace.
The positions of the markings can be read out by evaluating TraceInvalidSubPixel. In this
way, it is possible to implement a code for system control.
Leuze electronicOGS 60085
TNT 35/7-24V
Amplitude of the trace
By reading out the parameter TraceValidAmp or TraceInvalidAmp, it is possible to make a
distinction between traces.
Additionally, a distinction between markings next to the trace could be made on the basis of
their amplitude and, in this way, it would be possible to implement system control.
9.2Basic settings for the filters
The basic settings for the filters were determined using a black, 40 mm wide guide trace on
a white background. The distance between the trace and the lower edge of the sensor was
35mm.
The values were selected such that
• the trace is still detected with a change in vehicle height of ±30mm.
• the trace is still detected with a change in the angle between the trace/floor and the
sensor's longitudinal axis of up to 5°.
The diffuse reflection (coefficient of luminous intensity (CIL) of the light) was:
• 90% for the background.
• 6% for the guide trace.
Tips for initial commissioning
Leuze electronicOGS 60086
TNT 35/7-24V
10Service and support
10.1Decommissioning, maintenance
CAUTION
Do not open the device yourself under any circumstances! The housing of the sensor
contains no parts that need to be adjusted or maintained by the user. If faults cannot
be cleared, the device should be switched off and protected against accidental use.
Package the device for transport and storage in such a way that is protected against
shock and humidity. Optimum protection is achieved when using the original packaging. Ensure compliance with the approved environmental conditions listed in the specifications.
Do not use aggressive cleaning agents such as thinner or acetone for cleaning the
device.
10.2Contact
24-hour on-call service at: +49 (0) 7021 573-0
E-mail: info@leuze.com
Service and support
Return address for repairs:
Service center Leuze electronic GmbH + Co. KG
In der Braike 1
D-73277 Owen
Germany
Leuze electronicOGS 60087
TNT 35/7-24V
11Technical data
11.1General technical data OGS 600
Operating voltage 18 … 30VDC (PELV 1), Class 2)
Average current consumptionApprox. 180 mA at 24 V DC
(no load at switching output)
Integrated LED illuminationRed, wavelength 634 nm, risk group 0 (exempt group) in acc.
Transmitter/receiver49 transmitter and 49 receiver elements
Sensor field widthOGS 600-280/…
OGS 600-140/…
Distance between sensor and floor10 … 70mm,
Measurement time10 ms
Linearity errorTyp. 5mm (at a sensor-floor distance of 30mm)
Measurement value resolutionTyp. 1mm (at a sensor-floor distance of 30mm)
1) Protective Extra Low Voltage (PELV) - protective extra-low voltage.
2) Only with screwed-on M12 connectors or mounted caps.
3) Only fiber-free cloths may be used to clean the lens covers. Tips and hard objects damage
the lens.
with EN 62471:2008
300mm
150mm
Nominal:30mm
Optimal:20 … 40mm
Dark trace on light floor
CANopen and RS232
RS485
RS422
1 configurable switching input/output
(only OGS 600s with RS485 or RS422)
Approx. 405g
Approx. 245g
Technical data
2)
TNT 35/7-24V
3)
Leuze electronicOGS 60088
11.2Dimensioned drawings
A Center of sensor's measurement field
11.2.1 Dimensioned drawing OGS 600-280/CN-M12 – long version
Technical data
Figure 11.1: Dimensioned drawing OGS 600-280/CN-M12 – long version
Leuze electronicOGS 60089
TNT 35/7-24V
Technical data
A Center of sensor's measurement field
11.2.2 Dimensioned drawing OGS 600-280/D…-M12.8 – long version
Figure 11.2: Dimensioned drawing OGS 600-280/D…-M12.8 – long version
Leuze electronicOGS 60090
TNT 35/7-24V
11.2.3 Dimensioned drawing OGS 600-140/CN-M12 – short version
A Center of sensor's measurement field
Technical data
Figure 11.3: Dimensioned drawing OGS 600-140/CN-M12 – short version
Leuze electronicOGS 60091
TNT 35/7-24V
Technical data
A Center of sensor's measurement field
11.2.4 Dimensioned drawing OGS 600-140/D…-M12.8 – short version
Figure 11.4: Dimensioned drawing OGS 600-140/D…-M12.8 – short version
Leuze electronicOGS 60092
TNT 35/7-24V
11.3Diagrams
y
x
0
500
1000
1500
2000
3000
2500
3500
010050150200250300 350
D
C
A
B
A Measurement value for left edge of guide trace
B Measurement value for right edge of guide trace
C Output value: Position of left edge
D Output value: Position of right edge
x Position of left edge of guide trace under sensor
y Output value: Edge positions
11.3.1 Sensor characteristic curve with one guide trace
Technical data
Figure 11.5: Sensor characteristic curve with one trace
Leuze electronicOGS 60093
TNT 35/7-24V
11.3.2 Linearity error
y
x
0
2
4
6
8
12
10
14
020103040506070
A
B
C
A Characteristic curve: typical linearity error
B Characteristic curve: maximum linearity error
C Characteristic curve: minimum linearity error
x Distance of sensor to ground
y Linearity error
Technical data
Figure 11.6: Linearity error as a function of distance between sensor and ground
Leuze electronicOGS 60094
TNT 35/7-24V
12Order guide and accessories
12.1Sensor part number code
OGS 600- XXX /YY -M12.8
N/A2x 5-pin
.81x 8-pin
/CNCANopen and RS232 interface
/D3RS485 interface
/D2RS422 interface
280Long version
140Short version
Table 12.1:OGS 600 part number code
12.2Order guide for sensor
Part no.Type designationDescription
50137472OGS 600-280/CN-M12Optical guidance sensor OGS 600, long version,
50137473OGS 600-140/CN-M12Optical guidance sensor OGS 600, short version,
50137474OGS 600-280/D3-M12.8Optical guidance sensor OGS 600, long version,
50137475OGS 600-140/D3-M12.8Optical guidance sensor OGS 600, short version,
50137476OGS 600-280/D2-M12.8Optical guidance sensor OGS 600, long version,
50137477OGS 600-140/D2-M12.8Optical guidance sensor OGS 600, short version,
M12 connection technology
Optical guidance sensor, OGS 600 series
(Optical Guidance Sensor)
CANopen and RS232 interface, 2x M12 connector, 5-pin
CANopen and RS232 interface, 2x M12 connector, 5-pin
RS485 interface, 1x M12 connector, 8-pin
RS485 interface, 1x M12 connector, 8-pin
RS422 interface, 1x M12 connector, 8-pin
RS422 interface, 1x M12 connector, 8-pin
Order guide and accessories
TNT 35/7-24V
Leuze electronicOGS 60095
Order guide and accessories
12.3Accessories
12.3.1 Connection cables for CANopen/RS232 devices