Skip to content

Object Detection#

Chapter goal

Goal: Detect an object in the measurement range and output it via IO-Link.

Four switching channels are available for object detection: two switch on distance, two on magnitude. Channel parameters are summarized below.

How it works#

There are four switching channels: two for distance, two for magnitude. They compare the current measurement value (distance or magnitude) against configured switching points and change state according to the selected mode (Single Point, Two Point, Window Mode). Detailed configuration and parameter tables follow in the next section.

Parameter table – Switching Signal Channel 1.1 (Distance)
Parameter
Section
Parameter name
Index
Subindex
Default
Switching point 1
Switching Signal Channel 1.1
SC1.1 Param.SP1
60
1
2147483644 mm
(Disabled)
Switching point 2
Switching Signal Channel 1.1
SC1.1 Param.SP2
60
2
2147483644 mm
(Disabled)
Logic
Switching Signal Channel 1.1
SSC1.1 Config.Logic
61
1
High active
Mode
Switching Signal Channel 1.1
SSC1.1 Config.Mode
61
2
Single point
Hysteresis
Switching Signal Channel 1.1
SSC1.1 Config.Hysteresis
61
3
10 mm
Parameter table – Switching Signal Channel 1.2 (Distance)
Parameter
Section
Parameter name
Index
Subindex
Default
Switching point 1
Switching Signal Channel 1.2
SC1.2 Param.SP1
62
1
2147483644 mm
(Disabled)
Switching point 2
Switching Signal Channel 1.2
SC1.2 Param.SP2
62
2
2147483644 mm
(Disabled)
Logic
Switching Signal Channel 1.2
SSC1.2 Config.Logic
63
1
High active
Mode
Switching Signal Channel 1.2
SSC1.2 Config.Mode
63
2
Single point
Hysteresis
Switching Signal Channel 1.2
SSC1.2 Config.Hysteresis
63
3
10 mm
Parameter table – Switching Signal Channel 2.1 (Magnitude)
Parameter
Section
Parameter name
Index
Subindex
Default
Switching point 1
Switching Signal Channel 2.1
SC2.1 Param.SP1
16396
1
2147483644 dB
(Disabled)
Switching point 2
Switching Signal Channel 2.1
SC2.1 Param.SP2
16396
2
2147483644 dB
(Disabled)
Logic
Switching Signal Channel 2.1
SSC2.1 Config.Logic
16397
1
High active
Mode
Switching Signal Channel 2.1
SSC2.1 Config.Mode
16397
2
Single point
Hysteresis
Switching Signal Channel 2.1
SSC2.1 Config.Hysteresis
16397
3
10 dB
Parameter table – Switching Signal Channel 2.2 (Magnitude)
Parameter
Section
Parameter name
Index
Subindex
Default
Switching point 1
Switching Signal Channel 2.2
SC2.2 Param.SP1
16398
1
2147483644 dB
(Disabled)
Switching point 2
Switching Signal Channel 2.2
SC2.2 Param.SP2
16398
2
2147483644 dB
(Disabled)
Logic
Switching Signal Channel 2.2
SSC2.2 Config.Logic
16399
1
High active
Mode
Switching Signal Channel 2.2
SSC2.2 Config.Mode
16399
2
Single point
Hysteresis
Switching Signal Channel 2.2
SSC2.2 Config.Hysteresis
16399
3
10 dB

Note

All four switching channels are configured identically. The only difference is the input value (distance or magnitude). Examples refer to Switching Signal Channel 1.1.

Configuration#

1. Configure switching mode#

Choose a switching mode (three options):

Switching mode

Single Point is the factory setting. Single Point and Two Point work on the same principle: They switch on above a threshold and off below. The difference: Two Point uses a second threshold (SP2) for fallback behavior. Single Point uses a hysteresis. Window Mode switches only inside a defined window between two points.

More details on the modes can be expanded here.

Single Point

Uses only SP1. Active: value ≥ SP1. Fallback: value < SP1 – considering hysteresis.

Single Point

Two Point

Uses SP1 and SP2, no hysteresis. Active: value ≥ SP1. Fallback: value < SP2.

Two Point

Window Mode

Active between SP1 and SP2 (hysteresis on both sides 50%). Outside: inactive.

Window Mode

2. Configure hysteresis#

Hysteresis is effective only in Single Point and Window Mode. A value of 0 disables it. Two Point mode does not use hysteresis.

Hysteresis

Note

Default: 10 mm / 10 dB. For magnitude channels (2.1 / 2.2) a smaller hysteresis is usually required.

3. Configure switching points#

Important

Switching points are not identical to switching channels. A channel uses one or two switching points depending on mode.

You can configure a channel's switching points manually or teach them via the Teach function.

Manual: Enter values in SP1 / SP2. Value 2147483644 disables the channel. Unused points do not need resetting.

Switching points

There are three teach modes: Single Value, Two Value, Dynamic. Only Single Value is covered here. Information on the other modes is in the IO-Link configuration guide.

Note

Two Value Teach is not identical to Two Point. All switching modes work with all teach modes.

Parameter table – Single Point Teach
Parameter
Section
Parameter name
Index
Subindex
Default
Select switching channel
Teach
Teach Select
60
1
SSC1.1
Teach channel 1 switching point 1
Teach - Single Value
Teach SP1
System command 0x41
Teach channel 2 switching point 2
Teach - Single Value
Teach SP2
System command 0x42
Status
Teach - Single Value
Teach Result.State
59
1

Possible values for Teach Select

Channel Description Value for Teach Select
SSC1.1 Switching Signal Channel 1.1 (Distance) 1
SSC1.2 Switching Signal Channel 1.2 (Distance) 2
SSC2.1 Switching Signal Channel 2.1 (Magnitude) 11
SSC2.2 Switching Signal Channel 2.2 (Magnitude) 22

First select the channel to teach. Teach SP1 / Teach SP2 sets the current value respectively.

Teach

Use Teach Result to check status. An error occurs e.g. if no target is detected.

Value Meaning
0 Idle
1 Switching point 1 taught successfully
2 Switching point 2 taught successfully
7 Error during teaching

4. Invert switching behavior#

With the parameter Logic you invert behavior (High active / Low active).

Switching behavior

My switching behavior in the near range is not reliable

Below 500 mm distance and magnitude values can fluctuate. For the near range use the Radar Reflex Gate mode.

  • Next section
    Step 5 – Output detected object via a digital output