![background image](http://html1.mh-extra.com/html/omron/sysmac-cj-series/sysmac-cj-series_operation-manual_743585124.webp)
All BASIC commands
Section 4-2
112
/i
Example
A pair of rollers feeds plastic film into a machine. The feed is synchro-
nised 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.
MOTOR
AXIS 0
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...