BASIC commands
PROGRAMMING MANUAL
103
R
e
vi
si
o
n
1
.0
fig. 29
/i
IN(7)
NC
AXIS 3
Example
A machine that applies lids to cartons uses a simulated line shaft. This exam-
ple sets up a virtual axis running forward to simulate the line shaft. Axis 0 is
then connected, with the
CONNECT
command, to this virtual axis to run the
conveyor. Axis 1 controls a vacuum roller that feeds the lids on to the cartons
using the
MOVELINK
control.
BASE(4)
ATYPE=0 'Set axis 4 to virtual axis
REP_OPTION=1
SERVO=ON
FORWARD 'starts line shaft
BASE(0)
CONNECT(-1,4) 'Connects base 0 to virtual axis in reverse
WHILE IN(2)=ON
BASE(1)
'Links axis 1 to the shaft in reverse direction
MOVELINK(-4000,2000,0,0,4,2,1000)
WAIT IDLE
WEND
RAPIDSTOP
See also
AXIS
,
CANCEL
,
RAPIDSTOP
,
REVERSE
,
UNITS
.