Examples and tips
PROGRAMMING MANUAL
263
Revi
si
on 3.0
fig. 34
The picture gives the sequence of executing the commands and
the registrations of the sample program below.
BASE(N)
REGIST(0)
WAIT UNTIL MARK=0
loop:
WAIT UNTIL MARK=-1
PRINT "Position captured in: "; REG_POS
REGIST(0)
WAIT UNTIL MARK=0
GOTO loop
Position
t
Registration Input
REG_POS=xxx
The trigger is active
MARK=0
REGIST(0)
REGIST(0)
MARK=-1
MARK=-1
MARK=0
MARK=-1
REG_POS=Pos1
REG_POS=Pos1
The trigger is active
If the trigger is
not active,
the registration is
ignored
The position
information is
available
I52E-EN-03.book Seite 263 Freitag, 29. Juni 2007 11:55 11