Examples and tips
PROGRAMMING MANUAL
329
R
e
vi
si
o
n
1
.0
fig. 50
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
5.2.5
Position on a grid
fig. 51
A square palette has sides 1m long. It is divided into a 5 x 5 grid, and each of
the positions on the grid contains a box which must be filled using the same
square pattern of 100mm by 100mm. A dispensing nozzle controlled by
digital output 8 must be turned on when filling the box and off at all other
times.
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