Dynamic Teach-In of 1 setpoint. For SP1 only
Principle
Dynamic teach-in allows you to set the switching point
without interrupting the process.
Typical application: Sensitivity setup to a process running
perpendicular to the light beam of the sensor (Conveyor)
.
During the teach procedure, which begins with the Start
command and ends with the Stop command, the sensor
carries out measurements and determines the minimum
and maximum of the obtained values. The Teach Apply
command determines the switching point SPy.
Instructions
Dynamic Teach is explained for SP1 as an example.
The same sequence can be applied for SP2 with the
corresponding instruction set.
Precondition:
Sensor is installed, aligned to the running process and
operated in IO-Link mode.
Procedure:
1. Start Dynamic Teach:
Send System command 0x47 to sensor.
Access Index
Value
Remark
W
0x002 (2)
0x47
SP1 Dynamic Teach Start
2. Wait for a minimum of one process cycle is completed.
(Dynamic Teach is aborted in case no object has been
detected within 1 min or Teach has not been confirmed
within 10 min. Sensor keeps operating with last valid
Setpoint settings).
3. Stop Dynamic Teach:
Send System command 0x48 to sensor.
Access Index
Value
Remark
W
0x002 (2)
0x48
SP1 Dynamic Teach Stop
4. Verify successful sensitivity setup:
Read and verify parameter Teach-In Status with Index
0x003B.
Access Index Value
Meaning
Result
R
0x003B
0x34
Dynamic sensitivity setup of SP1
successful
Teach-In State = WAIT FOR
COMMAND
Proceed with 5
0x07
Teach-In State = ERROR
Back to 1
5. Store and accept Setpoint SP1:
Send System command 0x40 to sensor.
Access Index
Value
Remark
W
0x002 (2)
0x40
Teach Apply
6. Verify correct acceptance of SP1:
Read and verify parameter Teach-In Status with Index
0x003B.
Access Index Value
Meaning
Result
R
0x003B
0x01
SP1 accepted successfully.
Teach-In State = SP1 SUCCESS
(0x01)
Teach-In
successful
0x07
Teach-In State = ERROR
Back to 1
Teach-In Status
Teach Flags
Teach State
SP2
SP1
TP2
TP1
TP2
TP1
0 = IDLE
1 = SP1 SUCCESS
2 = SP2 SUCCESS
3 = SP12 SUCCESS
4 = WAIT FOR COMMAND
5 = BUSY
6 = reserved
7 = ERROR
Example for:
"
0
" = TP1 of SP2 not set
or not successfully set
"
1
" = TP1 of SP2 success-
fully set
System commands
19
Photoelectric Sensors
Red light diffuse reflective BOS 08E-PI-KH22-... with background supres. and IO-Link