Examples and tips
PROGRAMMING MANUAL
288
Revi
si
on 3.0
fig. 52
Example
start:
WAIT UNTIL IN(1)=ON
SPEED=10
FORWARD
WAIT UNTIL IN(2)=ON
prod_pos=MPOS
CANCEL
WAIT IDLE
PRINT "Product Position : "; prod_pos
SPEED=100
MOVEABS(0)
WAIT IDLE
GOTO start
speed
Forward
Moveabs
IN(1)
IN(2)
t
CANCEL
WAIT IDLE
PRINT "Product position"
SPEED=100
MOVEABS(0)
WAIT IDLE
Start:
WAIT UNTIL IN(1)=ON
WAIT UNTIL IN(1)=ON
SPEED=10
FORWARD
WAIT UNTIL IN(2)=ON
I52E-EN-03.book Seite 288 Freitag, 29. Juni 2007 11:55 11