Omron trajexia CJ1W-MCH72 Operation Manual page 133

Sysmac cj-series programmable controller
Hide thumbs Also See for trajexia CJ1W-MCH72:
Table of Contents

Advertisement

All BASIC commands
122
Example
In a press feed, a roller is required to rotate at a speed that is equal to
one quarter of the measured rate from an encoder installed on the
incoming conveyor. The roller is wired to the master axis 0. The refer-
ence encoder is connected to axis 1.
BASE(0)
SERVO=ON
CONNECT(0.25,1)
/i
Example
A machine has an automatic feed on axis 1 that must move at a set ratio
to axis 0. This ratio is selected using inputs 0-2 to select a particular
"gear". This ratio can be updated every 100 ms. Combinations of inputs
select the intermediate gear ratios. For example, 1 ON and 2 ON gives
a ratio of 6:1.
BASE(1)
FORWARD AXIS(0)
WHILE IN(3)=ON
WA(100)
gear = IN(0,2)
CONNECT(gear,0)
WEND
RAPIDSTOP cancel the FORWARD and the CONNECT
Section 4-2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents