Photoelectric Sensors
Multi-function sensor with additional functions
BOS 21M-UUI-RP30-S4
8
english
Two Value Teach: Teach-In with 2 Teach points
(continued)
7.
Verify whether SP1 has been taught successfully:
Read out and check the parameter
Teach-In Status
using Index 0x003B.
Access Index Sub-
index
Value
Meaning
Result
R
0x003B
(59)
0x00
(0)
0x34
(52)
TP1 and TP2
for SP1
successfully
taught
Teach State
= WAIT FOR
COMMAND
Go to
Step 8
0x07
(7)
Teach State
= Error
Back to
Step 3
8.
Save and apply switchpoint SP1: Send
system command 0x40 to the sensor.
Access
Index
Sub-
index
Value
Meaning
W
0x0002 (2) 0x00 (0) 0x40 (64) Teach Apply
9.
Verify whether SP1 has been taught successfully: Read
out and check the
Teach-In Status
parameter using
index 0x003B.
Access Index Sub-
index
Value Meaning
Result
R
0x003B
(59)
0x00
(0)
0x01
(1)
SP1
success fully
applied
Teach State
= SP1
SUCCESS
Teach-in
completed
success-
fully
0x07
(7)
Teach State
= Error
Back to
Step 3
Dynamic Teach-In
Principle
Dynamic teach-in allows you to set the switchpoint without
stopping the process.
Typical application: setting a switchpoint for a laterally
approaching object on a conveyor belt.
During the teach procedure, which begins with the Start
command and ends with the Stop command, the sensor
performs measurements and determines the minimum and
maximum value of the measurements.
Fig. 9:
System commands
Dynamic Teach
Teach instructions
1.
Align sensor for the running process.
2.
Select the teach-in channel as follows:
Access
Index
Sub-
index
Value
Meaning
W
0x003A (58) 0x00 (0) 0x00 (0) Standard BDC1
3.
Start dynamic teach-in: Send system command 0x47
to the sensor.
Access
Index
Sub-
index
Value
Meaning
W
0x0002 (2) 0x00 (0) 0x47 (71) SP1 Dynamic
Teach Start
4.
Wait until at least 1 process cycle in the light path has
taken place.
5.
Stop dynamic teach-in: Send system command 0x48
to the sensor.
Access
Index
Sub-
index
Value
Meaning
W
0x0002 (2) 0x00 (0) 0x48 (72) SP1 Dynamic
Teach Stop
6.
Save and apply switch point SP1:
Send system command 0x40 to sensor.
Access
Index
Sub-
index
Value
Meaning
W
0x0002 (2) 0x00 (0) 0x40 (64) Teach Apply
7.
Verify whether SP1 has been applied successfully:
Read out and check the parameter
Teach-In Status
using Index 0x003B.
Access Index Sub-
index
Value Meaning
Result
R
0x003B
(59)
0x00
(0)
0x01
(1)
SP1
success fully
applied
Teach State
= SP1
SUCCESS
Teach-in
completed
success-
fully
0x07
(7)
Teach State
= Error
Back to
Step 3