BASIC commands
PROGRAMMING MANUAL 66
Revision 1.0
fig. 16/i
fig. 17/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 inter-
mediate 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
Example Axis 0 is required to run a continuous forward. Axis 1 must connect to axis 0.
If CONNECT is called, it results in a step change. Therefore, CLUTCH_RATE
is used, together with an initial and final connect ratio of zero, to get the
required motion.
FORWARD AXIS(0)
BASE(1)
CONNECT(0,0) 'set intitial ratio to zero
CLUTCH_RATE=0.5 'set clutch rate
CONNECT(2,0) 'apply the required connect ratio
WA(8000)
CONNECT(0,0) 'apply zero ratio to disconnect
WA(4000) 'wait for deceleration to complete
CANCEL 'cancel connect
See also AXIS, CANCEL, CLUTCH_RATE, CONNECT, RAPIDSTOP.