Specifications

BASIC commands
PROGRAMMING MANUAL 48
Revision 5.0
fig. 9/i
MOTOR
AXIS 0
Example A pair of rollers feeds plastic film into a machine. The feed is synchronised to
a master encoder and is activated when the master reaches a position held in
the variable start. This example uses the table points 0...30 generated in the
example above:
start=1000
FORWARD AXIS(1)
WHILE IN(2)=OFF
CAMBOX(0,30,800,80,15,2,start)
WA(10)
WAIT UNTIL MTYPE=0 OR IN(2)=ON
WEND
CANCEL
CANCEL AXIS(1)
WAIT IDLE
The arguments of the CAMBOX command are:
0 is the start of the profile shape in the TABLE
30 is the end of the profile shape in the TABLE
800 scales the TABLE values. Each CAMBOX motion therefore
totals 800*2000 encoder edges steps.
80 is the distance on the product conveyor to link the motion to. The units
for this parameter are the programmed distance units on the link axis.
15 specifies the axis to link to.
2 is the link option setting. It means: Start at absolute position on the link
axis.
The variable start holds a position. The motion will execute when this
position is reached on axis 15.