![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454123.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
Содержание trajexia CJ1W-MCH72
Страница 69: ...Specifications Section 2 4 58...
Страница 83: ...FINS commands Section 3 4 72...
Страница 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...All BASIC commands Section 4 2 266...
Страница 278: ...267 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 371: ...360 Index...
Страница 373: ...362...