Examples and tips
PROGRAMMING MANUAL
294
Revi
si
on 3.0
•
The motion provides a smooth acceleration without sudden
acceleration changes, so the material slip is minimized
•
It gives a fast deceleration so the cycle time is reduced. During
deceleration there is no material slip and the friction helps to
the stop to zero.
fig. 57
Example
start:
GOSUB filltable
WDOG=1 'Set servos to RUN
BASE(1)
SERVO=1 'Enable position loop in axis 1
BASE(0)
SERVO=1 'Enable position loop in axis 0
'The position counter counts from 0 to 11999
'and then back to 0 again
REP_OPTION=1
REP_DIST=12000
SPEED=200
FORWARD
BASE(1)
loop:
CAMBOX(in_tbl,end_tbl,1,lnk_dst,master,opt,start)
WAIT IDLE
GOTO loop
filltable:
'The shape of the CAM is stored in TABLE(0) to
'TABLE(360)
npoints=360
in_tbl=0
end_tbl=npoints
'Distance of the master to make the CAM
lnk_dst=10000
'Master axis
master=0
'The CAM start exactly when the master reaches
'position "start"
I52E-EN-03.book Seite 294 Freitag, 29. Juni 2007 11:55 11