Examples and tips
PROGRAMMING MANUAL
284
R
e
vi
si
o
n
1
.0
WAIT UNTIL IN(0)=ON
WAIT UNTIL IN(0)=OFF
CANCEL
DATUM(4)
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