Examples and tips
PROGRAMMING MANUAL
256
Revi
si
on 3.0
WA(1)
WAIT IDLE
ENDIF
Origin search against limit switches
fig. 28
This origin search function is performed by searching for an
external sensor using limit switches only. The example for this
homing procedure is shown in the figure.
fig. 29
The possible scenarios for origin search against limit switches,
depending on the position of the moving part on power on, are
shown in the figure.
The program example that does this origin search sequence is
given below.
'Origin and left limit switch: IN0
'Right limit switch: IN1
BASE(0)
DATUM_IN=0
SERVO=ON
WDOG=ON
DATUM(4)
WA(1)
WAIT IDLE
ON
OFF
ON
OFF
min. limit switch
moving part
max. limit switch
FORWARD
REVERSE
min limit switch
max limit switch
I52E-EN-03.book Seite 256 Freitag, 29. Juni 2007 11:55 11